Page 6 of 13
Re: [Wip]Rigale V0.7 (introducing faction system) steam.
Posted: Sun Sep 06, 2015 9:52 pm
by Shaf
I noticed the Cadaver and did get Scrolls and Items after I have worked on my Scavenger Skill, New Crash while attempting to save:
cromvar: cannot serialize table with metatable
stack traceback:
[C]: in function 'error'
[string "Script.lua"]: in function 'saveValue'
[string "Script.lua"]: in function 'saveValue'
[string "Script.lua"]: in function 'saveState'
[string "GameObject.lua"]: in function 'saveState'
[string "Map.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
Re: [Wip]Rigale V0.7 (introducing faction system) steam.
Posted: Sun Sep 06, 2015 10:14 pm
by cromcrom
Thanks for the report, it will help. I created quite a few tables for the faction system, something must have been obviously wrong.
did you try the faction system (talking to the zarchtons, saskatwan tribe) ?
Did you have the get hour bug ?
Launching the faction/dialogue system is easy, you just have to bump into a zarchton. Don't kill one, you would need to talk to an elder to improve your reputation again, and it could take ages ...
Elders spawn only in one place, and do not wander around.
They will respawn after some time, when they disappear through convo or fighting.
Re: [Wip]Rigale V0.7 (introducing faction system) steam.
Posted: Sun Sep 06, 2015 10:48 pm
by minmay
cromcrom wrote:Thanks for the report, it will help. I created quite a few tables for the faction system, something must have been obviously wrong.
the message means you were trying to store a value with a metatable, i.e. any instance of Component, Champion, GameObject, or some other "class".
(since setmetatable() isn't available in the grimrock scripting interface, you could never get this error by adding a metatable to a value yourself, since you can't set metatables in the first place; therefore getting this error always means you were trying to serialize something that you should
never serialize)
you can save:
- booleans
- numbers
- strings
- functions (but
read this if you intend to reference a function from more than one environment, even indirectly via a table)
- tables containing serializable values
you cannot save:
- anything with a metatable, which in the grimrock context, means any "object" or object reference
- anything else
Re: [Wip]Rigale V0.7 (introducing faction system) steam.
Posted: Mon Sep 07, 2015 2:07 pm
by cromcrom
Thanks a lot Minmay.
I have a very hard time understanding all this. Does it mean:
I try to save a game object within a table ?
I try to save a table within a game object ?
I declared a global variable within a function ?
It seems from the above report that it has to do with my cromvar script, right ?
I am quite puzzled. I checked, and didn't notice anything obvious.
Re: [Wip]Rigale V0.7 (introducing faction system) steam.
Posted: Mon Sep 07, 2015 6:03 pm
by minmay
it means you tried to save a table with a metatable, exactly like the message says...
Re: [Wip]Rigale V0.7 (introducing faction system) steam.
Posted: Mon Sep 07, 2015 7:05 pm
by cromcrom
mmmmkay, i don't get it, but thanks anyways.
But I will take the time to go over everything you wrote, and try to understand things.
Re: [Wip]Rigale V0.7 (introducing faction system) steam.
Posted: Tue Sep 08, 2015 5:58 pm
by cromcrom
Incoming in V0.8:
Did some heavy code/system cleaning, hopefully removing some old systems that were buggy. So hopefully going for a more and more stable mod.
I will go for the cadaver system: when a monster is killed, its cadaver is created. you have to interact with it to get the loot. This is to prevent the party receiving loot for a monster dying from natural causes far away...
Pickpocket system: you will be able to try to pick the pockets of humanoids.
You will have to arrive from behind. depending on the resutl, the humanoid might attack you, or be very angry and tell his tribe (reputation decrease), or nothing happens. Will provide a decent amount of coins.
If any ideas, you are welcome, I will work on this this evening, for a possible release later today.
Re: [Wip]Rigale V0.7 (introducing faction system) steam.
Posted: Tue Sep 08, 2015 8:39 pm
by Shaf
I noticed after training my Language skill to novice the next time I approached a Zarchaton they immediately attacked me, which was unusual because the previous time a Warrior gave me food. I actually managed to get into the Northern area and the Map said Unknown, I wasn't able to move or save but no crash.
Re: [Wip]Rigale V0.7 (introducing faction system) steam.
Posted: Tue Sep 08, 2015 9:36 pm
by cromcrom
This area doesn't exist yet. As for the weird attack, there is an issue when sometimes, a zarchton will die, and the game will consider you killed him, thus turning the tribe hostile.
V0.8 released
Re: [Wip]Rigale V0.8 (introducing pickpocket system) steam.
Posted: Wed Sep 09, 2015 5:23 am
by Shaf
Is getting better, less crashing, new crash before talking to Zarch.
Starting new game (Rigale V0.8 by Cromcrom)
Game started
=== Software Failure ===
mod_assets/scripts/crom_saskatwan.lua:144: attempt to index field 'brain' (a nil value)
stack traceback:
mod_assets/scripts/crom_saskatwan.lua:144: in function 'showSaskatwanDialogue'
mod_assets/scripts/crom_dialogues_initialization.lua:9: in function 'checkInitialization'
mod_assets/scripts/objects.lua:11: in function <mod_assets/scripts/objects.lua:9>
[string "Component.lua"]: in function 'callHook'
[string "Party.lua"]: in function 'enter'
[string "FSM.lua"]: in function 'setState'
[string "Party.lua"]: in function 'move'
[string "Party.lua"]: in function 'update'
[string "Map.lua"]: in function 'updateComponents'
[string "Map.lua"]: in function 'updateEntities'
[string "Dungeon.lua"]: in function 'updateLevels'
[string "GameMode.lua"]: in function 'update'
[string "Grimrock.lua"]: in function 'display'
[string "Grimrock.lua"]: in main chunk