Skip to content

Addresses

ProgSys edited this page Mar 15, 2025 · 1 revision

The image base for all of them is 00400000.

Memory addresses

constexpr unsigned int aDungeonEntries = 0x00653aa0; //DisaDungeon
constexpr unsigned int aDungeonDATEntries = 0x00664020; //DisaDungeonDAT, begin of list (of .DAT file)
constexpr unsigned int aDungeonDATSize = 0x00664024; //DisaDungeonDAT number of entries in list
constexpr unsigned int aDisplayDungeonEntries = 0x0088ac90; //int
constexpr unsigned int aNumberOfDungeonEntries = 0x0088ac84; //int
constexpr unsigned int aDisplayDungeonEntriesScrollOffset = 0x0088abf0; //int, used for scrolling the doungeon list
constexpr unsigned int aDisplayDungeonEntriesHoverIndex = 0x0088abec; //int
constexpr unsigned int aKeyStates = 0x00778d98; //DisaKeyStates
constexpr unsigned int aGlobalStateBits = 0x00619330; //The state of the game (bitmask)
constexpr unsigned int aUnitsOwned = 0x0065db10; //The number of units the player has (ushort)

Function addresses

constexpr unsigned int fRenderCutout = 0x0050e9e0; //imagePtr?, colloring, ?
constexpr unsigned int fRenderTextBox = 0x004dd3f0; //x, y, width (-1 auto with), rows, fontAtlasPtr, ?, str (shift Jis or string, however then invalid size calc)
constexpr unsigned int fRenderImg = 0x0050e5d0; //func
constexpr unsigned int fRenderBgBox = 0x004f6a40; //func
constexpr unsigned int fRenderTextOld = 0x004f4d20; //x, y, ?, ?, stringPtr, terninator?, ?
constexpr unsigned int fRenderTextNew = 0x0050c4d0; //func
constexpr unsigned int fGetWidthOfString = 0x004f3930; //stringPtr, ?
constexpr unsigned int fPlaySound = 0x004de090; // Play a sound (like howering a button) sound Index, volume?, ?, ?, ?
constexpr unsigned int fHandleListScrolling = 0x004d0b70; // Scroll list via cursor or mouse wheel: current hover index, scroll offset index, number of list entries, last scroll index, selection changed?
constexpr unsigned int fIsMouseCursorInAABB = 0x0050f590; // is true if mouse cursor is inside AABB
constexpr unsigned int fIsLeftMouseBtnClicked = 0x0050f7c0; // is true if left mouse was clicked
constexpr unsigned int fIsExitPressed = 0x0050f950; // is true if ESC or right mouse (only once?) was pressed
constexpr unsigned int fTeleportPannelX = 0x0065dae8; 
constexpr unsigned int fTeleportPannelZ = 0x0065daec;

Clone this wiki locally