Well, I finally got it working. Skyrim Slavers' Guild is a go, at least for a single quest.
Turns out that package templates and packages aren't quite as interchangeable as the wiki page seemed to suggest. In particular, if you make a template and use it as a package, although the CK will accept it, the package won't do anything.
That explains so many of my problems in the last few months.
Being in the main, a daily account of the author's struggle to create an adult themed simulation game using SDL, C++ and Lua.
Also sundry diversions into the realms of Flash, Linux, Boo, development of a test driven nature, the application of sound principles in the design of software, and the humdrum demands of Real Life.
You have been warned.
Thursday, 28 June 2012
Friday, 8 June 2012
Skyrim Slavers' Guild
Time for another update. A lot happened since the last one.
Firstly, the commercial effort stalled. What happened was I got a job offer. It was only going to be for six weeks, and I needed the money and ... anyway, I'm still here. I might return to the indie dev plan at some point, but for now it's back to work.
Of course, that also means back to free software development in my spare time. Well, not Free Software in the strict sense, I suppose. What happened is I started daydreaming about a Skyrim mod for a Slavers' Guild faction. And then I specced it up. And now I seem to be deep in development. I always did want to learn the Creation Kit (as it's now called).
The Skyrim Slavers' Guild is going to resurrect a long defunct guild of slavers in Skyrim. The Dragonborn gets a chance to get in at the ground floor. As a Slaver, or as an Abolitionist. Or as a slave. The idea is to have a multi-part questline that follows the evolution of the guild from virtual non-existence to becoming a major power in Skyrim politics.
More information:
http://www.necavi.org/slavers/index.php/Skyrim_Slavers_Guild_Wiki
http://www.loverslab.com/showthread.php?tid=4078
irc://irc.irchighway.net/skyrim_slavers
Firstly, the commercial effort stalled. What happened was I got a job offer. It was only going to be for six weeks, and I needed the money and ... anyway, I'm still here. I might return to the indie dev plan at some point, but for now it's back to work.
Of course, that also means back to free software development in my spare time. Well, not Free Software in the strict sense, I suppose. What happened is I started daydreaming about a Skyrim mod for a Slavers' Guild faction. And then I specced it up. And now I seem to be deep in development. I always did want to learn the Creation Kit (as it's now called).
The Skyrim Slavers' Guild is going to resurrect a long defunct guild of slavers in Skyrim. The Dragonborn gets a chance to get in at the ground floor. As a Slaver, or as an Abolitionist. Or as a slave. The idea is to have a multi-part questline that follows the evolution of the guild from virtual non-existence to becoming a major power in Skyrim politics.
More information:
http://www.necavi.org/slavers/index.php/Skyrim_Slavers_Guild_Wiki
http://www.loverslab.com/showthread.php?tid=4078
irc://irc.irchighway.net/skyrim_slavers
Thursday, 22 September 2011
Crass Commercialism
I've decided to bite the bullet and try my luck in the indie game market.
Not without a degree of trepidation, I must admit. But, I'm beginning to think that the only way I'll see stable employment from this point forward is to be my own boss. And if I'm going to spend all day sitting around writing software anyway, I might as well try and make it pay the bills.
So, the plan currently is to keep coding, but look at a commercial release of something. Probably still aim at the adult game market.I've got the coding skills; maybe some commercial incentive will get me to see a project through to completion for a change. Certainly it'll be nice to be able to work full time on something.
I'll also probably end up with adwords and a tip jar box on here at some point.
Plan A was "get a job", and that's pretty much failed. This is Plan B.
More details to come.
Not without a degree of trepidation, I must admit. But, I'm beginning to think that the only way I'll see stable employment from this point forward is to be my own boss. And if I'm going to spend all day sitting around writing software anyway, I might as well try and make it pay the bills.
So, the plan currently is to keep coding, but look at a commercial release of something. Probably still aim at the adult game market.I've got the coding skills; maybe some commercial incentive will get me to see a project through to completion for a change. Certainly it'll be nice to be able to work full time on something.
I'll also probably end up with adwords and a tip jar box on here at some point.
Plan A was "get a job", and that's pretty much failed. This is Plan B.
More details to come.
Saturday, 17 September 2011
People Are Hard
Damn, but Inform gets frustrating when you try and do interactions with people.
A simple thing like fastening a collar around a slavegirl's neck falls foul of several rules.
In other news, I've decided to go professional with the games dev. Not sure of the details yet - I have a meeting which might make some funding available, so no hard and fast decisions until get done with that. Dangerous Game is one of the possible projects I might commercialise. Or it might end up being something completely new.
Meanwhile, I'm still working on The Doghouse. The story so far: You (as PC) have been summoned by your cousin Vinny and lumbered with looking after his new nightclub, "The Doghouse" while Vinny travels abroad for health reasons that are completely unrelated to the amount of money he owes to the Mob.
Of course with all that money owing, various extremely violent people will be displeased if you just walk out of the nightclub and get on with your life. So the sensible thing is to look around, work out the business plan, and get the club operational as soon as possible so you can get out before someone decides to put a contract on you too. Now if you could only work out why he put bedrooms adjoining the dance floor. Or jail cells in the basement...
You're aided in this (if that is indeed the correct word) by Einstein, the biggest and dumbest bouncer in the world. Einstein has had the plan explained to him by Vinny, but can't really remember much more than the "package is due today", although with the right questions, you might manage to jog his memory. And the arrival of the package will certainly answer a lot of questions.
So far I've coded up to the package arriving, (which has been great fun) and then hit a bit of a wall. So I hived off the "package" into it's own inform game with a view towards recombining the two when it's working.
I don't really want to release another "no-sex but loads of setup" file, so I'm going to keep plugging at the sexslave interactions, and hopefully release when there's something more to do than wander around and make wisecracks.
A simple thing like fastening a collar around a slavegirl's neck falls foul of several rules.
In other news, I've decided to go professional with the games dev. Not sure of the details yet - I have a meeting which might make some funding available, so no hard and fast decisions until get done with that. Dangerous Game is one of the possible projects I might commercialise. Or it might end up being something completely new.
Meanwhile, I'm still working on The Doghouse. The story so far: You (as PC) have been summoned by your cousin Vinny and lumbered with looking after his new nightclub, "The Doghouse" while Vinny travels abroad for health reasons that are completely unrelated to the amount of money he owes to the Mob.
Of course with all that money owing, various extremely violent people will be displeased if you just walk out of the nightclub and get on with your life. So the sensible thing is to look around, work out the business plan, and get the club operational as soon as possible so you can get out before someone decides to put a contract on you too. Now if you could only work out why he put bedrooms adjoining the dance floor. Or jail cells in the basement...
You're aided in this (if that is indeed the correct word) by Einstein, the biggest and dumbest bouncer in the world. Einstein has had the plan explained to him by Vinny, but can't really remember much more than the "package is due today", although with the right questions, you might manage to jog his memory. And the arrival of the package will certainly answer a lot of questions.
So far I've coded up to the package arriving, (which has been great fun) and then hit a bit of a wall. So I hived off the "package" into it's own inform game with a view towards recombining the two when it's working.
I don't really want to release another "no-sex but loads of setup" file, so I'm going to keep plugging at the sexslave interactions, and hopefully release when there's something more to do than wander around and make wisecracks.
Monday, 12 September 2011
The Doghouse
Inspired by Nuku's Flexible Society, I've been playing with Inform 7 again. I seem to be afflicted with more than my usual share of "Grasshopper Mind" at the moment.
Here's a start for something called The Doghouse. It's just a start at the moment, really. You'll need an Inform interpreter to play it. If you don't already have one, WindowsFrotz seems to work well enough.
Themes are going to be more or less my usual ones. There's not a lot of naughtiness in this yet, but you can get some idea of how it's going to develop...
Here's a start for something called The Doghouse. It's just a start at the moment, really. You'll need an Inform interpreter to play it. If you don't already have one, WindowsFrotz seems to work well enough.
Themes are going to be more or less my usual ones. There's not a lot of naughtiness in this yet, but you can get some idea of how it's going to develop...
Thursday, 8 September 2011
Action and Action_Sleep
The action base class is pretty trivial
Of course, doing this in ruby, we don't really need a base class. So all this does is set a default resistance.
So, we have our first (and so far only) subclass Action_Sleep
That defauts the name and changes the default resistance. I've left the args in so we can either have custom sleep actions for girls with strange sleep patterns, or else subclass it for something sleeplike later on.
What's missing here is the perform method. And this is where I get in a tangle.
Next thing is to make it all compile and see how it runs.
class ActionThat's a name, and a resistance value. In general if obedience exceeds resistance.
attr_accessor :name
attr_accessor :resistance
def initialize(args)
@name = args[:name]
@resistance = args[:resistance] || 100
end
end
Of course, doing this in ruby, we don't really need a base class. So all this does is set a default resistance.
So, we have our first (and so far only) subclass Action_Sleep
class Action_Sleep < Action
def initialize(args=nil)
args = {} unless args
args[:name] = "Sleep" unless args[:name]
args[:resistance] = 35 unless args[:resistance]
super(args)
end
end
That defauts the name and changes the default resistance. I've left the args in so we can either have custom sleep actions for girls with strange sleep patterns, or else subclass it for something sleeplike later on.
What's missing here is the perform method. And this is where I get in a tangle.
#
# two factors: obedience and tiredness
#
# five outcomes:
#
# disobedient and alert: will stay awake
# disobedient and a bit tired: will try to stay awake
# disobedient and very tired: fall asleep, mumbling defiance
# obedient and tired: will go to sleep
# obedient and alert: will try to sleep and pretend if need be
#
# how to define "tired" then?
# what do I want from tiredness?
#
# I want to impose some limit on how long people can work
# I want to be able to exceed that limit
# I want to use sleep-dep to compel obedience
#
def perform(actor)
tiredness = 100 - actor.alertness
obeidient = (actor.obedience > @resistance)
tired = (tiredness > 40)
#
# now, the simplest case is the obedient one
#
if obedient
if tired
print "#{} sleeps soundly"
else
print "#{} lies still and pretends to sleep"
end
return
end
That's still not got any changes to stats. Tiredness, obedience, resistance, none of them are moving at this point.
# so, these are the disobedient cases
# simplest of which is if she's at zero alertness
# in which case she falls asleep anyway
#
if actor.alertness == 0
print "#{} mutters in her sleep"
return
end
#
# if she's not tired, she refuses to pretend to sleep
#
if !tired
print "#{} makes rude gestures at the CCTV camera"
return
end
#
# now then: being tired will make her more inclined to
# obey than she would be otherwise. Let's have a bonus # from 1-20
#
if actor.obedience + tiredness / 5 >= @resistance
print "#{} dozes, restlessly"
else
print "#{} stares bleary-eyed at the camera"
end
end
Next thing is to make it all compile and see how it runs.
OK, Girl class now,
class Girl
attr_accessor :name # girl's name
attr_accessor :obedience # 100 == perfect obedience
attr_accessor :alertness # 0 == asleep, 100 == hyper
attr_accessor :energy # 0 == sick, 100 == fighting fit
attr_accessor :actions # action tabs - all possible actions
attr_accessor :current # currently selected action
#
# set name from params, defaults for other stats
# only one action (sleep) for now
#
def initialize(args)
@name = args[:name]
@obedience = args[:obedience] || 10
@alertness = args[:alertness] || 100
@energy = args[:energy] || 100
@actions = {
:sleep => Action_Sleep.new({})
}
@current = @actions[:sleep]
end
#
# call perform on the current action
#
def do_shift(shift_id)
@current.perform(self)
end
end
Stats are 1 - 100 in range.That was simple too. Never mind, next one makes up for it
Wednesday, 7 September 2011
Code: GirlList
(I'm breaking these up by class to try and avoid Blogger lagging like it did yesterday)
It seems to me that everything I describe in this blog turns out at least three times as complicated when I write it all down than it was when it was in my head. For this reason, I'm reluctant to say that GirlList is simple and straight forward. I mean, I think it is, but I'm afraid if I say so, I'll invoke Murphy.
Anyway....
It's basically a wrapper around an array. Method to initialise the array, one to add girls, and one to evaluate each girl's performance in a shift. I changed do_turn to do_shift at this level, as mentioned earlier, and I may yet lower the granularity further. But this'll do for now.
Why not just have an array? I'm not sure I have a good reason, except that I often find it's good to have an explicit list class. It gives me room to add processing when a girl is added or removed, for instance.
mmm... looks like this one really was that simple.
It seems to me that everything I describe in this blog turns out at least three times as complicated when I write it all down than it was when it was in my head. For this reason, I'm reluctant to say that GirlList is simple and straight forward. I mean, I think it is, but I'm afraid if I say so, I'll invoke Murphy.
Anyway....
class GirlList
def initialize
@list = Array.new
end
def add(actor)
@list.push(actor)
end
def do_shift(shift_id)
@list.each { |x|
x.do_shift(shift_id)
}
end
end
It's basically a wrapper around an array. Method to initialise the array, one to add girls, and one to evaluate each girl's performance in a shift. I changed do_turn to do_shift at this level, as mentioned earlier, and I may yet lower the granularity further. But this'll do for now.
Why not just have an array? I'm not sure I have a good reason, except that I often find it's good to have an explicit list class. It gives me room to add processing when a girl is added or removed, for instance.
mmm... looks like this one really was that simple.
Code: TrainingCamp
A first cut of the TrainingCamp class looks like this:
I also added a Shift class. Since that's just a holder for the shift constants, I'll we can deal with it here:
I could just use the strings, but this way they get syntax checked and I can spot typos. I also had the impression that Ruby stored all strings as single instances, so passing strings around was no worse than passing ints, and that using strings was the preferred Ruby idiom for constants. But now I think on it, I may be getting that mixed up with Lua. Never mind, in any event, it saves me having a lookup table to convert int constants into strings
class TrainingCampAgain, nothing surprising there. I've added a method to add girls to the camp. The calling code looks like this this:
def initialize
@girls = GirlList.new
end
def do_turn
#
# part of me wants to break this down, hour by hour
# I can see good things from that. Staggering
# changeovers for instance, means never risking
# having three girls gang up on you...
#
@girls.do_shift(Shift::Morning)
@girls.do_shift(Shift::Afternoon)
@girls.do_shift(Shift::Evening)
@girls.do_shift(Shift::Night)
end
def add_girl(girl)
@girls.add(girl)
end
end
camp = TrainingCamp.newThat'll let me run tests with one turn a second when the rest of the classes are working.
camp.add_girl(Girl.new( :name => "Anne", :obedience => 51))
camp.add_girl(Girl.new( :name => "Betty" ))
while true
camp.do_turn
sleep 1
end
I also added a Shift class. Since that's just a holder for the shift constants, I'll we can deal with it here:
class Shift
Morning = "Morning"
Afternoon = "Afternoon"
Evening = "Evening"
Night = "Night"
end
I could just use the strings, but this way they get syntax checked and I can spot typos. I also had the impression that Ruby stored all strings as single instances, so passing strings around was no worse than passing ints, and that using strings was the preferred Ruby idiom for constants. But now I think on it, I may be getting that mixed up with Lua. Never mind, in any event, it saves me having a lookup table to convert int constants into strings
Tuesday, 6 September 2011
Let's throw some UML at that...
So, let's look at how some of that breaks down into classes.
Nothing particularly earth shattering there. We have TrainingCamp as a top level class (at least as far as training is concerned) which contains a GirlList which abstracts a list of Girls in training. Eventually TrainingCamp is going to have a bit more to it, since it will need to manage available training equipment, training schedules and the like. But for now, it just keeps a list of girls.
The do_turn method in TrainingCamp executes one turn (which is to say one day) of training. That gets passed down to GirlList, which passes it on to each of the girls in the list. Thinking about it, I think I'll probably change to do_turn to do_shift or do_hour in Girl and GirlList. There are places we'll want to manage simultaneous actions - like two girls competing for the same resource, or sparring, or sex training for that matter. And the PC needs to be in the TrainingCamp as well, thinking about it ... but that can wait.
Anyway...
You'll note I'm not addressing mood state at all here. This is in the interests of starting simple. For now, I'm going to have a default, neutral mood and a single task - sleeping.
Some things to note
Each Action has a resistance. The basic rule is that if Girl.obedience > Action.resistance then the thing gets done. Every time a girl performs an action on demand, there's a chance that her resistance to that action will go down. And if she successfully refuses, it should probably have a chance to go up
I had thought of using the resistance value to model a girl's like or dislike of an action, but that's not going to work. Over time, resistance is going to drop to zero for everything she does, but I'd quite like there still to be things she liked and disliked. I'll need to think about that a bit.
The possible actions are stored in a hash called actions_list. Each girl will probably have the same actions (assuming no mutants, monstergirls or whatever) but they each get their own copy of the action table so we they can have their own resistance value. If the Action object gets too bit we'll need to split it to a global action table, and smaller one containing the girl-specific data. For now we'll just copy it.
Next thing, we'll try some code.
Emotion Modelling
The heart of any training game is getting the girls to react believably to the training stimulus. However our simulation of the training process hasn't really changed since Pooolka write the first draft of Slavemaker.
In this post I'm going to talk a bit about the current state of that art, and what I see as good and bad about it. Then I want to explain what I want to do that's different, why I think that would be better, and some ideas on how I hope to get it done.
OK: State of the art. Basically all the games I'm familiar with work by having different activities add points to some statistics, and subtract them from others. On balance, more points get added than subtracted, so it's possible to max out the girl's stats, while at the same time, the subtractions keep the game from becoming overly linear.
There's a lot that's good about that approach. It's simple, it's easy for the player to understand what's happening, and it gives a pretty good impression of a training process. It's simple, and it's Good Enough. These are strong points in favour.
As for drawbacks, there are two that spring to mind. One is that the system offers few surprises once you master the basics. You don't ever see a girl fly into a huff, and then slowly warm back out if it, for instance. You never see resistance suddenly crumble. You never see sullen obedience or apologetic defiance.
The other drawback is that it's very much a single trainee model. It doesn't allow for interaction with any other girls. Even in games like Whoremaster or Otherworld that have multiple girls designed in from the start, they're still just running multiple parallel single player training.
So, then: What I want to achieve. I want to keep the keep the good parts of the original system so far as I can, while adding room for the girls to have emotional states that can change, usually predictably, sometimes not. I want to model relationships as well. Not the girl's relationship with her trainer, but also how she feels about each of the other slaves, her feelings for other masters and mistresses, and her feelings about the various tasks used in her training.
The hard part in this is going to be maintaining the simplicity and understandability of pooolka's model. In programming terms, it's a dead loss. We're going to need a lot of code and classes to manage these relationships. In terms of player interface, I think we can keep it more or less unchanged. As for understanding why the girls are behaving as they are, that's harder.
If a girl does unexpected things too often, then the game seems arbitrary and unfair. We can mitigate that a lot by making information available so the player can work out why in reterospect. But at the same time if we make too much information available, we lose the surprise when something unexpected does happen.
How to do it: I'll go into more detail in the next post, but basically I want to
have a state machine for different mental states, and to have that emotional state colour the way a girl reacts to a task. So if she's Defiant, then even if she obeys, she'll do it spitting curses at you. Or we might have an Submissive state where she does pretty much as she's told, and if for any reason she can't bring herself to obey, it'll be with apologies and pleas for mercy. Run either of them for too long and they'll transition to Tired, and not say anything apart from "need .. to ... sleep ..." or some such thing. Let them sleep and they'll jump back to their previous state.
Transitions are all going to be based on rules, and those rules will take account of environmental and situational circumstances as well as attributes. So, for instance, you could have girl busy falling in love with their trainer, who has a bad day and ends up tired and hungry and gets given all the tasks she hates. If she gets enough negatives from all that, it's possible she might spike to an Angry state. She probably won't stay there long, because her stats are still ones for "falling-in-love". So the trainer gets an unexpected earful the next time he talks to her, followed by a fairly rapid cooling off afterward.
There are other things I'd like to do, too. Make effective training rely on rewards and punishment as well as simple repetition of a task, and allow the player to use things like hunger and sex drive as leverage to get obedience. But there's probably enough to be going on with here.
So, to summarise: I want to extend the basic pooolka model for training by adding emotional states that transition by well defined rules, but which are still capable of unexpected spikes, and I want to model relationships with people and with activities to provide extra variables to drive those state transitions. All of this with a user interface little different from the one
in slavemaker.
Next post I'll do some UML and maybe some code showing how I'm thinking of implementing all this.
In this post I'm going to talk a bit about the current state of that art, and what I see as good and bad about it. Then I want to explain what I want to do that's different, why I think that would be better, and some ideas on how I hope to get it done.
OK: State of the art. Basically all the games I'm familiar with work by having different activities add points to some statistics, and subtract them from others. On balance, more points get added than subtracted, so it's possible to max out the girl's stats, while at the same time, the subtractions keep the game from becoming overly linear.
There's a lot that's good about that approach. It's simple, it's easy for the player to understand what's happening, and it gives a pretty good impression of a training process. It's simple, and it's Good Enough. These are strong points in favour.
As for drawbacks, there are two that spring to mind. One is that the system offers few surprises once you master the basics. You don't ever see a girl fly into a huff, and then slowly warm back out if it, for instance. You never see resistance suddenly crumble. You never see sullen obedience or apologetic defiance.
The other drawback is that it's very much a single trainee model. It doesn't allow for interaction with any other girls. Even in games like Whoremaster or Otherworld that have multiple girls designed in from the start, they're still just running multiple parallel single player training.
So, then: What I want to achieve. I want to keep the keep the good parts of the original system so far as I can, while adding room for the girls to have emotional states that can change, usually predictably, sometimes not. I want to model relationships as well. Not the girl's relationship with her trainer, but also how she feels about each of the other slaves, her feelings for other masters and mistresses, and her feelings about the various tasks used in her training.
The hard part in this is going to be maintaining the simplicity and understandability of pooolka's model. In programming terms, it's a dead loss. We're going to need a lot of code and classes to manage these relationships. In terms of player interface, I think we can keep it more or less unchanged. As for understanding why the girls are behaving as they are, that's harder.
If a girl does unexpected things too often, then the game seems arbitrary and unfair. We can mitigate that a lot by making information available so the player can work out why in reterospect. But at the same time if we make too much information available, we lose the surprise when something unexpected does happen.
How to do it: I'll go into more detail in the next post, but basically I want to
have a state machine for different mental states, and to have that emotional state colour the way a girl reacts to a task. So if she's Defiant, then even if she obeys, she'll do it spitting curses at you. Or we might have an Submissive state where she does pretty much as she's told, and if for any reason she can't bring herself to obey, it'll be with apologies and pleas for mercy. Run either of them for too long and they'll transition to Tired, and not say anything apart from "need .. to ... sleep ..." or some such thing. Let them sleep and they'll jump back to their previous state.
Transitions are all going to be based on rules, and those rules will take account of environmental and situational circumstances as well as attributes. So, for instance, you could have girl busy falling in love with their trainer, who has a bad day and ends up tired and hungry and gets given all the tasks she hates. If she gets enough negatives from all that, it's possible she might spike to an Angry state. She probably won't stay there long, because her stats are still ones for "falling-in-love". So the trainer gets an unexpected earful the next time he talks to her, followed by a fairly rapid cooling off afterward.
There are other things I'd like to do, too. Make effective training rely on rewards and punishment as well as simple repetition of a task, and allow the player to use things like hunger and sex drive as leverage to get obedience. But there's probably enough to be going on with here.
So, to summarise: I want to extend the basic pooolka model for training by adding emotional states that transition by well defined rules, but which are still capable of unexpected spikes, and I want to model relationships with people and with activities to provide extra variables to drive those state transitions. All of this with a user interface little different from the one
in slavemaker.
Next post I'll do some UML and maybe some code showing how I'm thinking of implementing all this.
Thursday, 18 August 2011
Dangerous Game
Dangerous Game.
Platform: RPG Maker
The PC gets to join a club for the wealthy and privileged whose members regularly meet to hunt women. Each particpating hunter is expected to bring one girl to be released as quarry. It turns out there's an advantage to having your girl able to fight (since she can fight off the other hunters) and also being loyal to you (so she won't try and kill you). As a consequence a lot of the club activity is centred around slave training; both for combat skills and loyalty to their master.
Real early days on this as yet. Got an intro scene and a rough layout for the menu screen. The naked slavegirl, buttons, and rail are courtesy of redcape, who's put so much work into the look and feel of Otherworld.
We decided wanted to get away from the standard RPG/XP blue and white menu screen. I think we're succeeding.
This is more or less the idea I had for the Inform game I was talking about earlier. How it got to be RPG Maker, I have no idea, but I think i'm going to run with it. I can save Inform for another day :)
Platform: RPG Maker
The PC gets to join a club for the wealthy and privileged whose members regularly meet to hunt women. Each particpating hunter is expected to bring one girl to be released as quarry. It turns out there's an advantage to having your girl able to fight (since she can fight off the other hunters) and also being loyal to you (so she won't try and kill you). As a consequence a lot of the club activity is centred around slave training; both for combat skills and loyalty to their master.
Real early days on this as yet. Got an intro scene and a rough layout for the menu screen. The naked slavegirl, buttons, and rail are courtesy of redcape, who's put so much work into the look and feel of Otherworld.
We decided wanted to get away from the standard RPG/XP blue and white menu screen. I think we're succeeding.
This is more or less the idea I had for the Inform game I was talking about earlier. How it got to be RPG Maker, I have no idea, but I think i'm going to run with it. I can save Inform for another day :)
Wednesday, 27 July 2011
Well, that was pretty revolting
Well, I left for a trip to Glasgow for a job interview, got back and spent all night and most of the next day getting intimate with the toilet bowl. I've just now had my first solid food in 36 hours (a slice of dry bread) and I'm in no particular hurry to try another.
So. Not a lot happened to report in that respect.
Meanwhile, if you don't know already, there's an alpha release of Otherworld going. Buggy as hell, but we're working on getting it into shape. I think that's mostly what I'll be doing between now and Friday.
So. Not a lot happened to report in that respect.
Meanwhile, if you don't know already, there's an alpha release of Otherworld going. Buggy as hell, but we're working on getting it into shape. I think that's mostly what I'll be doing between now and Friday.
Saturday, 23 July 2011
Otherworld and ... other stuff
OK, so that was waaaay too long in between posts. I've been working on Otherworld, and for some reason wasn't comfortable posting about it in this blog. Don't ask me why, it makes no sense at all in retrospect.
So, I'l probably post a bit about some of the stuff I'm doing for that. No reason I can't meditate on Actionscript as well as C++.
Probably Inform7 as well. I've been looking at some of the adult based interactive text adventures out there: Valente and Fenoxo in particular. The whole transgender doesn't do anything for me I'm afraid, but they way they've been using Inform is a bit of an eye opener. So I've been playing around with something similar that plays more to my own particular interests. So expect a bit of that to show up as well.
(I know, I know ... another new project that'll last just long enough to look interesting and then get dropped in favour of the next shiny language. What can I say? It's how I learn things).
So, I'l probably post a bit about some of the stuff I'm doing for that. No reason I can't meditate on Actionscript as well as C++.
Probably Inform7 as well. I've been looking at some of the adult based interactive text adventures out there: Valente and Fenoxo in particular. The whole transgender doesn't do anything for me I'm afraid, but they way they've been using Inform is a bit of an eye opener. So I've been playing around with something similar that plays more to my own particular interests. So expect a bit of that to show up as well.
(I know, I know ... another new project that'll last just long enough to look interesting and then get dropped in favour of the next shiny language. What can I say? It's how I learn things).
Monday, 31 January 2011
Loading issues fixed
well, so far as loading chapter headings and background images goes, anyway. Still a lot of cases need adding.
Next I want to do the shuffle code. there's two parts to this: shuffling the narratives in a scene (or items in a narrative, or options in a choice, etc, etc, etc) and then there's re-arranging the treeview to reflect the change.
Let's get test cases for the Scene, Narrative and the rest, first.
Next I want to do the shuffle code. there's two parts to this: shuffling the narratives in a scene (or items in a narrative, or options in a choice, etc, etc, etc) and then there's re-arranging the treeview to reflect the change.
Let's get test cases for the Scene, Narrative and the rest, first.
Saturday, 29 January 2011
A Test Case
SceneEdit, Boo. Test Case. Why isn't the image tag loading from XML?
[Test]
def load_background2():
source = detab("""
<scene name="GameStart" default="" desc="wibble wibble">
<narrative name="waking_up" desc="In which our hero ...">
<image path="data/images/foo.png" />
<image path="data/images/bar.png" />
</narrative>
</scene>
""")
sr = StringReader(source)
r = XmlReader.Create(sr)
scene = Scene()
scene.load(r)
/*
* make sure we have a narrative
*/
Assert.AreEqual(1, scene.narratives.Count)
/*
* get the narrative, check the name
*/
n as Narrative
n = scene.narratives[0]
Assert.AreEqual("waking_up", n.name)
/*
* now - it should have two narrative items attached
*/
Assert.AreEqual(2, n.items.Count)
And that fails: there are zero items in the narrative. Also of interest is an error message in the test output saying "name image not handled". I missed that in the general output chatter when running the app itself.
A bit of grepping tracks that down to the Narrative class:
def load(r as XmlReader):
_name = gatt(r, "name")
_desc = gatt(r, "desc")
while r.Read():
if r.NodeType == XmlNodeType.Whitespace:
continue
if r.NodeType == XmlNodeType.EndElement:
if r.Name == "narrative":
break
continue
if r.NodeType != XmlNodeType.Element:
print "unexpected node type: ${r.NodeType}"
break
if r.Name == "narrative":
break
if r.Name == "snippet":
sn = Snippet()
sn.load(r)
_items.Add(sn)
continue
print "name ${r.Name} not handled"
So I need to add a case to that loop for every tag I intend to read. Tedious, but at least I found it.
Incidentally, that's lousy O-O methodology. One of the basic ideas behind OO is that you have subclasses so you don't need to have ifs or switches like this. The trouble is that this kind of breaks down when you're reading text data.
The OO way to do it would be to have a factory method, typed as NarrativeItem that took the class name as a string and returned the appropriate item. You'd have a reader class specific to each tag and register them with the factory so it knew what objects mapped to what strings.
Really though, life's too short. Getting all that working and debugged is a task in its own right, and for something as minor as this, it just isn't worth it.
Of course, all that may change as the code evolves. For now though, we'll go with the old-fashioned approach.
[Test]
def load_background2():
source = detab("""
<scene name="GameStart" default="" desc="wibble wibble">
<narrative name="waking_up" desc="In which our hero ...">
<image path="data/images/foo.png" />
<image path="data/images/bar.png" />
</narrative>
</scene>
""")
sr = StringReader(source)
r = XmlReader.Create(sr)
scene = Scene()
scene.load(r)
/*
* make sure we have a narrative
*/
Assert.AreEqual(1, scene.narratives.Count)
/*
* get the narrative, check the name
*/
n as Narrative
n = scene.narratives[0]
Assert.AreEqual("waking_up", n.name)
/*
* now - it should have two narrative items attached
*/
Assert.AreEqual(2, n.items.Count)
And that fails: there are zero items in the narrative. Also of interest is an error message in the test output saying "name image not handled". I missed that in the general output chatter when running the app itself.
A bit of grepping tracks that down to the Narrative class:
def load(r as XmlReader):
_name = gatt(r, "name")
_desc = gatt(r, "desc")
while r.Read():
if r.NodeType == XmlNodeType.Whitespace:
continue
if r.NodeType == XmlNodeType.EndElement:
if r.Name == "narrative":
break
continue
if r.NodeType != XmlNodeType.Element:
print "unexpected node type: ${r.NodeType}"
break
if r.Name == "narrative":
break
if r.Name == "snippet":
sn = Snippet()
sn.load(r)
_items.Add(sn)
continue
print "name ${r.Name} not handled"
So I need to add a case to that loop for every tag I intend to read. Tedious, but at least I found it.
Incidentally, that's lousy O-O methodology. One of the basic ideas behind OO is that you have subclasses so you don't need to have ifs or switches like this. The trouble is that this kind of breaks down when you're reading text data.
The OO way to do it would be to have a factory method, typed as NarrativeItem that took the class name as a string and returned the appropriate item. You'd have a reader class specific to each tag and register them with the factory so it knew what objects mapped to what strings.
Really though, life's too short. Getting all that working and debugged is a task in its own right, and for something as minor as this, it just isn't worth it.
Of course, all that may change as the code evolves. For now though, we'll go with the old-fashioned approach.
Friday, 28 January 2011
Shuffling Along
OK, time to look at the shuffle problem. First of all the verb needs to change to "move", if only on the buttons. "Shuffle" takes up too much space. (That said, I'm going to need another row of buttons before I'm done, but that for later).
The thing that stops this being trivial is that we need to be able to shuffle anything from menu choices to narratives.
I think I need some more test cases...
The thing that stops this being trivial is that we need to be able to shuffle anything from menu choices to narratives.
I think I need some more test cases...
Thursday, 27 January 2011
Shallow Bugs and Whoremaster
Well, there are that many bugs in this editing tool, if I hadn't doucmented the test suite as I went, I'd wonder if I ever tested it.
The thing is, short of some complicated and expensive software, there isn't a good way to repeatably test GUIs. (OK, it should be possible to do some tricks with NUnit and reflection, but I've never quite got that to work in practice).
Anyway, the theory is to put the application logic into a dll and test the hell out of that. The GUI code is to be as thin a wrapper around the dll as possible. But the GUI still needs testing - which is what I'm belatedly doing now, I suppose.
On the bright side, the bugs have generally been pretty superficial - which should be one payoff of the TDD phase. There shouldn't be any deep errors in the application logic, because I have tested the hell out of that.
On another note, I'm quite enjoying playing Whoremaster again. One of the drawbacks of developing a game is that somehow you never get to play it. You make changes and you test them, but somehow you stop playing for fun. Having had a break from the dev process, I'm starting to enjoy the game, and in doing so I#m starting to think about what I'd like to do to the source code.
I'm not about to break my sabbatical just yet but ... I'm starting to look forward to doing some work on the program again.
The thing is, short of some complicated and expensive software, there isn't a good way to repeatably test GUIs. (OK, it should be possible to do some tricks with NUnit and reflection, but I've never quite got that to work in practice).
Anyway, the theory is to put the application logic into a dll and test the hell out of that. The GUI code is to be as thin a wrapper around the dll as possible. But the GUI still needs testing - which is what I'm belatedly doing now, I suppose.
On the bright side, the bugs have generally been pretty superficial - which should be one payoff of the TDD phase. There shouldn't be any deep errors in the application logic, because I have tested the hell out of that.
On another note, I'm quite enjoying playing Whoremaster again. One of the drawbacks of developing a game is that somehow you never get to play it. You make changes and you test them, but somehow you stop playing for fun. Having had a break from the dev process, I'm starting to enjoy the game, and in doing so I#m starting to think about what I'd like to do to the source code.
I'm not about to break my sabbatical just yet but ... I'm starting to look forward to doing some work on the program again.
First Or Second Person
I keep alternating between wanting to write scenes in first and second person. So I thought I'd throw the question to the audience, as it were, and see what people think.
Both styles can be effective. The old Infocom style text adventures generally used second person narratives:
And that generally worked. The style was very much based on the pencil-and-paper role-playing games of the time, but you can tell a tale and get the player to identify with the protagonist. Of course you probably need to be a bit careful what words you put in the player's mouth, (and what thoughts you put in the players head!). Even then, games like Curses and Trinity play from the perspective of someone who definitely is not the player, and they still work very well.
Japanese style ADV games on the other hand tend to use first person, at least from the examples I can bring to mind. The dialog tends to be stream of consciousness from the MQ.
Anyway, opinions anyone?
Both styles can be effective. The old Infocom style text adventures generally used second person narratives:
You are in a round room.
> PISS IN THE CORNER
Sorry, I don't understand "corner".You are in a round room.
And that generally worked. The style was very much based on the pencil-and-paper role-playing games of the time, but you can tell a tale and get the player to identify with the protagonist. Of course you probably need to be a bit careful what words you put in the player's mouth, (and what thoughts you put in the players head!). Even then, games like Curses and Trinity play from the perspective of someone who definitely is not the player, and they still work very well.
Japanese style ADV games on the other hand tend to use first person, at least from the examples I can bring to mind. The dialog tends to be stream of consciousness from the MQ.
This is a very strange room I find myself in. It appears to be completely round.I think this possibly works better for ADV text. Second person seems a bit like constantly telling the player what to do. It's all right for descriptive text, as in Zork you have to say what happens to the player as the result of his choices. But then you get a lot more choice per text passage in Zork than you do in any ADV game.
It's all a bit confusing to me. They told me to take a piss in the corner, but there are no corners to piss in.
Maybe I could do it in the middle and claim the piss drained there. Maybe that would work. Or maybe they would see through my ruse and be angry with me.
It is a conundrum.
Anyway, opinions anyone?
For example...
If there's no configuration set up, SceneEdit doesn't always default to the current folder. (actually, it should probably default to the one above on the assumption that it's been called from the tools sub folder.
If you edit the path and change it, the change is not reflected in the textbox
You can click +Narrative from the initial config screen and crash the tool - because the scene isn't set up as yet.
Dogfood, I tell you.
[edit]
Fixed them. Started a new scene, called it "waking up" hit tab ... and it crashed. This may take longer than I'd anticipated.
I think I'll just edit this post rather than spread the debug process over umpteen posts.
[edit]
Too many to log, all fairly simple. One that might take a bit more work: TreeView nodes aren't being set quite right. There's a nasty disorienting jump. Probably the result of a ham-handed fix to an earlier crash problem. (Scene needs to be a NarrativeItem - and I suspect Narrative will also need that distinction).
[edit]
No crash on narratives, but browsing for images doesn't use the game Resource folder as its root - which is the point of the config entry...
... the file browser doesn't do thumbnails for images - have to check the docs for that - I might be using it wrong ...
... and when I do find the image I need, the label in tree view is wrong...
[edit]
Save dialog uses the last image folder as default, which is wrong. Can fix that with two save dialog objects, perhaps. Seems wasteful, but should work.
On the bright side, it seems to be getting usable pretty quickly. There's hope yet :)
[edit]
Never did get around to making the shuffle buttons work...
[edit]
images and chapter headings don't appear to load. They save ok, but they don't appear in the loaded treeview. Let's review those test cases.
Also, specifying the XML file on the command line doesn't work
If you edit the path and change it, the change is not reflected in the textbox
You can click +Narrative from the initial config screen and crash the tool - because the scene isn't set up as yet.
Dogfood, I tell you.
[edit]
Fixed them. Started a new scene, called it "waking up" hit tab ... and it crashed. This may take longer than I'd anticipated.
I think I'll just edit this post rather than spread the debug process over umpteen posts.
[edit]
Too many to log, all fairly simple. One that might take a bit more work: TreeView nodes aren't being set quite right. There's a nasty disorienting jump. Probably the result of a ham-handed fix to an earlier crash problem. (Scene needs to be a NarrativeItem - and I suspect Narrative will also need that distinction).
[edit]
No crash on narratives, but browsing for images doesn't use the game Resource folder as its root - which is the point of the config entry...
... the file browser doesn't do thumbnails for images - have to check the docs for that - I might be using it wrong ...
... and when I do find the image I need, the label in tree view is wrong...
[edit]
Save dialog uses the last image folder as default, which is wrong. Can fix that with two save dialog objects, perhaps. Seems wasteful, but should work.
On the bright side, it seems to be getting usable pretty quickly. There's hope yet :)
[edit]
Never did get around to making the shuffle buttons work...
[edit]
images and chapter headings don't appear to load. They save ok, but they don't appear in the loaded treeview. Let's review those test cases.
Also, specifying the XML file on the command line doesn't work
Subscribe to:
Posts (Atom)


