Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » X-file-sanitizer
X-file-sanitizer Fri, 04 March 2016 01:44 Go to previous message
platon79 is currently offline platon79

 
Chief Warrant Officer 3

Messages: 185
Registered: February 2004
Location: Norway
Well, since my galaxyviewer/galaxyanimator-tools did not spark much of an interest, I decided to try to make some sense of the x-files, to see if I could make an X-file-sanitizer.
The first version is in the repository at https://github.com/stars-4x/starsapi and has to be checked out.
So far it does not do too much, it reads an x-file, and checks for the following 2 things:
-If a new ship design has been added that has type colonization module and count 0.
-If a direct north/south movement is detected with warp > 4 and "there is a planet at both waypoints" is false.
For the latter, it builds the complete waypoint tree using both the old waypoints from the m-file and all the x-file-changes, i have tested it with deleting/adding/changing a lot of waypoints and it seems to work.
But if someone has an extensive library of turns that also contains x-files, I would be delighted if they can test the tool on a lot of x-files, and report any errors that should occur.
XFileReader should exit with error code 1 if file was not properly sanitized or another error occured, and error code 0 if everything was ok. It will also print sanitazion errors to System.err
You may make suggestions to which bugs that should be the focus for later improvements. If the tool gets good enough, maybe Ron can even incorporate it to the fileupload-process Very Happy

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stars! disassembly and history of 2.6jrc4
Next Topic: AR Starter Colony bug fixed JRC4 (??)
Goto Forum:
  


Current Time: Sat Apr 27 08:45:54 EDT 2024