The editor must reconstruct the file byte-for-byte. This involves packing loose data back into the rigid binary format, ensuring that the offsets (pointers) directing the software to specific data blocks are updated to reflect any changes in size or content.
Tweak unit stats, movement costs, and historical event timers to balance the game to your liking. How to Access the SGS File Editor