Confirm Trade Button (EP5x)

03/17/2015 22:08 sominus#1
Well, this is embarrassing...

But I can't fix the confirm trade button on EP5 game.exe

Been testing with Olly and CE, found what I think is the code, and all I got was the confirm button removed, and the OK button is there, but is somehow 'disabled' (can't click on it).

Also made a lot of other tests which resulted in game crashes.

This is (I think) the code block (unless I'm very wrong) I found:

(warning long code ahead)

Tried nooping, jumping, etc. Watching the code in an old game.exe that had no confirm button, but can't make it work.

If anyone has a some info about this?

PS: The game.exe Im using is 3.301.376 bytes in size. Is not the 3.289.088 one released here.
03/17/2015 23:10 andr3y_you96#2
The part of code that you posted its only for graphic if im not wrong. When i was looking into it i was able to remove the graphic of the confirm button but the OK button was still disabled.
I can give you the offessets for the 3.289.088 bytes game.exe where i made the change to jump the confirm button, there should be something similar in yours too.
I simply changed JE (jump if equal) to JMP (jump). I dont realy remember how i found this 2 offesets.
Code:
00513023 - E9 C5000000           - jmp 005130ED
00513038 - E9 B0000000           - jmp 005130ED
03/18/2015 00:12 sominus#3
Well I was looking in the wrong place.

Those 2 jumps you posted indeed fixed the problem.
Now the confirm button is still visible but disabled (but I'm sure they can be removed), and the OK button works fine, no more DC.

Thanks a lot.
03/18/2015 13:36 thetruestarr1337#4
for the confirm button, it sounds dirty but you could clear the image in the interface folder :)
03/18/2015 16:08 sominus#5
Already replaced the confirm with a static text, but yeah, it's a dirty solution lol.
03/31/2015 20:19 harlantk#6
Quote:
Originally Posted by andr3y_you96 View Post
The part of code that you posted its only for graphic if im not wrong. When i was looking into it i was able to remove the graphic of the confirm button but the OK button was still disabled.
I can give you the offessets for the 3.289.088 bytes game.exe where i made the change to jump the confirm button, there should be something similar in yours too.
I simply changed JE (jump if equal) to JMP (jump). I dont realy remember how i found this 2 offesets.
Code:
00513023 - E9 C5000000           - jmp 005130ED
00513038 - E9 B0000000           - jmp 005130ED
Thank you andr3y_you96 for this fix. Using game.exe (Size: 3,302,376) I did not change address 00513023 but DID change the address 00513038 to JMP and that worked perfectly enabled the OK Button and disabled the confirm button. I had lock up issues when changing both to JMP for future reference if others have this issue as well. Try changing the latter one only instead.
Thank you again andr3y_you96:D:awesome:

Harlan