TFTD/XComUtil Error message


  • Please log in to reply
11 replies to this topic

#1 ZeraSeraphim

ZeraSeraphim

    Squaddie

  • Members
  • Pip
  • 19 posts

Posted 26 October 2012 - 07:10 PM

I'm running the TFTDExtender mod program, and XComUtil at the time same using the XcomUtil patch listed on

http://www.strategyc...combo-mod-beta/

However, everytime that I get into a tactical battle, an annoying message shows up that looks like this
error message.jpg


But the weird thing is that the game proceeds to load the tactical battle even after this application failure. Does anyone know how I can fix this, or even if it needs to be fixed? I'd really appreciate the help.

#2 kyrub

kyrub

    Lieutenant

  • Members
  • PipPipPipPip
  • 111 posts

Posted 26 October 2012 - 08:26 PM

This is a problem related to the COMBOMOD, not tftdextender.
The program that splits the exe files into Geoscape and Tactical (made by Xcomutil author) has a bug.


We are working on fixing it. I already sent a correction file to BombBloke. After he tests it, we'll know more.
Expect some development later.

#3 ZeraSeraphim

ZeraSeraphim

    Squaddie

  • Members
  • Pip
  • 19 posts

Posted 26 October 2012 - 08:36 PM

Honestly, I haven't had any luck getting the combomod to work at all. I was just using the xcomutil patch that was a part of it because it's the closest I've come to getting tftdextender and xcomutil to work together all day.

Thanks for replying so fast. I acknowlage that this bug will likely be fixed soon but is it a serious bug? Do I really need to fix it or is it benign enough to let be?

#4 kyrub

kyrub

    Lieutenant

  • Members
  • PipPipPipPip
  • 111 posts

Posted 26 October 2012 - 08:40 PM

Oh yes, you are right. Xcomutil uses splitted exe as well.


I cannot tell really, because I have never worked with split exe files.
The problem itself is normally very serious (stack pointer problem) and causes data corruption over time, which can break the game at any point.

I will send the PM info to Tycho, he may try to test it/ implement it into TFTD extender.

#5 ZeraSeraphim

ZeraSeraphim

    Squaddie

  • Members
  • Pip
  • 19 posts

Posted 26 October 2012 - 10:28 PM

Is there a way I can address this problem on my own instead of waiting for a new release of TFTDextender/ComboMod?

#6 kyrub

kyrub

    Lieutenant

  • Members
  • PipPipPipPip
  • 111 posts

Posted 26 October 2012 - 10:46 PM

View PostZeraSeraphim, on 26 October 2012 - 10:28 PM, said:

Is there a way I can address this problem on my own instead of waiting for a new release of TFTDextender/ComboMod?
Surely, you may test it and help all people involved. That would be nice.
You need a hexeditor, open Geoscape.exe in your folder. Go to address  0x67d66.
And then: (this is a copy of what I PMed to BBloke)

Quote

I think you should try to overwrite in Geoscape.exe
address 0x67d66:
58c22000cc05
WITH
83C414c22000

If this does not work, I would try
83C414c21000


#7 ZeraSeraphim

ZeraSeraphim

    Squaddie

  • Members
  • Pip
  • 19 posts

Posted 26 October 2012 - 11:33 PM

Good_News_Everyone_by_martynasx.jpg

replacing 58c22000cc05 with 83C414c22000 seemed to fix the problem. I just entered a tactical battle after making the nessecary modifications, and there was no error message. Since I have TFTDExtender and XComUtil working together now in the same game, I have to test it for stability...

Very
Thorough
Testing.

I'll post here if there are any further problems, so if you don't hear anything from me, then good job, soldier.

#8 Bomb Bloke

Bomb Bloke

    The Smily Admin

  • Admin
  • PipPipPipPipPip
  • 4,625 posts
  • Gender:Male
  • Location:Tasmania (AU)

Posted 28 October 2012 - 10:48 AM

Very well done, kyrub!  Posted Image

Just a few notes:

The original EXE "splitting" code was written by Scott, as it was required for XcomUtil to function. While it works fine with UFO, in TFTD it always crashes when the geoscape engine exits (and also stops it from passing the right exit code).

ComboMod (along with BBMod) relies on the same split technique, which I've shamelessly copied from XcomUtil's patcher.

I've implemented kyrub's fix into my toolkit, so extracting that into your game folder and running _EXE Split.bat will apply it (ditto for running my ComboMod installer). Note that if you run XcomUtil's setup after doing this, Scott's original split patch'll be put back in place and so the crash'll come back with it. Running my splitter batch again'll fix it again.

The XcomUtil patch on my ComboMod thread page isn't included in my toolkit. It's simply a patch for XcomUtil that allows it to be used with TFTDLoader (and deals with a minor map bug), and can be used entirely independently of anything in my toolkit.
BB's X-Com Projects Page - X-Com Games At GamersGate
You're just jealous 'cause the voices only talk to me :P
We love Tammy! :)

#9 ZeraSeraphim

ZeraSeraphim

    Squaddie

  • Members
  • Pip
  • 19 posts

Posted 28 October 2012 - 04:38 PM

Well, it works, Bloke. Now, instead of crashing all the time, my only problem is getting my face kicked in by lobstermen.

#10 Tycho

Tycho

    Lieutenant

  • Project Staff
  • PipPipPipPip
  • 703 posts
  • Gender:Male

Posted 30 October 2012 - 03:18 AM

Could this same bug in the splitter be a problem in EU as well?  I have someone on UFOpaedia getting the same error message with the original game.

#11 Bomb Bloke

Bomb Bloke

    The Smily Admin

  • Admin
  • PipPipPipPipPip
  • 4,625 posts
  • Gender:Male
  • Location:Tasmania (AU)

Posted 30 October 2012 - 10:19 AM

Nah, they're getting a different error.

The old splitter code caused TFTD to throw this every single time the "split" geoscape.exe exited:

XCOM crashed at 0x0 with error 0xC0000005 trying to access 0x00000000

... though that particular form of the error was only visible with Extender running. Otherwise you only got a generic "TFTD has encountered a problem and needs to close" message (as provided by Windows itself). Whenever the game crashes with Extender running, for just about any reason, you'll get something that looks like that rather then the traditional crash report.

The equivalent code for EU doesn't have that specific crash trigger at all, though it does collide with Extender's intro-skip to trigger the following:

XCOM crashed at 0x45E6A5 with error 0xC0000005 trying to access 0x000000

Beats me as to why those functions would interfere; if you don't already have it, here's a diff of the values involved in the split:

Attached File  geoscape patch.txt   5.04K   287 downloads

Mind you, you will still sometimes get random crashes when you go to start combat, but these are unrelated - they happen regardless as to whether you're using a "split" EXE or not (or even any mods at all). In fact, using the "split" version makes things a little more "stable" in that the batch file that jumps between the two game engines is perfectly happy to carry on and start combat even if the geoscape engine happened to crash at that exact point.
BB's X-Com Projects Page - X-Com Games At GamersGate
You're just jealous 'cause the voices only talk to me :P
We love Tammy! :)

#12 Sherlock

Sherlock

    Squaddie

  • Members
  • Pip
  • 13 posts

Posted 18 January 2013 - 01:49 PM

This trick/patch does not work with the newest TFTDExtender. TFTD CE + XComUtil works all right. But using TFTD CE + TFTDextender + XComUtil causes this message when exiting Geoscape:

TFTD crashed at 0x7C9192F6 with error 0xC0000005 trying to access 0x00000002




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users