"A Hymn Before Battle" (John Ringo) - This is the first "Posleen" book. The Posleen are a race of centaurs who have high tech weapons and are invading the Federation. All the Federation races are pacifists, so they come to Earth to recruit an army.
There is obviously a lot more going on (I know it won't be resolved, because I have read "Eye of the Storm" which takes place after all these). Some hints have already been dropped.
It is very much the best of Ringo (I don't see how he keeps it straight in his head against the "Looking Glass" series). Fun space opera combined with good mil-SF.
Friday, December 02, 2011
Thursday, December 01, 2011
Caught in the Crossfire
"Caught in the Crossfire" (David Drake) - This is a collection of Hammer's Slammers stories (two longer pieces, two short stories, and one intermediate).
Pretty typical Slammers and Drake, although two of them showed a very ruthless side of the Slammers that you don't normally see.
Pretty typical Slammers and Drake, although two of them showed a very ruthless side of the Slammers that you don't normally see.
Tuesday, November 15, 2011
Memory In
Been a while since the last update!
I put the keymap in earlier, but didn't pull a screen shot (wasn't a whole lot to see, characters instead of scan codes).
This last changeset has been more "fun". Trying to update the page tables to reflect all the available memory (lots of alignment to 2M boundaries).
I've also started running under Virtual Box. Performance is a lot better, and it will be a lot easier to enable the network (plus, I might get some graphics capability). This turned up a small bug in the parsing of the ACPI tables.
I should have a steady stream of updates for a while. Trying to get a simple shell going...
Monday, November 07, 2011
Time to Play
(continuing my review of Facebook games)
It's ironic that the two best games, Robot Builder and Nitrous Racing have both come to (bitter) ends. While the terrible games continue unslowed.
As I've looked for a game to replace NR, I uncovered a new failure mode for FB games: limited time to play.
The amount of time it takes to play a game is a continuum. You have minesweeper or solitaire which take just a few minutes, to RPG's which take tens of hours. The nice thing about a short game, you can string the games together to play for an hour or two.
Unless they are Facebook games.
I'll mention two by name, but I'm sure they are not unique in this regard (indeed you see it in the Frontierville model, where you only have so much energy, and then you have nothing to do).
Diamond Dash
This is a typical matching game like Dr. Mario or Bejeweled. Game play is typical, and it tracks level (a sort of function of number of games played). But it only lets you play 1 game every 8 minutes (games are fixed at 1 minute). And you can only accumulate ~5 games. So, you play for 5 minutes, then you have to go away for an hour.
Triple Town
This actually has some promise. It is a twist on the typical matching game, in that matches are "upgraded" instead of removed (I feel like I have played this style before, but I cannot place it). Successful play is rewarded with coins, which can assist in future games.
Except, you only get one move per minute, and can only bank 75 moves. So again, you play for a few minutes, then you're forced to move on.
What is the reasoning behind this? I cannot imagine. It cannot be server load, because these are Flash games which run locally. Worse, leaving and returning forces a re-download of the app, which must spike their bandwidth usage (although Triple Town seems a lot smarter about caching).
It's ironic that the two best games, Robot Builder and Nitrous Racing have both come to (bitter) ends. While the terrible games continue unslowed.
As I've looked for a game to replace NR, I uncovered a new failure mode for FB games: limited time to play.
The amount of time it takes to play a game is a continuum. You have minesweeper or solitaire which take just a few minutes, to RPG's which take tens of hours. The nice thing about a short game, you can string the games together to play for an hour or two.
Unless they are Facebook games.
I'll mention two by name, but I'm sure they are not unique in this regard (indeed you see it in the Frontierville model, where you only have so much energy, and then you have nothing to do).
Diamond Dash
This is a typical matching game like Dr. Mario or Bejeweled. Game play is typical, and it tracks level (a sort of function of number of games played). But it only lets you play 1 game every 8 minutes (games are fixed at 1 minute). And you can only accumulate ~5 games. So, you play for 5 minutes, then you have to go away for an hour.
Triple Town
This actually has some promise. It is a twist on the typical matching game, in that matches are "upgraded" instead of removed (I feel like I have played this style before, but I cannot place it). Successful play is rewarded with coins, which can assist in future games.
Except, you only get one move per minute, and can only bank 75 moves. So again, you play for a few minutes, then you're forced to move on.
What is the reasoning behind this? I cannot imagine. It cannot be server load, because these are Flash games which run locally. Worse, leaving and returning forces a re-download of the app, which must spike their bandwidth usage (although Triple Town seems a lot smarter about caching).
Tuesday, September 27, 2011
Eye of the Storm
"Eye of the Storm" (John Ringo) - This is a Posleen spin-off. I never read the Posleen books, because the library doesn't have the first one. When did libraries stop carrying old books? It's sad that you can't get anything more than ~10 years old at the library.
I really appreciate Ringo's sense of humor. He's clearly setting up some sort of anime parallel, but I don't know enough anime to be sure if it is exactly the same as one of them, or just flavored for them all. The mil-sf portions are good, as always, and he throws in a good twist at the end. Hopefully the library has the next one, as it is a cliff-hanger...
I really appreciate Ringo's sense of humor. He's clearly setting up some sort of anime parallel, but I don't know enough anime to be sure if it is exactly the same as one of them, or just flavored for them all. The mil-sf portions are good, as always, and he throws in a good twist at the end. Hopefully the library has the next one, as it is a cliff-hanger...
Thursday, September 08, 2011
Version Control By Example
"Version Control By Example" (Eric Sink) - I got this book for free (thanks Reddit!)
I admit I was skeptical at first. The book includes discussion of a new DVCS (Veracity). The DVCS environment is already very crowded (git, hg, bzr, bk, fossil, darcs).
The version control by example part is straight forward and pretty well done. There is one example which is repeated four times (svn, git, hg, veracity). But the author's humor resonated with me, and I found myself looking for the slight changes (which were always funny). It makes for a fast read.
The two big players right now are git and hg. I like git, but I will be the first to admit it is special. It makes a lot of sense to a hacker, and very little sense to anyone else (especially those who are used to svn). git really needs a front-end with a command set oriented towards people used to svn.
As I've mentioned, I hate hg. I shouldn't, but using it everyday in a fashion it's not really designed for makes me blame it. About once a week (twice this week), it just flakes out and refuses to work with any command (even hg log). Then I have to find the documentation on how to fix it, and I lose a half hour.
Fossil has some people excited because it integrates a few developer tools (wiki and bug tracking, IIRC). Veracity is similar, it has a distributed/versioned database which is used to implement these sorts of things (and user permissions).
As Sink points out, what good is it to commit code offline, if you can't update the documentation and the bug database?
I still have worries that veracity (vv) is oriented towards the svn/hg mindset (immutable history). If it can support all the flows from git, I could make the switch...
I admit I was skeptical at first. The book includes discussion of a new DVCS (Veracity). The DVCS environment is already very crowded (git, hg, bzr, bk, fossil, darcs).
The version control by example part is straight forward and pretty well done. There is one example which is repeated four times (svn, git, hg, veracity). But the author's humor resonated with me, and I found myself looking for the slight changes (which were always funny). It makes for a fast read.
The two big players right now are git and hg. I like git, but I will be the first to admit it is special. It makes a lot of sense to a hacker, and very little sense to anyone else (especially those who are used to svn). git really needs a front-end with a command set oriented towards people used to svn.
As I've mentioned, I hate hg. I shouldn't, but using it everyday in a fashion it's not really designed for makes me blame it. About once a week (twice this week), it just flakes out and refuses to work with any command (even hg log). Then I have to find the documentation on how to fix it, and I lose a half hour.
Fossil has some people excited because it integrates a few developer tools (wiki and bug tracking, IIRC). Veracity is similar, it has a distributed/versioned database which is used to implement these sorts of things (and user permissions).
As Sink points out, what good is it to commit code offline, if you can't update the documentation and the bug database?
I still have worries that veracity (vv) is oriented towards the svn/hg mindset (immutable history). If it can support all the flows from git, I could make the switch...
Sunday, September 04, 2011
Some Golden Harbor
"Some Golden Harbor" (David Drake) - This is actually an older book in the Lt. (now Commander) Leary series. It's interesting to read about the effects of some stressful event first, then go back and read it as it happens afterward.
Thursday, August 11, 2011
Stormy Red Sky
"In the Stormy Red Sky" (David Drake) - Another Lt. Leary (now brevet Admiral!). I'm impressed how Drake continues to deliver solid characters and action. These are turning out even better than the Hammer's Slammers books.
Monday, July 25, 2011
Exits In
Oh yea!

One of the last things I need ALH for is the underworld walls. Foolishly, I had assumed that every adjacent hex is connected to every other (and x wraps, but y doesn't). Of course, once my units started exploring the underworld, I realized I was wrong.
So, I had been tabbing back and forth, entering orders into my client, while looking at ALH for walls.
No more!
I've also added some niceties, like the total number of men in a unit ("1 men").

One of the last things I need ALH for is the underworld walls. Foolishly, I had assumed that every adjacent hex is connected to every other (and x wraps, but y doesn't). Of course, once my units started exploring the underworld, I realized I was wrong.
So, I had been tabbing back and forth, entering orders into my client, while looking at ALH for walls.
No more!
I've also added some niceties, like the total number of men in a unit ("1 men").
Saturday, July 23, 2011
D20
(continuing discussion of game characteristics)
There is a subtle but important element into how you generate random numbers for your game (I'm assuming most games will have a random element).
There actually is a game system called "D20" (where all decisions are made by rolling one twenty sided die). I prefer the GURPS system, which uses (mostly) 3d6.
The two systems are superficially similar. The range is about 20, and the average is around 10.

These are the probability (PDF, blue) and cumulative (CDF, orange) distribution functions for a d20. Totally flat. This means that any number from one to twenty is equally likely, similarly going from N or lower to N+1 or lower is always a 5% increase in probability.
So, a bonus which gives +1 is always worth 5%, whether your an expert or a novice.

These are the PDF and CDF for 3d6. Notice the distinct bell curve for the PDF, and the CDF resembles a sigmoid (which has characteristics similar to an exponential curve at the bottom, and logarithmic at the top).
This captures ideas like "diminishing returns". It also means that an "expert" (someone who could make a roll at 16 or lower) is less affected by difficulties (say, -1 on the roll) - going from 16 to 15 is a drop of ~3%. The same -1 is a 12.5% drop for an average person (10 or lower).
GURPS is limited by the human element. People must roll and count the dice, and increasing the number makes it more likely that one will go off the table, etc. A computerized system can generate any curve we like, with any range we like.
I'm thinking either 1-100, or 1-1000 - with this same bell shape. Something like 17d6.
There is a subtle but important element into how you generate random numbers for your game (I'm assuming most games will have a random element).
There actually is a game system called "D20" (where all decisions are made by rolling one twenty sided die). I prefer the GURPS system, which uses (mostly) 3d6.
The two systems are superficially similar. The range is about 20, and the average is around 10.

These are the probability (PDF, blue) and cumulative (CDF, orange) distribution functions for a d20. Totally flat. This means that any number from one to twenty is equally likely, similarly going from N or lower to N+1 or lower is always a 5% increase in probability.
So, a bonus which gives +1 is always worth 5%, whether your an expert or a novice.

These are the PDF and CDF for 3d6. Notice the distinct bell curve for the PDF, and the CDF resembles a sigmoid (which has characteristics similar to an exponential curve at the bottom, and logarithmic at the top).
This captures ideas like "diminishing returns". It also means that an "expert" (someone who could make a roll at 16 or lower) is less affected by difficulties (say, -1 on the roll) - going from 16 to 15 is a drop of ~3%. The same -1 is a 12.5% drop for an average person (10 or lower).
GURPS is limited by the human element. People must roll and count the dice, and increasing the number makes it more likely that one will go off the table, etc. A computerized system can generate any curve we like, with any range we like.
I'm thinking either 1-100, or 1-1000 - with this same bell shape. Something like 17d6.
Sunday, July 17, 2011
Drake
"When the Tide Rises" (David Drake) - Another Lt. Leary (now Commander). More solid work from Drake.
Thursday, July 14, 2011
Atlantis Updates
Some good new stuff!

I've lightened the hex borders (due to a request by a potential user). I've also added icons for taxing, production, shafts, and buildings. I also modified the city icons to reflect the size: villages are '-', towns are '+', and cities are '*'.
The new window is for production. Currently, I am just showing the maximum production values. But you can sort on the production name and value columns.

I've lightened the hex borders (due to a request by a potential user). I've also added icons for taxing, production, shafts, and buildings. I also modified the city icons to reflect the size: villages are '-', towns are '+', and cities are '*'.
The new window is for production. Currently, I am just showing the maximum production values. But you can sort on the production name and value columns.
Thursday, July 07, 2011
Monday, July 04, 2011
Stuff I've Read Lately
"The Dog Said Bow-Wow" (Michael Swanwick) - A collection of short stories. Not too bad. Nothing spectacular.
"When All Seems Lost" (William Dietz) - A fun mil-SF. The first two pages set the tone - after a page and a half of introducing the characters of a ship:
"What followed took place so quickly Tanaka and his crew, and the ship's computers were just beginning to process what was waiting for them when ten torpedoes scored direct hits on the destroyer escort and blew the ship to smithereens."
"When All Seems Lost" (William Dietz) - A fun mil-SF. The first two pages set the tone - after a page and a half of introducing the characters of a ship:
"What followed took place so quickly Tanaka and his crew, and the ship's computers were just beginning to process what was waiting for them when ten torpedoes scored direct hits on the destroyer escort and blew the ship to smithereens."
Wednesday, June 29, 2011
Game Characteristics
Games can be characterized as having "perfect" or "limited" knowledge. Also, they can be "deterministic" or "random".
Another important aspect of a game is what sort of "models" one must build for your opponents (and what is the cooperation model).
Chess is a deterministic game of perfect knowledge. So are: tic-tac-toe, checkers, and go. These games are of limited interest to me, because they are effectively searches of a state space. This limits the opponent model to estimating how well they can search the state space. The simplest being, "assume they can search the space as well as I can". This makes the game no different from playing oneself.
Most games include a random element (usually dice, cards, or a spinner). The simplest games are entirely random (they could be reduced to a coin toss to determine the winner). Examples of these are Candyland and Chutes and Ladders, which are really just tools for teaching game mechanics to children.
The only example that comes to mind of a deterministic game of limited knowledge is Stratego.
Also worth mention is Poker, which is often entirely random (stud vs. draw) and may have zero public information (a counter example is Texas Hold'em). Here the outcome of a player model is boolean (bluffing or not bluffing), but coming to that decision requires great skill.
A complex game will include all of these elements: combinations of public and private information, randomness and certainty, complex models of player behavior (driven by a wide choice of possible moves at any point) and player cooperation.
A good game can be built from a simpler set, but this space tends to be better explored (will you make a chess analogue?)
Another important aspect of a game is what sort of "models" one must build for your opponents (and what is the cooperation model).
Chess is a deterministic game of perfect knowledge. So are: tic-tac-toe, checkers, and go. These games are of limited interest to me, because they are effectively searches of a state space. This limits the opponent model to estimating how well they can search the state space. The simplest being, "assume they can search the space as well as I can". This makes the game no different from playing oneself.
Most games include a random element (usually dice, cards, or a spinner). The simplest games are entirely random (they could be reduced to a coin toss to determine the winner). Examples of these are Candyland and Chutes and Ladders, which are really just tools for teaching game mechanics to children.
The only example that comes to mind of a deterministic game of limited knowledge is Stratego.
Also worth mention is Poker, which is often entirely random (stud vs. draw) and may have zero public information (a counter example is Texas Hold'em). Here the outcome of a player model is boolean (bluffing or not bluffing), but coming to that decision requires great skill.
A complex game will include all of these elements: combinations of public and private information, randomness and certainty, complex models of player behavior (driven by a wide choice of possible moves at any point) and player cooperation.
A good game can be built from a simpler set, but this space tends to be better explored (will you make a chess analogue?)
Monday, June 20, 2011
New Space Opera
"The New Space Opera" (ed. Gardner Dozois and Jonathan Strahan) - There were a lot of good stories in here. It's good to see there is still some space opera being written today.
Sunday, June 19, 2011
Icons
Getting close!

I've been putting off doing the math for the icons :) Lots of radical threes.
Here we can see the three main icons - * for a city, ! for enemy units, @ for my units. ALH also has icons for ships, taxing, production. It also differentiates between my units on guard vs. not on guard. Not sure how important that is (although I need ships)...
I also still need to add roads and buildings.
I've been putting off doing the math for the icons :) Lots of radical threes.
Here we can see the three main icons - * for a city, ! for enemy units, @ for my units. ALH also has icons for ships, taxing, production. It also differentiates between my units on guard vs. not on guard. Not sure how important that is (although I need ships)...
I also still need to add roads and buildings.
Wednesday, June 08, 2011
Show Production
My goal is to get this thing to the point where I can do my turns. I added exporting orders yesterday, now I can display the region production.

I'm using a wrapping label, which seems less than ideal. But I wasn't sure what else would look good...
Now I need to show whats for sale (and maybe what they'll buy, but that is less useful). I also need to show unit skills somewhere.

I'm using a wrapping label, which seems less than ideal. But I wasn't sure what else would look good...
Now I need to show whats for sale (and maybe what they'll buy, but that is less useful). I also need to show unit skills somewhere.
Monday, June 06, 2011
Z Problem
Programming is all about assumptions. You have to make certain assumptions about what your software is going to encounter, and how different modules will work together. To do otherwise would require total knowledge, and the development of a system that could handle anything (which would make it smarter than any human, so you'd be developing strong AI).
As long as your assumptions hold, your software will work well. And if new features fit in with those assumptions, they will be easier to add. If they violate the assumptions, you're in for a world of hurt.
When I started the True Atlanteans client, I knew it was possible to have a z coordinate for hexes. But I didn't have any test cases, and I figured it was a long way off. Well, I just got some test cases, so I guess I have come a long way!

Once again, Tcl and Sqlite made things pretty easy. I rebuilt the tables with a z coordinate and added a couple of entries to the right click menu (yea, I have a right click menu, unlike ALH).
I also fixed the one man unit bug in the old style parser. Rereading the last blog entry made me realize that items have [ABBR], while flags do not.
As long as your assumptions hold, your software will work well. And if new features fit in with those assumptions, they will be easier to add. If they violate the assumptions, you're in for a world of hurt.
When I started the True Atlanteans client, I knew it was possible to have a z coordinate for hexes. But I didn't have any test cases, and I figured it was a long way off. Well, I just got some test cases, so I guess I have come a long way!

Once again, Tcl and Sqlite made things pretty easy. I rebuilt the tables with a z coordinate and added a couple of entries to the right click menu (yea, I have a right click menu, unlike ALH).
I also fixed the one man unit bug in the old style parser. Rereading the last blog entry made me realize that items have [ABBR], while flags do not.
Sunday, June 05, 2011
Items Up!
I must say, working with Tcl and Sqlite has been a real pleasure. Adding orders required changes in about 3 places, most being one or two lines of code: import the data from the TON file, pull the data during unit update, build the GUI items.
The items changes were about the same. My original thinking was that I would need a separate table for items, keyed by the unit id. But Sqlite lets me toss a whole Tcl list into a cell, so I just went with that...

The item box is above the old order box. I figured it would scroll pretty often, so I stuck a scrollbar on there right away (orders might need a scrollbar).
This example shows the frustration inherent with trying to parse the old file format. Units with one man don't get that man in the items (Fast Couriers are one man units in my empire).
Why?
Here is the entry for Fast Courier 416:
The star ('*') indicates this is a full data report ('-' is limited data, '+' is buildings). Then comes the unit and faction names. After that are the unit flags, then items.
Everything is comma separated, with big groups period separated (items, weight, capacity, skills).
But there is no way to tell when flags end and when items begin.
My parser is looking for a number (no flags have numbers, and any item count above 1 will have a number). I suspect ALH understands all the men types, and is checking that... or it understands all the flag names and promotes mismatches. I guess I could tell by making a new flag and seeing if ALH promotes it to an item with count 1 :)
The items changes were about the same. My original thinking was that I would need a separate table for items, keyed by the unit id. But Sqlite lets me toss a whole Tcl list into a cell, so I just went with that...

The item box is above the old order box. I figured it would scroll pretty often, so I stuck a scrollbar on there right away (orders might need a scrollbar).
This example shows the frustration inherent with trying to parse the old file format. Units with one man don't get that man in the items (Fast Couriers are one man units in my empire).
Why?
Here is the entry for Fast Courier 416:
* Courier - Fast (416), Last Outleans (6), avoiding, behind, revealing
faction, holding, receiving no aid, nomad [NOMA], 14841 silver
[SILV], 20 horses [HORS], 5 herbs [HERB], 2 mink [MINK], 4 velvet
[VELV], ivory [IVOR], mithril [MITH], 2 chocolate [CHOC], pearls
[PEAR], 2 spices [SPIC], 2 roses [ROSE], 2 caviar [CAVI], 2 cashmere
[CASH], iron [IRON], silk [SILK], pick [PICK]. Weight: 1089.
Capacity: 0/1400/1415/0. Skills: combat [COMB] 1 (30).
The star ('*') indicates this is a full data report ('-' is limited data, '+' is buildings). Then comes the unit and faction names. After that are the unit flags, then items.
Everything is comma separated, with big groups period separated (items, weight, capacity, skills).
But there is no way to tell when flags end and when items begin.
My parser is looking for a number (no flags have numbers, and any item count above 1 will have a number). I suspect ALH understands all the men types, and is checking that... or it understands all the flag names and promotes mismatches. I guess I could tell by making a new flag and seeing if ALH promotes it to an item with count 1 :)
Subscribe to:
Posts (Atom)

