Sgt-Imalas / Sgt_Imalas-Oni-Mods

All the ONI mods made by Sgt_Imalas
MIT License
21 stars 8 forks source link

[BUG]: `Error in GameAssets(Clone).Assets.OnPrefabInit at (0.0, 0.0, 0.0)` with MPM & DSS flagged post Frosty DLC #119

Closed chuckofalltrades closed 3 months ago

chuckofalltrades commented 3 months ago

Which Mod?

Duplicant Stat Selector & Mod Profile Manager

(Also these from others:) True Tiles (Aki) Spooky Pumpkins (Aki) Bio-Inks (Aki) Palmera Tree (Cairath)

Description of the bug/crash

As of 2024.07.20 I get the below on launch with these mods red. Note I am using your "Help, none of my mod options are working after the DLC update - fix" to get past the IsContentActive was called with a newer DLC which is not allowed error.

Error in GameAssets(Clone).Assets.OnPrefabInit at (0.0, 0.0, 0.0)

System.MissingMethodException: UnityEngine.GameObject EntityTemplates.CreateAndRegisterSeedForPlant(UnityEngine.GameObject,SeedProducer/ProductionType,string,string,string,KAnimFile,string,int,System.Collections.Generic.List`1<Tag>,SingleEntityReceptacle/ReceptacleDirection,Tag,int,string,EntityTemplates/CollisionShape,single,single,Recipe/Ingredient[],string,bool)
  at EntityConfigManager.RegisterEntity (IEntityConfig config) [0x00000] in <6a4881d0158f4df7b8d05b85330d1014>:0 
  at (wrapper dynamic-method) EntityConfigManager.EntityConfigManager.LoadGeneratedEntities_Patch3(EntityConfigManager,System.Collections.Generic.List`1<System.Type>)
  at LegacyModMain.LoadEntities (System.Collections.Generic.List`1[T] types) [0x00000] in <6a4881d0158f4df7b8d05b85330d1014>:0 
  at LegacyModMain.Load () [0x0004d] in <6a4881d0158f4df7b8d05b85330d1014>:0 
  at Assets.CreatePrefabs () [0x00055] in <6a4881d0158f4df7b8d05b85330d1014>:0 
  at (wrapper dynamic-method) Assets.Assets.OnPrefabInit_Patch6(Assets)
  at KMonoBehaviour.InitializeComponent () [0x00068] in <a95cc52d0d454fd8a88d7180d0d261b1>:0 
Build: U52-622509-SC

Steps To Reproduce

Launch game with the above mods enabled.

Player.log

Player.log

Sgt-Imalas commented 3 months ago

EntityTemplates.CreateAndRegisterSeedForPlant

some mod in your list tries to register a seed (judging by the log its probably either Palmera Tree or Spooky Pumpkin), DSS and MPM patch Assets.PrefabInit to apply manual patches in other areas of the game for compatibility integrations that have to run after regular patches, but the game will always blame all mods in the stack trace of a crash.

not actually caused by these mods

chuckofalltrades commented 3 months ago

Yep, after your comment on Steam I'm doing a 1 by 1 enable and it looks like Palmera Tree is the trigger for this issue.