Page 1 of 1
Custom dungeon crash when saving.
Posted: Tue Dec 30, 2014 4:03 am
by Scotty
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.
Re: Custom dungeon crash when saving.
Posted: Tue Dec 30, 2014 5:01 am
by Scotty
I believe I've found what's causing the issue:
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)
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?
Re: Custom dungeon crash when saving.
Posted: Tue Dec 30, 2014 5:22 am
by minmay
castle_wall_bookshelf_01 has minimalSaveState so I believe changes to anything other than its map position (not world position) won't be saved.