Ok then. The "playthesound" error is my fault. It was a buggy function that I disabled and left for later. Apparently on saving, if an invalid function exists it causes the game to crash even without being used. After fixing that error, I tried again and got a new error. Upon starting my dungeon, The Reeking Depths 1.4.6 (Not on Steam Workshop yet), I quicksaved and got this:
Code: Select all
attempt to serialize function 'steptwo' with upvalues
stack traceback:
[C]: in function 'error'
[string "ScriptEntity.lua"]: in function 'saveState'
[string "GameMode.lua"]: in function 'saveGame'
[string "GameMode.lua"]: in function 'quickSave'
[string "GameMode.lua"]: in function 'keyPressed'
[string "Grimrock.lua"]: in function 'pollEvents'
[string "Grimrock.lua"]: in function 'display'
[string "Grimrock.lua"]: in main chunk
OS Version 6.0
OEM ID: 0
Number of processors: 2
Page size: 4096
Processor type: 586
Total memory: 3033 MB
Free memory: 1179 MB
Display device 0:
Device name: \\.\DISPLAY1
Device string: Mobile Intel(R) 4 Series Express Chipset Family
State flags: 00000005
Display device 1:
Device name: \\.\DISPLAY2
Device string: Mobile Intel(R) 4 Series Express Chipset Family
State flags: 00000000
Display device 2:
Device name: \\.\DISPLAYV1
Device string: RDPDD Chained DD
State flags: 00000008
Display device 3:
Device name: \\.\DISPLAYV2
Device string: RDP Encoder Mirror Driver
State flags: 00200008
EDIT: It happens with both saving and quicksaving
EDIT 2: "steptwo" is part of another function that is working properly.
Code: Select all
local cntdwn = 3
function stepone()
if cntdwn == 3
then
cntdwn = 2
else
cntdwn = 3
end
end
function steptwo()
if cntdwn == 2
then
cntdwn = 1
else
cntdwn = 3
end
end
function stepthree()
if cntdwn == 1
then
cntdwn = 0
else
cntdwn = 3
end
end
function chkdr()
if cntdwn == 0
then
dungeon_secret_door_28:open()
else
dungeon_secret_door_28:close()
end
end