Jump to content

Not working for modular car

Can't Reproduce 0.3.1

Hello,

 

The plugin seems not to be working for modular cars.

Modular car fuel settings only works if you remove and reattach the engine module. Once you restart the server or reload the plugin the setting stops working

Share this comment


Link to comment

I just tried the latest version of this plugin on my test server and everything seems to be working correctly.

I spawned a modular car with 0 consumption and only 1 low grade fuel, and the fuel settings persisted after a server restart.

{
  "Vehicles": {
    "4module_car_spawned.entity": {
      "StartingFuel": 1,
      "LockFuelContainer": false,
      "FuelPerSecond": null,
      "IdleFuelPerSecond": null,
      "MaxFuelPerSecond": null
    },
    "3module_car_spawned.entity": {
      "StartingFuel": 1,
      "LockFuelContainer": false,
      "FuelPerSecond": null,
      "IdleFuelPerSecond": null,
      "MaxFuelPerSecond": null
    },
    "2module_car_spawned.entity": {
      "StartingFuel": 1,
      "LockFuelContainer": false,
      "FuelPerSecond": null,
      "IdleFuelPerSecond": null,
      "MaxFuelPerSecond": null
    }
  },
  "ModularCarsSpawnFullHealth": false,
  "EngineModules": {
    "1module_cockpit_with_engine": {
      "PartsTier": 3,
      "LockContainer": false,
      "IdleFuelPerSecond": 0.0,
      "MaxFuelPerSecond": 0.0
    },
    "1module_engine": {
      "PartsTier": 3,
      "LockContainer": false,
      "IdleFuelPerSecond": 0.0,
      "MaxFuelPerSecond": 0.0
    }
  }
}

 

Share this comment


Link to comment

Hello,

 

Thank you for the response. I reattempted the test with the config provided by you, using all default server convars / settings and no other plugins. Here is the video of my results

https://youtu.be/bHCar1mM5Jw?si=EeGnY9r7AtvbVftb

0:00 – Spawning new car, fuel settings is working.

0:38 – Reloading the plugin, fuel settings stop working.

1:02 – Unloading and reloading the plugin, still not working.

1:40 – Using car lift to reattach the module, fuel settings start working again.

2:48 – Reloading the plugin again, fuel settings stop working.

 

The problem does not persist with other vehicles, only modular cars. What could be causing this in my case?

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.9k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.