Oxygen Not Included

Oxygen Not Included

Customize Plants
foggywizard Dec 13, 2020 @ 5:26pm
Need help for a crash issue
So normally this mod works for me but lately I've been getting this:

Error in TopRightInfoPanelButtons.ManagementMenu.OnPrefabInit
System.NullReferenceException: Object reference not set to an instance of an object
at CustomizePlants.Crop_InformationDescriptors.Prefix (Crop __instance, System.Collections.Generic.List`1[Descriptor]& __result) [0x00062] in <bb4472191854493a92738aa73daeb8d3>:0
at (wrapper dynamic-method) Crop.InformationDescriptors_Patch2(object,UnityEngine.GameObject)
at Crop.GetDescriptors (UnityEngine.GameObject go) [0x0003d] in <1c58b1f98f5849baa9083bfd5185b144>:0
at GameUtil.GetAllDescriptors (UnityEngine.GameObject go, System.Boolean simpleInfoScreen) [0x00045] in <1c58b1f98f5849baa9083bfd5185b144>:0
at GameUtil.GetPlantRequirementDescriptors (UnityEngine.GameObject go) [0x00006] in <1c58b1f98f5849baa9083bfd5185b144>:0
at CodexEntryGenerator.GeneratePlantDescriptionContainers (UnityEngine.GameObject plant, System.Collections.Generic.List`1[T] containers) [0x00100] in <1c58b1f98f5849baa9083bfd5185b144>:0
at CodexEntryGenerator.GeneratePlantEntries () [0x0007b] in <1c58b1f98f5849baa9083bfd5185b144>:0
at CodexCache.CodexCacheInit () [0x001b5] in <1c58b1f98f5849baa9083bfd5185b144>:0
at ManagementMenu.OnPrefabInit () [0x0000c] in <1c58b1f98f5849baa9083bfd5185b144>:0
at KMonoBehaviour.InitializeComponent () [0x00068] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0

at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <b8388ffefd6046f8a7b4080349da72eb>:0
at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0
at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0
at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0
at KMonoBehaviour.InitializeComponent () [0x00000] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0
at KMonoBehaviour.Awake () [0x00000] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0
at UnityEngine.Object.Internal_CloneSingleWithParent (UnityEngine.Object data, UnityEngine.Transform parent, System.Boolean worldPositionStays) [0x00000] in <b8388ffefd6046f8a7b4080349da72eb>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Transform parent, System.Boolean instantiateInWorldSpace) [0x00000] in <b8388ffefd6046f8a7b4080349da72eb>:0
at UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Transform parent, System.Boolean worldPositionStays) [0x00000] in <b8388ffefd6046f8a7b4080349da72eb>:0
at Util.KInstantiateUI (UnityEngine.GameObject original, UnityEngine.GameObject parent, System.Boolean force_active) [0x00000] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0
at ScheduledUIInstantiation.InstantiateElements (System.Object data) [0x00000] in <1c58b1f98f5849baa9083bfd5185b144>:0
at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x00000] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0
at KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) [0x00000] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0
at Game.OnSpawn_Patch6 (System.Object ) [0x00000] in <1c58b1f98f5849baa9083bfd5185b144>:0
at KMonoBehaviour.Spawn () [0x00000] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0
at KMonoBehaviour.Start () [0x00000] in <f30d3c85d1f64155aa0dc6c7adb0d1eb>:0


Any idea where I went wrong in formatting the .json?
< >
Showing 1-5 of 5 comments
Fumihiko  [developer] Dec 14, 2020 @ 8:26am 
CustomizePlants.Crop_InformationDescriptors.Prefix, sounds like you messed up SpecialCropSettings.
Best you share your json too.
foggywizard Dec 14, 2020 @ 1:11pm 
"PlantSettings": [
{
"id": "BasicSingleHarvestPlant",
"irrigation": {
"Dirt": 0.5
},
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "MushroomPlant",
"fruitId": "Mushroom",
"fruit_grow_time": 3600.0,
"fruit_amount": 1,
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"irrigation": {},
"illumination": 0.0,
"temperatures": [
100.0,
253.15,
373.15,
450.0
],
"input_element": "CarbonDioxide",
"input_rate": 0.001
},
{
"id": "PrickleFlower",
"irrigation": {
"Water": 5.0
},
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "SeaLettuce",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"irrigation": {
"SaltWater": 5.0
},
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "BeanPlant",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"irrigation": {},
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "SpiceVine",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"irrigation": {
"DirtyWater": 15.0,
"Phosphorite": 1.0
},
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "ForestTree",
"pressures": [
0.0,
0.025,
100.00
],
"irrigation": {
"Dirt": 10.0
}
},
{
"id": "ColdBreather",
"fruitId": "ColdBreatherSeed",
"fruit_grow_time": 400.0,
"fruit_amount": 1,
"max_age": 500,
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"irrigation": {},
"temperatures": [
50.0,
100.0,
9000.15,
10000
],
},
{
"id": "GasGrass",
"illumination": 100.0
},
{
"id": "PrickleGrass",
"fruitId": "placeholder3",
"fruit_grow_time": 2400.0,
"fruit_amount": 1,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"safe_elements": [
"Oxygen",
"ContaminatedOxygen",
"CarbonDioxide",
"ChlorineGas"
],
"input_element": "CarbonDioxide",
"input_rate": 1.01,
"output_element": "Oxygen",
"output_rate": 1.01
},
{
"id": "LeafyPlant",
"fruitId": "placeholder1",
"fruit_grow_time": 2400.0,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"input_element": "CarbonDioxide",
"input_rate": 1.01,
"output_element": "Oxygen",
"output_rate": 1.01
},
{
"id": "BulbPlant",
"fruitId": "placeholder2",
"fruit_grow_time": 2400.0,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"input_element": "CarbonDioxide",
"input_rate": 1.01,
"output_element": "Oxygen",
"output_rate": 1.01
},
{
"id": "CactusPlant",
"safe_elements": [
"Oxygen",
"ContaminatedOxygen",
"CarbonDioxide",
"Methane"
],
"pressures": [
0.0,
0.0,
2.0,
30.0
],
"input_element": "Methane",
"input_rate": 0.01,
"output_element": "CarbonDioxide",
"output_rate": 0.01
},
{
"id": "EvilFlower",
"safe_elements": [
"CarbonDioxide",
"ChlorineGas"
],
"pressures": [
0.0,
0.0,
5.0
],
"output_element": "ChlorineGas",
"output_rate": 0.012
},
{
"id": "SunnyWheat",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "FrostBlossom",
"fruitId": "forgotfb",
"fruit_grow_time": 2400.0,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
]
},
{
"id": "IcyShroom",
"fruitId": "placeholder4",
"fruit_grow_time": 2400.0,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
]
},
{
"id": "MyrthRose",
"fruitId": "placeholder5",
"fruit_grow_time": 2400.0,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
]
},
{
"id": "RustFern",
"fruitId": "placeholder7",
"fruit_grow_time": 2400.0,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
]
},
{
"id": "ShlurpCoral",
"fruitId": "placeholder8",
"fruit_grow_time": 2400.0,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
]
},
{
"id": "SporeLamp",
"fruitId": "placeholder9",
"fruit_grow_time": 2400.0,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
]
},
{
"id": "Tropicalgae",
"fruitId": "placeholder0",
"fruit_grow_time": 2400.0,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
]
},
{
"id": "PricklyLotus",
"fruitId": "placeholder6",
"fruit_grow_time": 2400.0,
"max_age": 3600,
"pressures": [
0.0,
0.0,
20.0,
30.0
]
},
{
"id": "Fervine",
"fruitId": "FervineBulb",
"fruit_grow_time": 400.0,
"pressures": [
0.0,
0.0,
20.0,
30.0
]
},
{
"id": "CoalPlant",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "ResonantPlant",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "CactusFruit",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "CreamtopMushroom",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "KakawaTree",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "PalmeraTreePlant",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "SP_PumpkinPlant",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
},
{
"id": "TremWheatPlant",
"pressures": [
0.0,
0.0,
20.0,
30.0
],
"temperatures": [
100.0,
253.15,
373.15,
450.0
]
}
],
"SpecialCropSettings": {
"placeholder1": {
"Algae": 40,
"Clay": 20,
"LeafyPlantSeed": 1
},
"placeholder2": {
"Algae": 40,
"Fertilizer": 20,
"BulbPlantseed": 1
},
"placeholder3": {
"Creature": 40,
"PrickleFlowerSeed": 1,
"PrickleGrassSeed": 1
},
"placeholder4": {
"Ice": 40,
"Snow": 20,
"IcyShroomSeed": 1
},
"placeholder5": {
"Creature": 40,
"Lime": 1,
"MyrthRoseSeed": 1
},
"placeholder6": {
"Sand": 40,
"Glass": 1,
"PricklyLotusSeed": 1
},
"placeholder7": {
"Rust": 40,
"MaficRock": 20,
"RustFernSeed": 1
},
"placeholder8": {
"BleachStone": 20,
"Salt": 10,
"ShlurpCoralSeed": 1
},
"placeholder9": {
"Coal": 40,
"Diamond": 1,
"SporeLampSeed": 1
},
"placeholder0": {
"Algae": 40,
"SlimeMold": 40,
"TropicalgaeSeed": 1
},
"forgotfb": {
"Snow": 40,
"Ice": 20,
"FrostBlossomSeed": 1
},
},
Mostly trying to make the decorative plants from omni plants a bit more useful. And up all pressure tolerances bc for some godforsaken reason my current base naturally comes with 13k oxygen pressure.
Fumihiko  [developer] Dec 15, 2020 @ 8:26am 
That's a lot of stuff. How often did you validate that it's still working? Obviously it's a bad idea to put so many changes in at once. Afterwards you won't know what causes the issue.

Also, since other mods are involved I need the actual file. There is just too much that can go wrong with "ModPlants". I recommend you use a file share or pastebin.

Also also, it seems you have more than just omni plants installed. Please tell me all the mods that add new plants.
foggywizard Dec 15, 2020 @ 12:19pm 
I have every plant mod, but only added stuff to the omniplants one. I think I know where I went wrong here, but can't test because ONI has stopped working for me at all, even deleting all my mods. Anyhow, "ShlurpCoralSeed" does not exist. Instead, it's "ShlurpCoralPolyp".
foggywizard Dec 15, 2020 @ 7:24pm 
Update: It was the config for the Shlurp Coral Seeds that was causing the issue. It's working just fine now and I'm a dumbass for not checking every seed code to start with.
< >
Showing 1-5 of 5 comments
Per page: 1530 50