Jump to content

errors

Closed 1.0.4

[SERVER v1.0.24] Got Message: Compile
[SERVER v1.0.24] Console: TrafficDrivers.cs(946,21): warning CS0219: The variable `throttle' is assigned but its value is never used

 

12:05 [Error] Failed to call hook 'SpawnTrafficCar' on plugin 'TrafficDrivers v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.TrafficDrivers.SpawnTrafficCarParams (UnityEngine.Vector3[] path, UnityEngine.Vector3 position, Oxide.Plugins.TrafficDrivers+TrafficDriver+DriveSide side) [0x002ac] in <4e604c490e63419c8dd59cc3726bed61>:0 
  at Oxide.Plugins.TrafficDrivers.SpawnTrafficCar () [0x00051] in <4e604c490e63419c8dd59cc3726bed61>:0 
  at Oxide.Plugins.TrafficDrivers.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00399] in <4e604c490e63419c8dd59cc3726bed61>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <dfcb48ea05694263bbc08e62a39c274c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <dfcb48ea05694263bbc08e62a39c274c>:0 

Share this comment


Link to comment

doing same thing. config does contain info

 

12:26 [Error] [Traffic Drivers] Плагин SpawnModularCar не установлен / SpawnModularCar plugin is not installed

Edited by Robert Stevens

Share this comment


Link to comment

you have Russian character's in the config

"Vehicle presets": {
    "3-х модульный транспорт": {
      "Modules": [
        "vehicle.1mod.engine",
        "vehicle.1mod.storage",
        "vehicle.1mod.cockpit.with.engine"
      ],

Share this comment


Link to comment
9 minutes ago, Robert Stevens said:

you have Russian character's in the config

"Vehicle presets": {
    "3-х модульный транспорт": {
      "Modules": [
        "vehicle.1mod.engine",
        "vehicle.1mod.storage",
        "vehicle.1mod.cockpit.with.engine"
      ],

can i see your config? and what map do you use? custom or procedural

russian characters and names in the config, I think it's not such a big problem 🙂 anyway, this is a test config and it needs to be reconfigured

Edited by walkinrey

Share this comment


Link to comment
43 minutes ago, Robert Stevens said:

doing same thing. config does contain info

 

12:26 [Error] [Traffic Drivers] Плагин SpawnModularCar не установлен / SpawnModularCar plugin is not installed

so, were you able to solve the problem?

Share this comment


Link to comment
{
  "Vehicle presets": {
    "3-х модульный транспорт": {
      "Modules": [
        "vehicle.1mod.engine",
        "vehicle.1mod.storage",
        "vehicle.1mod.cockpit.with.engine"
      ],
      "Add codelock?": false,
      "Add door lock?": false,
      "Engine parts tier (0-3, 0 to spawn without parts)": 3,
      "Fuel amount (-1 for max amount)": -1,
      "Water amount for fuel tank (not necessary, -1 for max amount)": 0,
      "Max speed": 10.0,
      "Enable infinite fuel": true,
      "Driver preset name (leave blank to spawn random driver)": "",
      "Destroy car after driver death?": false,
      "Block access to engine parts?": true,
      "Destroy engine parts after driver death?": true,
      "Add flashing lights to car driver module?": false,
      "Detonator (for vehicle despawn)": {
        "Add a detonator to the car after the death of the driver (useful to despawn cars)": true,
        "In how many seconds detonator will be blow up": 300.0
      },
      "Loot in Storage Module": {
        "Add loot to Storage Module": true,
        "Loot": [
          {
            "Item shortname": "wood",
            "Item skin": 0,
            "Item name (not necessary)": null,
            "Spawn chance": 100.0,
            "Item amount": {
              "Minimum": 1000.0,
              "Maximum": 10000.0
            }
          },
          {
            "Item shortname": "stones",
            "Item skin": 0,
            "Item name (not necessary)": null,
            "Spawn chance": 100.0,
            "Item amount": {
              "Minimum": 5000.0,
              "Maximum": 50000.0
            }
          }
        ]
      }
    }
  },
  "Driver presets": {
    "Водитель Ярик": {
      "Display driver name": "Goober",
      "Bot skin (0 - random)": 0,
      "Bot health": {
        "Minimum": 100.0,
        "Maximum": 150.0
      },
      "Bot loot": [
        {
          "Item name": null,
          "Item shortname": "rifle.ak",
          "Item skin": 0,
          "Spawn chance": 100.0,
          "Item amount": {
            "Minimum": 1.0,
            "Maximum": 1.0
          },
          "Target container (main, belt, wear)": "belt"
        },
        {
          "Item name": null,
          "Item shortname": "hatchet",
          "Item skin": 0,
          "Spawn chance": 100.0,
          "Item amount": {
            "Minimum": 1.0,
            "Maximum": 1.0
          },
          "Target container (main, belt, wear)": "main"
        }
      ],
      "Driver will be moving with default speed (1) or will be increase max. speed for a while (2) when attacked?": 2,
      "Damage receive rate": 0.5,
      "Clothes": [
        {
          "Item shortname": "hazmatsuit",
          "Item skin": 0
        }
      ],
      "Companion": {
        "Spawn companion for driver? (he will shoot and protect him)": true,
        "Display companion name": "upperking",
        "Companion health": {
          "Minimum": 100.0,
          "Maximum": 150.0
        },
        "Clothes": [
          {
            "Item shortname": "attire.banditguard",
            "Item skin": 0
          }
        ],
        "Damage receive rate": 0.5,
        "Damage rate": 2.0
      }
    }
  },
  "Limits, spawn and interaction setup": {
    "Maximum amount of cars": {
      "Minimum": 1.0,
      "Maximum": 5.0
    },
    "Minimum road width": 100,
    "After how many seconds destroy stuck car?": 60.0,
    "Delay between spawn next car": 5,
    "Prevent bots from attacking drivers and companions?": true
  }
}

 

Share this comment


Link to comment
Quote

13:07 [Info] TrafficDrivers was compiled successfully in 367ms
13:07 [Error] Failed to call hook 'SpawnTrafficCar' on plugin 'TrafficDrivers v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.TrafficDrivers.SpawnTrafficCarParams (UnityEngine.Vector3[] path, UnityEngine.Vector3 position, Oxide.Plugins.TrafficDrivers+TrafficDriver+DriveSide side) [0x002ac] in <cfea981e31af4da5b5d9029fe12559b3>:0 
  at Oxide.Plugins.TrafficDrivers.SpawnTrafficCar () [0x00051] in <cfea981e31af4da5b5d9029fe12559b3>:0 
  at Oxide.Plugins.TrafficDrivers.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00399] in <cfea981e31af4da5b5d9029fe12559b3>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <dfcb48ea05694263bbc08e62a39c274c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <dfcb48ea05694263bbc08e62a39c274c>:0 
13:07 [Info] [Traffic Drivers] Найдено подходящих дорог: 1 / Finded suitable roads: 1
13:07 [Warning] [Lone Update Checker] TrafficDrivers.cs was just loaded in, checking for updates...
13:07 [Info] Loaded plugin Traffic Drivers v1.0.4 by walkinrey
13:07 [Error] [Traffic Drivers] Плагин SpawnModularCar не установлен / SpawnModularCar plugin is not installed
13:07 [Warning] [Lone Update Checker] 
TrafficDrivers.cs: OK. You have the most recent version 1.0.4 installed.


13:07 [Error] Failed to call hook 'SpawnTrafficCar' on plugin 'TrafficDrivers v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.TrafficDrivers.SpawnTrafficCarParams (UnityEngine.Vector3[] path, UnityEngine.Vector3 position, Oxide.Plugins.TrafficDrivers+TrafficDriver+DriveSide side) [0x002ac] in <cfea981e31af4da5b5d9029fe12559b3>:0 
  at Oxide.Plugins.TrafficDrivers.SpawnTrafficCar () [0x00051] in <cfea981e31af4da5b5d9029fe12559b3>:0 
  at Oxide.Plugins.TrafficDrivers.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00399] in <cfea981e31af4da5b5d9029fe12559b3>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <dfcb48ea05694263bbc08e62a39c274c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <dfcb48ea05694263bbc08e62a39c274c>:0 

 

 

Share this comment


Link to comment
30 minutes ago, walkinrey said:

install SpawnModularCar plugin

works when I added that plugin. thanks!

 

anyway to change names? i tried in config and doesn't work

13:44 [Info] [Traffic Drivers] Машина для трафика была успешно заспавнена! | Traffic car was sucessfully spawned!
13:45 [Info] [Traffic Drivers] Машина для трафика была успешно заспавнена! | Traffic car was sucessfully spawned!
13:46 [Info] [Traffic Drivers] Машина для трафика была успешно заспавнена! | Traffic car was sucessfully spawned!
13:46 [Info] [Traffic Drivers] Машина для трафика была успешно заспавнена! | Traffic car was sucessfully spawned!

Share this comment


Link to comment
1 minute ago, Robert Stevens said:

works when I added that plugin. thanks!

 

anyway to change names? i tried in config and doesn't work

13:44 [Info] [Traffic Drivers] Машина для трафика была успешно заспавнена! | Traffic car was sucessfully spawned!
13:45 [Info] [Traffic Drivers] Машина для трафика была успешно заспавнена! | Traffic car was sucessfully spawned!
13:46 [Info] [Traffic Drivers] Машина для трафика была успешно заспавнена! | Traffic car was sucessfully spawned!
13:46 [Info] [Traffic Drivers] Машина для трафика была успешно заспавнена! | Traffic car was sucessfully spawned!

just a message displaying information that the car has spawned.
can be changed only through the plugin code, but for what

Share this comment


Link to comment
16 minutes ago, walkinrey said:

just a message displaying information that the car has spawned.
can be changed only through the plugin code, but for what

for a english name

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.5k

Customers

Total customers served.

78.6k

Files Sold

Total number of files sold.

1.5m

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.