Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


DOSBox Hacks Issue

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
abystus
Expert Cheater
Reputation: 1

Joined: 09 Dec 2010
Posts: 140

PostPosted: Sun Apr 22, 2012 11:53 pm    Post subject: DOSBox Hacks Issue Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25859
Location: The netherlands

PostPosted: Mon Apr 23, 2012 5:27 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
abystus
Expert Cheater
Reputation: 1

Joined: 09 Dec 2010
Posts: 140

PostPosted: Mon Apr 23, 2012 8:53 am    Post subject: Reply with quote

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 Smile.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites