View Single Post
Old 10-13-11, 07:34 PM   #78
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

fixed some problems with the dynamic writing. Now it should be working perfectly on any SH5 GR2 file (I had tried it on the King George V and saw that it didn't work correctly).

This new version will now read the extended data strings from the GR2 file. If the extended data is userdefinedproperties:maxproperties it will also read in the values for those strings.

For kicks comment out the pointer_extended_data directive and then look at the resultant GR2 file made (you'll see gaps in the embedded strings - this is where the extended data resides). Try this with the King George V.

Just for a little fun there is a new directive change_exporter_version that will change the exporter revision number when viewed with GrannyViewer.

Using the source code as is without modification will write complete GR2 files that you can open with GrannyViewer to ensure they aren't 'broken' by the app writing the new file. How this works is the entire file is written as read and then the code writes over what it has read. This ensures the code is writing the new GR2 file correctly (by using GrannyViewer or Goblin).

The pointer data text files now also show the extended data strings (and data for them if userdefinedproperties:maxproperties)


New version available at post #1
TheDarkWraith is offline   Reply With Quote