Blank editor
Malphas
09 Jan 2021, 08:46Heya guys, I've been working on a small project with the gamebook to keep myself busy but recently it somehow got corrupted as it just was completely empty. I managed to retrieve the code from extracting the .quest file as a .zip file but now the editor panel is completely empty.
I've seen someone have the same problem but with the text-adventure mode. The fix didn't seem to work for me, although that's probably a problem I caused myself.
I'm a bit new to posting here so I have no idea if I need to post the code or not, just tell me if I should :)
Thanks in advance for all the help!
mrangel
09 Jan 2021, 10:58The text adventure version of the solution will have told you to add a line
<include ref="CoreEditor.aslx"/>
near the top of your file (probably right after the <asl
line and before all the <implied
s). For a gamebook the method is the same, but you need to add:
<include ref="GamebookCoreEditor.aslx"/>
instead.
Hope that helps.
Malphas
09 Jan 2021, 12:03Yup worked like a charm! Although now the code has tons of functions that weren't there before but at least I can now edit it again, thanks a ton!
mrangel
09 Jan 2021, 13:47I think if you use the same method to include GamebookCore.aslx
, you should be able to delete the extra functions and they will go back to being hidden.
Or take a look at them and find out about all the useful functions you get by default, and how they work.
Malphas
14 Jan 2021, 09:17Sorry, I keep trying to revert it back by deleting the implieds etc. but I can't get it to work as that crashes everything. For now everything is variations of this when I try to look at it or search something new: https://imgur.com/a/VdhJ6wC
mrangel
14 Jan 2021, 09:27Ah; for some of the labels you may also need to include English.aslx
or EditorEnglish.aslx
Malphas
14 Jan 2021, 12:42I put the editorenglish in without any problems but the weird names keep happening, did I somehow input something incorrectly?
Here is my code, it may be a bit messy so be warned ;)
https://pastebin.com/kKSUegKg
K.V.
14 Jan 2021, 12:59Hello.
This might help: https://textadventures.co.uk/forum/quest/topic/9cajnnzcn0_yvj0izjl_0w/aslx-recovery-from-a-published-quest-game-solved#38ccc325-62df-4684-b29a-3a54945502c3
K.V.
14 Jan 2021, 13:27That was old info.
I just switched to Windows for a moment (it only hurt a little) and created a test gamebook. I then compiled it to a quest file. I then unzipped that and opened "game.aslx" in a text editor.
I only had to change one line to make it open in the editor.
This was the existing code (the first 4 lines):
<!--Saved by Quest 5.8.6836.13983-->
<asl version="580">
<template name="NothingToUndo">Nothing to undo!</template>
<game name="Save the Code">
Change that third line.
<!--Saved by Quest 5.8.6836.13983-->
<asl version="580">
<include ref="GamebookCore.aslx" />
<game name="Save the Code">
That one change to the third line of code made the editor work properly for me.
Malphas
14 Jan 2021, 15:38holy quacemole, that actually did the trick, thank you so much!
Now I'll be able to continue working on it :)