Page 1 of 2

Executable behaving oddly at Ollydbg

Posted: 10 Nov 2020, 21:48
by Gonzalo
Hi Her Holyness and rest of people here...
I used to play around with EE2X.EXE at Ollydbg, set breakpoints, run the program along with olly etc without greater issue. But since last patch, which I downloaded today, strangely olly doesn't seem to be able to run along with the game. I hit play button and just EE2X appears paused, I hit play again and immediately EE2X terminates abruptly. It seems that there are invisible breakpoints on the code. I modified nothing, but it's impossible to play EE2X along with Ollydbg...please explain me what's going on which I miss. Here is a pic of the last instruction which is executed (without even appearing the batch UP15 settings window):
Sorry, I used a wrong site to upload my image :(
Sorry, I used a wrong site to upload my image :(
Image1.jpg (483.94 KiB) Viewed 1229 times


Added after 7 minutes 8 seconds:
By the way, is the blackened mark of the instruction eventually reached normal??

Re: Executable behaving oddly at Ollydbg

Posted: 11 Nov 2020, 13:11
by Dr.MonaLisa
Since UP1.5.8, EE2 uses a new DLL file (UP1.5_GameHelper.dll) and the Launcher process is required to be running in the background.
Are you on ver 1.5.8 or older?

Re: Executable behaving oddly at Ollydbg

Posted: 11 Nov 2020, 13:20
by Gonzalo
No, I am in version 1.5.8, with older backups I have no problem in ollydbg. Thanx for reply!!

Re: Executable behaving oddly at Ollydbg

Posted: 11 Nov 2020, 13:36
by Dr.MonaLisa
How do you start the game with olly? What file do you select?

Re: Executable behaving oddly at Ollydbg

Posted: 11 Nov 2020, 13:53
by Gonzalo
EE2X.EXE

Re: Executable behaving oddly at Ollydbg

Posted: 11 Nov 2020, 14:22
by Dr.MonaLisa
But this is the UP1.5 Launcher executable? Are you actually wasting time debbuging my Launcher file? If you're interested in some function, I can send you the source code LOL.

Re: Executable behaving oddly at Ollydbg

Posted: 11 Nov 2020, 14:46
by Gonzalo
Really I am interested in the dynamics of the game, to modify some values or features...why shouldn't I modify the exe file?? :-O

Added after 4 minutes 19 seconds:
Of course I don't want to modify your patch, but some features of the game. What should I modify with olly, then?

Re: Executable behaving oddly at Ollydbg

Posted: 11 Nov 2020, 14:47
by Dr.MonaLisa
You can do this, but you need to base on the correct executable. You're most likely are tweaking values of the UP1.5 LAUNCHER, which has nothing to do with game process itself.
You need to start the game normally, then use the "Attach" feature in olly, and select EE2X.exe with path: "Empire Earth II\Unofficial Patch Files\EnabledUP15UnitsDX9\EE2X.exe" (or something like this). Then it's attached to the actual game process, not the Launcher.

Re: Executable behaving oddly at Ollydbg

Posted: 11 Nov 2020, 15:37
by Gonzalo
I attached successfully...but no way seem to be to mod anything there :(

Re: Executable behaving oddly at Ollydbg

Posted: 11 Nov 2020, 17:23
by Dr.MonaLisa
After you attach to the EE2X.exe from the correct location (as written in the post above), click on "View" -> "Executable Modules", and select name "EE2X.exe" with version 1.5.8.0" (usually the first one on the list). This will be the right process module to work on.