[Wip]Rigale V0.16c (Steam and DropBox) fixes + impro. start

Are you looking for fun Custom Dungeons that you could play or do you want to share your mod with others? Then this forum is for you!
Shaf
Posts: 53
Joined: Fri Jan 11, 2013 8:56 pm

Re: [Wip]Rigale V0.16 (Steam and DropBox) "Manual" in OP

Post by Shaf »

I agree this is not a Mod but a system enhancement. A few thing I have found in the later versions .15 and .16 is that :
1. I Haven't found a way to Stop from being attacked by the Sask. Tribe once I Scavenged a corpse
2. Getting a lot of crashes while saving usually this
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 "SaveGameMenu.lua"]: in function 'update'
[string "GameMode.lua"]: in function 'update'
[string "Grimrock.lua"]: in function 'display'
[string "Grimrock.lua"]: in main chunk
Cheers
Shaf
p.s. Love the New Start area but if you Buy anything there it is usually lost if stored on front characters
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: [Wip]Rigale V0.16 (Steam and DropBox) "Manual" in OP

Post by cromcrom »

1/ you should always be able to talk to the elder. Turn warg bounties in until you become friend with the tribe again.
2/ I will look into this, bi=ut not now.
3/ as you can read, the party's ship is taken into a storm. Most items you previously buy will be lost or destroyed to the storm...
Any ideas to make that starting area better ? I was a bit lazy in the choices, but it could be expanded...
A trip of a thousand leagues starts with a step.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: [Wip]Rigale V0.16 (Steam and DropBox) "Manual" in OP

Post by cromcrom »

I tried to reproduce this saving bug, but couldn't. Any tip about when it appears ? Is it random, after anything in particular ? Thanks in advance.
Any thought about a special item, Shaf, that would bear your pseudo ? Cook recipe or anything ? Like turning charred food into proper one, as you tried to turn this mess into a decent mod ^^
A trip of a thousand leagues starts with a step.
Shaf
Posts: 53
Joined: Fri Jan 11, 2013 8:56 pm

Re: [Wip]Rigale V0.16 (Steam and DropBox) "Manual" in OP

Post by Shaf »

The save bug is pretty random, I believe its related to some objects not set with minsavestates, check a few Minmay posts he has helped many modders with the same problem.
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: [Wip]Rigale V0.16 (Steam and DropBox) "Manual" in OP

Post by minmay »

It has nothing to do with minimalSaveState, it happened because you tried to store a permanent reference to an object. The only values in script entities that can be serialized are numbers, strings, booleans, functions, and plain tables (that themselves contain only serializable keys and values). See http://www.grimrock.net/modding/save-ga ... variables/; it neglects to mention functions but is otherwise correct.
(For the details of serializing functions, see this post.)
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.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: [Wip]Rigale V0.16 (Steam and DropBox) "Manual" in OP

Post by cromcrom »

Ok, I checked, I am almost sure the save game will break after you have an interaction with heather or broken beach thicket. Willow and unbroken beach thickets should be fine. Can you confirm ? If so, I can release a "hot" fix tonight.
A trip of a thousand leagues starts with a step.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: [Wip]Rigale V0.16 (Steam and DropBox) "Manual" in OP

Post by cromcrom »

A trip of a thousand leagues starts with a step.
Shaf
Posts: 53
Joined: Fri Jan 11, 2013 8:56 pm

Re: [Wip]Rigale V0.16a (Steam and DropBox) save issue hotfix

Post by Shaf »

Save appears to be working after hotfix but now the Injury system seems to be causing problems.

=== Software Failure ===

mod_assets/scripts/cromwoundsystem.lua:60: bad argument #1 to 'removeCondition' (string expected, got nil)
stack traceback:
[C]: in function 'error'
[string "ScriptInterface.lua"]: in function 'removeCondition'
mod_assets/scripts/cromwoundsystem.lua:60: in function 'checkWoundsEffectandHealing'
mod_assets/scripts/objects.lua:49: in function <mod_assets/scripts/objects.lua:48>
[string "Component.lua"]: in function 'callHook'
[string "Timer.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

I've also found a condition which doesn't cause a crash but all keybindings become inactive. This happens when multiple actions occur at the same time for example scavenging a body while being attacked.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: [Wip]Rigale V0.16a (Steam and DropBox) save issue hotfix

Post by cromcrom »

ok, thanks for reports, Condition is fixed. As for the other one, it happens when a menu that freezes the party is showing (in some menu, the party can only choose and answer, and can't do anything until this is done. But when the fight occurs, the party is frozen, even if the menu doesn't show.)
I will have to check things, it might take "some" times.
I will add that recipe of yours in the next update too ^^.
Your feedback is really nice, thanks again.
A trip of a thousand leagues starts with a step.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: [Wip]Rigale V0.16a (Steam and DropBox) save issue hotfix

Post by cromcrom »

V0.16b
Fix for condition and frozen party (party will be unfrozen if it takes damages)
Added Shaf's recipe: you can try to turn 5 "unknown" herbs into a panacea. Alchemical recipe, quite hard.
https://www.dropbox.com/s/hwibmqjg1ekyj ... b.dat?dl=0
http://steamcommunity.com/sharedfiles/f ... =466038461
A trip of a thousand leagues starts with a step.
Post Reply