Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Bar » Corrupt X and H file?
Re: Corrupt X and H file? Wed, 12 May 2021 11:15 Go to previous messageGo 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
There are a few backup considerations. First, Stars! doesn't generate a .h file at the Host level. So a hosting platform can archive the .x, .xy (which never changes), .m, and .hst file. But the only place the .h file exists is on your local system.

The .x file is not dynamic. It only updates when you select "Save". So any scripting you write will have to include you manually selecting Save on some regular basis. That .x file is then appended to each time you save, which you can see when you "look" at it. If you add something to your queue, then remove it, then add it back, that's three sequential operations in the .x file -- leading to a problem if you do that a LOT, because there's a limited number of orders that can be contained in the .x file. It's a BIG number (32k IIRC); I've only reached it programatically.

It is worth scripting a local copy of each turn tho. Totalhost has the option for a player to download their entire game history precisely so they can recover a (local) lost .h file when they failed to keep a local copy!

The utilities in TH can pretty much tear apart most of the Stars! files, but they're unlikely to output specifically what you're looking for in a ready to use format for manually recreating a .x file, because I didn't really write them for that purpose. They're primarily the foundation for the hosting code that looks for bugs and cheats in the files (like checking to see if someone has submitted a colonizer that exhibits the "free colonizer" bug). I tend to write a utility to search fro something as a standalone, and then integrate it into the hosting code.



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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: StarsWine - Stars in BoxedWine on Windows
Next Topic: rec.games.computer.stars or yahoo groops
Goto Forum:
  


Current Time: Sun May 05 08:51:13 EDT 2024