ApexAlphaGaming
Refugee
IndexOutOfRangeException: Index was outside the bounds of the array.
at XUiC_WorkstationMaterialInputWindow.OnOpen () [0x0005f] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_WorkstationWindowGroup.OnOpen () [0x0023c] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiWindowGroup.OnOpen () [0x00006] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at GUIWindowManager.Open (GUIWindow _w, System.Boolean _bModal, System.Boolean _bIsNotEscClosable, System.Boolean _bCloseAllOpenWindows) [0x000d0] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at GUIWindowManager.Open (System.String _windowName, System.Boolean _bModal, System.Boolean _bIsNotEscClosable, System.Boolean _bCloseAllOpenWindows) [0x00065] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at GameManager.workstationOpened (TileEntityWorkstation _te, LocalPlayerUI _playerUI) [0x00090] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at GameManager.OpenTileEntityUi (System.Int32 _entityIdThatOpenedIt, TileEntity _te, System.String _customUi) [0x00062] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at GameManager.TELockServer (System.Int32 _clrIdx, Vector3i _blockPos, System.Int32 _lootEntityId, System.Int32 _entityIdThatOpenedIt, System.String _customUi) [0x00137] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at BlockForge.OnBlockActivated (WorldBase _world, System.Int32 _cIdx, Vector3i _blockPos, BlockValue _blockValue, EntityAlive _player) [0x00028] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at BlockForge.OnBlockActivated (System.Int32 _indexInBlockActivationCommands, WorldBase _world, System.Int32 _cIdx, Vector3i _blockPos, BlockValue _blockValue, EntityAlive _player) [0x00009] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_Radial.handleBlockCommand (XUiC_Radial _sender, System.Int32 _commandIndex, XUiC_Radial+RadialContextAbs _context) [0x00024] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_Radial.CallContextAction () [0x000b8] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_Radial.SetCommonData (GUI_2.UIUtils+ButtonIcon _controllerButtonForSelect, XUiC_Radial+CommandHandlerDelegate _commandHandlerFunc, XUiC_Radial+RadialContextAbs _context, System.Int32 _preSelectedCommandIndex, System.Boolean _hasSpecialActionPriorToRadialVisibility, XUiC_Radial+RadialStillValidDelegate _radialValidityCallback) [0x000d0] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_Radial.SetCurrentBlockData (WorldBase _world, Vector3i _blockPos, System.Int32 _cIdx, BlockValue _blockValue, EntityAlive _entityFocusing) [0x0009d] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at PlayerMoveController.Update () [0x01df0] in <39cf8b713b17414c9e5ddfff01d6df19>:0
2022-04-12T00:55:38 89.765 ERR [XUi] Error while updating window group 'workstation_forge:
2022-04-12T00:55:38 89.766 EXC Index was outside the bounds of the array.
at XUiC_WorkstationMaterialInputWindow.Update (System.Single _dt) [0x00043] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiController.Update (System.Single _dt) [0x0004f] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_WorkstationWindowGroup.Update (System.Single _dt) [0x00000] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUi.OnUpdateDeltaTime (System.Single updateDeltaTime) [0x00131] in <39cf8b713b17414c9e5ddfff01d6df19>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
XUi:OnUpdateDeltaTime(Single)
XUiUpdater:Update()
XUiUpdateHelper:LateUpdate()
Essentially I edited the "windows.xml" file to account for the new material in the forge UI, as well as, the: "materials.xml", and the "items.xml" for the new Material and for any items that would scrap down into that Material.
The scrapping doesn't work for the new material either.
Any help would be greatly appreciated.
Changes:
"windows.xml"
<config>
<set xpath="/windows/window[@name='windowForgeInput']/@materials_accepted">iron,brass,lead,glass,stone,clay,aluminum</set>
<set xpath="/windows/window[@name='windowToolsForge']/rect[@name='content']/grid[@name='inventory']/@required_tools">toolBellows,toolAnvil,toolForgeCrucible,toolMechanicalBellows</set>
</config>
"materials.xml"
<config>
<append xpath="/materials">
<material id="MresourceAluminumScrap">
<property name="damage_category" value="metal"/>
<property name="surface_category" value="metal"/>
<property name="forge_category" value="aluminum"/>
<property name="Hardness" type="float" value="1"/>
<property name="stepsound" value="metal"/>
<property name="stability_glue" value="15"/>
<property name="Mass" type="int" value="10"/>
<property name="MaxDamage" value="80"/>
<property name="Experience" value="1"/>
</material>
<material id="Maluminum">
<property name="damage_category" value="metal"/>
<property name="surface_category" value="metal"/>
<property name="forge_category" value="aluminum"/>
<property name="Hardness" type="float" value="1"/>
<property name="stepsound" value="metal"/>
<property name="stability_glue" value="10"/>
<property name="Mass" type="int" value="5"/>
<property name="MaxDamage" value="30"/>
<property name="Experience" value="1"/>
</material>
<material id="Mirondust">
<property name="damage_category" value="earth"/>
<property name="surface_category" value="earth"/>
<property name="forge_category" value="iron"/>
<property name="Hardness" type="float" value="1"/>
<property name="stepsound" value="metal"/>
<property name="stability_glue" value="20"/>
<property name="Mass" type="int" value="5"/>
<property name="MaxDamage" value="30"/>
<property name="Experience" value="1"/>
</material>
</append>
</config>
"items.xml"
at XUiC_WorkstationMaterialInputWindow.OnOpen () [0x0005f] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_WorkstationWindowGroup.OnOpen () [0x0023c] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiWindowGroup.OnOpen () [0x00006] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at GUIWindowManager.Open (GUIWindow _w, System.Boolean _bModal, System.Boolean _bIsNotEscClosable, System.Boolean _bCloseAllOpenWindows) [0x000d0] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at GUIWindowManager.Open (System.String _windowName, System.Boolean _bModal, System.Boolean _bIsNotEscClosable, System.Boolean _bCloseAllOpenWindows) [0x00065] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at GameManager.workstationOpened (TileEntityWorkstation _te, LocalPlayerUI _playerUI) [0x00090] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at GameManager.OpenTileEntityUi (System.Int32 _entityIdThatOpenedIt, TileEntity _te, System.String _customUi) [0x00062] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at GameManager.TELockServer (System.Int32 _clrIdx, Vector3i _blockPos, System.Int32 _lootEntityId, System.Int32 _entityIdThatOpenedIt, System.String _customUi) [0x00137] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at BlockForge.OnBlockActivated (WorldBase _world, System.Int32 _cIdx, Vector3i _blockPos, BlockValue _blockValue, EntityAlive _player) [0x00028] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at BlockForge.OnBlockActivated (System.Int32 _indexInBlockActivationCommands, WorldBase _world, System.Int32 _cIdx, Vector3i _blockPos, BlockValue _blockValue, EntityAlive _player) [0x00009] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_Radial.handleBlockCommand (XUiC_Radial _sender, System.Int32 _commandIndex, XUiC_Radial+RadialContextAbs _context) [0x00024] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_Radial.CallContextAction () [0x000b8] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_Radial.SetCommonData (GUI_2.UIUtils+ButtonIcon _controllerButtonForSelect, XUiC_Radial+CommandHandlerDelegate _commandHandlerFunc, XUiC_Radial+RadialContextAbs _context, System.Int32 _preSelectedCommandIndex, System.Boolean _hasSpecialActionPriorToRadialVisibility, XUiC_Radial+RadialStillValidDelegate _radialValidityCallback) [0x000d0] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_Radial.SetCurrentBlockData (WorldBase _world, Vector3i _blockPos, System.Int32 _cIdx, BlockValue _blockValue, EntityAlive _entityFocusing) [0x0009d] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at PlayerMoveController.Update () [0x01df0] in <39cf8b713b17414c9e5ddfff01d6df19>:0
2022-04-12T00:55:38 89.765 ERR [XUi] Error while updating window group 'workstation_forge:
2022-04-12T00:55:38 89.766 EXC Index was outside the bounds of the array.
at XUiC_WorkstationMaterialInputWindow.Update (System.Single _dt) [0x00043] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiController.Update (System.Single _dt) [0x0004f] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUiC_WorkstationWindowGroup.Update (System.Single _dt) [0x00000] in <39cf8b713b17414c9e5ddfff01d6df19>:0
at XUi.OnUpdateDeltaTime (System.Single updateDeltaTime) [0x00131] in <39cf8b713b17414c9e5ddfff01d6df19>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
XUi:OnUpdateDeltaTime(Single)
XUiUpdater:Update()
XUiUpdateHelper:LateUpdate()
Essentially I edited the "windows.xml" file to account for the new material in the forge UI, as well as, the: "materials.xml", and the "items.xml" for the new Material and for any items that would scrap down into that Material.
The scrapping doesn't work for the new material either.
Any help would be greatly appreciated.
Changes:
"windows.xml"
<config>
<set xpath="/windows/window[@name='windowForgeInput']/@materials_accepted">iron,brass,lead,glass,stone,clay,aluminum</set>
<set xpath="/windows/window[@name='windowToolsForge']/rect[@name='content']/grid[@name='inventory']/@required_tools">toolBellows,toolAnvil,toolForgeCrucible,toolMechanicalBellows</set>
</config>
"materials.xml"
<config>
<append xpath="/materials">
<material id="MresourceAluminumScrap">
<property name="damage_category" value="metal"/>
<property name="surface_category" value="metal"/>
<property name="forge_category" value="aluminum"/>
<property name="Hardness" type="float" value="1"/>
<property name="stepsound" value="metal"/>
<property name="stability_glue" value="15"/>
<property name="Mass" type="int" value="10"/>
<property name="MaxDamage" value="80"/>
<property name="Experience" value="1"/>
</material>
<material id="Maluminum">
<property name="damage_category" value="metal"/>
<property name="surface_category" value="metal"/>
<property name="forge_category" value="aluminum"/>
<property name="Hardness" type="float" value="1"/>
<property name="stepsound" value="metal"/>
<property name="stability_glue" value="10"/>
<property name="Mass" type="int" value="5"/>
<property name="MaxDamage" value="30"/>
<property name="Experience" value="1"/>
</material>
<material id="Mirondust">
<property name="damage_category" value="earth"/>
<property name="surface_category" value="earth"/>
<property name="forge_category" value="iron"/>
<property name="Hardness" type="float" value="1"/>
<property name="stepsound" value="metal"/>
<property name="stability_glue" value="20"/>
<property name="Mass" type="int" value="5"/>
<property name="MaxDamage" value="30"/>
<property name="Experience" value="1"/>
</material>
</append>
</config>
"items.xml"
Code:
<configs>
<append xpath="/items">
<item name="resourceIronOxide">
<property name="HoldType" value="45"/>
<property name="DescriptionKey" value="resourceIronOxideDesc"/>
<property name="Meshfile" value="Items/Misc/sackPrefab"/>
<property name="DropMeshfile" value="Items/Misc/sack_droppedPrefab"/>
<property name="CustomIcon" value="resourceIronOxide"/>
<property name="Material" value="Mirondust"/>
<property name="Stacknumber" value="6000"/> <!-- STK resource -->
<property name="Weight" value="5"/>
<property name="EconomicValue" value="20"/>
<property name="Group" value="Resources"/>
</item>
<item name="resourceAluminumScrap">
<property name="HoldType" value="45"/>
<property name="DescriptionKey" value="resourceAluminumScrapDesc"/>
<property name="Meshfile" value="Items/Misc/sackPrefab"/>
<property name="DropMeshfile" value="Items/Misc/sack_droppedPrefab"/>
<property name="CustomIcon" value="resourceScrapBrass"/> <property name="CustomIconTint" value="999999"/>
<property name="Material" value="MresourceAluminumScrap"/>
<property name="Stacknumber" value="6000"/> <!-- STK resource -->
<property name="Weight" value="5"/>
<property name="EconomicValue" value="20"/>
<property name="Group" value="Resources"/>
</item>
<item name="resourceAluminum">
<property name="HoldType" value="45"/>
<property name="DescriptionKey" value="resourceAluminumDesc"/>
<property name="Meshfile" value="Items/Misc/sackPrefab"/>
<property name="DropMeshfile" value="Items/Misc/sack_droppedPrefab"/>
<property name="CustomIcon" value="drugCrushedPainkillers"/> <property name="CustomIconTint" value="999999"/>
<property name="Material" value="Maluminum"/>
<property name="Stacknumber" value="6000"/> <!-- STK resource -->
<property name="Weight" value="5"/>
<property name="EconomicValue" value="20"/>
<property name="Group" value="Resources"/>
</item>
<item name="unit_aluminum">
<property name="Extends" value="unit_iron"/>
<property name="CustomIcon" value="resourceScrapBrass"/> <property name="CustomIconTint" value="999999"/>
<property name="Material" value="Maluminum"/>
<property name="MeltTimePerUnit" value=".4"/>
<property name="CreativeMode" value="None"/>
</item>
</append>
<set xpath="/items/item[@name='foodCanBeef']/property[@name='Material']/@value">MresourceAluminumScrap</set>
<set xpath="/items/item[@name='drinkCanEmpty']/property[@name='Material']/@value">MresourceAluminumScrap</set>
<set xpath="/items/item[@name='resourceRocketCasing']/property[@name='Material']/@value">MresourceAluminumScrap</set>
</configs>