I'm getting a crash anytime when saving the game on my custom dungeon:
Does anyone have any insight on what could cause a crash like this? There don't appear to be any other crashes or issues during normal play.
Custom dungeon crash when saving.
Re: Custom dungeon crash when saving.
I believe I've found what's causing the issue:
Spawning in a bookshelf, and then moving it down slightly.
I presume this has something to do with compressing save game data, and the world position of the bookshelf being something that won't save?
Code: Select all
spawn("castle_wall_bookshelf_01", level_index, herei, herej, bookcase_facing, 0, bookcase_ID)
vector = findEntity(bookcase_ID):getWorldPosition()
vector[2] = vector[2] - 0.45
findEntity(bookcase_ID):setWorldPosition(vector)
I presume this has something to do with compressing save game data, and the world position of the bookshelf being something that won't save?
Re: Custom dungeon crash when saving.
castle_wall_bookshelf_01 has minimalSaveState so I believe changes to anything other than its map position (not world position) won't be saved.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.