| View previous topic :: View next topic |
| Author |
Message |
abystus Expert Cheater
Reputation: 1
Joined: 09 Dec 2010 Posts: 140
|
Posted: Sun Apr 22, 2012 11:53 pm Post subject: DOSBox Hacks Issue |
|
|
| I've recently downloaded DOSBox to get Doom running in Windows 7 64 bit, and found that any assembly hack (script) I create doesn't work after restarting the application (DOSBox). I am attributing this to the game being emulated in DOSBox, but figured I would ask here first before I give up on the idea. So is it possible, or will I have to use a dos debugger to debug the game instead of cheat engine (would be a shame)? Any help is appreciated as always. |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25859 Location: The netherlands
|
Posted: Mon Apr 23, 2012 5:27 am Post subject: |
|
|
Not really sure, do your scripts even work without completly crashing the game ?
If it doesn't crash, then perhaps the code you're hooking is JITed code which you can find again by doing a signature scan (use AOBSCAN in your script)
But generally speaking, there are 2 things that cause a problem for ce:
1: It's emulated, usually the same instruction is used to modify every single address in the emulated system, so when you debug you only find that instruction, and hooking that will be useless.
2: Even if it wasn't emulated, doom runs in it's own memory environment and uses a separate memory manager (DPMI). Cheat Engine only knows windows' memory manager so it won't know where to look if the next time you run it the binary gets loaded at a different spot
also, iddqd _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
abystus Expert Cheater
Reputation: 1
Joined: 09 Dec 2010 Posts: 140
|
Posted: Mon Apr 23, 2012 8:53 am Post subject: |
|
|
The script "Infinite Ammo for Pistol" appears to work without crashing the game, and doesn't seem to cause issues with other weapons or health (it doesn't stop them from decreasing). Things just didn't work properly after the game was restarted (there was a new location listed for the ASM in question).
I was unaware that doom used DPMI, so this may be part of the problem. Outside of that I have seen successful DOSBox cheat tables listed on this site, so this may be a case of the game just having a weird way of managing it's memory compared to the way Windows does.
I will try another game this evening when I arrive home from work to see if the problem persists. If the same issue comes into play, I will look into implementing an AOBSCAN into my script to see if it resolves the problem.
BTW:
Thanks for the god mode cheat . |
|
| Back to top |
|
 |
|