DOSBox Cheat System

Upload *YOUR* gamehacking tools/helpers here
Post Reply
User avatar
erfg12
Expert Cheater
Expert Cheater
Posts: 61
Joined: Thu Mar 16, 2017 4:55 pm
Reputation: 32

DOSBox Cheat System

Post by erfg12 »

Image

A cheat system for DOSBox. This technically works for any version. Windows, MacOS, Linux, etc.

[Link]

[Link]

.cht files are text files that store cheat information. The .cht file should have the name of the game's executable file and be placed in a "cheats" folder in your default configuration folder.

Code: Select all

    Format: TOGGLE:NAME:TYPE-OFFSET:BYTES
    Toggle: off or on
    Type: a(active) and o(once)
    Offset: The offset from MemBase
    Bytes: a0,0b,c0
Installation For Compiling
- Place cheats.h into the "includes" folder, place cheats.cpp into the "src/misc" folder.
- If using VS.net to compile, right click on Header Files > Add Existing Item > cheats.h, right click on Source Files > Add Existing Item > cheats.cpp
- If using MinGW to compile, edit src/misc/Makefile.am add cheats.cpp
- Follow the [Integration]([Link]) wiki document for the rest.

How To Find Cheats
- Use Cheat Engine. [Link]
- Make sure the dosbox.pdb file is present in the same folder as dosbox.exe
- Open Cheat Engine and target Dosbox. Click the "Add Address Manually" button and check the "Pointer" box. In the very bottom text box type in MemBase, and leave the above text box at 0. Press OK.
- The address shown after "P->" is the current temporary address MemBase variable is pointing to. This is your virtual memory base. Use Cheat Engine to find an in ingame value.
- Once you find an ingame value, take the address it found and subtract it by the virtual memory base address. This will give you the offset you want to use for a .cht file.

Default Configuration Directory Locations
Windows 7, 8, 10
%localappdata%\DOSBox
MacOS
~/Library/Preferences
Linux
~/.dosbox

User avatar
Csimbi
RCE Fanatics
RCE Fanatics
Posts: 933
Joined: Sat Apr 29, 2017 9:04 pm
Reputation: 1321

Re: DOSBox Cheat System

Post by Csimbi »

Thanks, might be useful someday.
I am still using Game Wizard under DOS though ;-)

User avatar
Chucky
Expert Cheater
Expert Cheater
Posts: 76
Joined: Thu Mar 08, 2018 4:01 pm
Reputation: 29

Re: DOSBox Cheat System

Post by Chucky »

Looks great, but this ......... using namespace std; :shock:

Post Reply

Who is online

Users browsing this forum: No registered users