Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » Detecting corrupt race files
Detecting corrupt race files Sat, 28 July 2012 22:50 Go to next message
ricks03 is currently offline ricks03

 
Officer Cadet 1st Year
Creator of TotalHost and Stars! utilities
Created TotalHost and Stars! utilities

Messages: 222
Registered: January 2012
Location: NC
While it's possible to check the file headers of a race file with starstat, that doesn't appear to detect when a race file is corrupt because someone has triggered the bug where you create the race file, edited it, and then saved it with a shorter name. I presume that's because the race name is deeper in the race file.

I've been trying to programmatically detect these files either when a game is created or by "touching" it with stars, and am having a really hard time of it.

Creating games from a .def file and the command line doesn't appear to support the -l extension. I've got Logging=1 in [Misc] but it still doesn't appear to log the game creation, so I can't look at the log file and see it fail.

Right now I'm kicking off game creation as a separate thread, waiting a couple of seconds, and then seeing if the .hst file has appears. Kludgy. I'd like to be able to see it at the time the file is received. Any other ideas?

Thx.


Rick





https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHost

Report message to a moderator

Re: Detecting corrupt race files Mon, 06 August 2012 05:15 Go to previous messageGo to next message
gible

 
Commander

Messages: 1343
Registered: November 2002
Location: Wellington, New Zealand

The obvious thought is to diff the race file pre vs post bug (ie name change) but XyliGUN's block list indicates that the only unencrypted block is the FileHeaderBlock which doesn't contain the race name, so without decrypting it, I'd say you're out of luck.

Report message to a moderator

Re: Detecting corrupt race files Tue, 07 August 2012 22:20 Go to previous message
ricks03 is currently offline ricks03

 
Officer Cadet 1st Year
Creator of TotalHost and Stars! utilities
Created TotalHost and Stars! utilities

Messages: 222
Registered: January 2012
Location: NC
and since my goal is to detect them when I don't have pre- and post- designs, I really need the decrypt code.


https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHost

Report message to a moderator

Previous Topic: Stars! Project Organization
Next Topic: Stars Movies
Goto Forum:
  


Current Time: Mon May 20 04:47:53 EDT 2024