Custom dungeon crash when saving.

Have trouble running Legend of Grimrock 2 or do you have questions about the purchasing options? Look for help here.
Post Reply
Scotty
Posts: 69
Joined: Fri Nov 07, 2014 2:59 pm

Custom dungeon crash when saving.

Post by Scotty »

I'm getting a crash anytime when saving the game on my custom dungeon:

Image

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.
Scotty
Posts: 69
Joined: Fri Nov 07, 2014 2:59 pm

Re: Custom dungeon crash when saving.

Post 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?
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Custom dungeon crash when saving.

Post 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.
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.
Post Reply