Error savegames

  • #1, by jf-mFriday, 10. December 2021, 08:27 10 months ago
    Hi! I'm facing an issue in saving/loading games. I have two games online (builded in html5). When i save games on one, no matter which, it works. If i save a game on the other one, in the same browser, i try later to load a game from the saved ones, the game stucks. It seems that the saved games are melting. On the games properties, i put diffrents companies and games names. Do you have an idea to resolve this issue? Thanks a lot! JF

    Newbie

    39 Posts


  • #2, by SimonSFriday, 10. December 2021, 11:18 10 months ago
    Hi, pls open the console with F12 and check for errors.

    Thread Captain

    1552 Posts

  • #3, by jf-mFriday, 10. December 2021, 13:49 10 months ago
    Thanks for your answer!

    Here's the code:


    13:39:38.453:value for float is NULL
    (index):115 13:39:39.874:Serialization finished. Needed time: 7 ms
    (index):115 13:39:39.874:SetupParents finished. Needed time: 0 ms
    (index):115 13:39:39.874:SortLinks finished. Needed time: 0 ms
    (index):115 13:39:39.889:Serialization finished. Needed time: 6 ms
    (index):115 13:39:39.889:SetupParents finished. Needed time: 0 ms
    (index):115 13:39:39.890:SortLinks finished. Needed time: 0 ms
    (index):115 13:39:39.899:Serialization finished. Needed time: 2 ms
    (index):115 13:39:39.899:SetupParents finished. Needed time: 0 ms
    (index):115 13:39:39.900:SortLinks finished. Needed time: 0 ms
    (index):123 exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
        at wasm://wasm/01abae9e:wasm-function[2709]:0x1a7c56
        at wasm://wasm/01abae9e:wasm-function[2821]:0x1b33e8
        at wasm://wasm/01abae9e:wasm-function[2850]:0x1b42c9
        at wasm://wasm/01abae9e:wasm-function[2911]:0x1b5530
        at wasm://wasm/01abae9e:wasm-function[6300]:0x3d216c
        at wasm://wasm/01abae9e:wasm-function[1935]:0xfb06c
        at wasm://wasm/01abae9e:wasm-function[2033]:0x132e84
        at wasm://wasm/01abae9e:wasm-function[2092]:0x15b75b
    visplayer.js:1
    [code][/code]
           Uncaught RuntimeError: memory access out of bounds
        at 01abae9e:0x1a7c56
        at 01abae9e:0x1b33e8
        at 01abae9e:0x1b42c9
        at 01abae9e:0x1b5530
        at 01abae9e:0x3d216c
        at 01abae9e:0xfb06c
        at invoke_vi (visplayer.js:1)
        at 01abae9e:0x132e84
        at 01abae9e:0x15b75b
        at callUserCallback (visplayer.js:1)
    $func2709 @ 01abae9e:0x1a7c56
    $func2821 @ 01abae9e:0x1b33e8
    $func2850 @ 01abae9e:0x1b42c9
    $func2911 @ 01abae9e:0x1b5530
    $func6300 @ 01abae9e:0x3d216c
    $func1935 @ 01abae9e:0xfb06c
    invoke_vi @ visplayer.js:1
    $func2033 @ 01abae9e:0x132e84
    $func2092 @ 01abae9e:0x15b75b
    callUserCallback @ visplayer.js:1
    runIter @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1

    Newbie

    39 Posts

  • #4, by jf-mFriday, 10. December 2021, 14:30 10 months ago
    and here's the code for the seconf game:

    same browser, same time:


    wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
    (index):123 falling back to ArrayBuffer instantiation
    (index):115 14:22:55.005:Renderloop registered
    (index):115 14:22:55.006:Loading from //config.ini
    visplayer.js:1 
            
           The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
    _alcCreateContext @ visplayer.js:1
    (index):115 14:22:55.019:m_gamePath: /ifsn.vis
    (index):115 14:22:55.024:Serialization finished. Needed time: 3 ms
    (index):115 14:22:55.025:Engine Version: 5.1.7 (Build 1223 from Build date: Oct 2 2021)
    (index):115 14:22:55.025:Time needed for preloading game: 5 msec
    (index):115 14:22:55.025:No config.ini in /save//config.ini
    (index):115 14:22:55.064:Initializing graphics interface. Surface size: 1872x937, render size: 1920x1080
    (index):115 14:22:55.090:red, green, blue, alpha, depth size: , doublebuffer , accelerated 
    (index):115 14:22:55.098:Serialization finished. Needed time: 8 ms
    (index):115 14:22:55.098:SetupParents finished. Needed time: 0 ms
    (index):115 14:22:55.098:SortLinks finished. Needed time: 0 ms
    (index):115 14:22:55.100:Failed to initialize the composed file 'Interfaces.vi'. Could not open.
    2(index):115 14:22:55.101:Failed to initialize the composed file 'Interfaces.vi'. Could not open.
    (index):115 14:22:55.102:Failed to initialize the composed file 'Interfaces.vi'. Could not open.
    (index):115 14:22:55.102:Interfaces loaded. Needed time: 3 ms
    (index):115 14:22:55.103:Scripts loaded. Needed time: 1 ms
    (index):115 14:22:55.103:Time needed for loading game: 79 msec
    (index):115 14:22:55.104:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:55.195:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    visplayer.js:1 
            
           The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
    scheduleSourceAudio @ visplayer.js:1
    visplayer.js:1 
            
           The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
    scheduleSourceAudio @ visplayer.js:1
    visplayer.js:1 
            
           The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
    scheduleSourceAudio @ visplayer.js:1
    (index):115 14:22:55.215:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:55.219:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:55.323:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:55.423:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:56.540:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:56.640:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:56.739:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:56.224:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:57.226:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:57.229:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:22:57.233:Failed to initialize the composed file 'Scene001.vs'. Could not open.
    (index):115 14:23:00.944:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.039:Serialization finished. Needed time: 4 ms
    (index):115 14:23:00.040:SetupParents finished. Needed time: 0 ms
    (index):115 14:23:00.040:SortLinks finished. Needed time: 0 ms
    (index):115 14:23:00.051:Serialization finished. Needed time: 6 ms
    (index):115 14:23:00.052:SetupParents finished. Needed time: 0 ms
    (index):115 14:23:00.052:SortLinks finished. Needed time: 0 ms
    (index):115 14:23:00.056:Serialization finished. Needed time: 1 ms
    (index):115 14:23:00.057:SetupParents finished. Needed time: 0 ms
    (index):115 14:23:00.057:SortLinks finished. Needed time: 0 ms
    (index):115 14:23:00.061:Serialization finished. Needed time: 1 ms
    (index):115 14:23:00.061:SetupParents finished. Needed time: 0 ms
    (index):115 14:23:00.061:SortLinks finished. Needed time: 0 ms
    (index):115 14:23:00.065:Failed to initialize the composed file 'Scene003.vs'. Could not open.
    (index):115 14:23:00.069:Failed to initialize the composed file 'Scene005.vs'. Could not open.
    (index):115 14:23:00.071:Failed to initialize the composed file 'Scene004.vs'. Could not open.
    (index):115 14:23:00.075:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.090:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.092:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.093:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.094:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.096:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.098:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.099:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.100:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.101:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.102:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.103:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.104:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    2(index):115 14:23:00.105:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.106:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.107:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.108:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    2(index):115 14:23:00.109:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.110:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.111:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.112:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:00.113:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:23:04.465:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:24:20.255:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:24:23.206:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:24:24.258:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:24:25.807:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:24:25.458:Failed to initialize the composed file 'Scene000.vs'. Could not open.
    (index):115 14:24:26.958:game file does not exists /bilan1.vis
    (index):115 14:24:26.966:Serialization finished. Needed time: 7 ms
    (index):115 14:24:26.967:SetupParents finished. Needed time: 0 ms
    (index):115 14:24:26.968:SortLinks finished. Needed time: 0 ms
    (index):115 14:24:26.278:Failed to initialize the composed file 'Scene005.vs'. Could not open.
    (index):115 14:24:26.455:Failed to initialize the composed file 'Character002.vc'. Could not open.
    (index):115 14:24:26.469:Failed to initialize the composed file 'Scene005.vs'. Could not open.
    (index):115 14:24:26.475:Failed to initialize the composed file 'Scene005.vs'. Could not open.
    (index):115 14:24:26.478:Failed to initialize the composed file 'Scene005.vs'. Could not open.
    (index):115 14:24:26.482:Failed to initialize the composed file 'Scene005.vs'. Could not open.
    (index):115 14:24:26.497:Failed to initialize the composed file 'Scene005.vs'. Could not open.
    (index):115 14:24:26.500:Failed to initialize the composed file 'Scene005.vs'. Could not open.
    (index):115 14:24:27.826:Tried to access invalid field. Field AnimationCurrentPosition (id: 496) does not exist in table Scenes (id: 101).
    (index):115 14:24:27.827:Tried to access invalid field. Field AnimationReplay (id: 656) does not exist in table (id: 0).
    (index):115 14:24:27.828:TDataGroup::GetValue: Cannot find field in object: AnimationReplay
    (index):115 14:24:27.829:value for int is NULL
    (index):123 exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
        at wasm://wasm/01abae9e:wasm-function[2831]:0x1b3d1c
        at wasm://wasm/01abae9e:wasm-function[2884]:0x1b4fd8
        at wasm://wasm/01abae9e:wasm-function[506]:0x54664
        at wasm://wasm/01abae9e:wasm-function[1935]:0xfb090
        at wasm://wasm/01abae9e:wasm-function[2033]:0x132e84
        at wasm://wasm/01abae9e:wasm-function[2092]:0x15b75b
    visplayer.js:1 
            
           Uncaught RuntimeError: memory access out of bounds
        at 01abae9e:0x1b3d1c
        at 01abae9e:0x1b4fd8
        at 01abae9e:0x54664
        at 01abae9e:0xfb090
        at invoke_vi (visplayer.js:1)
        at 01abae9e:0x132e84
        at 01abae9e:0x15b75b
        at callUserCallback (visplayer.js:1)
        at Object.runIter (visplayer.js:1)
        at Browser_mainLoop_runner (visplayer.js:1)
    $func2831 @ 01abae9e:0x1b3d1c
    $func2884 @ 01abae9e:0x1b4fd8
    $func506 @ 01abae9e:0x54664
    $func1935 @ 01abae9e:0xfb090
    invoke_vi @ visplayer.js:1
    $func2033 @ 01abae9e:0x132e84
    $func2092 @ 01abae9e:0x15b75b
    callUserCallback @ visplayer.js:1
    runIter @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1
    requestAnimationFrame (asynchrone)
    requestAnimationFrame @ visplayer.js:1
    Browser_mainLoop_scheduler_rAF @ visplayer.js:1
    Browser_mainLoop_runner @ visplayer.js:1

    Newbie

    39 Posts

  • #5, by jf-mSaturday, 11. December 2021, 16:02 10 months ago
    Please, anyone can help?
    This is very annoying.

    Newbie

    39 Posts

  • #6, by SimonSSunday, 12. December 2021, 15:34 10 months ago
    I wanted to check it, but you have already taken it offline...

    The wasm symbols are optimized, so I can't see where it's crashing without testing it myself.

    Thread Captain

    1552 Posts

  • #7, by jf-mMonday, 13. December 2021, 10:20 10 months ago
    Thanks SimonS for your answer.

    Here are the urls for the two games:



    Newbie

    39 Posts

  • #8, by jf-mFriday, 17. December 2021, 08:22 10 months ago
    Hi SimonS,

    did you see anything wrong?

    Thanks

    Newbie

    39 Posts

  • #9, by SimonSFriday, 17. December 2021, 11:07 10 months ago
    Is it possible for you to put the games on different subdomains?

    The other option is to change all "savedata" in the index.html to another name, so that they won't use the same storage.

    Thread Captain

    1552 Posts

  • #10, by jf-mFriday, 17. December 2021, 13:58 10 months ago
    Thanks again for your time,

    Unfortunately, i can't  change my subdomains roll

    you mean i just have to change every "savedata" in "savedata2" for example  in the index.html ?

    Newbie

    39 Posts

  • #11, by SimonSFriday, 17. December 2021, 13:59 10 months ago
    Correct. If you open the developer tools for chrome with f12 you can see the saved data in App / Local Storage.

    Thread Captain

    1552 Posts

Write post