Player icon indicating copy to clipboard operation
Player copied to clipboard

Emscripten: Solution for savegame collisions

Open Ghabry opened this issue 4 years ago • 2 comments

Same solution as proposed in https://community.easyrpg.org/t/browser-version-saves-not-being-kept-when-leaving-and-returning-to-game-page/927 just a bit cleaner.

Usage (before the shell js file)

<script>
Module = {
  EASYRPG_GAME = "UniqueGameId"
};
</script>

Btw atsumaru loads the shell file and an "override script" with script defer. Defer is nice because it enforces an execution order. Normal emscripten generator uses async so we cannot use this behaviour. :(


Also I got errors now because of missing dynCall. Maybe SDL update.

Ghabry avatar May 13 '21 16:05 Ghabry

Jenkins: test this please

Ghabry avatar May 13 '21 19:05 Ghabry

server path would be obviously the easiest solution but this would break the saves for our own hosted web player (all versions share the same savegames, sometimes useful).

Will think about this again. Converting to a draft...

Ghabry avatar May 13 '21 20:05 Ghabry

This is possible now through the game arg in the easyrpg module

Ghabry avatar Jan 13 '24 00:01 Ghabry