DOSBox Cheat System

Upload *YOUR* gamehacking tools/helpers here
Post Reply
User avatar
erfg12
Table Makers
Table Makers
Posts: 66
Joined: Thu Mar 16, 2017 4:55 pm
Reputation: 13
Contact:

DOSBox Cheat System

Post by erfg12 » Thu Dec 20, 2018 2:39 pm

Image

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

https://github.com/erfg12/dosbox-cheats

https://github.com/erfg12/dosbox-cheats ... ws.x86.zip

.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](https://github.com/erfg12/dosbox-cheats ... ntegration) wiki document for the rest.

How To Find Cheats
- Use Cheat Engine. https://github.com/cheat-engine/cheat-engine/releases
- 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: 181
Joined: Sat Apr 29, 2017 9:04 pm
Reputation: 128

Re: DOSBox Cheat System

Post by Csimbi » Sun Feb 24, 2019 6:39 pm

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

User avatar
Chucky
Cheater
Cheater
Posts: 38
Joined: Thu Mar 08, 2018 4:01 pm
Reputation: 13

Re: DOSBox Cheat System

Post by Chucky » Sun Feb 24, 2019 7:11 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users