Executable behaving oddly at Ollydbg

ImageImageTalking about Modding for EE2 and EE2 AOS. New maps, patches, programs and Multiplayer scenarios.
User avatar
Gonzalo
Posts: 240
Joined: 24 Aug 2018, 08:56

Executable behaving oddly at Ollydbg

Post 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 65 times


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

User avatar
Dr.MonaLisa
High Representative
Posts: 7916
Joined: 17 Jun 2010, 11:21
Location: Poland

Re: Executable behaving oddly at Ollydbg

Post 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?
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Gonzalo
Posts: 240
Joined: 24 Aug 2018, 08:56

Re: Executable behaving oddly at Ollydbg

Post by Gonzalo »

No, I am in version 1.5.8, with older backups I have no problem in ollydbg. Thanx for reply!!
User avatar
Dr.MonaLisa
High Representative
Posts: 7916
Joined: 17 Jun 2010, 11:21
Location: Poland

Re: Executable behaving oddly at Ollydbg

Post by Dr.MonaLisa »

How do you start the game with olly? What file do you select?
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Gonzalo
Posts: 240
Joined: 24 Aug 2018, 08:56

Re: Executable behaving oddly at Ollydbg

Post by Gonzalo »

EE2X.EXE
User avatar
Dr.MonaLisa
High Representative
Posts: 7916
Joined: 17 Jun 2010, 11:21
Location: Poland

Re: Executable behaving oddly at Ollydbg

Post 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.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Gonzalo
Posts: 240
Joined: 24 Aug 2018, 08:56

Re: Executable behaving oddly at Ollydbg

Post 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?
User avatar
Dr.MonaLisa
High Representative
Posts: 7916
Joined: 17 Jun 2010, 11:21
Location: Poland

Re: Executable behaving oddly at Ollydbg

Post 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.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Gonzalo
Posts: 240
Joined: 24 Aug 2018, 08:56

Re: Executable behaving oddly at Ollydbg

Post by Gonzalo »

I attached successfully...but no way seem to be to mod anything there :(
User avatar
Dr.MonaLisa
High Representative
Posts: 7916
Joined: 17 Jun 2010, 11:21
Location: Poland

Re: Executable behaving oddly at Ollydbg

Post 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.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Post Reply

Return to “EE2 files, modding, maps, testing, etc.”