Prefab Editor - Toolbelt - Index Out of Range

zztong

Hunter
Version
V3.1.0 EXP
Platform
Windows
2026-07-26T13:06:39 65.875 ERR Unhandled exception in GetBindingValue. Binding name: itemicon, hierarchy: windowgroup (toolbelt) -> Window (windowToolbelt) -> rect -> rect -> Grid (inventory2) -> Rect (4)
2026-07-26T13:06:39 65.875 ERR [XUi] Error while updating window group 'toolbelt':
2026-07-26T13:06:39 65.879 EXC Index was outside the bounds of the array.
at Block.GetAltBlock (System.Int32 _typeId) [0x00018] in <a221781ebeba417383277a5dfd52238a>:0
at Block.GetAltBlockValue (System.Int32 typeID) [0x00000] in <a221781ebeba417383277a5dfd52238a>:0
at XUiC_ItemStack.get_ItemIcon () [0x00070] in <a221781ebeba417383277a5dfd52238a>:0
at XUiC_ItemStack.GetBindingValueInternal (System.String& _value, System.String _bindingName) [0x003bb] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.GetBindingValue (System.String& _value, System.String _bindingName) [0x00027] in <a221781ebeba417383277a5dfd52238a>:0
at BindingItemStandard.GetValue () [0x00055] in <a221781ebeba417383277a5dfd52238a>:0
at BindingInfo.RefreshValue () [0x0004a] in <a221781ebeba417383277a5dfd52238a>:0
at BindingsManager.RefreshBindings () [0x0001c] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.RefreshBindings () [0x00000] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x00043] in <a221781ebeba417383277a5dfd52238a>:0
at XUiC_ItemStack.Update (System.Single _dt) [0x00018] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x000c5] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x000c5] in <a221781ebeba417383277a5dfd52238a>:0
at XUiC_Toolbelt.Update (System.Single _dt) [0x0012b] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x000c5] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x000c5] in <a221781ebeba417383277a5dfd52238a>:0
at XUiC_ToolbeltWindow.Update (System.Single _dt) [0x00000] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x000c5] in <a221781ebeba417383277a5dfd52238a>:0
at XUi.OnUpdateDeltaTime (System.Single _updateDeltaTime) [0x0010c] in <a221781ebeba417383277a5dfd52238a>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
XUi:OnUpdateDeltaTime(Single)
XUiUpdater:Update()
XUiUpdateHelper:LateUpdate()
Post automatically merged:

I forgot to mention, this error is constant and the Prefab Editor is unresponsive. I suspect I'm going to have to clear out a user file to be able to work.
 
Reproduction Steps
I entered the Prefab Editor after having tested in a 3.1.0 RWG world.
Link to Logs
https://drive.google.com/drive/folders/1qmPa18P-233ZjWFfbaPlI9WH2G5l5YUc?usp=drive_link
Link to Screenshot/Video
https://drive.google.com/drive/folders/1qmPa18P-233ZjWFfbaPlI9WH2G5l5YUc?usp=drive_link
Did you also run the World Editor in the same session? In any case clear your saves folder and double check your mods folders if you have more than one.
 
Did you also run the World Editor in the same session? In any case clear your saves folder and double check your mods folders if you have more than one.

I did not run the World Editor. Clearing profiles didn't help. I hate to clear my Saves folder. I need some of that. I guess I can just move it.
Post automatically merged:

Ah, there. Renaming the Saves/Empty/PrefabEditor directory got it to generate another and I'm in. Phew.
Post automatically merged:

I'll make that folder full of files available in the same place the log file is located.
 
I get random errors in certain instances when I switch between the 2, esp with other stuff like mods installed, save clear usually fixes, yeah just back the folder up. Toolbelt can def hiccup with overhauls installed using editors.
 
2026-07-26T13:06:39 65.875 ERR Unhandled exception in GetBindingValue. Binding name: itemicon, hierarchy: windowgroup (toolbelt) -> Window (windowToolbelt) -> rect -> rect -> Grid (inventory2) -> Rect (4)
2026-07-26T13:06:39 65.875 ERR [XUi] Error while updating window group 'toolbelt':
2026-07-26T13:06:39 65.879 EXC Index was outside the bounds of the array.
at Block.GetAltBlock (System.Int32 _typeId) [0x00018] in <a221781ebeba417383277a5dfd52238a>:0
at Block.GetAltBlockValue (System.Int32 typeID) [0x00000] in <a221781ebeba417383277a5dfd52238a>:0
at XUiC_ItemStack.get_ItemIcon () [0x00070] in <a221781ebeba417383277a5dfd52238a>:0
at XUiC_ItemStack.GetBindingValueInternal (System.String& _value, System.String _bindingName) [0x003bb] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.GetBindingValue (System.String& _value, System.String _bindingName) [0x00027] in <a221781ebeba417383277a5dfd52238a>:0
at BindingItemStandard.GetValue () [0x00055] in <a221781ebeba417383277a5dfd52238a>:0
at BindingInfo.RefreshValue () [0x0004a] in <a221781ebeba417383277a5dfd52238a>:0
at BindingsManager.RefreshBindings () [0x0001c] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.RefreshBindings () [0x00000] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x00043] in <a221781ebeba417383277a5dfd52238a>:0
at XUiC_ItemStack.Update (System.Single _dt) [0x00018] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x000c5] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x000c5] in <a221781ebeba417383277a5dfd52238a>:0
at XUiC_Toolbelt.Update (System.Single _dt) [0x0012b] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x000c5] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x000c5] in <a221781ebeba417383277a5dfd52238a>:0
at XUiC_ToolbeltWindow.Update (System.Single _dt) [0x00000] in <a221781ebeba417383277a5dfd52238a>:0
at XUiController.Update (System.Single _dt) [0x000c5] in <a221781ebeba417383277a5dfd52238a>:0
at XUi.OnUpdateDeltaTime (System.Single _updateDeltaTime) [0x0010c] in <a221781ebeba417383277a5dfd52238a>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
XUi:OnUpdateDeltaTime(Single)
XUiUpdater:Update()
XUiUpdateHelper:LateUpdate()
Post automatically merged:

I forgot to mention, this error is constant and the Prefab Editor is unresponsive. I suspect I'm going to have to clear out a user file to be able to work.

Hello zztong,

delete/rename the Empty folder in AppData\Roaming\7DaysToDie\Saves as you already did is currently the easiest solution.
I've been told this issue is caused by item numbers that are getting shifted in the prefab editor since they work a little different in there.
I'll see if we can get a solution for this that does not require the manual deletion of the folder.

I'll be moving the thread to fixed.

Best,
Revi
 
I'll see if we can get a solution for this that does not require the manual deletion of the folder.

Thanks. It does seem like a low priority given how few users go into the Prefab Editor.

One possible cure would be if it were the Prefab Editor (and not in-game), catch the exception and empty the tool belt.

In-game, that might work too. I mean some player is loosing something. Maybe losing it all is okay? I'm not sure it happens in game, but it's a wild world out there.
 
Back
Top