Saturday, August 30, 2008

New Stars Status

Trying to work up to a battle in the two player game. I am trying to actually walk the players through their turns as they would be doing them (i.e. spending a lot of time micro-managing).

Part of that is implementing the "accelerated BBS" option (so I don't have to generate 30 turns before reaching colonization pop).

Then, I added the research tax option (visible in the dialog below). This uncovered several bugs in communicating this information from the player file to the server.



I also fixed the scanner pane so that it resizes itself to fill up the window. There is a somewhat annoying flicker as you click from explored to unexplored planets (due to different widths on the left)...

I also found/fixed a bug for JOAT w/o IFE getting Quick Jump 5 instead of Long Hump 6 (IFE properly gives the Fuel Mizer).

As well as a bug in the growth formula when planets exceed 25% capacity (aided by AccBBS).

Interesting note, on Linux, the two players are right next to each other. That means I can use it for some quick battles (and I need to fix the homeworld placement logic...)

Wednesday, August 13, 2008

Stuff I've read lately

"Dark Light" (Ken Macleod) - Sequel to "Cosmonaut Keep". Very short, but pretty good. Follows the adventures of the previous characters on a planet some light years from the last (they got their light drive working). The libraries here don't have the third book...

"In My Place Condemned He Stood" (J. I. Packer and Mark Dever) - Reviewed on my faith blog.

Tuesday, August 12, 2008

New Stars Status

Started in on more bugs:




Here we can see the new universe caused by fixing the randomization of the hab distributions. I also added the player relation dialog, and changed the underlying implementation. With those changes done, I can revamp the battle engine - in preparation for the battle VCR.

I also fixed some of the automation, to improve fuel consumption during scouting missions.

I looked into the fails during generation huge universe (dense and packed). They are running out of planet names. We will need to generate another 1k names...

Friday, July 18, 2008

Stuff I've read lately

"Cosmonaut Keep" (Ken Macleod) - This is some of the best space opera I've read in a long time. Really what I've been looking for lately. Reminds me more of Asimov, and the like. The story is a little confusing at first, because it covers two time frames: the first is in the future on a distant planet, where humans and aliens live together; the second is the near future, where humans make first contact with the aliens.

I look forward to the next book, "Dark Light".

Wednesday, July 16, 2008

New Stars Status

I started in on some of the bugs:


Here we can see the new fleet composition pane. I still need to connect the "battle plan", "estimated range", and "cloak" areas. Also, I need to add a drop down with other fleets in this location (for fleet to fleet transfers). I also need to implement the Split/Merge buttons.

I also fixed the "close enough" check when adding waypoints. That was one of the first features in the GUI, when the canvas had a lot fewer things floating around. At some point, all the new canvas objects threw off the logic. It should work much better now. I also fixed the "redraw paths on delete" bug.

Then there is the production queue. I fixed the "remove all" problem mentioned, and improved the checks which combine nearby items. Also, the production queue and waypoints list should behave better when adding multiple (always inserting at end, rather than sometimes at the beginning).


I looked into the research tax. It is a top level XML thing, so I may want to adjust that through the C++ interface. I also gathered some data on the hab distribution. It is looking fairly flat. I want to gather a few more data points to be sure... I also started on handling shift and control down, but that will need more effort.


I'm not entirely happy with where this check in is (should have a few more features), but the code has been this way since Saturday (IIRC) and I haven't had a chance to work on it, and might not for a few days...

Monday, July 07, 2008

New Stars Status

Some more operative bugs (and much needed new features):
  1. Floating-point exception while generating a huge universe (names underflow?)
  2. Need a redraw of paths on delete waypoint
  3. Waypoints always insert at 0 (should be end)
  4. Fix close enough on shift-click (canvas is returning a list?)
  5. Feature - drag waypoints
  6. Need to clear the current filename on open (fixed locally)
  7. Feature - recent files, remember working directory (.ini)
  8. Production Queue (PQ) - shift/control click, hot keys
  9. Generate player files automatically on new game
  10. PQ - "Remove" removes all on a multiple item!
  11. Messages on planetary build (will need filter!)
  12. Research tax in GUI
  13. Ship Designer - delete needs a refresh
  14. PQ - collect ships above and below on add
  15. Messages for fleet complete orders and new planet scans
  16. Feature - View all fleets (F3)
  17. Feature - Fleet composition and split/merge
  18. Scanner pane focus arrow, update on next (fleet/planet)
  19. Hab distribution is uniform
  20. Speed and fuel in fleet orders

Wednesday, July 02, 2008

Stuff I've read lately

"God and Religion" (Bertrand Russell) - Reviewed on my faith blog.

"Surprised by Hope" (N.T. Wright) - Reviewed on my faith blog.

"Introduction to Christianity" (Joseph Cardinal Ratzinger) - Reviewed on my faith blog.

"Agent to the Stars" (John Scalzi) - I'm running out of Scalzi and Stross to read at the local library. I had actually seen this book. But the cover art is really bad. I didn't even realize it was science fiction. I found the text online, and read a bit, and realized it is sci-fi, and classic Scalzi. Very enjoyable.

Friday, June 06, 2008

New Stars Status

Trying to crush off the bugs from the last bug report...


Here we can see the main fixes. I've added a player command to the Tcl interface, mainly to implement player relations. However, I think the main player relation code will need to be reworked...

I also fixed the mining rate calculation, and max defenses calculation (and the resources now say max/max instead of 0/max).

I also added some menus (view race - previously only accessible through F8, research - ditto/F5, battle plans - stub, change password - stub).

I fixed a bug where using the race wizard would break viewing your current game race, and another where planetary resources display as 0 on the first turn.

Wednesday, June 04, 2008

Stuff I've read lately

"Halting State" (Charles Stross) - This is very near future fiction, about 10 years out. It is basically a mystery/spy thriller featuring a nerdy programmer and an accountant. I found it pretty well done. The zombie flash mob at the end was a nice touch.

Tuesday, May 20, 2008

Stuff I've read lately

"Nebula Awards 26" (James Morrow ed.) - I guess 1990 wasn't a very good year for short stories in science fiction. I didn't like any of them, at all. There was one by Ursala Le Guin, which was just ok. I read "Left Hand of Darkness" about three years ago, and couldn't remember the specifics. The novella by Haldeman was kind of interesting, but was very Hemingway specific, and I didn't really get it.

Thursday, May 15, 2008

Stuff I've read lately

I finished the Simak book, the last stories were:

"All the Traps of Earth" (1960) - Very reminiscent of Asimov's "Bicentennial Man", which I guess, wasn't written until 1976... so a point for Simak, there.

"Death Scene" (1957) - Very short, somewhat ominous feeling, but ends well.

"Reunion on Ganymede" (1966) - War heroes overcome their differences by blasting robot animals.

"The Money Tree" (1958) - Alien botanists help out a local thug.

"Party Line" (1978) - Interstellar communication via psychic hot-line/chat room.

"The Answers" (1953) - Man loses his drive to expand after learning life has no purpose.

"The Thing in the Stone" (1970) - Ironically, I picked up Simak because he is listed as a Christian author. The previous stories weren't exactly pinnacles of Christian doctrine. This one at least had a touching ending. The "thing" in the stone is some sort of universal war criminal. The main character meets an energy being attendant, which he first takes as a sort of "loyal pet". But, in the last paragraph, this being is revealed as a "shepherd", waiting for the redemption of the "thing". So, not all bad.

Thursday, May 08, 2008

Stuff I've read lately

"Inheritor" (C.J. Cherryh) - The third book in the "Invader" series. It feels like Cherryh has slowed things down a little. The story is taking longer to progress, and the stress for the characters isn't quite as challenging. But, the story is still pretty compelling, and the universe is interesting.

I've also started a collection of short stories by Clifford D. Simak. The collection is called "The Creator amd Other Stories".

The first story (from 1935!) is called "The Creator", about a couple of guys who meet an energy being who claims to be the creator of the universe -- and kill him. Not a high quality story.

"Shotgun Cure" (1960). This is shorter and punchier, but the ending falls flat. Aliens cure the human race of all disease, but we get kind of dumber. How much dumber? Do the aliens come back to harvest us for lunch? It doesn't say...

Thursday, May 01, 2008

Stuff I've read lately

"The Last Colony" (John Scalzi) - This is the last book in the "Old Man's War" trilogy. I think it ended strongly. Scalzi's humor remains, and there is some good action. I thought it was interesting that the base colony size is 2500 colonists, the same as Stars.

Wednesday, April 30, 2008

New Stars Status

Started in on the bugs from last update...


  • Fixed names with spaces (caused planet names in the test bed to shift... which required an update to the orders.tcl)
  • Added display of max infrastructure (which is stored in the turn file). This caused me to realize that turn 0 does not have a max infra calculation. I also realized we did not factor in OBRM and JOAT...
  • Added display of defenses (including max)
  • I moved the "bottom right" frame (which shows planets, fleets, minefields, etc.) over to the left. This makes more room for the starmap. I also changed the display to 800x600, and shrunk the hab bars to make things fit better, and fixed the hab pluses to use a brighter color.
  • Fixed message display when you have no messages.

Thursday, April 24, 2008

New Stars Status

Bug report:
  • Planet names file stopped at first space (no multi-word planet names)
  • No max calc for planetary mines, factories, and defenses
  • No mining rate calc
  • Missing pop-ups on population, resources, scanner, defenses
  • Missing gui cargo transfer (work-around: use waypoint 0 load/unload)
  • Missing clear planetary queue button (work-around: manually clear, who ever uses this button?)
  • Missing route button (not a big usage, it adds a move order on newly constructed ships, basically automation)
  • Missing starbase display panel
  • Missing mineral display in bottom right
  • Missing message display
  • Need menu commands for Research (dialog is done, use F5), Generate (done, F9), Planet/Fleet view (not done, F3), battle plans (not done, F6), Player relations (not done, F7)
  • Battle engine improvements
  • Report menu
  • Scanner pane filters/options
  • Starbase and fleet icons in bottom right
  • Pop-ups in bottom right
  • Should probably disable add to queue from empty/unowned planets... (server will reject the commands... I hope...)

Sunday, April 20, 2008

New Stars Status

A few more minor improvements, but they're the sorts of things that are important for playability:
  • Implemented slot compatibility checks (no engines in weapon slots!)
  • Implemented slot moving (used to have to discard and re-add)
  • Implemented cost and design feature labels in ship designer
  • Fixed a crash when the production window is not open, and a new design is created (tried to update the production list with the new design...)
  • Improved zoom-in/zoom-out behavior (less shifting of the center point)


Here we can see the path highlighting I added last time. It also shows a ship with no engine being rejected. I also made the ship designer window a default size, which should reduce window resizing jitter. You can also see the cost/feature labels below the ship layout.

Wednesday, April 09, 2008

Stuff I've read lately

"The Faded Sun: Shon'Jir" (C.J. Cherryh) - This is the second book in the Faded Sun universe. I hadn't realized there was a trilogy here. In the first book, "the People" (mri) were reduced from millions to two (and brother and sister at that). The second book focuses on a human sent with the last two mri on a journey to their homeworld. Not the best Cherryh, but pretty good.

Saturday, April 05, 2008

New Stars Status

Ok, sorry, been a long while... things are pretty close now, and it is sometimes hard to be motivated to finish :)



I've fixed the clearing of private information from enemy scans. This was a lot more intrusive than I had imagined.

We have to clear the fleet and design names from enemy scans. So what do we put there? I'm leaving it blank (so players can't name their designs "War Pig Scout" and confuse people...). But then, I had to update the client to fill in "War Pig Scout" when it sees a scout with a blank name. Except, where does "War Pig" come from? Seems, we never added a place to store the names of known enemies (players start without knowing the names and ids of other player races).

So, then I had to update the PlayerData structure, and the toXML and parseXML, and the regression files...


In other news, I added a highlight to the path of the currently selected ship (not shown).

I also fixed the next turn generation in the client. Note, it just goes ahead and generates a multi-player turn when any one player hits generate...

Tuesday, April 01, 2008

Stuff I've read lately

"Old Man's War" (John Scalzi) - This is the first book in the series including "Ghost Brigades". I didn't mind reading them out of order, there is not much overlap. Scalzi has an interesting universe here, it will be interesting to see where he takes it.

Monday, March 31, 2008

Card Game Client

The client is now usable. Here we can see a game of Texas hold-em. The cards can be moved around, and the movement is reflected to the other clients. I also have added the code to pop up more information on more complicated card sets.