WelehoBRUDER / Dungeons-of-Tavaraen

2d rpg rogue-lite i'm making, trello: https://trello.com/b/iuTZDBwn/dungeons-of-tavaraen
https://welehobruder.github.io/Dungeons-of-Tavaraen/
1 stars 0 forks source link

[Bug] Game crashes when saving #3

Closed kasimirmoilanen closed 2 years ago

kasimirmoilanen commented 2 years ago
Uncaught TypeError: can't convert undefined to object
    getModifiers https://welehobruder.github.io/Dungeons-of-Tavaraen/resources/compiledJS/script/character.js line 20 > srcScript:280
    getModifiers https://welehobruder.github.io/Dungeons-of-Tavaraen/resources/compiledJS/script/character.js line 20 > srcScript:279
    sight https://welehobruder.github.io/Dungeons-of-Tavaraen/resources/compiledJS/script/player.js line 20 > srcScript:101
    renderMap https://welehobruder.github.io/Dungeons-of-Tavaraen/resources/compiledJS/script/map.js line 20 > srcScript:111
    modifyCanvas https://welehobruder.github.io/Dungeons-of-Tavaraen/resources/compiledJS/script/map.js line 20 > srcScript:1125
character.ts:322:11
    getModifiers character.ts:322
    forEach self-hosted:208
    getModifiers character.ts:321
    sight player.ts:199
    renderMap map.ts:131
    modifyCanvas map.ts:1057
WelehoBRUDER commented 2 years ago

This issue is fixed in a yet unreleased update, it was caused by the game altering the player object to trim down save file size, but not restoring the player to a playable state.