Project:Help wanted: Difference between revisions

Jump to navigation Jump to search
no edit summary
imported>Leoetlino
imported>Leoetlino
No edit summary
Line 44: Line 44:


== Resource sizes ==
== Resource sizes ==
''Investigating this requires reversing the [[resource system]] (in the executable) and possibly patching it.''
The [[resource size table]] (RSTB) determines how much memory should be allocated to a given resource (i.e. the size of the resource heap). Unfortunately, the sizes that are listed in there don't quite match the actual file size.
The [[resource size table]] (RSTB) determines how much memory should be allocated to a given resource (i.e. the size of the resource heap). Unfortunately, the sizes that are listed in there don't quite match the actual file size.


Line 53: Line 55:


A possible way to check whether the listed size is exact or approximate is to dump the memory of the game process and investigate resource heap usage.
A possible way to check whether the listed size is exact or approximate is to dump the memory of the game process and investigate resource heap usage.
In any case, figuring out how to calculate sizes correctly for complex resources or rewriting parts of the resource system to remove the fixed heap size limitation would be extremely useful.


== Executable analysis ==
== Executable analysis ==
Anonymous user

Navigation menu