I haven’t coded seriously in almost five years. Actually, seven, and that was writing some testing tools to do log scanning in Perl. I’ve tinkered a little since then– when I was unemployed, I toyed with using Ruby to prototype a startup idea, for instance.
I’ve been writing an interactive fiction game (think Zork) relating to baseball, in which the player is a general manager of a baseball team, and hilarity ensues.
The funny thing is I’m having the exact same feeling I used to have when I was coding, where I don’t entirely know what I’m doing, so I’ll go in and write out the desired behavior, and then in implementing it resort to increasingly ugly hacks until I can get it to work. I can’t figure out how to get a character to only take certain objects, for instance, so for now I’ve got them accepting anything you give them. While it works, it makes me wince to play through when I can give someone two redundant objects.
Or following: for a plot point I need to get someone to follow the player and then stop when they meet someone else. The only way I’ve figured out how to do that is to turn the follow rule off when they’re near the someone else, which works okay, but it’s also not a particularly good way to do it. And I’ve ended up doing a lot of making environmental behavior location-specific to the player and it just seems unsatisfying.
Part of the problem is that there’s no K&R book for Inform 7. There’s documentation and a recipe book that almost but don’t quite ever seem to tell me what I’m trying to figure out. I have a wishlist for things I want to be able to do and can’t yet.
So my process right now goes:
– pick an item off the to-do list, be it feature or bug
– re-write it
– compile (if fail, troubleshoot)
– test (if fail, troubleshoot)
– repeat
It’s slow, slow going.
The game’s 4,000 words now, which I believe would make it the longest post in USSM history if I pushed it out now, and it’s still a ways from being finished.
The really weird thing is that as much as interactive fiction’s been a niche for ages, it’s been a fairly viable one, but I cannot figure out where to get help on this stuff. I joined a list, it’s dead — though the mod approved me that day. I don’t see updates. I feel like I’m wandering around a ghost town where everyone decided to leave in June of 2007 without bothering to pack up or anything.
Even when I was programming in Fortran 77 in college, you could still find other people tasked with the same kind of work maintaining obsolete systems. But this, this is a little eerie. I can’t seriously be the only person writing a text adventure, can I?
Interestingly (to me, anyway) the only place people seem to be actively discussing this stuff at all is on Usenet, which I haven’t used seriously in many, many years. To see that it’s still living on, well… it warms my heart a little.