defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

HTML5 debugging problems with url params #2282

Open AukeTembrink opened 5 years ago

AukeTembrink commented 5 years ago

This error is popping up in defold when opening the html5 debug version of the game with url params.

Expected behaviour

Read url params

Actual behaviour

crashes as soon as a url parameter is given

Steps to reproduce

Read in the url parameter on game.script

local player = html5.run("try{(document.URL.match(/player=([a-z,A-Z])\\w+/)[0]).split('=')[1];}catch(err){}")

opening the game in html5 debug mode will throw an error in defold. java.nio.file.InvalidPathException: Illegal char <?> at index 10: index.html?player=test


Build time2018-10-30T23:10:56.066860
Defold channeleditor-alpha
Defold editor shaab5b75744568cc7562c025c14c89f4069ad31439
Defold engine sha2fc8ff32c9fa3a16c8f4ce44eba8351c054b33dd
Defold version1.2.140
Error8e1e7cb2468e42ea96d5b4d3adee652b
GPUGeForce GTX TITAN X/PCIe/SSE2
GPU Driver4.6.0 NVIDIA 411.70
Java version1.8.0_102-b14
OS archamd64
OS nameWindows 10
OS version10.0