DOSBox Static Addresses

Section's for general approaches on hacking various options in games. No online-related discussions/posts OR warez!
User avatar
erfg12
Expert Cheater
Expert Cheater
Posts: 61
Joined: Thu Mar 16, 2017 4:55 pm
Reputation: 30

DOSBox Static Addresses

Post by erfg12 »



DOSBox 0.74-2 32bit's vmem base pointer is 0x01D1ABFC

DOSBox 0.74 32bit's vmem base pointer is 0x01D3A1A0

DOSBox 0.73 32bit's vmem base pointer is 0x01D3FD40

DOSBox r4132 32bit's vmem base pointer is 0x01F7942C



Add Address Manually > [X] Pointer > (type in) 0x01D3A1A0 > (press) OK.



Image



You should see in the Address column "P->(ADDRESS)". That is your temporary vmem base address.



Image



Use cheat engine and find some values. This will give you a temporary address for the value.



Image



Open Windows 10 calculator in Programmer mode and press Hex. Or, find a hex calculator website.



Put in your temporary address for the value you found and minus the vmem base address. This will be your offset.



Image



Image
Last edited by erfg12 on Tue Mar 17, 2020 4:24 pm, edited 7 times in total.

User avatar
SunBeam
RCE Fanatics
RCE Fanatics
Posts: 4665
Joined: Sun Feb 04, 2018 7:16 pm
Reputation: 4186

DOSBox Static Addresses

Post by SunBeam »

Do specify that on a different DOSBox version this will not work as indicated (as the static pointer to the allocation will be different).
Last edited by SunBeam on Thu Jan 01, 1970 12:00 am, edited 1 time in total.

User avatar
erfg12
Expert Cheater
Expert Cheater
Posts: 61
Joined: Thu Mar 16, 2017 4:55 pm
Reputation: 30

DOSBox Static Addresses

Post by erfg12 »

Both in the title and the post I stated this is for version 0.74. Would they assume it works for other versions?
Last edited by erfg12 on Thu Jan 01, 1970 12:00 am, edited 1 time in total.

User avatar
SunBeam
RCE Fanatics
RCE Fanatics
Posts: 4665
Joined: Sun Feb 04, 2018 7:16 pm
Reputation: 4186

DOSBox Static Addresses

Post by SunBeam »

Trust me, people do this shit. They overlook the version and post "it doesn't work for my DOSBox"; then when you ask them which version, you can tell why :D

jonasbeckman
Expert Cheater
Expert Cheater
Posts: 307
Joined: Sat May 06, 2017 1:26 pm
Reputation: 22

DOSBox Static Addresses

Post by jonasbeckman »

DOSBox hasn't been updated in a while now but they still do regular daily builds. (Since 2012 I think when the last current release was made.)

This looks like it could be useful though, although I myself update the binaries on a weekly basis. (6+ years of multiple daily builds means a lot of accumulated fixes and improvements and one day perhaps they'll have a new official release up, maybe.)



EDIT: Just have to check and yep these are still called 0.74.0 it seems.
Last edited by jonasbeckman on Thu Jan 01, 1970 12:00 am, edited 1 time in total.

User avatar
gir489
RCE Fanatics
RCE Fanatics
Posts: 656
Joined: Mon May 08, 2017 4:08 am
Reputation: 457

DOSBox Static Addresses

Post by gir489 »

I miss the old days of PEEK and POKE cheats on the C64. Static memory made things so much easier. Nice work detailing how to work with DOSBox, though. I've always wondered how they try to handle static memory on a dynamic memory platform.
Last edited by gir489 on Tue Jun 26, 2018 2:53 pm, edited 4 times in total.

User avatar
erfg12
Expert Cheater
Expert Cheater
Posts: 61
Joined: Thu Mar 16, 2017 4:55 pm
Reputation: 30

DOSBox Static Addresses

Post by erfg12 »

I noticed some GOG games use DOSBox 0.73 so here is the base pointer for that: 0x01D3fD40



Update 7/24/2018: Added r4132 base pointer: 0x01F7942C



I'll be releasing a video in a few days to show how you can find the base pointer for any version of dosbox easily.
Last edited by erfg12 on Wed Jul 25, 2018 1:08 pm, edited 2 times in total.

User avatar
erfg12
Expert Cheater
Expert Cheater
Posts: 61
Joined: Thu Mar 16, 2017 4:55 pm
Reputation: 30

DOSBox Static Addresses

Post by erfg12 »

I added a video to help locate the base address of DosBox on every version.

User avatar
koderkrazy
Expert Cheater
Expert Cheater
Posts: 254
Joined: Sun Jun 17, 2018 2:14 pm
Reputation: 190

DOSBox Static Addresses

Post by koderkrazy »

Do you have similar stuff(or anything) on PS3 and Wii emulators?

User avatar
SunBeam
RCE Fanatics
RCE Fanatics
Posts: 4665
Joined: Sun Feb 04, 2018 7:16 pm
Reputation: 4186

Re: DOSBox Static Addresses

Post by SunBeam »

I have something similar for CEMU; but in general: the application executable will store pointers to emulator page allocations. It's all a matter of determining the start of the allocation to then just mem-search for a pointer to it ;)

ohvince
What is cheating?
What is cheating?
Posts: 1
Joined: Wed Oct 31, 2018 5:16 pm
Reputation: 0

Re: DOSBox Static Addresses

Post by ohvince »

Thanks for your very useful tutorial @erfg12!

I dont know if you have already tried it with DosBox 0.74-2 (release from August 30th, 2018)

I've found the DosBox 0.74-2 base pointer address at: 0x01D1ABFC
But I have some strange things...
1/ Using CE to find data addresses (like score, lifes etc...) addresses are BEFORE than the DosBox 0.74-2 address
IE: at the base pointer address 0x01D1ABFC -> value is 0ADB9020 but the address for a data like the game score is at 09DDFA10 so the offset is 0ADB9020 - FD9610
2/ But if I launch the DosBox emulator, for the same game, the offset still negative but different!

I dont know if I'm doing something wrong or if there is something special with this version...


Thanks,
vince

User avatar
Dread_Pony_Roberts
Table Makers
Table Makers
Posts: 521
Joined: Sun Dec 09, 2018 8:46 am
Reputation: 385

Re: DOSBox Static Addresses

Post by Dread_Pony_Roberts »

If anyone wants to know, the static address for the DOSBox Daum SVN build ([Link]) is

0x27944CC

User avatar
erfg12
Expert Cheater
Expert Cheater
Posts: 61
Joined: Thu Mar 16, 2017 4:55 pm
Reputation: 30

Re: DOSBox Static Addresses

Post by erfg12 »

There is another solution. If you compile DOSBox yourself, there will be a .PDB file that generates a different virtual memory base address that makes it easier to find between versions. Here's a little video about it.

Last edited by erfg12 on Tue Mar 17, 2020 4:24 pm, edited 1 time in total.

Eric
Hall of Famer
Hall of Famer
Posts: 174
Joined: Thu Mar 02, 2017 11:01 pm
Reputation: 90

Re: DOSBox Static Addresses

Post by Eric »

To make things 'easier', just add the base pointer
Then when adding entries make them children of the base pointer and use address notations like

Code: Select all

+xxxx
it will end up with the address of the pointer+xxxx

daninthemix
Expert Cheater
Expert Cheater
Posts: 245
Joined: Tue Jul 18, 2017 6:31 pm
Reputation: 79

Re: DOSBox Static Addresses

Post by daninthemix »

Anyone have the base address for DosBox 0.74.2.1?

(used in Rayman Forever, amongst others)

Image

Post Reply

Who is online

Users browsing this forum: No registered users