Tuesday, April 29, 2008

Blade and Interactive Visual Novels

I have it in my head to make a simple adventure game, and it seemed to me that the easiest way to do it would be to make it in the style of one of those Japanese games that's mostly portraits and text. To that end, I found a free piece of software: the Blade Engine.

Aside from the way it stamps every screen with its logo, at first glance it appears solid enough. However, if you look at it, it's not very well done, not very modern.

It has some very strange scripting restrictions. First off, the scripting language is very strange in and of itself - you can see that clearly in the manual. It appears to be inherited from 1991.

What you might not be able to see so clearly is that every choice you offer the player requires a new script file to represent the result. So, if you had, say, three things for a player to look at in a room, each would require its own file. A file which is, in all probability, five lines long. If you have thousands of choices, you end up with thousands of tiny text files, all in the same directory, not organized by any force other than your naming convention... for a nonlinear adventure, that's pretty much a death sentence.

Also, it does not appear to support any kind of subdirectories, custom functions, etc. The pay version doesn't seem to have any superior layout, although they have a file packing system which would probably solve the problem that anyone playing your game could easily go and edit the scripts, if they could figure out the primitive scripting language.

Variables cannot be named, but are instead the numbers from 0 to 99, as in "@[1]=9" sets the first variable to "9". This would require a confusing lookup table to remember which variables correlate to which events in the game, and I find my planning comes dangerously close to 99 variables as it is...

No loops, no switches, barely an "if" structure...

Moreover, the graphical display is extremely limited. For example, you cannot have a character built of layers - body and expression separate. Or, rather, you can, but there are only three layers in total, so you'd be limited to a single character on screen at a time. A layer can only load one image at a time...

Okay, okay, I get it, it's just for interactive novels, it's not intended for such complex games.

What is?

Flash? Am I going to have to forever build the guts of the various interfaces anew with each project?

I know there are some oldschool adventure game programs that allow you to graphically edit the rooms and so forth, but I'm not looking for something with that much animation. Maybe one of them could be used, ignoring all of the "walking" nonsense?

Maybe I should try Game Maker after all?

Anyone have any experience making games this simple?

The Legendary Brain Fuck

Oh, um, language NSFW warning... better late than never? I'm swearing, because that's what it's called. It's called a brain fuck. I don't think I've ever called it heard anything else.

One of the things I like to hear players say, probably third behind "that was fun!" and "let's do it again", is "what a total brain fuck!"

They don't mean the "urban dictionary" definition of brain fuck, which I'm pretty sure I've never heard used in real life. These players are talking in the "Evangelion" sense, where something has such radical twists and surprises that the gray matter makes a little "squeee?" sound and seizes up.

This happens often enough that I have learned to look at it as several different kinds of brain fuck. (At this point, reading this aloud on TV would have cost you about a hundred thousand dollars.)

The first kind of brain fuck is what I call the "non-sequitur fuck". This is when you do things that make NO sense and do not fit in at all. An example of this might be if you're playing a fantasy game and then, out of nowhere, the Borg land. I consider this the lowest kind of brain fuck, but done right, it can be hilarious.

The second kind is what I call the "big twist fuck". This is when something unexpected happens (or something expected doesn't happen), but it's not random. It makes sense, it's just very unexpected. This is that Evangelion fuck that was so popular way back when. I don't particularly care about this kind of brain fuck, because it's very easy to do and lacks finesse. It's kind of a "cheater's murder mystery fuck", in its way. Many of the most popular TV shows among the SciFi crowd use this all the time: BSG is written with exactly two in every episode, as far as I can tell.

To me, the highest order of brain fuck is called the "twisty pathways fuck". This fuck is built into the very nature of the game or show, such that when it is revealed, the audience realizes there was no way it could have ever gone any other way, even though they'd never thought of it. I try to incorporate this into every game I make via the rules: players never really understand the social implications of rules until very late, so it's surprisingly easy to do. For example, a good Star Wars game is built so that the rules of the Force make a surprisingly graceful, inevitable slide into the dark side that will surprise every player without seeming forced or arbitrary. You don't really understand "falling to the dark side" until you've experienced it in such a way...

Some shows (such as The Matrix) seem to have a twisty pathways fuck, but in fact do not. They just have big twist fucks that are based on their nature. That's definitely lower order...

Anyway, what makes you cry "brain fuck"? Do you like this sort of thing?

Monday, April 28, 2008

Music

I've written a lot of on-topic essays and thrown them all away. Here's an interesting but random, pointless one. Edit: It has been pointed out that this post might be total crap. Lemme know what you think!

Something about me you might not know: I really love music. I'm one of the people who gets a physical reaction to music - certain songs make my skin prickle, and not in a figurative sense. I always associate it with good music, and it only happens when I'm focusing on the music. The more prickling, the more I like the music. I couldn't really tell what caused it, all I knew is that it always starts somewhere a chunk before or after the middle of the songs in question.

The point is golden proportions in music.

Yeah, a little investigation. It turns out that almost every song on my hard drive that makes me prickle has its central shift at 62% of the way into the song, or at 38% of the way, plus or minus a bit. I don't think this is just chance, because many of the songs that don't cause me to prickle don't time this right, and the more off they are, the less I prickle.

For example, Chrono Cross: Time's Scar. A game I didn't even like, but man, I love this song. It fires up proper at 57 seconds in, out of 149 seconds. 149 * 0.382 = 57. Kwoon's "I lived on the moon" - the only song of his that I really like - is 272 seconds long. It switches gears at 105 seconds. 272 * 0.382 = 104.

It's not just weird songs. Even good rock songs...

"Heavy Fuel", by Dire Straits, is a song I love, but it doesn't make me tingle. It's 301 seconds long. That gives 114 seconds in, or 186 seconds in. There is a shift, but it's nearly ten seconds late and not the big shift in the song.

"Sultans of Swing" is a song that does make me tingle, but only a little bit. It's 350 seconds long, which means we should have a big shift at either 134 (2:17) or 216 (3:36). The solo starts at 3:30, which is a significant error even in a song this long, which would theoretically explain the smaller reaction. :D

"Footloose", a song I'm not proud tingle to, is 229 seconds long. It should shift at 87 (1:27) or 142 (2:22). Yeah, the song shift is at precisely 2:22. Like Sultans of Swing, it's not a big reaction, but since the song shift culminates fifteen seconds later, I would probably consider that to be what "should have been" at 2:22.

Cake. I hate Cake, but I can't help listening to them. The Distance is 3 minutes even, 180 seconds. 69 seconds or 111 seconds. There's a major shift at 67 seconds, and another at 110 seconds. Actually, the last two seconds of the song are silence, so it's an even better fit. That cannot have been on accident...

White Rabbit doesn't make me tingle, but I love it. It's 153 seconds long, so 58 seconds or 95 seconds is the theory, but since it doesn't make me tingle... the shift is at 85 seconds, very early. The peak is at 105 seconds, very late...

It's definitely true that I have a much stronger reaction to songs that peak at the late ratio (0.618) rather than the early ratio (0.382). I haven't included many examples here, because they're mostly game music or really obscure music. I wonder why?

Interesting, at any rate. It's a strong correlation: I think I have a strong reaction to the golden ratio! I bet there are miniature examples, too, like golden ratios within a progression or golden ratios of frequency... it's interesting.

How about you?

(Warning: If you're going to check timing yourself, VLC gets the time marker wrong if you jump to a position in the song... or, at least, it gives a different time reading than if you play from the start.)

Friday, April 25, 2008

Organic Farming

I'm brewing up a post on player connectivity, but here's something that really pisses me off. (Obviously, this is a rant.)

I've been reading up on sustainable farming, because I have a freakishly boundless curiosity. A lot of it is really interesting, and in America there's a huge crossover between organic and sustainable, to the point where there's really no clear dividing line.

It's pretty interesting. For example, to qualify as "organic", they can't really use normal methods for killing pests and treating diseases.

On the crop side, they got really clever: by switching up crops and planting at selective times, they interrupt the pest cycle and keep diseases from taking root. For example, a given kind of weed can be prevented from invading a fallow field by planting a fast-growing ground cover crop just before it might start (which also increases soil organics). Insect pests have similar solutions, plus the addition of nonharmful predators and competitors such as ladybugs. Once the populations and rhythms are established, the problem is apparently fairly manageable without any pesticides at all.

On the animal side, especially with cows, diseases are what you would expect to be trouble. It turns out that "organic" cows don't really get sick very often, because their conditions aren't so bad. So, that's good. Except, get this: they can't use any antibiotics on any of the cows, ever, or lose their "organic" certification.

While this is worrisome, they say that treating them homeopathically tends to work. They've said this multiple times in the papers I've been reading.

I can't... There is no emote... MUST I TYPE IN CAPS TO SHOW MY ANGER?

Stop getting your idiotic woo in my research.

What they mean is: "well, we give the cows plenty of water, and they usually get better on their own. Oh, and we pay through the nose for some useless sugar pills because otherwise those poor homeopaths would be diluting poison for no good reason!"

Similarly, you're not allowed to use any "genetically modified" crops if you want that all-important "organic" label and the 200% price increase it allows.

Now, admittedly, the majority of genetically modified crops (not counting the ones grandfathered in, such as every crop on the face of the planet) are modified in ways which really don't help a sustainable farm much. Most of them, for example, are simply herbicide/pesticide-resistant... immune to things these farmers won't use.

But there are a lot of modified crops that are good! Some metabolize specific soil contaminants, some provide specific vitamins, some are engineered to survive better in climates they aren't accustomed to. More are coming out every year, and this will only accelerate as we understand the genetics better and can do modifications cheaper.

Why a blind, flat ban? It's another case of woo!

Sustainable farming is a valuable field of research that can benefit everyone in every society across the world. I will not have everyone in every society across the world believing that homeopathy works, or that all genetically modified crops are magically bad.

Arrrrrrgh!

Wednesday, April 23, 2008

Nonexistant Words are Important

This is kinda a futurism post, because it's just so nice outside!

I am one of those people who believes that language affects thought.

I don't really believe you think in language - I don't, so I don't see how I could believe in it - but I believe that the same circuits that allow you to speak the way you do also allow you to think the way you do. IE, your brain optimizes for your language, and operates that way even when not doing languagy things.

So I like invented words. I like assigning a word to whatever I'm talking about, even if I know it will never be used again, because it gives me a symbolic representation of the whole concept. I can attach to that word, fasten meaning to it, and measure it against the rest of the universe as I know it.

That's one of the reasons I really liked Douglas Adams.

Douglas Adams was very good at concepts which exist, but aren't generally recognized. Both important things and unimportant things and things which appear to be one but are actually the other. A few of his books - such as the Meaning of Liff - are literally just stacks of fake words used to describe things we all know but never notice or think about.

There are a few more communal efforts to do this sort of thing - some good ones that start with "A" are: Adelphia and Arrowsic.

(There isn't a word, as far as I know, for "examples limited to the first bit of data because the 'researcher' writing the report is too jazzed up to read all the way through before posting." I'm taking suggestions. I'd choose "Springfield", but I think it already means "to use a generic example that seems to be one of a strong set of examples, except that not only does it not exist, the strong set of examples also does not exist.")

I think these kinds of exercises are important, because I think culture and society are going to become increasingly splintered and unstable. Right now, cultures and societies are horribly bad at talking about themselves, and even worse about talking about other cultures and societies. I think that needs to change.

I think if every society in the world came up with these kinds of words based on the cities, places, and people around them, we could learn an awful lot about how people think differently... I think, even without any other reason for it to exist, that would be a very good reason to do it.

I would like to do it myself, as a representative of the armchair nerdcore. So here are some examples from New England which may or may not clash with pre-existing Liff-words. As usual, my meanings are based more on the sounds of the city name, not the actual nature of the city.

If you have any personal examples from anywhere, post them!

Framingham: Any arguer who approaches an argument with no intention to even understand the other side's commentary. Implies a lifelong pursuit of this activity.

Taunton: To explain an argument, position, or worldview by confidently misquoting something.

Woonsocket: To do something fun while explaining that it's for the better good, really. IE, defining "woonsocket".

Worcester: Something that has strayed so far from its origins that it has no real similarity to them and no useful purpose in its present form... but it refuses to die.

Tuesday, April 22, 2008

Hulu

If you're producing some little, direct-to-internet show, please do not release it on Hulu.

Nobody outside the US can see anything, and lots of us in the US aren't willing to watch their player because we have this little thing about using something that plays ads at us.

I understand that Hulu is a good alternative for major broadcasting corporations who are terrified of actually changing the way things work. It's a good balance between the third millennium and a terrified fear of losing your status as top dog.

But I notice some content (such as Phil Plait's stuff) is not produced by major studios. Why are they releasing on Hulu?

I can only presume they were suckered in by an aggressive marketing campaign... much to the detriment of everyone who isn't a US citizen.

Anyway, what are your thoughts on Hulu?

Friday, April 18, 2008

Choices Again

So, Brenda Brathwaite posted on choice frequency.

I've posted on this subject before - although my essay is now lost to the winds of fickle hosting services, so I can only reference a tangential post.

Basically, I agree. I thought I would explain my theory on the matter, since the original essay is gone. GONE! Sob...

I don't think it's simple frequency. I think that the choices also have to (A) be actual choices, (B) change the game state in a significant way, and (C) be partially reversible or repeatable. "Meaningful", yes, but I define that a bit more complexly.

For example, if you're on a map, choosing whether to move left or right at any given moment is a meaningful, frequent choice. Moving one way brings you closer to some goals and further from others, moving another way does the opposite. Reversing your path is usually possible, but takes time.

Similarly, if you're playing poker, you're faced with numerous opportunities to make very meaningful choices. Bidding, just as a most obvious aspect. Bids can't be taken back, but every hand, you get to try again. There certainly are "make or break" hands of poker, but they're very unusual.

As a final example, you have games like Rock Band. It may feel a bit odd to say that a song beat is a "choice", and I think "choice" is probably a bad term. I... really hate the word "choppertunity"... but I think it's better than "choice". Maybe "option"?

Anyway, Rock Band sends these notes sliding down the neck towards you, and you hit them. You're not making "meaningful choices" between hitting the notes and letting them slide by. It's a skill test. But, fundamentally, I think that the basic play properties are the same as choosing which direction to go on a map. Frequent, repeatable opportunities that change the state of the world.

As an example of how not to do frequent choices, you can see modern dialog trees. You know, a kid says, "hey mithter, you got anything to eat?" and let you choose between "KILL HIM NOW!" and "Give him your life savings!" twenty times an hour.

Not only are these choices not frequent enough, they aren't even really choices. Nobody is constantly wavering between dark and light. These are paths that they choose at the beginning and stay with for the whole game. So the "choices" really aren't choices at all.

So, yes, I agree with Braithwaite, and I guess I don't have much to add.

...

Um. Have a nice day, I guess?