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.

[Solved] Critical error help with simple mod

Discussion in 'Questions and Suggestions' started by megamanzteam, Feb 16, 2020.

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

    Messages:
    7
    The Error:
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 1/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
    at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 2/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
    at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 3/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
    at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 4/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
    at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 5/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
    at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 6/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
    at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)



    I don't know what happened that I got this. When I made it about a year ago I had no errors that I was aware of. I stopped playing for a while and started back around the economy update. Also this was on a new world that I discovered it. All I did was modify the Jump drive file (if you know what I need to change to make it a separate item that just uses the same assets would be great since I am new to making a mod).

    Here is the file:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <CubeBlocks>
    	<Definition xsi:type="MyObjectBuilder_JumpDriveDefinition">
    	  <Id>
    		<TypeId>JumpDrive</TypeId>
    		<SubtypeId>LargeJumpDriveCreative</SubtypeId>
    	  </Id>
    	  <DisplayName>Creative JumpDrive</DisplayName>
    	  <Icon>Textures\GUI\Icons\Cubes\JumpDrive.dds</Icon>
    	  <CubeSize>Large</CubeSize>
    	  <BlockTopology>TriangleMesh</BlockTopology>
    	  <Size x="3" y="3" z="2" />
    	  <ModelOffset x="0" y="0" z="0" />
    	  <Model>Models\Cubes\Large\JumpDrive.mwm</Model>
    	  <Components>
    		<Component Subtype="SteelPlate" Count="20" />
    		<Component Subtype="LargeTube" Count="40" />
    		<Component Subtype="MetalGrid" Count="50" />
    		<Component Subtype="GravityGenerator" Count="20" />
    		<Component Subtype="Detector" Count="20" />
    		<Component Subtype="PowerCell" Count="120" />
    		<Component Subtype="Thrust" Count="120" />
    		<Component Subtype="Computer" Count="300" />
    		<Component Subtype="Construction" Count="40" />
    		<Component Subtype="SteelPlate" Count="20" />
    	  </Components>
    	  <CriticalComponent Subtype="Computer" Index="0" />
    	  <MountPoints>
    		<MountPoint Side="Top" StartX="0" StartY="0" EndX="3" EndY="2" />
    		<MountPoint Side="Back" StartX="0" StartY="0" EndX="3" EndY="3" />
    		<MountPoint Side="Left" StartX="0" StartY="0" EndX="2" EndY="3" />
    		<MountPoint Side="Front" StartX="0" StartY="0" EndX="3" EndY="3" />
    		<MountPoint Side="Right" StartX="0" StartY="0" EndX="2" EndY="3" />
    		<MountPoint Side="Bottom" StartX="0" StartY="0" EndX="3" EndY="2" />
    	  </MountPoints>
    	  <BuildProgressModels>
    		<Model BuildPercentUpperBound="0.33" File="Models\Cubes\Large\JumpDriveConstruction_1.mwm" />
    		<Model BuildPercentUpperBound="0.66" File="Models\Cubes\Large\JumpDriveConstruction_2.mwm" />
    		<Model BuildPercentUpperBound="1.00" File="Models\Cubes\Large\JumpDriveConstruction_3.mwm" />
    	  </BuildProgressModels>
    	  <BlockPairName>JumpDrive</BlockPairName>
    	  <MirroringY>Z</MirroringY>
    	  <MirroringZ>Y</MirroringZ>
    	  <EdgeType>Light</EdgeType>
    	  <BuildTimeSeconds>45</BuildTimeSeconds>
    	  <DamageEffectName>Damage_WeapExpl_Damaged</DamageEffectName>
    	  <DamagedSound>ParticleWeapExpl</DamagedSound>
    
    	  <ResourceSinkGroup>Charging</ResourceSinkGroup>
    	  <RequiredPowerInput>9999999999</RequiredPowerInput>
    	  <PowerNeededForJump>0.00001</PowerNeededForJump>
    	 
    	  <MaxJumpDistance>20000000</MaxJumpDistance>
    	  <MaxJumpMass>125000000</MaxJumpMass>
    	  <EmissiveColorPreset>Extended</EmissiveColorPreset>
    	  <DestroyEffect>Explosion_Warhead_30</DestroyEffect>
    	  <DestroySound>WepLrgWarheadExpl</DestroySound>
    	  <PCU>100</PCU>
    	  <IsAirTight>true</IsAirTight>
      </Definition>
      </CubeBlocks>
    </Definitions>
    Thank you for any help you can provide.
     
  2. mojomann71 Senior Engineer

    Messages:
    1,904
    Here is the updated definition file for the jumpdrive since the economy update. Maybe you can spot the change and update your file?

    Code:
    <Definition xsi:type="MyObjectBuilder_JumpDriveDefinition">
    	  <Id>
    		<TypeId>JumpDrive</TypeId>
    		<SubtypeId>LargeJumpDrive</SubtypeId>
    	  </Id>
    	  <DisplayName>DisplayName_Block_JumpDrive</DisplayName>
    	  <Icon>Textures\GUI\Icons\Cubes\JumpDrive.dds</Icon>
    	  <Description>Description_JumpDrive</Description>
    	  <CubeSize>Large</CubeSize>
    	  <BlockTopology>TriangleMesh</BlockTopology>
    	  <Size x="3" y="3" z="2" />
    	  <ModelOffset x="0" y="0" z="0" />
    	  <Model>Models\Cubes\Large\JumpDrive.mwm</Model>
    	  <Components>
    		<Component Subtype="SteelPlate" Count="40" />
    		<Component Subtype="MetalGrid" Count="50" />
    		<Component Subtype="GravityGenerator" Count="20" />
    		<Component Subtype="Detector" Count="20" />
    		<Component Subtype="PowerCell" Count="120" />
    		<Component Subtype="Superconductor" Count="1000" />
    		<Component Subtype="Computer" Count="300" />
    		<Component Subtype="Construction" Count="40" />
    		<Component Subtype="SteelPlate" Count="20" />
    	  </Components>
    	  <CriticalComponent Subtype="Computer" Index="0" />
    	  <MountPoints>
    		<MountPoint Side="Top" StartX="0" StartY="0" EndX="3" EndY="2" />
    		<MountPoint Side="Back" StartX="0" StartY="0" EndX="3" EndY="3" />
    		<MountPoint Side="Left" StartX="0" StartY="0" EndX="2" EndY="3" />
    		<MountPoint Side="Front" StartX="0" StartY="0" EndX="3" EndY="3" />
    		<MountPoint Side="Right" StartX="0" StartY="0" EndX="2" EndY="3" />
    		<MountPoint Side="Bottom" StartX="0" StartY="0" EndX="3" EndY="2" Default="true" />
    	  </MountPoints>
    	  <BuildProgressModels>
    		<Model BuildPercentUpperBound="0.33" File="Models\Cubes\Large\JumpDriveConstruction_1.mwm" />
    		<Model BuildPercentUpperBound="0.66" File="Models\Cubes\Large\JumpDriveConstruction_2.mwm" />
    		<Model BuildPercentUpperBound="1.00" File="Models\Cubes\Large\JumpDriveConstruction_3.mwm" />
    	  </BuildProgressModels>
    	  <BlockPairName>JumpDrive</BlockPairName>
    	  <MirroringY>Z</MirroringY>
    	  <MirroringZ>Y</MirroringZ>
    	  <EdgeType>Light</EdgeType>
    	  <BuildTimeSeconds>120</BuildTimeSeconds>
    	  <DamageEffectName>Damage_WeapExpl_Damaged</DamageEffectName>
    	  <DamagedSound>ParticleWeapExpl</DamagedSound>
    
    	  <ResourceSinkGroup>Charging</ResourceSinkGroup>
    	  <RequiredPowerInput>32</RequiredPowerInput>
    	  <PowerNeededForJump>3</PowerNeededForJump>
    
    	  <MaxJumpDistance>2000000</MaxJumpDistance>
    	  <MaxJumpMass>1250000</MaxJumpMass>
    	  <EmissiveColorPreset>Extended</EmissiveColorPreset>
    	  <DestroyEffect>Explosion_Warhead_30</DestroyEffect>
    	  <DestroySound>WepLrgWarheadExpl</DestroySound>
    	  <PCU>100</PCU>
    	  <IsAirTight>true</IsAirTight>	 
    	</Definition> 
     
  3. megamanzteam Trainee Engineer

    Messages:
    7
    So it looks like the cubeblocks tags is no longer used and a description tag was added. Do I need to change subtype id? I wanted this to be separate from a regular jumpdrive. EDIT: I tried using the default subtype id as well, still the same error.

    The current updated file:
    Code:
    <Definition xsi:type="MyObjectBuilder_JumpDriveDefinition">
      <Id>
    	<TypeId>JumpDrive</TypeId>
    	<SubtypeId>LargeJumpDriveCreative</SubtypeId>
      </Id>
      <DisplayName>Creative JumpDrive</DisplayName>
      <Icon>Textures\GUI\Icons\Cubes\JumpDrive.dds</Icon>
      <Description>Description_JumpDrive</Description>
      <CubeSize>Large</CubeSize>
      <BlockTopology>TriangleMesh</BlockTopology>
      <Size x="3" y="3" z="2" />
      <ModelOffset x="0" y="0" z="0" />
      <Model>Models\Cubes\Large\JumpDrive.mwm</Model>
      <Components>
    	<Component Subtype="SteelPlate" Count="20" />
    	<Component Subtype="LargeTube" Count="40" />
    	<Component Subtype="MetalGrid" Count="50" />
    	<Component Subtype="GravityGenerator" Count="20" />
    	<Component Subtype="Detector" Count="20" />
    	<Component Subtype="PowerCell" Count="120" />
    	<Component Subtype="Thrust" Count="120" />
    	<Component Subtype="Computer" Count="300" />
    	<Component Subtype="Construction" Count="40" />
    	<Component Subtype="SteelPlate" Count="20" />
      </Components>
      <CriticalComponent Subtype="Computer" Index="0" />
      <MountPoints>
    	<MountPoint Side="Top" StartX="0" StartY="0" EndX="3" EndY="2" />
    	<MountPoint Side="Back" StartX="0" StartY="0" EndX="3" EndY="3" />
    	<MountPoint Side="Left" StartX="0" StartY="0" EndX="2" EndY="3" />
    	<MountPoint Side="Front" StartX="0" StartY="0" EndX="3" EndY="3" />
    	<MountPoint Side="Right" StartX="0" StartY="0" EndX="2" EndY="3" />
    	<MountPoint Side="Bottom" StartX="0" StartY="0" EndX="3" EndY="2" Default="true"/>
      </MountPoints>
      <BuildProgressModels>
    	<Model BuildPercentUpperBound="0.33" File="Models\Cubes\Large\JumpDriveConstruction_1.mwm" />
    	<Model BuildPercentUpperBound="0.66" File="Models\Cubes\Large\JumpDriveConstruction_2.mwm" />
    	<Model BuildPercentUpperBound="1.00" File="Models\Cubes\Large\JumpDriveConstruction_3.mwm" />
      </BuildProgressModels>
      <BlockPairName>JumpDrive</BlockPairName>
      <MirroringY>Z</MirroringY>
      <MirroringZ>Y</MirroringZ>
      <EdgeType>Light</EdgeType>
      <BuildTimeSeconds>45</BuildTimeSeconds>
      <DamageEffectName>Damage_WeapExpl_Damaged</DamageEffectName>
      <DamagedSound>ParticleWeapExpl</DamagedSound>
    
      <ResourceSinkGroup>Charging</ResourceSinkGroup>
      <RequiredPowerInput>9999999999</RequiredPowerInput>
      <PowerNeededForJump>0.00001</PowerNeededForJump>
    
      <MaxJumpDistance>20000000</MaxJumpDistance>
      <MaxJumpMass>125000000</MaxJumpMass>
      <EmissiveColorPreset>Extended</EmissiveColorPreset>
      <DestroyEffect>Explosion_Warhead_30</DestroyEffect>
      <DestroySound>WepLrgWarheadExpl</DestroySound>
      <PCU>100</PCU>
      <IsAirTight>true</IsAirTight>
    </Definition>
    The current error after update:
    Code:
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 1/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
      at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 2/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
      at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 3/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
      at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 4/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
      at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 5/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
      at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
    MOD_CRITICAL_ERROR: Craetive jumpdrive, in file:
    MOD PARTIALLY SKIPPED, LOADED ONLY 6/6 PHASES, Following Error occured:
    Object reference not set to an instance of an object.
    Sandbox.Game
      at Sandbox.Definitions.MyDefinitionManager.LoadDefinitions(List`1 contexts, List`1 definitionSets, Boolean failOnDebug, Boolean isPreload)
     
  4. doncdxx Apprentice Engineer

    Messages:
    425
    I dropped your original xml in a mod and tested it and it worked fine. Maybe try verifying your install in steam.

    One side note probably not related to the problem.
    Change
    <BlockPairName>JumpDrive</BlockPairName>
    to
    <BlockPairName>Creative JumpDrive</BlockPairName>

    You want the DisplayName of the block in that spot. It's main purpose is for mirroring, but I noticed changing that was the difference between it trying to overwrite the main jump drive and adding an additional jump drive.
     
    • Friendly Friendly x 1
  5. megamanzteam Trainee Engineer

    Messages:
    7
    I didn't think of verifying my data. However, I just tried it and still get my same error. Also thank you for the advise on BlockPairName, this will help a lot. I am starting to wonder if it might be a mod compatibility issue now if it worked for you with no errors. I will update this post a little later if I find a conflict.

    EDIT: So started an empty world in survival & creative with just my mod and still get the errors. This is driving me crazy.

    EDIT2: So I restructured the path to make the mod more clean looking now SE crashes on world load and is not able to upload the error log. So I found the log file and made a gist for it. It feels more detailed in my error then before. Can anyone spot where my issue is from? (Start at line 1268) The Gist: https://gist.github.com/megamanzteam/29aa62c0f2844955c1a1d837de2c9f17
     
    Last edited: Feb 18, 2020
  6. doncdxx Apprentice Engineer

    Messages:
    425
    Publish and share the link and I'll take a look at it.
    In my experience, situations are like this are usually one tiny little typo somewhere that are very hard to find with just a casual look. Mistakes like that are annoying, but incredibly common.
     
    • Agree Agree x 1
  7. megamanzteam Trainee Engineer

    Messages:
    7
  8. mojomann71 Senior Engineer

    Messages:
    1,904
    • Agree Agree x 1
  9. megamanzteam Trainee Engineer

    Messages:
    7
    At first look at your post, it was confusing. Then I saw what was not seen. I went back to CubeBlocks_Utility.sbc and re-did the definitions to match the original file and now no more errors.
    The corrected file for reference if others have a similar issue:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Definition xsi:type="MyObjectBuilder_JumpDriveDefinition">
      <Id>
    	<TypeId>JumpDrive</TypeId>
    	<SubtypeId>LargeJumpDriveCreative</SubtypeId>
      </Id>
      <DisplayName>Creative JumpDrive</DisplayName>
      <Icon>Textures\GUI\Icons\Cubes\JumpDrive.dds</Icon>
      <Description>Description_JumpDrive</Description>
      <CubeSize>Large</CubeSize>
      <BlockTopology>TriangleMesh</BlockTopology>
      <Size x="3" y="3" z="2" />
      <ModelOffset x="0" y="0" z="0" />
      <Model>Models\Cubes\Large\JumpDrive.mwm</Model>
      <Components>
    	<Component Subtype="SteelPlate" Count="20" />
    	<Component Subtype="LargeTube" Count="40" />
    	<Component Subtype="MetalGrid" Count="50" />
    	<Component Subtype="GravityGenerator" Count="20" />
    	<Component Subtype="Detector" Count="20" />
    	<Component Subtype="PowerCell" Count="120" />
    	<Component Subtype="Thrust" Count="120" />
    	<Component Subtype="Computer" Count="300" />
    	<Component Subtype="Construction" Count="40" />
    	<Component Subtype="SteelPlate" Count="20" />
      </Components>
      <CriticalComponent Subtype="Computer" Index="0" />
      <MountPoints>
    	<MountPoint Side="Top" StartX="0" StartY="0" EndX="3" EndY="2" />
    	<MountPoint Side="Back" StartX="0" StartY="0" EndX="3" EndY="3" />
    	<MountPoint Side="Left" StartX="0" StartY="0" EndX="2" EndY="3" />
    	<MountPoint Side="Front" StartX="0" StartY="0" EndX="3" EndY="3" />
    	<MountPoint Side="Right" StartX="0" StartY="0" EndX="2" EndY="3" />
    	<MountPoint Side="Bottom" StartX="0" StartY="0" EndX="3" EndY="2" Default="true"/>
      </MountPoints>
      <BuildProgressModels>
    	<Model BuildPercentUpperBound="0.33" File="Models\Cubes\Large\JumpDriveConstruction_1.mwm" />
    	<Model BuildPercentUpperBound="0.66" File="Models\Cubes\Large\JumpDriveConstruction_2.mwm" />
    	<Model BuildPercentUpperBound="1.00" File="Models\Cubes\Large\JumpDriveConstruction_3.mwm" />
      </BuildProgressModels>
      <BlockPairName>JumpDrive_Creative</BlockPairName>
      <MirroringY>Z</MirroringY>
      <MirroringZ>Y</MirroringZ>
      <EdgeType>Light</EdgeType>
      <BuildTimeSeconds>45</BuildTimeSeconds>
      <DamageEffectName>Damage_WeapExpl_Damaged</DamageEffectName>
      <DamagedSound>ParticleWeapExpl</DamagedSound>
    
      <ResourceSinkGroup>Charging</ResourceSinkGroup>
      <RequiredPowerInput>9999999999</RequiredPowerInput>
      <PowerNeededForJump>0.00001</PowerNeededForJump>
    
      <MaxJumpDistance>20000000</MaxJumpDistance>
      <MaxJumpMass>125000000</MaxJumpMass>
      <EmissiveColorPreset>Extended</EmissiveColorPreset>
      <DestroyEffect>Explosion_Warhead_30</DestroyEffect>
      <DestroySound>WepLrgWarheadExpl</DestroySound>
      <PCU>100</PCU>
      <IsAirTight>true</IsAirTight>
    </Definition>
    </Definitions>
    A special thank you for all your help @mojomann71! I was starting to go crazy. To think it was the very beginning and end that was the problem. I think I better re-brush up my xml again.
     
    • Like Like x 2
  10. mojomann71 Senior Engineer

    Messages:
    1,904
    @megamanzteam glad I was able to help. Sorry for not being too clear. :) Again I was at work and the site was giving me a hard time even just posting what I was able to get on the page.

    Took me about 3 tries for it to even accept the post. :(
     
Thread Status:
This last post in this thread was made more than 31 days old.