First, you found not a base, you found module offset for multilevel pointer base address.
Anyway, it depends on which memory block game is using for storing some values. 2MB (VideoMemory), 4MB, 16MB.
Usually it is 16MB. Paste this code to addresslist:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<Description>"Find and set user symbols"</Description>
<VariableType>Auto Assembler Script</VariableType>
if syntaxcheck then return end
for i,v in ipairs(enumMemoryRegions()) do
if v.RegionSize==0x1001000 and v.AllocationProtect==4 then
Attach CE to dosbox, activate "Find and set user symbols", then just use "GameMemoryStart" symbol.
For example there is table for "Cosmo's Cosmic Adventure 1 V1.20"
Health is pointer with last offset 1FCFC.
With "GameMemoryStart" symbol you can just use GameMemoryStart+1FCFC. It is universal, whatever DOSBOX version you use, it should work.
(at least all DOSBox versions up to this date)
If you really want to use pointers than symbols - you can do pointer scan with max level 1 ( and max offset 128 to speedup scanning even more)
In previous page I showed how to do this for pointers for VideoMemory, you can do the same for for 16MB and 4MB memory blocks.
Right click "GameMemoryStart" and choose "pointer scan for this address", max level 1, like in this screenshot:
(of course you will have different address)
That way, after few pointer rescans, I found pointers to GameMemoryStart (the 16MB memory block):
As you see, there's also a pointer with base address: DOSBox.exe+0193C370 (modulename+moduleoffset)
And moduleoffset is the same as yours.