I don't know if I'm weird or if it's just normal to get random reverse engineering urges.
-
also based on the scale this game says it functions at, your one-man fighter jet/spaceship is approximately 500 meters (1640') long
-
I'm gonna have to expand my patching system to let me patch PNGs into EXEs as binary data
-
So the game has an alien language that's written on lots of artifacts, right?
You can see some of it here, on this mining probe I picked up
-
But like most alien languages in games, it's just a alternate alphabet on english.
So I found the alphabet in the EXE and overwrote it with one of the other two fonts, and now it's plain english:
-
okay I think that 6-byte-chunks thing at the top of the file is items. I went and sat on top of an item, then edited the file so instead of 5-chunks it had 0, then reloaded the area (by hyperspacing out and then back in ) and suddenly the item is gone
-
which does mean I can figure out how many items are in each area, easily. Read the 3rd byte of every area file!
-
I have done so. The Area you start in is the only one with zero items.
-
yeah I narrowed down the item I'm floating over to one specific chunk.
I set the last short in the chunk to 4312 and the item changed Z coord to (approx) 4761.The value was original 4615 and it was at Z coord 6794. ugh.
-
WHY ARE THE SCALES DIFFERENT
-
I'm gonna need a spreadsheet for this
-
yeah this makes no sense.
-
the first byte seems to be which icon to use. I can adjust it, and the thing still picks up as the mining probe, but it looks different in the preview
-
next byte seems to be what it is.
I set it to 08 and got a Data Storage Laser Disk [sic]I think this guy was murdered, I found out from looking at the files that there's a dead body you can find somewhere, and I think it's mr. Allen
-
ahh. I think it's (effectively) using big endian numbers. See, the coordinates aren't linear X/Y, they're "which sector" and then (maybe) "where within the sector".
-
which I think means it has a positional resolution of like 35 meters, given that each sector is 10km across
-
fuck me these are nibble addresses
I entered "87", which is hex 0x57, and it's in sector E07
E is the 5th letter of the alphabet. so it's sector E07. -
so if I change it to 71 (hex 0x47) it should move to sector D07
-
hey look there it is.
-
Foone🏳️⚧️replied to Foone🏳️⚧️ last edited by [email protected]
okay so the 6-byte format is:
byte 0: icon
byte 1: what it is
byte 2: what sector it is inbytes 3-5 are for intra-sector positioning (presumably). now to try and figure that shit out
-
-
okay this is weird. Byte 3 is the x-position within the sector, and it can have (valid) positions between -19 and +19.
If you go above or below that range, it'll get placed into neighboring sectors, which fucks up the game's item detection. It only looks in the current sector for items, but it won't see an item that's one sector over but positioned at -50