Quest.js converted, but problem

billypaulhaley
21 Mar 2018, 20:29

I converted it into an app. But all it does is turn into a bar with the text "Tap links or type here". Whats wrong.


K.V.
22 Mar 2018, 15:35

It could be that you have the map feature enabled, or that your game has a function which QuestJS was not scripted to handle.

When you open the game in your browser, press CTRL+SHIFT+I to bring up the HTML developer console, and see what the error message is.

image


K.V.
22 Mar 2018, 15:38

There are MANY known issues.

I implore anyone using QuestJS to read them all.

https://github.com/KVonGit/quest-js/issues


Note the latest issue. If you are making your game with Quest 5.7.2, the TAKE command will not work, even if QuestJS compiles everything correctly.


billypaulhaley
23 Mar 2018, 22:23

Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
at getCSSRule (file:///C:/Users/justi/Desktop/Awesome/game.js:1204:32)
at SetMenuBackground (file:///C:/Users/justi/Desktop/Awesome/game.js:1122:15)
at InitInterface (file:///C:/Users/justi/Desktop/Awesome/game.js:22408:1)
at worldmodelInitialise (file:///C:/Users/justi/Desktop/Awesome/game.js:1280:9)
at init (file:///C:/Users/justi/Desktop/Awesome/game.js:76:5)
at onBodyLoad (file:///C:/Users/justi/Desktop/Awesome/index.html:26:13)
at onload (file:///C:/Users/justi/Desktop/Awesome/index.html:85:64)

Whats this mean


K.V.
24 Mar 2018, 00:16

I haven't seen that one before.

Do you happen to have a link to your game files (either the .quest file or the website files)?


billypaulhaley
24 Mar 2018, 00:24

Sent you an email with link


billypaulhaley
24 Mar 2018, 00:25

Sent you an email with link


K.V.
24 Mar 2018, 00:40

If the map is enabled, QuestJS will compile, but the game will do this. QuestJS can't handle a map.

image


K.V.
24 Mar 2018, 00:49

After disabling the map, the game loads, but you can't do anything.

image


There is now an error concerning the missing function NewList().

Did you make this game with the current version of Quest?

Whether yes or no, can I get my hands on your .aslx file?


K.V.
24 Mar 2018, 00:52

Adding this to you User Interface Initialisation script will fix the NewList() error:

JS.eval("function NewList(){return [];};")

After fixing that, there's a new error: ReferenceError: ObjectListSort is not defined

Be back shortly.


K.V.
24 Mar 2018, 00:58

This fixes ObjectListSort(): function ObjectListSort(arr){return arr.sort();};

So, that line to add to the User Interface Initalisation script would be:

JS.eval("function NewList(){return [];};function ObjectListSort(arr){return arr.sort();};")

BUT that brings up this error: TypeError: parameters is undefined

...which I believe concerns the new TAKE scripts in Quest 5.7.2, which I don't know how to fix.

...but, if you have the .aslx file (or just copy the code here), I can see if I can fix you up. There won't be a map, though.


K.V.
24 Mar 2018, 02:37

I have deleted my fork of QuestJS on GitHub.

There are now too many errors for me too deal with (because the source code is beyond me).

All apologies.