Jump to content

yuriy206

Member
  • Posts

    9
  • Joined

  • Last visited

Reputation Activity

  1. Like
    yuriy206 got a reaction from FinestHops in Modding Hydrocraft items using DarkSlayerEX Item Tweaker API   
    It looks like I solved it (atleast it is working for me now) somehow?
     
    My solution (Being posted because the rules say I should, even though I am not sure what actually fixed the problem or how any of this could even have solved the problem):
    I uninstalled project zomboid, deleted everything related to project zomboid (Including the folder in the user directory) then reinstalled and rearranged the lines in the mod.info to:
     
    I am not sure how this solved the problem but it did... Hopefully it stays solved.
  2. Like
    yuriy206 reacted to FinestHops in Modding Hydrocraft items using DarkSlayerEX Item Tweaker API   
    Now, I believe, and I could be wrong that with an API editing a mod, you can run into issues like this if the API is loaded by the server or game before the mod is. You don't need to worry about this with base game items though. 
     
    Now... I assume that you also have the item tweaker selected to load as well as its mandatory for its function. 
     
    Using another mod like yours as an example....
    In the .lua.... after deleting a wall of ignore comment code...
     
    if getActivatedMods():contains("ItemTweakerAPI") then 
        require("ItemTweaker_Core");
    else return end
    -- Adjust Disinfectant Ratios
    TweakItem("Base.Disinfectant", "UseDelta", "0.02");

    -- Items deplete into Clean Empty Bottles
    TweakItem("Hydrocraft.HCCookingoil", "ReplaceOnDeplete", "Hydrocraft.HCWaterbottleclean");
    TweakItem("Base.Disinfectant", "ReplaceOnDeplete", "Hydrocraft.HCWaterbottleclean");
     
    vs yours....
     
     
    if getActivatedMods():contains("ItemTweakerAPI") then 
        require("ItemTweaker_Core");
    else return end
    TweakItem("Hydrocraft.HCHanddolly", "WeightReduction", "90");
    TweakItem("Hydrocraft.HCWheelbarrow", "WeightReduction", "90");
    TweakItem("Hydrocraft.HCPallettruck", "WeightReduction", "90");
    TweakItem("Hydrocraft.HCPushcart", "WeightReduction", "90");
    TweakItem("Hydrocraft.HCShoppingcart", "WeightReduction", "90");
     
    The code itself looks fine when compared to a working mod. 
    the referencing of WeightReduction seems fine...
    In theirs, the .lua was only in the client section while you have yours in client and server....
    Removed server folder....
    No immediate errors in console on load....
     
    For testing.
    1 Car battery in Shopping Cart - base reduction 50 - BC sets to 90
    1 car battery in Toy Wagon - base reduction 50 - not in BC
     
     
    Base character weight no carts, no battery -  4.3
    Character carry weight battery no carts - 24.3
    Weight shopping cart equipped - 7.9
    Weight Wagon equipped - 7.9
    Weight battery cart -  9.9 (in your mod)
    Weight battery wagon -  17.3 (not in your mod)
    Weight difference: 7.4
     
    The bold is what really matters. since the car and wagon were effectively the same weight empty on the character and have the same base reduction, that means the Cart with the mod removing the server folder weighs 7.4 less. So thats a decent reduction and looks about right. 
     
    So if the mod is not working for you, remove the server folder since character weight is only handled by the client anyway. The fact that its also there in the server folder may be why its not working for you. 
     
     
     
×
×
  • Create New...