You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's good question, never modded vintage story or used C#, anyway it looks like there's new way of assigning health regen, I tried to find it using dnspy but without success yet
Posslbe fix
At discord user "Nat" suggested that nowdays you could use var healthRegenSpeed = entity is EntityPlayer ? entity.Api.World.Config.GetString("playerHealthRegenSpeed", "1").ToFloat() : entity.WatchedAttributes.GetFloat("regenSpeed", 1);
Anyway, I am not sure if it will work as I can't find proof that such property as "regenSpeed" even exists in the game
The text was updated successfully, but these errors were encountered:
marosiak
changed the title
1.2 incompatible - I found some info and possible solution
1.20 incompatible - I found some info and possible solution
Jan 29, 2025
Hi, idea of this mod is genius and I am big fan of such approach to starvation, anyway sadly I am not able to enjoy it at 1.2
I've started debugging a bit
[Server Error] Exception: Method not found: 'Void Vintagestory.GameContent.EntityBehaviorHealth.set__playerHealthRegenSpeed(Single)'.
at Starvation.EntityBehaviorStarve.ServerTickSlow(Single deltaTime)
Line which is broken:
bh._playerHealthRegenSpeed = (float) (baseRegenSpeed * HealthRegenPenalty());
How to fix?
That's good question, never modded vintage story or used C#, anyway it looks like there's new way of assigning health regen, I tried to find it using dnspy but without success yet
Posslbe fix
At discord user "Nat" suggested that nowdays you could use
var healthRegenSpeed = entity is EntityPlayer ? entity.Api.World.Config.GetString("playerHealthRegenSpeed", "1").ToFloat() : entity.WatchedAttributes.GetFloat("regenSpeed", 1);
Anyway, I am not sure if it will work as I can't find proof that such property as "regenSpeed" even exists in the game
The text was updated successfully, but these errors were encountered: