Although we’re totally happy with getting comments on this blog, it sometimes feels odd carrying on a lengthy discussion about, say, game balance under a totally unrelated subject heading.
I realize social media requires an account, but these discussions are probably interesting enough to be conducted on Facebook or Twitter. And those channels just seem better for an unconstrained conversation.
Another important contact is bugz «at» a-sharp.com. This is the email address for our bug tracking system. A number of you have already used this, which is great, because it’s easy for us to get back to you and if necessary, get additional information.
Thankfully, I don’t think anyone has used the worst possible way of getting ahold of us: App Store reviews. Don’t get me wrong, we love reviews! But we have absolutely no way of replying to you. Please write your review, but then contact us through one of the other channels (including this blog).
06 October 2011
04 October 2011
The Trouble With Branching
I’ve written a guest post for Betterblog, the blog similar to this one run by Failbetter Games. I’ve been greatly enjoying their Echo Bazaar browser game, which is a narrative game inspired in part by King of Dragon Pass (though it goes in a very different direction). My article discusses the approaches both games have taken to putting actual narrative into games.
One note about Echo Bazaar: don’t be put off by the Facebook or Twitter login. It absolutely does not spam your social network.
Update: it looks like the original link may not work any more. The post is now here.
One note about Echo Bazaar: don’t be put off by the Facebook or Twitter login. It absolutely does not spam your social network.
Update: it looks like the original link may not work any more. The post is now here.
02 October 2011
OSL (King of Dragon Pass scripting)
Several people asked about the scripting language used in King of Dragon Pass, OSL. This stands for Opal Scripting Language, since “Opal” was the code-name for the game. Apparently we once called it “MiniScript” (but quickly dropped that name).
Our original plans were to use a multimedia development system, mTropolis, and augment it with C++. I’m not sure if scripting was in the original plan, but if not it didn’t take long to add. Scripting languages tend to be much higher-level, are often domain-specific, and intended for use by people who aren’t programmers.
In 1997 we didn’t have a variety of existing languages to plug in. (Today I’d probably use Lua, though others might pick JavaScript or C#.) So we came up with our own. The basic idea was that a relatively non-technical author could create files that were almost valid code. I figured we were going to want to review them anyway, so I didn’t worry too much about syntax errors, or doing things that would be moderately complex.
You can see a sample of scene coding on our site (it’s too large to include here).
The main features were:
Structure
We needed to support multiple responses and advice. There are no functions, but there’s simple branching.
Tests
A core concept of the game is that most results are not certain. They require an individual to perform a deed. In game terms, this is a test. For example, one of your leaders will test their Combat ability against a dueler. Or the lawspeaker will test his Custom when arguing a case. Or a ring member will test their Poetry (a composite ability) against the surliness of the clan when trying to calm them.
Tests have two outcomes: win or lose. So OSL has those keywords. Sometimes, the degree of success matters, in which case the variable q is set to the amount the victorious side won by.
Variables
All variables are global. However, single-letter variables are reset to 0 at the beginning of a scene. Variables are easily accessible to the C++ code, and are actually one of the principal ways that the multimedia code can talk to the other portions.
Variables can contain a floating point value, a string, or refer to a person, clan, or tribe. In the latter case, specific attributes could be used (e.g. otherClan.chief or c.leadership). Variables could also hold lists of values.
Functions
We started out with special-purpose functions, often used so that script could handle interaction (such as ChooseSacrifice). But our C++ programmer, Shawn Steele, realized that we could come up with generalized list functions
c = StrongestMilitary(ClansWithPositiveAttitude(NeighboringClans))
Placeholders
All text allowed for placeholders, which would be replaced by a value
response 2: “The <survivorClan.plural> are our neighbors.”
Some of these were context-sensitive, to allow for English grammar (<him/her>). And we had a special placeholder used to vary text (to provide more repeatability).
Bargaining with bandits is <d3:giving chickens to the fox/a sign of how weak we think we are/doomed to fail>
OSL is definitely a “little language” — it’s not Turing-complete. But it serves its purpose pretty well. Robin Laws was able to describe scenes which needed very little cleanup to compile, our QA team was able to read the logic, and it helped glue the mTropolis and C++ code together.
Our original plans were to use a multimedia development system, mTropolis, and augment it with C++. I’m not sure if scripting was in the original plan, but if not it didn’t take long to add. Scripting languages tend to be much higher-level, are often domain-specific, and intended for use by people who aren’t programmers.
In 1997 we didn’t have a variety of existing languages to plug in. (Today I’d probably use Lua, though others might pick JavaScript or C#.) So we came up with our own. The basic idea was that a relatively non-technical author could create files that were almost valid code. I figured we were going to want to review them anyway, so I didn’t worry too much about syntax errors, or doing things that would be moderately complex.
You can see a sample of scene coding on our site (it’s too large to include here).
The main features were:
Structure
We needed to support multiple responses and advice. There are no functions, but there’s simple branching.
Tests
A core concept of the game is that most results are not certain. They require an individual to perform a deed. In game terms, this is a test. For example, one of your leaders will test their Combat ability against a dueler. Or the lawspeaker will test his Custom when arguing a case. Or a ring member will test their Poetry (a composite ability) against the surliness of the clan when trying to calm them.
Tests have two outcomes: win or lose. So OSL has those keywords. Sometimes, the degree of success matters, in which case the variable q is set to the amount the victorious side won by.
Variables
All variables are global. However, single-letter variables are reset to 0 at the beginning of a scene. Variables are easily accessible to the C++ code, and are actually one of the principal ways that the multimedia code can talk to the other portions.
Variables can contain a floating point value, a string, or refer to a person, clan, or tribe. In the latter case, specific attributes could be used (e.g. otherClan.chief or c.leadership). Variables could also hold lists of values.
Functions
We started out with special-purpose functions, often used so that script could handle interaction (such as ChooseSacrifice). But our C++ programmer, Shawn Steele, realized that we could come up with generalized list functions
c = StrongestMilitary(ClansWithPositiveAttitude(NeighboringClans))
Placeholders
All text allowed for placeholders, which would be replaced by a value
response 2: “The <survivorClan.plural> are our neighbors.”
Some of these were context-sensitive, to allow for English grammar (<him/her>). And we had a special placeholder used to vary text (to provide more repeatability).
Bargaining with bandits is <d3:giving chickens to the fox/a sign of how weak we think we are/doomed to fail>
OSL is definitely a “little language” — it’s not Turing-complete. But it serves its purpose pretty well. Robin Laws was able to describe scenes which needed very little cleanup to compile, our QA team was able to read the logic, and it helped glue the mTropolis and C++ code together.
29 September 2011
Feathered Scrolling
I think 2.0 really is an improvement over the original game in a number of ways. One aesthetic improvement depends on technology.
Our original multimedia engine, mTropolis, didn’t support alpha. A pixel on the screen came from only one asset. But iOS supports alpha blending, so we can have translucent effects.
iOS is also a multi-touch OS, designed for small screens. Scrollable areas don’t have always-visible scroll bars, so sometimes it can be hard to know that they can be scrolled. There are a number of approaches one can take to telegraph* this to the user. One is to fade the edges of the list. King of Dragon Pass does this.
The idea is that the list smoothly fades out when it can be scrolled. It may be a subtle cue, but it looks better than a hard crop. (And in my opinion, looks much better than drawing a box around the list, which we usually had to do in the original.) The list above is feathered on both top and bottom.
The implementation is a UIView that embeds a UIScrollView, and sets a layer mask. It’s the scroll view’s delegate, and changes the mask so there’s no feathering if the view can’t scroll in a particular direction. Here’s what one of the key methods looks like:
And, here’s what the effect looks like up close.
The iPhone screen is really small, and you need to pay attention to every pixel. Polish like this is really important. It may be subtle, but it just makes the app feel a little better.
* OK, I really wanted to use this word because its meaning is now so divorced from the original literal meaning.
Our original multimedia engine, mTropolis, didn’t support alpha. A pixel on the screen came from only one asset. But iOS supports alpha blending, so we can have translucent effects.
iOS is also a multi-touch OS, designed for small screens. Scrollable areas don’t have always-visible scroll bars, so sometimes it can be hard to know that they can be scrolled. There are a number of approaches one can take to telegraph* this to the user. One is to fade the edges of the list. King of Dragon Pass does this.
The idea is that the list smoothly fades out when it can be scrolled. It may be a subtle cue, but it looks better than a hard crop. (And in my opinion, looks much better than drawing a box around the list, which we usually had to do in the original.) The list above is feathered on both top and bottom.
The implementation is a UIView that embeds a UIScrollView, and sets a layer mask. It’s the scroll view’s delegate, and changes the mask so there’s no feathering if the view can’t scroll in a particular direction. Here’s what one of the key methods looks like:
- (void)featherTop
{
if (fMaskStyle == kFeatherTop)
return;
fMaskStyle = kFeatherTop;
// Set up a mask to fade just top
CAGradientLayer* gradientMask = [CAGradientLayer layer];
gradientMask.bounds = self.layer.bounds;
gradientMask.position = CGPointMake([self bounds].size.width / 2, [self bounds].size.height / 2);
NSObject* transparent = (NSObject*) [[UIColor clearColor] CGColor];
NSObject* opaque = (NSObject*) [[UIColor blackColor] CGColor];
[gradientMask setColors: [NSArray arrayWithObjects: transparent, opaque, opaque, nil]];
[gradientMask setLocations: [NSArray arrayWithObjects:
[NSNumber numberWithFloat: 0.0],
[NSNumber numberWithFloat: kPickListFeather / self.bounds.size.height],
[NSNumber numberWithFloat: 1.0],
nil]];
self.layer.mask = gradientMask;
}
And, here’s what the effect looks like up close.
The iPhone screen is really small, and you need to pay attention to every pixel. Polish like this is really important. It may be subtle, but it just makes the app feel a little better.
* OK, I really wanted to use this word because its meaning is now so divorced from the original literal meaning.
20 September 2011
What’s New?
Skip Olivares writes
The Lore map is new, thanks to Colin Driver. It does a better job portraying things that are actually mentioned in the game, instead of trying to show greater Glorantha.
Game Center is new for iOS — not everyone will care, but I think it’s still worth signing in to Game Center and earning achievements. And other iOS niceties include things like a zoomable map (something we always wanted to do but cut from the original).
I wanted to write and say how glad I was to see King of Dragon Pass for the iPhone. I bought the original version way back when and played the heck out of it; I have fond memories of staying up late and playing the game. I've been waiting for another product release from you, but a revised KoDP is the next best thing. However, that got me wondering if I should get the iOS version or just dust off my old copy of the game. I noticed you said you added new stories; can you tell me how much was added?
There are currently 25 new scenes in the game, and it’s possible to add a few more. There are also a couple new advisor faces. And there is a lot of new advice for them to say, predominantly in the management screens (where for example they now remind you of your most relevant Sacred Time magic allocations). There are also new treasures. And the manual is in the game, so you can refer to it wherever you are.
The Lore map is new, thanks to Colin Driver. It does a better job portraying things that are actually mentioned in the game, instead of trying to show greater Glorantha.
Game Center is new for iOS — not everyone will care, but I think it’s still worth signing in to Game Center and earning achievements. And other iOS niceties include things like a zoomable map (something we always wanted to do but cut from the original).
We also removed some things — hopefully decisions that weren’t that interesting (like optimizing patrols and crafters, or worrying about sheep).
And there are a lot of bug fixes. I was actually surprised at how many bugs had been in the game, apparently unnoticed, since 1999. Most of them were minor, like typos, though a few would cause problems. (Given how large the game is, I don’t feel like it was actually all that buggy. Software always has bugs. I think my surprise is more that nobody noticed — or maybe we didn’t have a good way to report them in 1999. Maybe nobody cared because they were so minor.)
While the game is still not the easiest, 2.0 took some steps to make a death spiral less likely (if you dig yourself a really deep hole, you will still have a hard time getting out). I did tuning specific to each of the difficulty levels.
And none of these changes can be applied to the original. So if you want them, you’ll need the new version.
But yes, I think it’s the same game, just a better incarnation. So if you haven’t played before, I completely recommend 2.0 for iOS. If you have, you’ll have to decide for yourself.
While the game is still not the easiest, 2.0 took some steps to make a death spiral less likely (if you dig yourself a really deep hole, you will still have a hard time getting out). I did tuning specific to each of the difficulty levels.
And none of these changes can be applied to the original. So if you want them, you’ll need the new version.
But yes, I think it’s the same game, just a better incarnation. So if you haven’t played before, I completely recommend 2.0 for iOS. If you have, you’ll have to decide for yourself.
19 September 2011
Thanks!
We released King of Dragon Pass for iOS on 8 September, and it’s gotten a very warm welcome. Of 136 star ratings in the App Store, 128 are 5-star ratings. And some really great App Store reviews. Here’s what might be my favorite (from the UK store):
While we don’t release specific figures, I do want to talk about sales as well. I have to say I’m astonished by the shape of our unit sales graph. The left half is what I expected — a launch splash, followed by a gradual decline as other games push ours out of the limelight. But then sales began to climb again! For several days in a row, so it’s not just a fluke.
While we did get a number of favorable reviews on a number of web sites (which we’re slowly collecting on our Reviews page), their timing really didn’t seem to correlate to sales. So my conclusion is that it’s due to word of mouth — after you play the game long enough to give it a recommendation, you do just that. Thank you!
As an independent developer with no marketing budget, word of mouth is critically important to the success of the game. We’ve tried to make that easy (with Twitter and Facebook buttons in the app), but ultimately it’s your credibility on the line when you recommend us. We really appreciate that.
And, I have to ask you to do it again. We just released an update (2.0.1). The way the App Store works, each version has its own ratings. So King of Dragon Pass will drop to zero 5-star ratings. If you can, please go back to the App Store and rate it again. If you already wrote a review, I don’t think it makes sense to do that again. But if not, those help too!
Thanks again for buying the game, and for letting people know about it.
It's impossible to describe the emotional tug you feel when an old and trusted advisor, who you've watched grow from a young upstart, dies of old age.It’s also hard to describe how all this makes us feel — but it’s definitely a positive emotion!
Or when an exploration team disappears into the wilds, never to be heard from again.
Or when a cursed clansman, shunned by his peers, sacrifices himself to stop a raid.
This game will never leave my iPhone. That's the only accolade possible.
While we don’t release specific figures, I do want to talk about sales as well. I have to say I’m astonished by the shape of our unit sales graph. The left half is what I expected — a launch splash, followed by a gradual decline as other games push ours out of the limelight. But then sales began to climb again! For several days in a row, so it’s not just a fluke.
While we did get a number of favorable reviews on a number of web sites (which we’re slowly collecting on our Reviews page), their timing really didn’t seem to correlate to sales. So my conclusion is that it’s due to word of mouth — after you play the game long enough to give it a recommendation, you do just that. Thank you!
As an independent developer with no marketing budget, word of mouth is critically important to the success of the game. We’ve tried to make that easy (with Twitter and Facebook buttons in the app), but ultimately it’s your credibility on the line when you recommend us. We really appreciate that.
And, I have to ask you to do it again. We just released an update (2.0.1). The way the App Store works, each version has its own ratings. So King of Dragon Pass will drop to zero 5-star ratings. If you can, please go back to the App Store and rate it again. If you already wrote a review, I don’t think it makes sense to do that again. But if not, those help too!
Thanks again for buying the game, and for letting people know about it.
10 September 2011
Repeatability
Many people have been wondering how repeatable the game really is. If there are only 500 scenes, what happens when you play for a week?
It’s certainly true that the same basic situations are going to recur. But we took a number of steps to help things feel fresh when they do:
No scene will randomly repeat for at least five game years.
And by then, it’s likely the context will be different. Is Dorasa still the tribal queen? Have you patched up a feud? Did you finally get fed up with your Trickster and outlaw him? Can you still afford to pay off a request for wergild? The same situation could easily have totally different ramifications. (This is one reason KoDP isn’t a pure storytelling game, but has a relationship and economic model.) And of course, in a different game, the context will certainly be different.
Most scenes have five responses. We tried to make all of them reasonable choices, so you can explore alternatives. (Even bad alternatives might end up with amusing consequences, and a single choice shouldn’t doom you.) And very often a response will test the abilities of a clan leader, and thus have either a successful or unsuccessful outcome.
A number of scenes have internal variation. For example, in one scene a ring member dies tragically. The specific ring member is random. And there are four possible deaths.
On top of that, flavor text is often randomized. Here’s some of what you see if that ring member was slain by a Chaos horror:
text: The ring gathers in sorrow around <c>, who was struck down by a weird Chaos monster <d6:that had the body of a giant snail and the head of a dragon/that looked like a deer but had the face of a troll/that had the body of a scorpion and a human head/that was hiding at the bottom of a pond/that was living inside one of our cows/that was lurking among the trees at the edge of our tula>.
It’s certainly true that the same basic situations are going to recur. But we took a number of steps to help things feel fresh when they do:
No scene will randomly repeat for at least five game years.
And by then, it’s likely the context will be different. Is Dorasa still the tribal queen? Have you patched up a feud? Did you finally get fed up with your Trickster and outlaw him? Can you still afford to pay off a request for wergild? The same situation could easily have totally different ramifications. (This is one reason KoDP isn’t a pure storytelling game, but has a relationship and economic model.) And of course, in a different game, the context will certainly be different.
Most scenes have five responses. We tried to make all of them reasonable choices, so you can explore alternatives. (Even bad alternatives might end up with amusing consequences, and a single choice shouldn’t doom you.) And very often a response will test the abilities of a clan leader, and thus have either a successful or unsuccessful outcome.
A number of scenes have internal variation. For example, in one scene a ring member dies tragically. The specific ring member is random. And there are four possible deaths.
On top of that, flavor text is often randomized. Here’s some of what you see if that ring member was slain by a Chaos horror:
text: The ring gathers in sorrow around <c>, who was struck down by a weird Chaos monster <d6:that had the body of a giant snail and the head of a dragon/that looked like a deer but had the face of a troll/that had the body of a scorpion and a human head/that was hiding at the bottom of a pond/that was living inside one of our cows/that was lurking among the trees at the edge of our tula>.
Finally, if a scene logically can’t repeat within one game, it won’t.
So you could think of King of Dragon Pass as composed of a number of storytelling motifs, which it repeats in endless variation.
Subscribe to:
Posts (Atom)



