6 ms·
Writing web-based interactive fiction with Ink
- Kinrany 6y agoPrevious thread: https://news.ycombinator.com/item?id=26761100 https://news.ycombinator.com/item?id=26761100 More past threads: https://news.ycombinator.com/item?id=26763071 https://news.ycombinator.com/item?id=26763071
- helloworld11 6y agoNo thank you. Their interface is nearly garbage when it comes to smooth writing and even worse, that they obligate users to create an account only through the options of their Google account or their Facebook account is simply unforgivable. It's bad enough that Ink itself almost certainly scans all compositions by users for data mining purposes, but to have to then also know that the whole process needs to be done through logins via these two giant personal information parasites is a whole second level of shitting on customers.
- tene80i 6y agoWhere does it say anything about creating an account via Google or FB? Or creating an account at all? (Except for on itch.io, which is a suggestion for hosting rather than Ink itself, and also doesn't seem to require Google or FB).
- helloworld11 6y agoI was obliged to open an Ink account for some text compositions a few weeks ago, and yes, the only way by which I was able to do so was through a Facebook or Google login. There was no other option.
- mattbee 6y agoThis is nonsense on toast. Ink is open source, and they run an instance of the editor etc so you can try it out and publish your own compositions (like Twine). It's a games company trying to make better storytelling tech, they're not data mining anything.
- haram_masala 6y agoRelated topic: how can a writer monetize their interactive fiction?
- indigochill 6y agoThe same way Inkle does: make a game and sell it. Ink in particular (as opposed to, say, Inform7) is strong here because it already supports Unity integration. Heaven's Vault was developed with Ink, and that's a 3D adventure game that happens to have its story branches managed by Ink but the user experience is far from typical IF fare. But you can even make commercial parser games. Anchorhead and Hadean Lands are two relatively recent examples.
- anthk 6y agoCommercial parser? Hadean Lands and Anchorhead (the commercial edition) are just gblorb/glulx, a rehash of the Z-Machine with 32 bit capabilities. Said this, I'd like people knew Inform6 more, among IBG.pdf (Inform's Beginner Guide) and DM4.pdf (Inform6's manual). The language is dumb easy. It's object oriented (almost literally, you declare in-game objects as... objects with properties), and the games can be run on legacy machines fastly, such as Amiga/Atari/68k Macs. Here's an Inform6 libre game to start with: http://www.amirrorclear.net/flowers/game/devours/ http://www.amirrorclear.net/flowers/game/devours/ Also, I forgot: There's Puny Inform, a reduced subset from Inform6 with few changes here and there in order to create games targetting the 3th version of the Z-machine. Thus, the games will run anywhere, even on the C64, Spectrum, MSX, BBC, Linux, OSX, Windows... everywhere. https://github.com/johanberntsson/PunyInform https://github.com/johanberntsson/PunyInform Example on a commercial Z3 game: https://hlabrande.itch.io/tristam-island https://hlabrande.itch.io/tristam-island A libre one (Calypso): http://microheaven.com/ozmoo/games/calypso/calypso.z3 http://microheaven.com/ozmoo/games/calypso/calypso.z3 https://github.com/dave-f/calypso https://github.com/dave-f/calypso
- fwip 6y agoCommercial (parser games), not (commercial parser) games.
- Kinrany 6y agoInk distinguishes itself from other similar languages by having an ecosystem of libraries and tools, instead of being a single standalone editor.
- xcambar 6y agoI have some rather complex technical documentation and guides to write, and this strikes me as the perfect tool for this purpose. I'm starting over tomorrow.
- disposedtrolley 6y agoCan you please report back on your progress? I love to see novel approaches to technical documentation that can make the content more digestible.
- mathgladiator 6y agoI've had similar thoughts in the past with blogs. Make more controversial opinion pieces require readers to indicate their concern and feedback, and then address inline. This way, I can understand the percentage of readers that bounce after reading the headline or don't engage too deep.
- indigochill 6y agoI have in the back of my mind to do the same. I think there's a ton of potential there, because you can pack a lot of nuance into an experience where only the nuance the reader actually cares about is surfaced. Additionally, doing the research to support objections both enhances your own understanding of the situation and shows the reader that this is an avenue you've considered. There's one UX wrinkle I haven't sorted out yet, which is that I would ideally like to let readers propose new branches to support rebuttals/perspectives I didn't consider in the initial draft. Probably the cleanest way (particularly in my case, because the source is open) is to request PRs on the Ink script with new branches. But non-technical readers are unlikely to be comfortable working with PRs, even in a language as approachable as Ink. Well, and a second, which is that in my ideal UX for something like this, I'd like support for explorable models (like in Jupyter). You could probably merge Ink and Jupyter because Ink's Javascript integration is open (I added support for "choices" that behaved as hyperlinks in my portfolio site linked above). To that end, these days I'm exploring hacking the Godot editor into a browser of "model-driven documents", but life is busy so progress is slow.
- leafmeal 6y agoDoes anyone know of an examples of stories/games made with this? Not like a full on game like 80 Days, but something like what you could end up with after following the tutorial? I want to show this to a friend and I think an example would help give them an idea of what's possible. Edit: Someone wrote a "portfolio" for their personal website which is pretty cool https://news.ycombinator.com/item?id=26765367 https://news.ycombinator.com/item?id=26765367 If anyone has any narrative examples that would be ideal.
- mwcampbell 6y agoI'm happy to report that this Ink-based portfolio is accessible with a screen reader. I wonder if Inkle ever plans to switch to web technologies for their full-blown games, instead of embedding Ink in a game engine.
- kej 6y agoThere are lots of examples of varying complexity on GitHub: https://github.com/search?q=extension%3Aink&type=code https://github.com/search?q=extension%3Aink&type=code (A few of those are false positives because someone made a personal scripting language called Ink, but most of them appear to be the interactive fiction from this article)
- Zanni 6y agoI've got one up [0] at the Spring Thing Festival of Interactive Fiction [1] that's a pretty straight-forward example of Ink. [0] https://www.springthing.net/2021/play_online/CopperCanyon/index.html https://www.springthing.net/2021/play_online/CopperCanyon/in... [1] https://www.springthing.net/2021/index.html https://www.springthing.net/2021/index.html
- Avshalom 6y agoIt takes a few steps to get there but this is their own example game: https://github.com/inkle/the-intercept/blob/master/Assets/Ink/TheIntercept.ink https://github.com/inkle/the-intercept/blob/master/Assets/In... ETA: here is a Cloak Of Darkness in Ink https://github.com/micabytes/mica-ink/blob/master/sample/cloak_of_darkness.ink https://github.com/micabytes/mica-ink/blob/master/sample/clo... which can be compared to other languages http://www.firthworks.com/roger/cloak/ http://www.firthworks.com/roger/cloak/
- anthk 6y agoTBH these games are just fancy CYOA books; a lot of them could be just edited as PDF/EPUBs with a little notebook aside and they could work the same. Text adventures offer far more depth and gameplay choices and freedom to roam aorund.
- Zanni 6y agoYou're severely underestimating the complexity of choice-based games. Ink, for example, is Turing-complete (it features variables, looping and branching. (As is your description of "fancy CYOA books," for that matter--take the PDF as the rule system and the "little notebook" as the tape.) I recently wrote an Ink-based game that, among other things, allows you to swap out one of the main characters based on an early choice, necessitating swapping out names, pronouns, behavior and dialogue throughout. You could manage this as a PDF, but you're looking at an exponential explosion in length. Much easier to handle it with variables, subroutines and text substitution.
- anthk 6y ago>Ink, for example, is Turing-complete So it's PostScript. But, could you get a game with the same playability and freedom such as Adventure? I mean, roaming around and using objects tryung stuff without being annoyed because of the interface as it happens with hiperlink based games. Because doing that with if6 is dumb easy, you can create better stories with a much higher interactivity and emergent gameplay. On games written with Ink, most games I've seen are as "complex" as the Lone Wolf adaptations for Android. https://projectaon.org/staff/toni/ https://projectaon.org/staff/toni/
- Zanni 6y ago"Interface" is exactly the right word. You're never going to capture the feel of a parser-based game with a choice-based engine because the input is so limited. But don't mistake the limitations of the UI for the potential complexity of the underlying game. That said, if you remember games like The Secret of Monkey Island, they attempted to capture the feel of a traditional text adventure, but they swapped out the parser for a visual interface with a limited vocabulary. I've seen at least one attempt to do something similar with Twine (a traditionally choice-based engine).
- endisneigh 6y agoHow do you handle the exponential growth of things you have to manage with these sort of things? I hear Bandersnatch had a huge issue editing and filming due to the same issue.
- steeleduncan 6y agoThe usual approach for managing complexity is to chop it up into storylets. Emily Short has written a lot about it on her blog [1] [1] https://emshort.blog https://emshort.blog
- rl3 6y agoThe simple answer is very carefully. Deus Ex (2000) had similar issues. The game's story was originally intended to branch much harder than what actually shipped. Still, it's widely considered to be one of the best games ever made, owing in no small part to its emergent gameplay. I think we're going to be entering the era of emergent story soon. After all, AI Dungeon exists today.
- Nzen 6y agoWhile emergent story sounds nice, like Nell's primer in Stephenson's novel "The Diamond Age", suspect we won't see it in the same way we won't see a perpetual motion machine. I was inspired to this conclusion by diydsp's chastisement [0] of pursuing algorithmic music. For me, it's the hope of infinite variety. Infinity, though, is only the purview of Horror and the Holy [1]. More likely, though, my computer would only be as creative as a forty person writers room. It's not to say that couldn't be good enough. They can be derivative, so long as it's of something I've not experienced. For example, I've heard the advice to new roleplaying game leaders to crib notes from tv shows and so on, rather than set themselves the task of refereeing and writing a novel story framework. [0] https://news.ycombinator.com/item?id=26874918 https://news.ycombinator.com/item?id=26874918 [1] https://www.goodreads.com/book/show/1722845.Horror_and_the_Holy https://www.goodreads.com/book/show/1722845.Horror_and_the_H...
- TeMPOraL 6y agoI would hope the answer is, through more advanced building blocks - like variables, procedures, functions; through more advanced abstractions - like sequences, associative containers, maybe even state machines; through means of enforcing and verifying correctness - like a type system, or unit tests. Interactive fiction markup language is a programming language - just with a weird syntax that's tuned for content-rich, control-poor programs. Kind of like SGML/XML is a format good for storing text-heavy, markup-lean data. The same is the case with an interactive movie script. In both cases, your story forms a directed graph[0], and the reader/viewer traverses it. But you don't have to, and shouldn't, write out the whole graph![1] Personally, when I see "managing complexity", I read "writing code". Because, once you look past all the minutiae of programming languages, build systems and computers, this is what programming is - managing complexity. I don't think everyone should be a programmer, but I do hope the concepts used in software development will eventually become common knowledge. -- [0] - Possibly infinite. [1] - For the same reason you don't put your whole program into main() and don't write out conditional jumps as your only control structure.
- fudged71 6y agoLet’s say I wanted the user to import a standardized CSV of their progress (in something like learning, fitness, finances, etc). Is there a way you could easily set the Ink variables based on that input and then create a story (of possible paths forward) from that current state?
- omarhaneef 6y agoFor all the old Infocom/Scott Adams* fans, would it be hard to add graphics? Sounds like it’s text only at this point. *not the Dilbert guy, as far as I know
- WorldMaker 6y agoThe article you are commenting on directly has a section on adding images to web output. Additionally, Ink's script engine has been used inside of even 3D Unity games.
- omarhaneef 6y agoI scanned the article and missed it, so thanks for pointing it out.
- trynewideas 6y agoIf you're using Godot, there's Ink integration, but if you want VN- or character interaction-focused features you can also consider Dialogic[1] if you want a tool with a UI integrated into the Godot Editor. [1] https://github.com/coppolaemilio/dialogic https://github.com/coppolaemilio/dialogic 12-minute tutorial: https://www.youtube.com/watch?v=sYjgDIgD7AY https://www.youtube.com/watch?v=sYjgDIgD7AY
- Agentlien 6y agoAnother great tool for interactive fiction is the Inform7 language[0]. It's very close to natural language, there are many good examples[1] online and I found the documentation[2] easy to read. [0] http://inform7.com/ http://inform7.com/ [1] https://i7-examples.github.io/Bronze/source.html https://i7-examples.github.io/Bronze/source.html [2] http://inform7.com/doc/ http://inform7.com/doc/
- anthk 6y agoInform6 is better if you want something closer to OOP/old-kind programming. Also, if you want to create a non-English game i7 gets messy fast.
- Agentlien 6y agoPersonally if I would want to write something I'd probably just write it in C++. But a friend of mine who's an English teacher had to create an interactive story with Inform7 during his education. I was really impressed how simple it seemed for someone with no programming experience.
- anthk 6y agoC++ would suck for that (and any other language) as Inform6 gives you an object table and a parser for free with lots of object types such as rooms, containers, verbs, cardinal directions... already defined in the standard English library. And the Z machine games can be run everywhere. Declaring some room with i6 it's literally four lines of code: The object name and the internal one, the description upon entering it, a light attribute, and a semicolon.
- supernihil 6y agoHow to resume progress when reading in browser?