library-defold-typewriter
library-defold-typewriter copied to clipboard
Using library in HTML5
trafficstars
It looks like using operators like goto which is not present in Lua 5.1 will leads to crash under HTML5 platform.
Is this the error?
ERROR:SCRIPT: Error running script: dtypewriter/dtypewriter.lua:108: '<name>' expected near ':'
[dmloader.js:724:40](http://0.0.0.0:8000/dmloader.js)
ERROR:SCRIPT: error loading module 'dtypewriter.dtypewriter'from file 'dtypewriter.dtypewriter':
dtypewriter.dtypewriter
stack traceback:
[C]:-1: ?
[C]:-1: in function require
scripts/gui/dialog.gui_script:1: in main chunk
[dmloader.js:724:40](http://0.0.0.0:8000/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /scripts/gui/dialog.gui_scriptc: FORMAT_ERROR
[dmloader.js:723:37](http://0.0.0.0:8000/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /collections/main/dialog.guic: FORMAT_ERROR
[dmloader.js:723:37](http://0.0.0.0:8000/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /collections/main/dialog.goc: FORMAT_ERROR
[dmloader.js:723:37](http://0.0.0.0:8000/dmloader.js)
ERROR:GAMEOBJECT: Could not instantiate game object from prototype /collections/main/dialog.goc.
[dmloader.js:724:40](http://0.0.0.0:8000/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /collections/main/main.collectionc: FORMAT_ERROR
[dmloader.js:723:37](http://0.0.0.0:8000/dmloader.js)
<empty string> 6 [dmloader.js:726:41](http://0.0.0.0:8000/dmloader.js)
Aborted(Assertion failed: g_Window, at: ../src/platform_window_glfw.cpp,88,OnWindowFocus) [dmloader.js:724:40](http://0.0.0.0:8000/dmloader.js)
INFO:CRASH: Successfully wrote Crashdump to file: /data/.Defold/_crash
[dmloader.js:723:37](http://0.0.0.0:8000/dmloader.js)
ERROR:CRASH: CALL STACK:
["abort@http://0.0.0.0:8000/ line 308 > injectedScript:1:10649","___assert_fail@http://0.0.0.0:8000/ line 308 > injectedScript:1:17042","@http://0.0.0.0:8000/dmloader.js line 234 > WebAssembly.instantiate:wasm-function[3291]:0x174ef7","onFocusChanged@http://0.0.0.0:8000/ line 308 > injectedScript:1:231074","onBlur@http://0.0.0.0:8000/ line 308 > injectedScript:1:231175",""]
CALL STACK END
If so, then confirmed.