Fuel tank mod not working

Discussion in 'Content Creation' started by Superserg, Mar 9, 2024.

  1. Superserg

    Superserg
    Expand Collapse

    Joined:
    Jan 22, 2022
    Messages:
    7
    I'm trying to make half of Covet out of box utility version simply by removing the trailer, but the problem is that fuel tank is on the trailer. So I'm making a mod that will let it having a tank without having the trailer by creating a new fuel tank that would be in slot of the trailer. The part appears in the part tree, but when config is assembled the engine does not start and the gauge shows that the tank is empty (however in tuning tab initial fuel amount is full).
    I've mostly copied from covet_boxutility and covet_boxutility_fueltank. I'm not using any model, so there is no nodes or beams. What am I missing?

    Code:
    {
    "covet_trailerback_fueltank": {
        "information":{
            "authors":"Serg",
            "name":"Fuel Tank",
            "value":150,
        },
        "slotType" : "covet_trailerback",
    
        "variables": [
            ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
            ["$fuel_R", "range", "L", "Fueltank", 25, 0, 25, "Fuel Volume", "Initial fuel volume", {"stepDis":0.5,"subCategory":"Right"}],
        ],
        "energyStorage": [
            ["type", "name"],
            ["fuelTank", "fueltank_B"],
        ],
        "fueltank_B": {
            "energyType":"gasoline",
            "fuelCapacity": 25,
            "startingFuelCapacity": "$fuel_R",
            "fuel": {"[engineGroup]:":["fuel_R"]},
            "breakTriggerBeam": [],
        },
    },
    }
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,425
    The name for the fuel tank energy storage must match the name defined for the engine. So in your case it should be fueltank instead of fueltank_B. It won't conflict with the normal fuel tank as you can't install both at the same time.
     
    • Like Like x 1
  3. Superserg

    Superserg
    Expand Collapse

    Joined:
    Jan 22, 2022
    Messages:
    7
    Thanks a lot, this helped.
    Pretty much uncontrollable though... just as expected)
    So here's the mod:
     

    Attached Files:

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice