FyreVM

From IFWiki
Revision as of 19:30, 16 October 2014 by David Cornelson (Talk | contribs)

Jump to: navigation, search

FyreVM is Textfyre's interpreter library for the Glulx virtual machine. The library was written by Jesse McGrew in C#, which can be compiled for .NET/Mono/Silverlight/Windows Phone/Windows 8 Store apps, so FyreVM can run on Windows, Linux, and Mac OS X. Customized applications based on FyreVM are shipped with Textfyre's commercial games, and since May 2010 the library is also available under the MIT license. The source code is now hosted at Github.

The interpreter implements the Channel IO system instead of Glk, so it is only compatible with games that were compiled with FyreVM in mind. Inform 7 games can be made FyreVM-aware simply by including a library extension, allowing them to run in both FyreVM and Glulx interpreters using Glk. The channel system separates the game play functionality from the input and output constructs so that a custom interpreter can be created for each game. Output is delivered from a FyreVM game in the form of a NVP (name-value pair) list. Default channels include MAIN (for the main text), SCORE (for the current score), TURN (current turn), LOCATION (for the current room name), and more. Custom channels can be created with a few lines of additional code. Directing output to a channel is done using a simple Inform 7 phrase:

Every turn:
   select the chapter channel;
   say "[chapter name]";
   select the main channel.

Road Map

FyreVM is now open sourced under an MIT license and can be used in any type of project without any additional license or permission.

David Cornelson has stated that the next release of FyreVM will be in JavaScript, using the Quixe implementation and replace Glkote with a Channel IO module. Following the success of that work, a templated build system will be created using AngularJS to help authors create customized games with varied artistic characteristics.

Links