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 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
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

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


Current Time: Thu Mar 28 10:02:03 EDT 2024