Moonbrooke STGDAT is too short! #7
default-kramer
started this conversation in
General
Replies: 1 comment 2 replies
-
There's a known glitch in that section of the map |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Moonbrooke has 700 chunks, but the last one is a few bytes short of the normal 0x30000. (Either 544 or 272 bytes, I would need to double-check to be sure.)
On the last chunk, at Y=95, the game stops you from building beyond Z=14,X=26. According to my calculations, there is room in the save file to place blocks up to (but not beyond) Z=27,X=23.
I can't imagine why this special case exists? Who cares about saving 544 bytes in a STGDAT file?
Anyway, I think the best way for Hermit's Heresy to handle this is to just load the last chunk as if it were long enough, allow all modifications as normal, and then truncate the extra bytes off when writing back to the STGDAT file. Seems much better than adding bounds checks all over the place -- once you know the chunk exists, you should be able to assume that all 0x30000 bytes exist.
Beta Was this translation helpful? Give feedback.
All reactions