Talk:FAQ:Is it possible to write your own IF engine

From IFWiki

This is the talk page for FAQ:Is it possible to write your own IF engine. See How to edit IFWiki to find out about using talk pages, and editing the wiki generally.


Something not mentioned here, but probably should be, is VMs. I recommend writing your engine to target a VM such as Glulx or Z-machine; text output and saving/loading will be included, so you need not implement them yourself (you will still need to implement a command in your game to tell it to save, but then the VM will handle saving the game data to files and managing those files). You can do this independently of any standard library. You could write code to compile into the VM code using any programming language that is capable, such as Inform or ZIL, or use an assembler, such as Glasm or ZAP. In other words: Using a VM avoids the issues of game saving/loading, text output, portability, and (to some degree) reliability. You will still have to write the parser by yourself, though. --Zzo38 (talk) 17:26, 18 February 2020 (UTC)