Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

New Here - Have Custom Mod /No Longer Getting Errors But No Ores On Alien

Discussion in 'Programming Questions and Suggestions' started by ApexAlphaGaming, Feb 24, 2020.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. ApexAlphaGaming Trainee Engineer

    Messages:
    5
    I have no idea if this is the right place to post this but anyways I have a mod that I've been working on for a while now and in the crap log it tells me which sbc files are throwing errors and in the long log it says a few components are missing but after spending HOURS checking I'm 100% certain the components are there as everything has been copied and pasted from the first time I wrote any of my own words and anything that wasn't custom written in by me i.e. the basic makeup of the sbc files, I copy and pasted from the vanilla folder's sbc files and wrote in my own stuff.
    Example:
    The Crap log gives me this little info.

    Code:
    MOD_CRITICAL_ERROR: Quantum Flux, in file: C:\Users\Dizzy\AppData\Roaming\SpaceEngineers\Mods\Quantum Flux\Data\Weapons.sbc
    MOD SKIPPED, Cannot load definition file
    MOD_CRITICAL_ERROR: Quantum Flux, in file: C:\Users\Dizzy\AppData\Roaming\SpaceEngineers\Mods\Quantum Flux\Data\CubeBlocks_Assemblers.sbc
    MOD PARTIALLY SKIPPED, LOADED ONLY 4/6 PHASES, Following Error occured:
    The given key was not present in the dictionary.
    mscorlib
      at System.ThrowHelper.ThrowKeyNotFoundException()
      at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
      at Sandbox.Definitions.MyDefinitionManager.GetComponentDefinition(MyDefinitionId id)
      at Sandbox.Definitions.MyCubeBlockDefinition.Init(MyObjectBuilder_DefinitionBase builder)
      at Sandbox.Definitions.MyProductionBlockDefinition.Init(MyObjectBuilder_DefinitionBase builder)
      at Sandbox.Definitions.MyAssemblerDefinition.Init(MyObjectBuilder_DefinitionBase builder)
      at Sandbox.Definitions.MyDefinitionManager.InitDefinition[T](MyModContext context, MyObjectBuilder_DefinitionBase builder)
      at Sandbox.Definitions.MyDefinitionManager.ToDefinitions(MyModContext context, DefinitionDictionary`1 outputDefinitions, DefinitionDictionary`1[] outputCubeBlocks, MyObjectBuilder_CubeBlockDefinition[] cubeBlocks, Boolean failOnDebug)
      at Sandbox.Definitions.MyDefinitionManager.LoadPhase3(MyObjectBuilder_Definitions objBuilder, MyModContext context, DefinitionSet definitionSet, Boolean failOnDebug)
      at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    DEFINITION_ERROR: , in file: E:\SteamLibrary\steamapps\common\SpaceEngineers\Content\Data\WheelModels.sbc
    Following blueprints could not be post-processed: MyObjectBuilder_BlueprintDefinition/QuantumReMaterializer, MyObjectBuilder_BlueprintDefinition/SupraliminalMatter, MyObjectBuilder_BlueprintDefinition/QuanComChip, 
    The long log tells me:
    Code:
    2020-02-24 01:10:43.023 - Thread:  33 ->  Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.023 - Thread:  33 ->  Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.034 - Thread:  33 ->  Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.035 - Thread:  33 ->  Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.042 - Thread:  33 ->  Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.042 - Thread:  33 ->  Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.055 - Thread:  32 ->  Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.055 - Thread:  32 ->  Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.055 - Thread:  32 ->  Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.055 - Thread:  32 ->  Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:51.496 - Thread:  32 ->  Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:51.496 - Thread:  32 ->  Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:51.561 - Thread:  30 ->  Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:51.561 - Thread:  30 ->  Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:51.644 - Thread:  31 ->  Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:51.644 - Thread:  31 ->  Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:51.646 - Thread:  31 ->  Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:51.646 - Thread:  31 ->  Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:51.646 - Thread:  31 ->  Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:51.646 - Thread:  31 ->  Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:52.362 - Thread:  29 ->  Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:52.362 - Thread:  29 ->  Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:52.363 - Thread:  29 ->  Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:52.363 - Thread:  29 ->  Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:52.363 - Thread:  29 ->  Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:52.363 - Thread:  29 ->  Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:52.828 - Thread:  34 ->  Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:52.828 - Thread:  34 ->  Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    None of it makes any sense as I have these exact components written in all three: Components_Common.sbc, Blueprints_Common.sbc, and BlueprintClasses.sbc.
    And yes I checked the spelling even though I didn't have to as I copy and pasted from the first time I wrote the words: "QuanComChip" and "QuantumReMaterializer" into any and all other spots it was needed. It is in proper format and spelling in the areas where "<Components>" are required under any blocks that use them and the proper ingots and ingot amounts are listed properly in the "Blueprints_Common.sbc as well.

    Can anyone help me makes sense of this?
     
  2. mojomann71 Senior Engineer

    Messages:
    2,005
    If you pasted a copy of the .sbc of the mod itself we could better assist you.
    More than likely it is just a small typo or missing < or > mark. :)
     
  3. ApexAlphaGaming Trainee Engineer

    Messages:
    5
    This has to be the single-most aggravating error I've ever seen. It mentions nothing helpful and just constantly comes up everytime I attempt to load the game.

    Can literally anyone decipher this crap?!?!?!?!

    Code:
    2020-02-24 20:25:54.409 - Thread:  1 ->  ERROR: Loading screen failed
    2020-02-24 20:25:54.410 - Thread:  1 ->  Exception occured: System.ArgumentException: An item with the same key has already been added.
      at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
      at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
      at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
      at Sandbox.Definitions.MyVoxelMaterialModifierDefinition.Postprocessor.<>c.<AfterPostprocess>b__1_0(MyVoxelMapModifierOption x)
      at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
      at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
      at VRage.Utils.MyDiscreteSampler`1..ctor(IEnumerable`1 values, IEnumerable`1 densities)
      at Sandbox.Definitions.MyVoxelMaterialModifierDefinition.Postprocessor.AfterPostprocess(MyDefinitionSet set, Dictionary`2 definitions)
      at Sandbox.Definitions.MyDefinitionManager.AfterPostprocess()
      at Sandbox.Definitions.MyDefinitionManager.LoadPostProcess()
      at Sandbox.Definitions.MyDefinitionManager.LoadData(List`1 mods)
      at Sandbox.Game.World.MySession.PrepareBaseSession(MyObjectBuilder_Checkpoint checkpoint, MyObjectBuilder_Sector sector)
      at Sandbox.Game.World.MySession.Load(String sessionPath, MyObjectBuilder_Checkpoint checkpoint, UInt64 checkpointSizeInBytes, Boolean saveLastStates, Boolean allowXml)
      at Sandbox.Game.World.MySessionLoader.<>c__DisplayClass18_0.<DownloadModsDone>b__0()
      at Sandbox.Graphics.GUI.MyGuiScreenBase.RunLoadingAction()
      at Sandbox.Game.Gui.MyGuiScreenLoading.RunLoad()
     
  4. mojomann71 Senior Engineer

    Messages:
    2,005
    From the first post all of these:

    2020-02-24 01:10:43.023 - Thread: 33 -> Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.023 - Thread: 33 -> Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.034 - Thread: 33 -> Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.035 - Thread: 33 -> Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.042 - Thread: 33 -> Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.042 - Thread: 33 -> Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.055 - Thread: 32 -> Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.055 - Thread: 32 -> Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.055 - Thread: 32 -> Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:43.055 - Thread: 32 -> Critical: Definition of "MyObjectBuilder_Ingot/Credits" is missing.
    2020-02-24 01:10:51.496 - Thread: 32 -> Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:51.496 - Thread: 32 -> Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:51.561 - Thread: 30 -> Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:51.561 - Thread: 30 -> Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:51.644 - Thread: 31 -> Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:51.644 - Thread: 31 -> Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:51.646 - Thread: 31 -> Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:51.646 - Thread: 31 -> Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:51.646 - Thread: 31 -> Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:51.646 - Thread: 31 -> Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:52.362 - Thread: 29 -> Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:52.362 - Thread: 29 -> Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:52.363 - Thread: 29 -> Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:52.363 - Thread: 29 -> Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:52.363 - Thread: 29 -> Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:52.363 - Thread: 29 -> Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.
    2020-02-24 01:10:52.828 - Thread: 34 -> Critical: Definition of "MyObjectBuilder_Component/QuanComChip" is missing.
    2020-02-24 01:10:52.828 - Thread: 34 -> Critical: Definition of "MyObjectBuilder_Component/QuantumReMaterializer" is missing.


    It (the game) can not locate the components. That is why I asked if you could post your mod's .sbc file.
    Is probably a simple typo there that can resolve the issue. Without that information not a lot anyone can do to assist you.
     
  5. ApexAlphaGaming Trainee Engineer

    Messages:
    5
    My post disappeared before I posted my latest reply. It said "apparently all I was missing was an "encoding..." at the top of the components.sbc file"
    My latest post is related to trying to get my ores to pawn in the game.
    How do I upload a file on here?
     
  6. Roxette Senior Engineer

    Messages:
    1,546
    You don't. Upload the file to any sane free file sharing website and post the download link here.
     
  7. ApexAlphaGaming Trainee Engineer

    Messages:
    5
    My PlanetGeneratorDefinitions.sbc: https://1drv.ms/u/s!An6jqI0384P9_FbTOTP0Qg7RTLC4
    While I was searching for a good site to upload the files to I managed to fix the issue only for several others to pop up in it's place.
    I no longer receive errors from my mods in the logs at all however, there are no ores spawning on Alien, at all, the other planets seem fine though.
    Let me know exactly what other files you need to see so I can upload them and give links here.

    EDIT: I think the issue might be that the game only accepts one PlanetGeneratorDefinitions.sbc file at any one time, instead of per mod folder. I hope I'm wrong about that, as I have my custom mod that introduces my ores to the planets but also other people's mods that also adds ores to the planets.
    Please let me know if I am wrong and if so, how can I remedy the failure of ores loading on Alien.
     
    Last edited: Feb 27, 2020
  8. doncdxx Apprentice Engineer

    Messages:
    438
    It's a bit hard to tell the problem just from the error messages. Publish the mod and post a link to it and I'll go poke around and see if I can find the problem.
    Also, feel free to add me on steam and I'll help you out directly when I have the time. If you look at my workshop, you'll see I've made lots of mods with custom ores, components, blocks, and planets. I'm pretty sure I can help.
     
    • Like Like x 1
    • Agree Agree x 1
  9. ApexAlphaGaming Trainee Engineer

    Messages:
    5
    Okay I will add you on Steam, but I cannot post the mod yet, as I am waiting on a Mod Author's permission to use their models. As soon as they reply I will post the mod on Steam. In the mean time I can post a link similar to the one I did above with the mod's entire folder?
    What is your Steam name? PM me
     
  10. doncdxx Apprentice Engineer

    Messages:
    438
    I have the same name on steam as here. You can post the mod, but set it to share with friends only for now.
     
Thread Status:
This last post in this thread was made more than 31 days old.