Monday, August 22, 2011

Misc: Why John Carpenter's The Thing (1982) is a perfect Call of Cthulhu scenario



YOUR GROUP
- Your group is physically isolated, possibly on a global scale.
- Your group's location is dangerous and/or inhospitable.
- Due to location, characters or circumstances, calling in the authorities and letting them deal with the situation is either impossible or a very difficult and/or unappealing option.
- Your group are academics or intellectuals, possibly with some blue collar muscle attached.
- Feats of academic skill are 60 - 70 % of defeating the enemy, the rest is brutal violence.
- Even the most practical skills have their limits ("Any way we can fix it?" "It's gone, McCready").
- Vital clues may lie beyond a language barrier, and for want of this nail everyone's lives may be lost.
- Your group may start to die, and once the dying starts it becomes less and less likely that the dying will stop.

THE PPB
- There was another group of people like you out here, but something terrible happened to them.
- Thankfully the Previous Poor Bastards (PPB) were copious, some might say obsessive note-takers, diarists and photographers, although some of their evidence may be for one reason or another outside your powers of interpretation.
- PPB research is always intriguing : "Seems like they were spending a lot of time at a little place northeast of their camp about five or six miles." If you ever hear anything like this, run.

YOUR ENEMY
- Your enemy, although possibly out of place, is vastly more intelligent than you.
- Your enemy leaves crime scenes and horror in its wake, narrative tableaux of desperate struggle followed by savage death.
- One of your early encounters with your enemy may be in the form of a corpse like no corpse you have ever seen before.
- The bodies and attitudes of discovered murder victims may be unintelligble at first, as though the crime were committed by a madman . . but this may not be the case.
- Your enemy can spread, like a virus, and corrupt even those closest to you.
- Your enemy, if somehow allowed access to and power over a sizeable human population, could spread quickly enought to engulf the Earth in short order.
- Compared to you, your enemy is very, very old.

THE GOOD NEWS
- Your enemy may be ultimately immune to physical harm, but in the cases of your enemy's incarnations and manifestations, things like fire and shotguns can be key to turning an unmanageable situation into a mangeable one.
- Fire is a language that everyone understands.
- When in doubt, burn the place to the ground.
- There can come a time when killing any (or every) other member of the party is the sensible, sane thing to do. ("What if we're wrong about him?" "Then we're wrong.")
- This is usually accompanied by the realization that one should probably kill oneself as well, followed by the brilliant realization that one actually needn't because "I know I'm not one of them!"
- Only knowledge of the odds allows for true heroism: "we're not getting out of here alive . . but neither is that thing."
- Dynamite is a language everyone understands.

REASONS AGAINST
It would be tough to keep any experienced players from wising up to the dog long before it got to spend time alone with anyone. That's the only thing that bugged me, even for 1982, wouldn't there have been enough general awareness, especially among scientists, of infectious diseases to where if you saw some Norwegians out on the ice frantically trying to shoot a dog with a sniper rifle, you might at least entertain the idea "escaped lab animal" before giving the dog the run of the place . . ultimately it doesn't matter, due to what happened in the kennel, if it couldn't have got to any humans quickly it would have gone for the other dogs, but that's assuming they captured the thing rather than going with the other option of considering the obvious frantic intentions of their fellow scientists who were burning helicopter fuel many miles from home in order to shoot the dog already.

Inspired by this video:
http://www.youtube.com/watch?v=SppG-I_Dhxw&feature=channel_video_title

Sunday, August 21, 2011

Test Driving The Rodent



I'm sitting here looking at this thing and wondering if I'm really going to take Solar Trucker apart and put it back together again using Chipmunk physics instead of Box2D. For some reason I was unable to get a proper handle on adding and removing objects to / from the screen in Box2D, I was constantly crashing the thing. I switched over to Chipmunk and hit upon a method that I think will give me all the behaviors I need, in a way that I find more intuitive. I recognize this might not be the best way to choose technologies, but look, one of the problems with using a very new SDK (MOAI in this case) is that while you may have documentation, you don't yet have this massive pool of amateur developers and their tales of workarounds, abandoned projects, successes, pet peeves, etc. that you would get by working in something like Flash or even Unity. Thus I end up spending way more time tinkering around in test beds like this one than I do actually working on the game, but supposedly this how you get good, so I don't really have a problem with it.

  So I'm 90% ready to make the jump, but switching physics engine midstream is kind of like trying to replace the transmission of a moving car. It makes a lot more sense to me to just rebuild the game around the Chipmunk implementation I have for this demo. At least I know it works, and how long could that possibly take, right?  


Right?

Monday, August 8, 2011

I Was Just Resting My Eyes


I should take a minute to post about what's been going on, as stuff is indeed going on. I was on my way to a family reunion a few weeks ago, killing time at the airport and started thinking about how I would use the MOAI system to create the classic player rotation movement of Asteroids. Well, one thing led to another and here we have a screen from Solar Trucker.  I'm getting fairly close to having the gameplay basics solid, but there are still some real problems with my rotation and "thrust" code.

For the thrust I am keeping the player at center screen and moving a starfield behind him, and that's the new second-iteration choice, I originally had the player floating off one end of the screen to appear at the other. I'm grappling with Box2D, which is one of a few physics systems MOAI implements natively. Moving objects with Box2D gives the movement a very smooth, kind of weighted quality that I like, but I haven't been able to get the amount of speed I want out of the code, regardless of how I tweak the mass of objects. It's a big library and I'm sure the solution is in there somewhere. I've been simultaneously messing around with moving things just by animating their "props" around with the native movement functions, and under that model it's easy to get that starfield flying by, but the handling is god-awful and really, why not use Box2D when it's right there at hand?
One of the most difficult parts is going to be knowing where to stop. Every day I think of another cool feature, but the most important thing right now is to get the very basics working and presentable. My homegrown rotation matrix works surprisingly well most of the time, but I just know I transposed a couple of digits somewhere, the player's bullets will occasionally float off sideways. 

Wednesday, June 29, 2011

How I Done It

I got the example code compiling properly and I can move on. In order to get here, I had to:

#1. Add the paths to DirectX's Include and Library directories to the solution's property sheet

#2. Change the name of the file "dxerr9.h" to "dxErr.h" because "dxerr9.h" has been deprecated since the time the book came out

#3. Change this:

for( DWORD i=0; i<m_dwNumBuffers; i++ )

to this:

DWORD i;
for( i=0; i<m_dwNumBuffers; i++ )

#4. Make a copy of "dxErr.h" in the same directory and rename the copy back to "dxerr9.h", because apparently it needs both versions? OK, sure.

This kind of mess is starting to not surprise me anymore, I wonder if that's a good or a bad thing. Also I shudder to imagine what this would have been like in the days before you could Google for any conceivable output error.

Tuesday, June 28, 2011

Dearest Microsoft . . .





. . . I've tried, really I have. Note: this post will not be full of triumphant useful goodness so feel free to skip.

I've recently had an opportunity to pick the brains of some folks making games with a lua-based framework, and it became quickly apparent that my innate lua skills ("It's like Python, right?") were just not going to cut it, so I started looking for some Dead Trees to inspire and educate me. Game Development With Lua (Paul Schuytema / Mark Manyen) looked like just the ticket, and I ordered it from Amazon with high hopes, ready to dive in.

Great book, none of my issues are the authors' fault, but . . I didn't realize that in order to follow along with the lua game-making tutorials, the reader should know his/her way around C++, as you need a C++ project to be the code base for implementing lua logic. *Gulp* but OK, not entirely unexpected, and thanks to XNA I can find my way around a Visual Studio project without being totally lost. Fine and good! Let's load up the source code from the handily-provided CD, build it, and start scripting!

VS needs to convert this 2005 code, again not much of a surprise, things move fast in .NET land. Let it do its thing.

Oh, it needs some DirectX SDK files, OK, we'll grab the installer for that.

Hm, when I build the book's projects, they aren't finding the DirectX files they need, even though I have the DirectX SDK installed . . looks like a job for the internet!

OK, cool, other people have had this problem. Looks like I just gotta add some paths here, change some settings there . . .

No, huh? More internet sleuthing . . .

Oh, searching on the error messages tells me some of the code from the book has been deprecated! Some helpful devs have offered workarounds and substitutions, which would be great if I was comfortable and fluent changing, updating and repairng C++ projects on the fly.

Oh yeah, if I was comfortable and fluent changing, updating and repairng C++ projects on the fly I would probably be employed as a programmer and wouldn't be doing any of this.

Look, I love to learn, but every time I get an error in a Microsoft product I have to descend into a thicket of internet rumor, conjecture, and neckbeard know-it-all-itis, and I did so for hours upon hours and still can't build the project that will allow me to practice my lua.

Here's the thing: as smug as the experts might be about this, its a problem. I feel like there is an attitude in the video games industry that says that anyone who could not solve this set of problems trivially has no place in a pro studio and should "go back to school and get a CS degree". I see this attitude all the time online, and my experience tells me it holds true in the Real World.

And yet at the same time, gamers gripe and complain (and rightly so) that characters are one-dimensional, plot twists lack credibility, dialogue is stilted and wooden, "story" is either unsatisfying or completely absent.

If the barrier to entry includes endless navigation of arcane, badly versioned, poorly documented development software like Visual Studio Point-Oh-It-Doesnt-Work-With-Last-Years-Code, then yes, the only people qualified to work in video games are going to be hard core coders with the skills to plow through this bullshit and find a working solution in this mess of broken crap.

Some would say that's a good thing, but I don't think so. The industry has suffered because writing and design is done by people who are hardcore coders, with no skills or experience in writing or design. Why? Because they are the ones allowed in the door. I'm motivated, I have a killer work ethic, I'm smart, and I'm fucking stuck because the example code in a five year old book doesn't work anymore. Thanks MS.

Monday, June 13, 2011

I'm an object factory (a lua poem)*

I'm an object factory ( parameters )
   
    I make a new Prop2D or whatever when the factory is called
        with ( parameters passed in )
    end construction
   
    I give each one of these created props some built-in abilities
       
        maybe it can modify its own appearance
        then delete itself
        and instructions about how it behaves in a thread (self:stop)
       
        maybe it can blink, or spawn other objects
        or who knows what
        and instructions about how it behaves in a thread (self:stop)
       
    end built-in abilities
   
    I'm the main function for any given instance of the prop built in this factory
        in certain circumstances, I may
            execute one of the built-in abilities described above
        or in other circumstances I might
            change some quality about myself, or create or delete a quality,
            or who knows what
        end circumstances

        when I'm done I'll pass control to another process until it's my turn again
        I could also return some information about my current state       
    end main function
   
    Here's the thread itself
    Please run this thread now
   
end factory


*have I finally gone off the deep end?

Monday, June 6, 2011

WHY U NO UPDATE BLOG?

I have put Skeleton Wizard aside for the moment! I know that's a bummer, I feel a dull ache myself every day I'm separated from the Purple Dude. As fate would have it though, my dev energies have been diverted down a different path, just for a short time I promise . . . if I'm able to get a handle on this new thing I may have to port my work so far.

I'm talking about a lua-based game development system called MOAI that I'm trying to learn by creating clones of some simple old games. More on MOAI later, but lua itself is kind of dumbfoundingly cool - while trying to pick up some basic concepts I resorted to just kind of typing in what I basically wanted the program to do, with some loose approximation of the syntax in some example code, and it just works, this is from somebody with less than a year's programming experience and I feel like I can talk to lua like it was my college roommate. Fundamental quality of the language, or just a sign that I'm getting slightly less dumb about code conventions? Little of both?

So I'll be modeling paddles and such for a bit. Been watching some youtubes about classic games from this guy Matt and I'm psyched to make something like the Atari Adventure, just so abstract as to be almost totally incomprehensible . . . I mean, how the hell did anyone ever figure out what was going on in that game?