I can't seem to get the loot to spawn inside of the class container. I based it around Valmod's class containers, but for some reason, I get no loot to spawn. The error code is:
KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[system.String,LootContainer+LootQualityTemplate].get_Item (System.String key) [0x00000] in <filename unknown>:0
at LootContainer.WZ (.LootEntry , .ItemValue , Int32 , System.Collections.Generic.List`1 , System.Int32& , Single , Single ) [0x00000] in <filename unknown>:0
at LootContainer.GZ (System.Collections.Generic.List`1 , Single , System.Collections.Generic.List`1 , System.Int32& , Single , Single ) [0x00000] in <filename unknown>:0
at LootContainer.LZ (System.Collections.Generic.List`1 , Int32 , Single , System.Collections.Generic.List`1 , System.Int32& , Single , Single ) [0x00000] in <filename unknown>:0
at LootContainer.HZ (.LootGroup , Int32 , Single , System.Collections.Generic.List`1 , System.Int32& , Single , Single ) [0x00000] in <filename unknown>:0
at LootContainer.LZ (System.Collections.Generic.List`1 , Int32 , Single , System.Collections.Generic.List`1 , System.Int32& , Single , Single ) [0x00000] in <filename unknown>:0
at LootContainer.Spawn (Int32 _maxItems, Single playerLevelPercentage, Single rareLootChance) [0x00000] in <filename unknown>:0
at LootManager.LootContainerOpened (.TileEntityLootContainer _tileEntity, Int32 _entityIdThatOpenedIt) [0x00000] in <filename unknown>:0
at GameManager.QH (.TileEntityLootContainer , .LocalPlayerUI , Int32 ) [0x00000] in <filename unknown>:0
at GameManager.TELockServer (Int32 _clrIdx, Vector3i _blockPos, Int32 _lootEntityId, Int32 _entityIdThatOpenedIt) [0x00000] in <filename unknown>:0
at BlockLoot.OnBlockActivated (.WorldBase _world, Int32 _cIdx, Vector3i _blockPos, BlockValue _blockValue, .EntityAlive _player) [0x00000] in <filename unknown>:0
at BlockLoot.OnBlockActivated (Int32 _indexInBlockActivationCommands, .WorldBase _world, Int32 _cIdx, Vector3i _blockPos, BlockValue _blockValue, .EntityAlive _player) [0x00000] in <filename unknown>:0
at XUiC_Radial.CallContextAction () [0x00000] in <filename unknown>:0
at XUiC_Radial.XRG (Int32 , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean ) [0x00000] in <filename unknown>:0
at XUiC_Radial.SetCurrentBlockData (.WorldBase _world, Vector3i _blockPos, Int32 _cIdx, BlockValue _blockValue, .EntityAlive _entityFocusing) [0x00000] in <filename unknown>:0
at PlayerMoveController.Update () [0x00000] in <filename unknown>:0
No idea what it's trying to tell me, since I'm still pretty new to modding/coding.
This is the blocks.xml code
KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[system.String,LootContainer+LootQualityTemplate].get_Item (System.String key) [0x00000] in <filename unknown>:0
at LootContainer.WZ (.LootEntry , .ItemValue , Int32 , System.Collections.Generic.List`1 , System.Int32& , Single , Single ) [0x00000] in <filename unknown>:0
at LootContainer.GZ (System.Collections.Generic.List`1 , Single , System.Collections.Generic.List`1 , System.Int32& , Single , Single ) [0x00000] in <filename unknown>:0
at LootContainer.LZ (System.Collections.Generic.List`1 , Int32 , Single , System.Collections.Generic.List`1 , System.Int32& , Single , Single ) [0x00000] in <filename unknown>:0
at LootContainer.HZ (.LootGroup , Int32 , Single , System.Collections.Generic.List`1 , System.Int32& , Single , Single ) [0x00000] in <filename unknown>:0
at LootContainer.LZ (System.Collections.Generic.List`1 , Int32 , Single , System.Collections.Generic.List`1 , System.Int32& , Single , Single ) [0x00000] in <filename unknown>:0
at LootContainer.Spawn (Int32 _maxItems, Single playerLevelPercentage, Single rareLootChance) [0x00000] in <filename unknown>:0
at LootManager.LootContainerOpened (.TileEntityLootContainer _tileEntity, Int32 _entityIdThatOpenedIt) [0x00000] in <filename unknown>:0
at GameManager.QH (.TileEntityLootContainer , .LocalPlayerUI , Int32 ) [0x00000] in <filename unknown>:0
at GameManager.TELockServer (Int32 _clrIdx, Vector3i _blockPos, Int32 _lootEntityId, Int32 _entityIdThatOpenedIt) [0x00000] in <filename unknown>:0
at BlockLoot.OnBlockActivated (.WorldBase _world, Int32 _cIdx, Vector3i _blockPos, BlockValue _blockValue, .EntityAlive _player) [0x00000] in <filename unknown>:0
at BlockLoot.OnBlockActivated (Int32 _indexInBlockActivationCommands, .WorldBase _world, Int32 _cIdx, Vector3i _blockPos, BlockValue _blockValue, .EntityAlive _player) [0x00000] in <filename unknown>:0
at XUiC_Radial.CallContextAction () [0x00000] in <filename unknown>:0
at XUiC_Radial.XRG (Int32 , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean ) [0x00000] in <filename unknown>:0
at XUiC_Radial.SetCurrentBlockData (.WorldBase _world, Vector3i _blockPos, Int32 _cIdx, BlockValue _blockValue, .EntityAlive _entityFocusing) [0x00000] in <filename unknown>:0
at PlayerMoveController.Update () [0x00000] in <filename unknown>:0
No idea what it's trying to tell me, since I'm still pretty new to modding/coding.
This is the blocks.xml code
Code:
<block id="2042" name="Class - Warrior (Locked)">
<property name="DescriptionKey" value="classWarriorDesc"/>
<property name="CustomIcon" value="Class - Warrior" />
<property name="Group" value="Class System" />
<!-- <property name="CustomIcon" value="suitcase" /> -->
<property name="Material" value="wood+wood" />
<property name="Shape" value="Ext3dModel" />
<property name="Mesh" value="models" />
<property name="Model" value="LootContainers/suitcase" param1="main_mesh" />
<property name="Place" value="TowardsPlacer" />
<drop event="Destroy" count="0" prob="1" />
<property name="CanPickup" value="true" />
<property name="DowngradeBlock" value="Class - Warrior" />
<property class="UpgradeBlock">
<property name="ToBlock" value="Class - Warrior" />
<property name="Item" value="classKey" />
<property name="ItemCount" value="1" />
<property name="UpgradeHitCount" value="1" />
</property>
</block>
<block id="2043" name="Class - Warrior">
<property name="Class" value="Loot" />
<property name="Material" value="wood+wood" />
<!-- <property name="CustomIcon" value="suitcase" /> -->
<property name="Shape" value="Ext3dModel" />
<property name="Mesh" value="models" />
<property name="Model" value="LootContainers/suitcase" param1="main_mesh" />
<property name="Place" value="TowardsPlacer" />
<property name="LootList" value="100" />
<drop event="Destroy" count="0" />
<drop event="Fall" name="woodDebris" count="1" prob="1.0" stick_chance=".75" />
<property name="LPHardnessScale" value="8" />
</block>
<block id="2044" name="Class - Juggernaut (Locked)">
<property name="DescriptionKey" value="classJuggernautDesc"/>
<property name="CustomIcon" value="Class - Juggernaut" />
<property name="Group" value="Class System" />
<!-- <property name="CustomIcon" value="suitcase" /> -->
<property name="Material" value="wood+wood" />
<property name="Shape" value="Ext3dModel" />
<property name="Mesh" value="models" />
<property name="Model" value="LootContainers/suitcase" param1="main_mesh" />
<property name="Place" value="TowardsPlacer" />
<drop event="Destroy" count="0" prob="1" />
<property name="CanPickup" value="true" />
<property name="DowngradeBlock" value="Class - Juggernaut" />
<property class="UpgradeBlock">
<property name="ToBlock" value="Class - Juggernaut" />
<property name="Item" value="classKey" />
<property name="ItemCount" value="1" />
<property name="UpgradeHitCount" value="1" />
</property>
</block>
<block id="2045" name="Class - Juggernaut">
<property name="Class" value="Loot" />
<property name="Material" value="wood+wood" />
<!-- <property name="CustomIcon" value="suitcase" /> -->
<property name="Shape" value="Ext3dModel" />
<property name="Mesh" value="models" />
<property name="Model" value="LootContainers/suitcase" param1="main_mesh" />
<property name="Place" value="TowardsPlacer" />
<property name="LootList" value="101" />
<drop event="Destroy" count="0" />
<drop event="Fall" name="woodDebris" count="1" prob="1.0" stick_chance=".75" />
<property name="LPHardnessScale" value="8" />
</block>
<block id="2046" name="Class - Sage (Locked)">
<property name="DescriptionKey" value="classSageDesc"/>
<property name="CustomIcon" value="Class - Sage" />
<property name="Group" value="Class System" />
<!-- <property name="CustomIcon" value="suitcase" /> -->
<property name="Material" value="wood+wood" />
<property name="Shape" value="Ext3dModel" />
<property name="Mesh" value="models" />
<property name="Model" value="LootContainers/suitcase" param1="main_mesh" />
<property name="Place" value="TowardsPlacer" />
<drop event="Destroy" count="0" prob="1" />
<property name="CanPickup" value="true" />
<property name="DowngradeBlock" value="Class - Sage" />
<property class="UpgradeBlock">
<property name="ToBlock" value="Class - Sage" />
<property name="Item" value="classKey" />
<property name="ItemCount" value="1" />
<property name="UpgradeHitCount" value="1" />
</property>
</block>
<block id="2047" name="Class - Sage">
<property name="Class" value="Loot" />
<property name="Material" value="wood+wood" />
<!-- <property name="CustomIcon" value="suitcase" /> -->
<property name="Shape" value="Ext3dModel" />
<property name="Mesh" value="models" />
<property name="Model" value="LootContainers/suitcase" param1="main_mesh" />
<property name="Place" value="TowardsPlacer" />
<property name="LootList" value="102" />
<drop event="Destroy" count="0" />
<drop event="Fall" name="woodDebris" count="1" prob="1.0" stick_chance=".75" />
<property name="LPHardnessScale" value="8" />
</block>