Shakedown Attempt Incoming
So I’ve finally had one of those emails. Oddly, it wasn’t redirected to Spam,
oddly. But anyway, someone called “Frasier Glebus” emailed me from an
outlook.com account. I’ve redacted the subject (for reasons that will become
obvious shortly). I wanted to share it with you, Gentle Reader, just to see if
you can see why I was mostly amused by this particular happenstance.
Let’s start with a quote:
Send $1000 in btc to the beneath address: [redacted]*v5cZGYX6Kd Copy and paste it, and remove * from it.
Making an Adventure Game - Part 5.
Previously in this series: Part 1, Part 2, Part 3, Part 4.
So, that’s almost it. There’s just a few more things to do.
The first thing to notice, if you’ve been playing along with the GitHub repo, is that there’s some odd code here and there. It looks like this:
<<click "Would you like to play again?">><<script>>state.restart()<</script>><</click>>So, what’s all that about? Well, it’s not that complicated. The first line just says “The End”. The two single quotes (not double quotes) make the text contained within them bold. You can of course do much more complicated text formatting if you want.
Making an Adventure Game - Part 4
Previously in this series: Part 1, Part 2, Part 3,
So you’ve kept going, and by now you should have all of the text converted. Like any other effort, you’ll have mistakes in there. The basic twee-3 format isn’t complicated, but it is easy to typo stuff. Also, depending on how you converted the original files into text, you may find odd control characters messing up your file. I found, for instance, that because I’d specified that the PDF text extract should keep the layout on the pages all the way back in Part 1, I had spurious ASCII form feed characters at the top of every page. VS Code doesn’t show control characters by default, presumably on the basis that they haven’t really been useful this century, but until I worked out what was going on, I had lots of broken links everywhere.
Making an Adventure Game - Part 3
Previously in this series: Part 1, Part 2,
Let’s crack on with the text!
If you’ve downloaded the git repo, then you’ll also have a folder called “src/”. There’s a file in there called “secrets-pyramids.tw”. That’s the actual game source file. It’s in twee-3 format, which is defined here. If you’re used to formatted text files, like Wiki format or Markdown, then twee-3 format shouldn’t look too weird to you.
I’ve found some conventions useful when creating the text, and some have been forced onto me. Here goes:
Making an Adventure Game - Part 2
Previously in this series: Part 1.
So, you should now have a text file that’s basically the source of the game, and also a bunch of images, which we may or may not use later.
Next up, install the tools. We’re going to use tweego, which is free software available for macOS, Linux, and Windows. So, go to the site and download it, then install it according to the documentation or otherwise. This should install tweego and all of the story formats. We’ll only need one, which is Sugarcube 2, but the default installer installs everything.
Making an Adventure Game - Part 1
So, following on from the lacklustre success of my previous game, I thought I’d have another go. This time, I’m going to work on this project in public, showing what tools I use and what I do all the way from start to finish. So literally the first thing I’m doing is creating the first in a series of blog posts.
The aim is to go from an idea through to a finished product. And so I went looking for a freely-available gamebook. I did some searching, and stumbled across a gamebook called “Secret of the Pyramids”. I downloaded that, and was happy to find that I had a decent-looking PDF.
IAQ: Now 100 Redux
So, some sharper-minded readers may remember back in the dim and distant days of 2013, a certain Red Demigod cheekily asked if I’d still be alive for Now 100, the well known compilation of the year’s best music. I worked out then that Now 100 would come out around 23/11/2018, and said that I should still be alive then. Well, no surprise, I was alive on 23/11/2018. But, how close was my prediction?
Faster, Faster 3 - The Bit I Forgot
So I was recently installing Windows Subsystem for Linux (WSL), because that’s the fastest way to get access to all the stuff that makes Windows machines actually useful for development. It turns out that it’s actually really good — you can install a proper virtualised Ubuntu 18.04 (other distros are available), and then have a Linux workstation on your machine. As part of that work, I installed all of the usual stuff that makes a computer useful. One of those things, of course, is GNU Parallel.
Process Substitution
Process substitution is one of those things that is a very specific solution to a very specific problem. As you probably know, UNIX utilities are generally built so that they filter their input to their output. This lets you build pipelines very easily. Note that this is a UNIX family thing, and won’t work on other systems. For instance, if you want to do one or more transforms on a file, you can do this as a pipeline: