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 Wed, 25 February 2009 10:38 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...
Not sure where to post this so I guess I may as well post it here, I've been trying to think of a way to build a base with gate the same year you colonise, ie if you use a cloaked fleet to colonise a planet in your enemies space, if he has pen scans he sees it before you can put a base up with gate to bring in reinforcements and can therefore send a fleet to stop you building a base, I want the base to go up at the same time so the base is up when he sees the planet allowing you to gate a fleet in before he can respond.

That obviously means colonising as a WP0 task but that doesn't allow you to change the queue before production and you can't put a starbase in the default queue through the stars interface so that can't work.

The default queue is stored in the stars.ini under ZipOrdersP1 and having searched autohost for that and ZipOrders nothing showed up so I'm guessing nobody has looked into it.

The letters represent the hex digits 0-F, A being 0, B being 1 etc up to P for F(15)

The first 2 tell you how many items are in the queue, it looks decimal although I haven't tried a queue of more than 9 items to be certain, this is then followed by 4 hex digits for each item, ie a 16 bit number, the hex digits are in reverse order, ie 1CEF(bmop in the ini) is FEC1 or 65217

10 of these are used for the amount leaving 6 which could give 32 possible queue items however after testing it is impossible to get anything other than the 7 autobuild items. The 16 bit number represents the following
Bits
0-5 Autobuild Item(0-6) as Mines,Factories, Defenses, Alchemy, Min Terra, Max Terra and Packets, any thing else shows up as mines
6-15 Count

To get the values for the bmop above, convert it to hex (1CEF), load calc and put in scientific mode, click the hex circle, type the hex in reverse (FEC1), click the dec circle, divide by 64 and you get the count and a fraction (1019.015625), subtract the whole number (leaving 0.015625) and multiply by 64 (1) and you get type. In the example you get 1019 Factories(1).

I can't think of a use for it given you can make the changes in the stars interface but maybe somebody else does.

That still leaves be wondering if the build starbase same turn can be done, it now looks like I'll have to look at the x file to do it, the default queue has to be put into it when changed since the server needs to know it, and it is probably stored as a normal queue (type 29), probably with a planet ID of 1023(FFF), if so then editing that will hopefully work.

Edit: Just taken a look at the x file produced when default queue is changed, it uses a Type 46 structure which is identical to the hex from the Zip orders with what looks like the addition of the player number.

I guess the last remaining thing to try is to create an x file where I am colonising the planet as a wp0 order and add a production queue for the planet id I'm colonising after the colonisation order and see whether it gets applied or not


[Updated on: Wed, 25 February 2009 11:03]

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: Tue May 14 00:37:20 EDT 2024