Modding/Burnout Paradise/Memory map: Difference between revisions

m
banks -> blocks
(List small resource types under enums. Correct 360 and PC base resource types.)
m (banks -> blocks)
Line 9:
The memory map is located in the game's executable. Searching for "Root Bank" and subtracting 0x40 from its start offset will place the cursor at the beginning of the [[#CgsMemory::MemoryMap|memory map structure]]. From here, go to the pools offset (all offsets are relative to the start of the map), find the [[#CgsMemory::MemoryMapPool|pool structure]] with the name "OpenWorldPhy", and change the main memory base resource size to the minimum amount that will satisfy your needs for the foreseeable future. Note the difference between the new and old sizes.
 
Because the OpenWorldPhy bank is a child of the OpenWorld bank, the OpenWorld bank needs to be edited as well. Go to the banks offset and find the [[#CgsMemory::MemoryMapBank|bank structure]] with the name "OpenWorld". Take the size difference you noted earlier, align it to 0x20000, and add it to the main memory base resource size. Divide this size by 0x20000 and replace the number of banksblocks with the result. Save and run the game. '''Note: Sizes must be a multiple of the number of banks.'''
 
= Structures =