OPCodes addresses in ASM keeps changing!
I haven't worked on trainers for awhile and I have a really bad memory.
The problem is, usually the memory dump addresses keeps changing which is why (from what I know)
most people make trainers by poking addresses in the ASM code and changing the flow of the code
(jumping into a code cave and back when done) because those usually doesn't move..
But what do you do when even this keeps changing :
(First run) CPU Disasm Address Hex dump Command Comments 058FB59E 8B40 3C MOV EAX,DWORD PTR DS:[EAX+3C] (Exit and start game.exe) (Second run) CPU Disasm Address Hex dump Command Comments 058FB5E6 8B40 3C MOV EAX,DWORD PTR DS:[EAX+3C]
The value i'm modifying is the "panic bar" which goes from 0(gameover) to 100(fullbar) in decimal.
The question in short, what am I doing wrong?
Okay so I finally finished the trainer, I'll upload the source code and link it once I actually release it.
I have no idea why the memory is shifting but doing a pattern scan solves the problem.
Basically you read a large portion of the process memory and compare it with the opcodes of the commands you're looking for. When found, you then know exactly where to inject the code.
This is where I learned about it
And here's the trainer's source code
Last edited by JMC17; 15-12-2013 at 13:52.
|asm, changing, hack, opcodes, trainer|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Software for changing bitrate of RM files||br945||Media Software||6||18-05-2010 07:10|
|New Addresses For C&C3 1.05 Patch WOOT!||AeroZora||Game Trainers||30||26-06-2007 12:00|
|S.T.A.L.K.E.R. - changing Language?||Themer||PC Games||3||23-03-2007 15:35|
|Changing the Soundtracks on games? NFS: Underground||Tango87||XBox Games||1||16-12-2003 07:53|
|DOES "PARASITE EVE 2" ASK YOU TO SAVE BEFORE CHANGING DISKS??||dreamwanderer||PSX Games||0||29-12-2000 09:18|