chicagodave / fyrevmweb-react Goto Github PK
View Code? Open in Web Editor NEWFyreVM Tools, Projects, and Extensions for Glulx-Typescript Inform 7 stories
FyreVM Tools, Projects, and Extensions for Glulx-Typescript Inform 7 stories
I've never worked with TypeScript, so this isn't really pull-request quality. However, I did hack a change in, you are welcome to the source code: BroadcastGames@9e67fdc
I was able to use
parchment/game2js.py --giload CloakofDarkness.ulx
Paste the relevant output into a javascript var named gameDataBase64, and call
manager.LoadStoryBase64(gameDataBase64);
Seems to work. This allowed me to run without a web server and now use file:/// references to the index.html
With the new open source release of Inform, the FyreVM Core extension will need to be rebuilt.
The current code is too invasive and not loosely-coupled. It needs to be redesigned to retain fyrevm-web as a separate library from this code.
Hi. Thank you for sharing and open sourcing your work. Not sure where to start, but here goes.
I did a git checkout. The Cloak/index.html seems to want FyreVMWeb.js - so trying to compile it.
cd fyrevm-web/projects/Cloak of Darkness/javascript
tsc FyreVMWeb.ts
produces errors for me:
glulx-typescript/Output.ts(79,7): error TS2341: Property 'image' is private and only accessible within class 'Engine'.
I also note that
projects/stop-the-ifpress.fyrevm/FyreVMWeb.ts
projects/Cloak of Darkness/javascript/FyreVMWeb.ts
Are not the same. I'm sure more questions coming. Just wanted to get the ball rolling. Thank you again.
EngineWrapper.ts
throw new Error("Illegal state, engine is not waiting for line input");
The offending Inform 7 source code line seems to be:
pause the game;
Maybe it's a good idea to change the specifications / docs on the engine so it doesn't return undefined for things like "mainContent" and would return empty string instead? That way it's just empty or populated and no need to have a third state of undefined.
Take it as a suggestion / discussion point.
Start with this game's Inform source, add the 3 Includes for FyreVM https://github.com/I7-Standard-Examples/Damnatio
This game works very well on fyrevm-web, Inform 7 generates a solution.txt you can use as a walkthrough. However, I observe that the formatting of the Time: on the Status is nonsensical. Some work on the engine's output or the HTML formatting/presentation?
Or, is that Time output something unique to Cloak of Darkness (which I'm using the index.html from) as an artifact? As there is no Time when you run Damnatio Memoriae from within Inform 7's interpreter/VM.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.