Hope this helps. its an array is out of range error when looting anything (one at a time or <R>can you provide a log file of the errors please.
easy as to fix.Hope this helps. its an array is out of range error when looting anything (one at a time or <R>.
View attachment 27891
loot.xml<!-- Player backpack window --><set xpath="/windows/window[@name=windowBackpack]/@width">1343</set>
<set xpath="/windows/window[@name=windowBackpack]/@height">1019</set>
<set xpath="/windows/window[@name=windowBackpack]/panel[@name=content]/@height">973</set>
<set xpath="/windows/window[@name=windowBackpack]/panel[@name=content]/sprite[@name=backgroundMain]/@width">1343</set>
<set xpath="/windows/window[@name=windowBackpack]/panel[@name=content]/sprite[@name=backgroundMain]/@height">1006</set>
<set xpath="/windows/window[@name=windowBackpack]/panel[@name=content]/grid[@name=inventory]/@rows">16</set>
<set xpath="/windows/window[@name=windowBackpack]/panel[@name=content]/grid[@name=inventory]/@cols">20</set>
<!-- Player dropped backpack--><set xpath="/lootcontainers/lootcontainer[@id=2]/@size">16,20</set>
I on my phone can't see the whole reply.Thanks, but it appears that the cols and rows are there. when i noticed on the loot window, it doesn't have the right amount of blocks.View attachment 27892
Windows.xml
loot.xml
The loot window that appears is 16 col 8 complete rows the 9th row is only 4 slots.I on my phone can't see the whole reply.
What do you mean right amount of blocks
The values should equal 320 when timesed so it should be either 16x20 or 20x16 in both loot container id 2 in loot.xml and in windowslooting.The loot window that appears is 16 col 8 complete rows the 9th row is only 4 slots.
Not sure if that hints at the issue. Or more likely, i cant read the nearly completely English code on the two files XD
Can you upload your modlet please that you are using cause I 99% guarantee it's the windowslooting lolfrom what i can see the cols and rows are correct on windows.xml and loot.xml on the mod. windowslooting seems for normal loot as this mod seems to use ID:2 for the player backpack, in this case the problem only pops up on looting a dropped backpack (after being killed to get your stuff back)
EDIT:
And i did edit the base wondowlooting on the base config, changing it to the correct rows and cols and it didn't change the error sadly.
Its this mod, unless its a corruption issue.Can you upload your modlet please that you are using cause I 99% guarantee it's the windowslooting lol
haha all good lol. is what we do here in the community is help each other. the windowslooting controls all lootcontainers and because you increased the lootcontainer id 2 to 16 x 20 you also need to adjust the windowslooting to allow for the container to hold that much other wise what happens is and why your getting the nres when windowslooting is wrong is you lose your backpack say you have a full 300 slots so that needs to go into the backpack, the clothing you lose so that needs to go into the backpack as well so already you have 310 slots if you play on everything then you also have 8 tool belt slots equaling 318. so when your lootcontainer only holds 132 items the rest goes into the container however you can not access the extra items thus causing the errorThank you, that worked, sorry i didn't understand what you meant, I thought that section was for storage. Now that i think about it not sure if this mod changes the player built storage.
Again sorry you ended up doing the work for me![]()
need to edit the xui/windows.xml - windowslooting to be 16 x 20 not the 12 x 11 or what ever the values in rows and columns areSo does this mod still work with 17.2 or are there xml changes needed to get it to work?
Is this the correct line I changed?need to edit the xui/windows.xml - windowslooting to be 16 x 20 not the 12 x 11 or what ever the values in rows and columns are
Yeh the rows and cols are what needed fixingIs this the correct line I changed?<grid depth="12" name="queue" rows="16" cols="20" cell_width="75" cell_height="75" repeat_content="true" controller="LootContainer">
Hmm....even after doing the above mentioned changes I get a bunch of errors on loading and the game won't start. I try to click on either new game or continue game and end up getting a null ref error.Yeh the rows and cols are what needed fixing![]()
Please upload output.log and your changed modlet so I can view pleaseHmm....even after doing the above mentioned changes I get a bunch of errors on loading and the game won't start. I try to click on either new game or continue game and end up getting a null ref error.