Mods / Simple Weight Mod

Category: #Other #Utility
Author: KenigVovan
Side: Both
Created: Jan 15th at 9:10 AM
Last modified: 2 days ago
Downloads: 428
Follow Unfollow 10

Weight for items/blocks is set using "add_behavior.json" in mod .zip. You can change values in it  if you want different.

Now weight have ore, ore blocks, metal plates, ingots, coal, metal nugget and bits, stones, armor, crushed minerals, tools.

Bag/sack/basket have bonus to maxWeight. Classes also can give you bonus (changable by config, see below)

Wearable also can give bonus to maxWeight, there is only one "heavy-tool-belt" which by default give you bonus 1000. You can add more cloths with bonus just by changing "add_behavior.json".

In config file (will be created after you run the game) in VintageStroryData/ModConfig/weightmod.json you can change

  • MAX_PLAYER_WEIGHT - max weight player can carry (without bonus from bags and with full health). When overloaded player can not move, jump.
  • WEIGH_PLAYER_THRESHOLD - 0 < r <=1  ratio of current weight to maximum weight when walkspeed starts to lower
  • RATIO_MIN_MAX_WEIGHT_PLAYER_HEALTH - maximum weight now depends on current health/maximum health ratio, if you set this variable to 0.4 then player maximum weight won't be lower than  (MAX_PLAYER_WEIGHT * RATIO_MIN_MAX_WEIGHT_PLAYER_HEALTH) even if player has 0.1 of his maximum health.
  • ACCUM_TIME_WEIGHT_CHECK - how often weight will be calculated (seconds)
  • CLASS_WEIGHT_BONUS - list of class_name:bonus_weight

You can change "weightbonus" and "percentmodifier" from TreeAttribute "weightmod" which applied on max weight and isn't changed by this mod.

0 <= percentmodifier <=1 (default value is 1)

weightbonus value just summed with calculated maxWeight

Version For Game version Downloads Release date Changelog Download
v0.0.7 4 2 days ago Show weightmod_v0.0.7.zip
v0.0.6 12 4 days ago Show weightmod_v0.0.6.zip
v0.0.5 18 Jun 16th at 5:31 PM Show weightmod_v0.0.5.zip
v0.0.4 31 Jun 4th at 12:35 PM Show weightmod_v0.0.4.zip
v0.0.3 31 May 31st at 9:25 AM Show weightmod_v0.0.3.zip
v0.0.2 18 Apr 18th at 12:26 PM Show weightmod_v0.0.2.zip

5 Comments (oldest first | newest first)

KenigVovan, Feb 12th at 7:12 PM

@YourCreator , 9572

YourCreator, Feb 7th at 3:19 PM

сори, что не отвечал. Цифры после ника в дс какие?
Да, модов много

KenigVovan, Jan 30th at 8:58 PM

@YourCreator, what did you do before the crash or have in the inventory? Do you have any mods?

(Можешь и в дске написать, тот же ник, что и здесь)

YourCreator, Jan 30th at 6:33 PM

[Fatal] System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.
в weightmod.src.EntityBehaviorWeightable.calculateWeightOfInventories()
в weightmod.src.EntityBehaviorWeightable.OnGameTick(Single deltaTime)
в Vintagestory.API.Common.Entities.Entity.OnGameTick(Single dt)
в Vintagestory.API.Common.EntityAgent.OnGameTick(Single dt)
в Vintagestory.Server.ServerSystemEntitySimulation.TickEntities(Single dt)
в Vintagestory.Server.ServerSystemEntitySimulation.OnServerTick(Single dt)
в Vintagestory.Server.ServerMain.Process()

probably not working with weight mod

 

Devilofether, Jan 15th at 5:46 PM

Yes, it would be great if we had the option to replace the slot-based inventory with a weight based one, there are many variants of items that each take a distinct slot, so it is easy to fill up your inventory with a couple flowers and mushrooms, when you would otherwise be able to fill it with stacks of logs, rocks, and chests

delete edit