
Mods / Chunk Stability Override
Author: Cho
Side: Server
Created: Oct 14th 2023 at 7:43 PM
Last modified: Jan 12th at 8:49 PM
Downloads: 2659
Follow Unfollow 60
Latest release (for outdated Vintage Story v1.20.0-rc.6):
stabMod-2.0.1.zip
1-click install
Originally for when you find a really nice spot in the world but it happens to have low natural stability.
Also works to lower natural stability so you can for e.g. create areas where stepping into them instantly lowers a player to 0 by setting a modifier of -1000 or such.
Modifiers are ignored during temporal storms ensuring they still work as normal.
Just as a reminder, you can see chunk borders with:
.debug wireframe chunk
To use:
`/stab X`
Modify the natural stability within the current chunk by X.
Positive numbers = more stability, negative = less. You won't need more than +/- 1-2 for most scenarios.
If both the current-chunk and global stability are overridden, chunk stability is used.
`/globalStab X`
Modify the natural stability of the entire world by X.
`/checkStab`
Check whether and by how much the world/ your current chunk has been temporally modified.
On dedicated servers, setting stability is locked behind the privilege "stab" which requires you to run `/player [playername] privilege grant stab` first.
Known issues:
Gear spins in the wrong direction when you update a chunk's stability, at least sometimes. This is because technically the mod changes the amount of stability a player gains/loses rather than modifying the actual stability of the area itself.
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v2.0.1 | 1057 | Jan 12th at 8:49 PM | Show | stabMod-2.0.1.zip | 1-click install | |
v2.0.0 | 105 | Dec 30th 2024 at 11:08 PM | Show | stabMod-2.0.0.zip | 1-click install | |
v1.1.1 | 631 | Sep 2nd 2024 at 11:07 AM | Show | stabMod-1.1.1.zip | 1-click install | |
v1.1.0 | 660 | Nov 6th 2023 at 9:59 PM | Show | stabMod-1.1.0.zip | 1-click install | |
v1.0.0 | 206 | Oct 14th 2023 at 7:45 PM | Show | stabMod-1.0.0.zip | 1-click install |
This still work for the lastest version? If not can you please update?
heavymetalcat1 I haven't been feeling the VS itch enough lately to do that myself but it's definitely possible and could be made easier by re-using a lot of this mod's code, which anyone's free to do, and just tweaking how the value is set from a chat command to an item use.
Tangential question to this mod: could a mod be created that would neutralize a chunks temporal stability (and possibly the immediate neighboring chunks) when a temporal gear is used?
Just wanted to let you know that v2.0.1 is marked for 1.19.8 as well as 1.20.0-rc.6, but in the mod list in 1.19.8, it says that it won't load and the game needs to be on 1.20.0-rc6.
Interesting. Is it possible to add the permission to the admin permission set?
Ragolution Setting stability on dedicated servers is behind the separate stab privilege rather than being bound to the admin group.
Despite being an admin, when using /stab, the system replies I don't have permission to use the command. Running 1.20.3 with a few other mods but none I can think of would effect this.
VoidReaver Should work anywhere you can install server mods.
Hello
We are running our server thru VS provided services and are wondering should it work there or not?
Just wanted to verify that the errors have indeed gone away. Thank you again for making such a versatile mod! I hope many others benefit from it like we have.
Cho
Thank you! I'll test it out this week. Was away for about 4 days so I'm only just seeing this.
I'll let you know how it goes.
Inflectus I've uploaded a probable-fix. I couldn't replicate the issue in the end so I've had to make some assumptions and add some logs in-case it's still happening.
Inflectus nope that sounds like a bug I've written, I'll look into that this weekend.
Hi, we've been running the mod ever since the update allowing for a global modifier, but we've been repeatedly (like every minute or so) having this error for a while:
11.1.2025 01:27:20 [Server Error] Exception: Value cannot be null. (Parameter 'key')
at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
at StabMod.StabModServerModSystem.GetTemporalStabilityOverride(Single stability, Double x, Double y, Double z)
at Vintagestory.GameContent.SystemTemporalStability.GetTemporalStability(Double x, Double y, Double z) in VSSurvivalMod\Systems\TemporalStability\TemporalStability.cs:line 839
at Vintagestory.GameContent.EntityBehaviorTemporalStabilityAffected.OnGameTick(Single deltaTime) in VSSurvivalMod\Systems\TemporalStability\BehaviorTemporalStabilityAffected.cs:line 307
at Vintagestory.API.Common.Entities.Entity.OnGameTick(Single dt) in VintagestoryApi\Common\Entity\Entity.cs:line 1051
at Vintagestory.API.Common.EntityAgent.OnGameTick(Single dt) in VintagestoryApi\Common\Entity\EntityAgent.cs:line 605
at Vintagestory.API.Common.EntityPlayer.OnGameTick(Single dt) in VintagestoryApi\Common\Entity\EntityPlayer.cs:line 645
at Vintagestory.Server.ServerSystemEntitySimulation.TickEntities(Single dt) in VintagestoryLib\Server\Systems\World\EntitySimulation.cs:line 334
at Vintagestory.Server.ServerSystemEntitySimulation.OnServerTick(Single dt) in VintagestoryLib\Server\Systems\World\EntitySimulation.cs:line 143
at Vintagestory.Server.ServerMain.Process() in VintagestoryLib\Server\ServerMain.cs:line 896
I've checked the server-main log file at the line it references, and this is all that shows:
10.1.2025 23:20:25 [Notification] Autosaving game world. Notifying mods, then systems of save...
Did we misconfigure something? We have our globalStab set to "2," and it says so when we do /checkStab.
Cho Oh, I see now. I thought this mod affects the chunk in the world, not the character's stability in that chunk. I also didn't realize that I could see my character's stability by mousing over the gear.
I can confirm it does work. I was originally at 68% character stability in another 80% chunk but when I did /stab 2, it rose to 100% character stability despite the gear still turning backwards.
Thank you very much for helping me out and sorry for the confusion!
Faeldray I think that's just an extension of the known issue/gear spinning limitation, I'd never tested it with a mod that shows stability so wasn't aware of this myself.
Can you confirm whether standing in that 80% chunk for example with a positive override keeps your character's temporal stability at 99/100% even though the gear is spinning counterclockwise and the other HUD mod says the chunk stability is still 80?
The way this mod works is to modify the amount of temporal stability your character gains/loses, so anything reading the chunk itself wouldn't reflect it, not sure of another way I could do this mod to fix that.
I'm fairly new to VS so it's possible I don't quite understand how to use this mod correctly but I can't seem to get it to work.
In single player, I found a place where I would like to make a base but the temporal stability is 80% (shown to me with the Status HUD Continued mod). So I turned on chunk borders, typed in /stab 2 and got a message saying the stability has been modified. Typing .checkStab confirms the modification. Except the HUD says that it's still at 80% and the gear still goes counterclockwise. I tried leaving the chunk and coming back, trying /stab 20, reloading the save, quitting the game and restarting it...it still remains at 80%. I'm not sure what I'm doing wrong.
I'm on 1.19.8 so I'm using v1.1.1.
Cho
Thanks a bunch! Hopefully I'm not the only one who gets some use out of the feature.
Inflectus Added, any problems just let me know.
Cho
Sorry for the late reply! Yes, that's exactly what I had in mind.
Inflectus Sounds easy enough that I'd be happy to try. Just to be sure, do you just mean global positive stability override rather than max? Exactly like the current behaviour - just not per-chunk?
Is it possible to apply a global max stability override, without manually changing every chunk? I know that sounds weird, but I'd like my server to have temporal storms and underground-spawning drifters enabled, but without players having to worry about temporal stability or rifts at all outside of those two cases.
However, disabling stability overrides storms, even if they're enabled.
Good to know it's still working in 1.20rc ty, I'm waiting until stable is out to push an update with a new modinfo.
In general this mod is so small and touches so few areas of the game I'll be very surprised if it breaks any time soon.
Confirmed this still works on 1.20rc3 :D
Working great on 1.19.8, thanks for the update.
Just wanted to put a note for anyone still interested in this mod: It looks like it works in SP in version 1.19.8, but be aware that the gear will still spin counter-clockwise even after changing the chunk stability. However, if you check the stability %, you will see it is raising. Great way to save good building locations otherwise ruined by random low stability.
gonna have to test if it still works, i really like this mod.
Does the mod work with the latest update?
I decided to give this a try on 1.19.4, I don't think it is working anymore unfortunately.
This is just the perfect mod for what i had in mind, i like the temporal stuff except the random "nuh, uh you can't have your base in a nice spot".
SalyStoryteller and others: I've removed that privilege requirement for SP players in the 1.1 version to make it a bit easier to use, as for the gear turning counter-clockwise I think that might have been a bug with an older version of the game, I remember also getting it but haven't been while testing on 1.18.15.
The access to the mod requires you to first give yourself the privilege via the command
/player [playername] privilege grant stab
I've noticed though that the gear keeps turning counter-clockwise even after I've set the stability of a chunk to 1 or 2. Is this working as intended, or an oversight?
at 1.18.15 SP
I also couldn't check the stability or make any changes to it.
It says I don't have privileges to use the /stab command, too.
You can check temporal stability on client side too
I added the mod, but it says I don't have privileges to use the /stab command, I am in SP and confirmed that I am admin in my game
any ideas?