Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » xy modification after game has started
Re: xy modification after game has started Mon, 07 July 2014 11:25 Go to previous messageGo to previous message
raptor is currently offline raptor

 
Chief Warrant Officer 1
Creator of StarsWine
Created StarsWine

Messages: 138
Registered: June 2014
I think I just figured out the byte swap problem (which now seems obvious): binary data was written on a 16bit little-endian platform (Windows 3.1). This means the byte stream should probably be read as such.

A side-effect of this is that any description of a stars block that has one-byte-or-smaller pieces may be incorrect. For instance, alignment of the FileHeaderBlock here:

http://wiki.starsautohost.org/wiki/FileHeaderBlock

probably has bytes 16 and 17 switched. This also clarifies instances where there is weirdly packed data, such as in places like the block header shown here:

http://wiki.starsautohost.org/wiki/Technical_Information#Gen eral_File_Structure

I'm thinking that the file byte stream should be read in swapped to begin with - but this may change paradigms a little. It will definitely reduce deserialization code.

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NSA Helping to Decompile Stars!?
Next Topic: Utility to clean .m files
Goto Forum:
  


Current Time: Sat Apr 27 14:25:22 EDT 2024