#WebGL Build Error

1 messages · Page 1 of 1 (latest)

hot flume
#

here

late viper
#

try the Windows export build , see if everything goes ok

hot flume
#

will let you know

lime atlas
late viper
#

oh wait that might be it

#

Notice the JS capitalization

hot flume
#

here ill check that out

late viper
#

hmm although one is SystemFile and one is FileSystem

#

a bit odd

hot flume
#

its just function names i reference in different scripts

#

its just me mixing the wording up but they all reference their own stuff

late viper
hot flume
#

yeah

late viper
#

whats it supposed to do

hot flume
#

So each script that contains that JS_FileSystem_Sync();

Has this up at the top of the script:

        [DllImport("__Internal")]
        private static extern void Js_FileSystem_Sync();
    #endif```
#

and the wording is just slightly different

#

bassically my player prefs save between sessions but when I push an update all playerprefs get wiped. According to thsi thread: https://itch.io/t/995985/saving-data-between-webgl-sessions-and-builds

adding this will fix the issue

#

i believe its force pushing data to the indexedDB

late viper
#

esp webgl

hot flume
#

yeah ive just never used anything else

late viper
#

its better application.persitentdatapath and use a file

hot flume
#

im just new to this sort of stuff so i wouldnt know whatss best

late viper
hot flume
#

so i just built to windows and it worked

lime atlas
late viper
#

Idk much about itch.io so I never tried it myself

lime atlas
#

they call the sync function via this

Application.ExternalEval("_JS_FileSystem_Sync();");
late viper
#

ahh

hot flume
#

in the thread i linked?

lime atlas
#

nope in the post i liked

hot flume
#

well cause my thing uses that same wording?

#

am i implementing it wrong im just so confused

lucid kestrel
#

I would not trust those JS methods pre-existing and would just add my own jslib method to do this

#

There is bunch of code online for it

hot flume
hot flume
#

any updates to what you guys think I should do?

hot flume
# late viper

wait how do I view exactly which script these errors are coming from?

late viper
#

if WebGL #

hot flume
#

the like actual importing of the thing?