Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Bar » Possible new utility for creating testbeds
Re: Possible new utility for creating testbeds Mon, 23 February 2009 12:56 Go to previous messageGo to previous message
PaulCr

 
Chief Warrant Officer 3
Stars! V.I.P

Messages: 187
Registered: February 2007
Location: An Island that kinda look...
I've just had a thought, I've not tested this yet but it should work. The app can take .h and .m files from multiple allies and merge them together although I'll have to add something to stop fully known planets being replaced by incomplete ones in a later m file in a similar way I've done for the designs.

With a minor amendment to the app to dump all known info to the initial .m files you should be able to load the resulting .m file and generate an history file containing all the planet/ship design and starbase info from all your various allies.

It should then be possible, at least in theory to copy that resulting h file back to your real game and be able to see that info in the real game. I'll have to check but I'm pretty certain fleets, minefields, packets, salvage etc aren't kept in the h file so they won't appear but you'd still see them in the generated m file.

Whilst looking into the autohost crashing problem I wrote something to strip certain blocks from the .hst files to narrow down the possible causes. I'm going to modify that to allow selected infomation to be removed from stars files which you can then pass onto your ally. It should have check boxes against each race to remove Race Design, Planets, Fleets, Ship Design, Starbase Designs, Minefields, Packets, Research, Battle Plans, Player Relations, Battles, Score and Messages belonging to the selected player. ie you could take out your own sensitive data, ie Planets, Fleets, Race design, Research etc but still leave in things like minefields and all your opponents data.

If you run it against your .h and .m file the resulting files would probably make a better transfer format then the existing planet & fleet files since they can load them into stars and see everything, if people are interested I could write something to merge multiple players h and m files together, along with the app to strip info out it should make information sharing between allies a lot simpler.

Edit: I'm also writing a stars to xml file dumper that uses the various structure definition files to create the resulting .xml which will make decoding the remaining data easier and should allow other programmers full access to what is contained in the file and hopefully get some new utilities developed. I'm also considering doing the reverse, ie generating stars files from xml although before that is made publicly available I'll have to do some testing to see what happens if you try to do invalid things in an x file, in all probability generating an x file will probably be limited, ie fleet movement shouldn't be a problem so a scouting bot could be written but waypoint orders, design changes or changing the production queue could be and therefore will need some experimentation to see what can be safely added.


[Updated on: Mon, 23 February 2009 13:13]

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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
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: Revival of an interesting idea?
Next Topic: 0.2% Minimum Damage
Goto Forum:
  


Current Time: Mon May 13 23:23:32 EDT 2024