Saturday, August 18, 2007

New Stars Status

Not much progress the last month.

I created a command line version of the client. It just loads the C++ New Stars Tcl library, and issues a bunch of commands. A lot of them use information eye-balled from the files. Here is a sample from orders2400.tcl (which updates the first turn file):


#### copy the colony ship
set colShipId -1
for {set i 0} {$i < $::numHulls} {incr i} {
if {[newStars $::ns_hull $i $::ns_getName] eq "Colony Ship"} {
set colShipId $i
}
}


Another file is applied in 2403 to give the load colonist, move to planet, and colonize orders.

Here is the final screen shot:




I had to fix the server to properly update client object ids to server ids (I didn't see this before, because the client actually generates the turn through the client data - that's a bug...).

I also had to fix the client to properly use GUI load commands (otherwise you need another turn).

The mining rates are probably off. There is an oddity in the battle engine, in that the colony ship and star base try to fight. I need to add lots to the client to get a better feeling for how much ships cost and how long they will take to build.

No comments: