Jump to content

Error at oxide.reload - file modifications

Pending 1.2.5

Lolapalooza
Lolapalooza

Posted

Please help.  🙂  I'm getting an error after modifying the files. I've done this before, and it worked flawlessly, so I'm probably just doing something really stupid.

it starts up fine, and generates the default.json and customLoot.jsn files properly. i've modified the files using find/replace, so there shouldn't be any syntax errors, and I've run it through a json checker.  but it seems that no matter what i modify, I'm getting the attached server error, and the following error in my log when i run oxide.reload CustomLoot:

11:15 [Info] [CSharp] Started Oxide.Compiler v1.0.32.0 successfully
11:15 [Info] CustomLoot was compiled successfully in 1760ms
11:15 [Info] Unloaded plugin CustomLoot v1.2.5 by Steenamaroo
11:15 [Info] [CustomLoot] There is an error in data file default.
11:15 [Warning] Calling 'OnServerInitialized' on 'CustomLoot v1.2.5' took 897ms
11:15 [Info] Loaded plugin CustomLoot v1.2.5 by Steenamaroo
11:15 [Warning] [CustomLoot] Finished populating all containers.
11:16 [Info] Shutting down compiler because idle shutdown
11:16 [Info] Compiler shutdown completed

CustomLoot.cs - i haven't touched.

default.json - stuff i've changed:

  "allowChristmas": true,
  "allowHalloween": true,
  "allowKeycards": true,
  "allowDLCItems": true,

~~~~~

  "AlwaysSpawnList": [],
  "Spawn_Vanilla_Scrap": false,
  "Vanilla_Scrap_Multiplier": 0.2,
  "Categories": {
    "Ammunition": {
      "probability": 3,
      "allowBlueprints": false
    },
    "Attire": {
      "probability": 7,
      "allowBlueprints": false
    },

***** and the other categories are modified similarly
~~~~~

  "LootTypes": {
    "Ammunition": {
      "ammo.grenadelauncher.buckshot": {
        "probability": 7,
        "minStack": 1,
        "maxStack": 1
      },
      "ammo.grenadelauncher.he": {
        "probability": 7,
        "minStack": 1,
        "maxStack": 1
      },
      "ammo.grenadelauncher.smoke": {
        "probability": 7,
        "minStack": 1,
        "maxStack": 1
      },

***** and the other loot items are modified similarly

CustomLoot.json - stuff i've changed:

{
  "GlobalSettings": {
    "allowDuplicates": false,
    "RoundResourcesStacksDownToNearestTen": true,
    "IgnoreContainersWithOwnerID": true,
    "corpseTypePerBotReSpawnProfile": false,
    "Include_DM_Crates": false,
    "Show_Skins_For_All_Items": false,
    "AllowSkinsFor": [
      "note"
    ]
  },
  "CorpseTypes": {
    "Airfield": {
      "enabled": true,
      "lootTable": "default",
      "maxItems": 6,
      "minItems": 6,
      "gunsWithAmmo": false,
      "noGuns": false,
      "MaxBps": 3,
      "WaterPreFillPercent": 20,
      "ClearContainerFirst": true
    },
    "APCScientist": {
      "enabled": true,
      "lootTable": "default",
      "maxItems": 6,
      "minItems": 6,
      "gunsWithAmmo": false,
      "noGuns": false,
      "MaxBps": 3,
      "WaterPreFillPercent": 20,
      "ClearContainerFirst": true
    },

***** and the other containers are modified similarly

customloot ERROR.png

  • Administrator
Steenamaroo

Posted

Hi,
Can you send me the default.json file, please?
I'll see if I can figure out what the problem is.

Lolapalooza

Posted

Thanks, Steenamaro!

I changed the top 4 items to true. I changed the Category probabilites  and allowBlueprints manually. I changed the Spawn_Vanilla_Scrap: false, and multiplier. I've just used a find/replace for the "probability": 7, under LootTypes - so they should all be the same.  So just those 4 changes.

default.json

Lolapalooza

Posted (edited)

i think i've figured it. in my old files, there was no line: "Vanilla_Scrap_Multiplier": INTEGER. i've changed it to a decimal. i'm going to try it again by leaving it at 1 and changing the scrap output manually in each container.

Edited by Lolapalooza
Lolapalooza

Posted (edited)

Yes! That was it. Can not lower the Multiplier by decimal places. 

 

Edited by Lolapalooza
2.3m

Downloads

Total number of downloads.

10.5k

Customers

Total customers served.

151.7k

Files Sold

Total number of files sold.

3.2m

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.