I have a project where I need to load multiple stories (not at the same time) in Quixe via JavaScript,
without reloading the page.
I have the default Quixe template (play.html) with the following line removed:
Code:
<script src="stories/glulxercise.ulx.js" type="text/javascript"></script>
To load a story, I empty the #windowport element and use
Code:
GiLoad.load_run(null, data, "base64");
where data is a string representing the story Glulx file.
It work fine the first time, but when I try to load another story, Quixe crashes with the message "Quixe was inited twice!".
Is there a way to "quit" Quixe before loading another story?
I guess Zarf will be the one answering, so thanks in advance, Zarf!