Page 1 of 2

Crash There She Goes MY MOD......

Posted: Thu Sep 19, 2013 2:29 am
by Eleven Warrior
Hi all how are you..

I was halfway through creating my Mod and decided to retest it in Game Mode.. Exported I mean..

Just like Drakken I created Modified weapons One hit One kill (LOL).. In my Mod I put the Shop Framework (awesome by the way).. and the Sky system Framework, LoG Scripting framework and many more Assets..

I exported the Mod every Level to test it, all good no problems with save and load games at all, bug tested etc.....(with Ultimate Weapons)

Then I decided it was time to test it without the Weapons and play it as you would. All was going well, then I thougth I have to go to the Shop to get some more Ingredients for Potion making,....I got to the shop area in the level,, Activated the button which gives you Money, walked on the Hidden Plate to activate the Shop, did my shopping no problem, made some potions and then I thought I better Save my Game...Well from this moment my Jaw dropped, Heart sank and water started forming in my eyes.. OMG IT CRASHED....NO I SAID I CANT BE!!!!!

So I loaded the (Original Shop Editor File) which I got from the Nexus (the updated version) the I Exported it and started a new game. I brought some stuff sold stuff, then I saved the game and you can guess what happened from here Yep CHRASHHHHHHHHH LOL..The Dungeon by the way had no extra assets added..

Well I can say I now have to reedit my whole Mod Damm its going to take Hours (LOL).. I actually feel like giving up but no way man I spent to long creating this Mod and to many Good people in the community have help me make this possible.. THANK YOU ALL MUCH APPRECIATED AHY AND ALMOST HUMAN FOR GIVING ME THE TOOLS TO MAKE THIS HAPPEN...

PS: I have not modified the Script or Items in the Shop Frame it is as is not edited.....

Anyway sorry for rambling on here is the Error I got when the Game Crashed:

gui: cannot serialize table with metatable
stack traceback:
[C]:
in function 'error' [string "ScriptEntity.lua"]:
in function 'saveValue' [string "ScriptEntity.lua"]:
in function 'saveValue' [string "ScriptEntity.lua"]:
in function 'saveState' [string "GameMode.lua"]:
in function 'saveGame' [string "SaveGameMenu.lua"]:
in function 'update' [string "GameMode.lua"]:
in function 'update' [string "Grimrock.lua"]:
in function 'display' [string "Grimrock.lua"]:
in main chunk OS Version 6.1 OEM ID: 0 Number of processors:
12 Page size: 4096 Processor type: 586
Total memory: 16384 MB
Free memory: 13810 MB
Display device 0: Device name: \\.\DISPLAY1 Device string: NVIDIA GeForce GTX 680
State flags: 08000005
Display device 1: Device name: \\.\DISPLAY2 Device string: NVIDIA GeForce GTX 680
State flags: 00000000
Display device 2: Device name: \\.\DISPLAY3 Device string: NVIDIA GeForce GTX 680
State flags: 00000000
Display device 3: Device name: \\.\DISPLAY4 Device string: NVIDIA GeForce GTX 680
State flags: 00000000
Display device 4: Device name: \\.\DISPLAYV1 Device string: RDPDD Chained DD
State flags: 00000008
Display device 5: Device name: \\.\DISPLAYV2 Device string: RDP Encoder Mirror Driver
State flags: 00200008
Display device 6: Device name: \\.\DISPLAYV3 Device string: RDP Reflector Display Driver
State flags: 00200008

Can anyone tell me what this all means (LOL) Thxs to all for your help..Good Modding to you :mrgreen:

Re: Crash There She Goes MY MOD......

Posted: Thu Sep 19, 2013 2:37 am
by Hustin
I had this problem and it was due to variables in my script functions. Once I declared them "local", it fixed the problem.

Re: Crash There She Goes MY MOD......

Posted: Thu Sep 19, 2013 2:39 am
by Eleven Warrior
Eleven Warrior wrote:Hi all how are you..

I was halfway through creating my Mod and decided to retest it in Game Mode.. Exported I mean..

Just like Drakken I created Modified weapons One hit One kill (LOL).. In my Mod I put the Shop Framework (awesome by the way).. and the Sky system Framework, LoG Scripting framework and many more Assets..

I exported the Mod every Level to test it, all good no problems with save and load games at all, bug tested etc.....(with Ultimate Weapons)

Then I decided it was time to test it without the Weapons and play it as you would. All was going well, then I thougth I have to go to the Shop to get some more Ingredients for Potion making,....I got to the shop area in the level,, Activated the button which gives you Money, walked on the Hidden Plate to activate the Shop, did my shopping no problem, made some potions and then I thought I better Save my Game...Well from this moment my Jaw dropped, Heart sank and water started forming in my eyes.. OMG IT CRASHED....NO I SAID I CANT BE!!!!!

So I loaded the (Original Shop Editor File) which I got from the Nexus (the updated version) the I Exported it and started a new game. I brought some stuff sold stuff, then I saved the game and you can guess what happened from here Yep CHRASHHHHHHHHH LOL..The Dungeon by the way had no extra assets added..

Well I can say I now have to reedit my whole Mod Damm its going to take Hours (LOL).. I actually feel like giving up but no way man I spent to long creating this Mod and to many Good people in the community have help me make this possible.. THANK YOU ALL MUCH APPRECIATED AHY AND ALMOST HUMAN FOR GIVING ME THE TOOLS TO MAKE THIS HAPPEN...

PS: I have not modified the Script or Items in the Shop Frame it is as is not edited.....

Anyway sorry for rambling on here is the Error I got when the Game Crashed:

gui: cannot serialize table with metatable
stack traceback:
[C]:
in function 'error' [string "ScriptEntity.lua"]:
in function 'saveValue' [string "ScriptEntity.lua"]:
in function 'saveValue' [string "ScriptEntity.lua"]:
in function 'saveState' [string "GameMode.lua"]:
in function 'saveGame' [string "SaveGameMenu.lua"]:
in function 'update' [string "GameMode.lua"]:
in function 'update' [string "Grimrock.lua"]:
in function 'display' [string "Grimrock.lua"]:
in main chunk OS Version 6.1 OEM ID: 0 Number of processors:
12 Page size: 4096 Processor type: 586
Total memory: 16384 MB
Free memory: 13810 MB
Display device 0: Device name: \\.\DISPLAY1 Device string: NVIDIA GeForce GTX 680
State flags: 08000005
Display device 1: Device name: \\.\DISPLAY2 Device string: NVIDIA GeForce GTX 680
State flags: 00000000
Display device 2: Device name: \\.\DISPLAY3 Device string: NVIDIA GeForce GTX 680
State flags: 00000000
Display device 3: Device name: \\.\DISPLAY4 Device string: NVIDIA GeForce GTX 680
State flags: 00000000
Display device 4: Device name: \\.\DISPLAYV1 Device string: RDPDD Chained DD
State flags: 00000008
Display device 5: Device name: \\.\DISPLAYV2 Device string: RDP Encoder Mirror Driver
State flags: 00200008
Display device 6: Device name: \\.\DISPLAYV3 Device string: RDP Reflector Display Driver
State flags: 00200008

Can anyone tell me what this all means (LOL) Thxs to all for your help..Good Modding to you :mrgreen:
My Sytem:
i core 7 Quad
Nvidia GTX 680
16 GB Ram
Sound Blaster Fx
Asus Rampage Extreme ( I think)
Western digitar Black Caviar 2.0 TB Hard Drive
Intel 128MB SSD
Windows 7 Home Edition and all the crap that goes with it (LOL)
and more but that's not needed.....

Re: Crash There She Goes MY MOD......

Posted: Thu Sep 19, 2013 2:41 am
by Ryeath_Greystalk
Hustin is on track I believe.

When I was playing mahric's "Awakening of Taarnab" mod I reported a bug that had the same error and he said it was because he used a variable before initializing it, or declaring it maybe, don't recall the exact wording.

Re: Crash There She Goes MY MOD......

Posted: Thu Sep 19, 2013 5:22 am
by Eleven Warrior
I wish I knew what it was LOL thxs for the reply bro

Re: Crash There She Goes MY MOD......

Posted: Thu Sep 19, 2013 5:24 am
by Eleven Warrior
Eleven Warrior wrote:I wish I knew what it was LOL thxs for the reply bro
PS: I seen your name before cant rem where, in some Scripting??

Re: Crash There She Goes MY MOD......

Posted: Thu Sep 19, 2013 8:36 am
by antti
Could it be that you are storing game objects in a "global" variable instead of, say, a string containing just the ID of the object you need to store? Take a look at this document and check out your scripts if you can spot something suspicious: http://www.grimrock.net/modding/save-ga ... variables/

The odds are that the cause of the error is somewhere in the shop script.

Re: Crash There She Goes MY MOD......

Posted: Thu Sep 19, 2013 8:59 am
by Eleven Warrior
ummmmmmm what to say ummm OMG antti u answered my Question man I feel honoured... u are the creater of this game my spelling is bad... imam nervous... thank you I wll get my composure here... Well I just used the Shop Script as is. have you tried it yourself?? I do have a lot of extras but I used the Script by its self, umm if u read my post... Pls imman rude here man I .........fuckk I cant belive its u....I have done what the script has said down to the key,did you see the Error report... sorry I guess u did.. bro I did not change anything... man this script is just like the Sky system Script Is a piece of art ahy..

And to be honest ahy imam just doing what the person said to do... I do not know what u say immma not programmer sorry imam just a nOOb..If I had a Wish I would wish I could program what I wanted in this Editor pls dont take that the wrong way. I HAVE WANTED THIS ALL MY LIFE..

Re: Crash There She Goes MY MOD......

Posted: Thu Sep 19, 2013 9:06 am
by Eleven Warrior
Eleven Warrior wrote:ummmmmmm what to say ummm OMG antti u answered my Question man I feel honoured... u are the creater of this game my spelling is bad... imam nervous... thank you I wll get my composure here... Well I just used the Shop Script as is. have you tried it yourself?? I do have a lot of extras but I used the Script by its self, umm if u read my post... Pls imman rude here man I .........fuckk I cant belive its u....I have done what the script has said down to the key,did you see the Error report... sorry I guess u did.. bro I did not change anything... man this script is just like the Sky system Script Is a piece of art ahy..

And to be honest ahy imam just doing what the person said to do... I do not know what u say immma not programmer sorry imam just a nOOb..If I had a Wish I would wish I could program what I wanted in this Editor pls dont take that the wrong way. I HAVE WANTED THIS ALL MY LIFE..
Y have to understand I have Dreaned this for the last 25 yrs and now its here, ... U know what I Love Almost Human, thety gave me a chance to make something I never have thought I could dream. ty Petri as well as the others ahy

Re: Crash There She Goes MY MOD......

Posted: Thu Sep 19, 2013 9:16 am
by antti
Eleven Warrior wrote:ummmmmmm what to say ummm OMG antti u answered my Question man I feel honoured... u are the creater of this game my spelling is bad... imam nervous... thank you I wll get my composure here... Well I just used the Shop Script as is. have you tried it yourself?? I do have a lot of extras but I used the Script by its self, umm if u read my post... Pls imman rude here man I .........fuckk I cant belive its u....I have done what the script has said down to the key,did you see the Error report... sorry I guess u did.. bro I did not change anything... man this script is just like the Sky system Script Is a piece of art ahy..

And to be honest ahy imam just doing what the person said to do... I do not know what u say immma not programmer sorry imam just a nOOb..If I had a Wish I would wish I could program what I wanted in this Editor pls dont take that the wrong way. I HAVE WANTED THIS ALL MY LIFE..
Hahah, take it easy. It's cool... :D

Oh yeah, I didn't realize the shop was a pre-made script. It still could be that the original script hasn't been thoroughly tested or that there's some room for error when adding it to a mod (like, I don't know, missing parenthesis or something?). To get a better idea of the cause, I suppose someone would have to take a good look at shop script and the way you have it implemented in your mod. Unfortunately I'm not really available for that (since it would keep me from working on Grimrock 2 ;) ) so all I can try to do is just try to point folks to a (hopefully) right direction.

One thing that you can of course do is to try to isolate the problem to make it simpler to find the cause. Like create a new dungeon with nothing else but the shop in it and see if the error happens again.