• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

300 Slot BackPack & 3 Row Crafting Que

Having problems with 17.1 stable B9, if you die and try to grab your stuff all sorts of errors pop up and it glitches out your screen to where you can't close the backpack menu anymore.

 
Last edited by a moderator:
Hope this helps. its an array is out of range error when looting anything (one at a time or <R>).
View attachment 27891
easy as to fix.

in windows.xml in the modlet (or under common/7 days to die/data/config/Xui if not a modlet) go into windows.xml search windows looting and make sure the values there equal backpack size + clothing space + toolbelt.

IE:

backpack = 300

toolbelt = 8

clothing = 10

the value in windows looting should equal 318 (round up to nearest value so 320 which be 20 x16)

]

then go into loot.xml and look for lootcontainer 2 player dropped back pack and also make this the same as you just did in windows looting to have the same values IE: 20 x16.

This modlet also needs a modinfo.xml for it to work -

2019-03-04T23:27:29 7.506 INF [MODS] Trying to load from KHA17-96BBMFW

2019-03-04T23:27:29 7.506 WRN [MODS] Folder KHA17-96BBMFW does not contain a ModInfo.xml, ignoring

as with this one -

2019-03-04T23:27:29 7.532 INF [MODS] Trying to load from Xajar_BiggerStorage

2019-03-04T23:27:29 7.533 WRN [MODS] Folder Xajar_BiggerStorage does not contain a ModInfo.xml, ignoring

 
Last edited by a moderator:
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.

ScreenCap.jpg

Windows.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>
loot.xml

<!-- Player dropped backpack--><set xpath="/lootcontainers/lootcontainer[@id=2]/@size">16,20</set>
 
I on my phone can't see the whole reply.
What do you mean right amount of blocks
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

 
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
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.

- - - Updated - - -

I don't see anything you posted relating to windowslooting but as I said on phone can't see the ends of each line in your post

 
from 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.

 
from 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.
Can you upload your modlet please that you are using cause I 99% guarantee it's the windowslooting lol

 
<append xpath="/windows">

<window name="S420windowLooting" width="378" height="378" controller="LootWindow" panel="Left" anchor_side="bottomright" visible="false" cursor_area="true" >

<panel name="header" height="43" depth="0" disableautobackground="true">

<sprite depth="1" name="headerbackground" sprite="ui_game_panel_header"/>

<button depth="3" name="btnSort" style="icon32px, press, hover" pivot="center" pos="21,-21" sprite="ui_game_symbol_loot_sack" tooltip_key="lblSortContainer" sound="[paging_click]" />

<label depth="2" name="lootName" pos="39,-6" width="172" height="32" text="LOOT" text_key="xuiLoot" font_size="32" />

<label depth="2" name="takeAllLabel" width="32" height="30" font_size="30" color="[mediumGrey]" justify="left" pos="260,-8"/>

<sprite depth="2" name="takeAllIcon" style="icon32px" sprite="ui_game_symbol_hand" color="[mediumGrey]" pos="220, -4"/>

</panel>

<sprite depth="0" name="gridBackground" color="255,255,255,1" type="sliced" pos="0, 0" globalopacity="true" on_press="true" />

<rect name="content" pos="3,-49" >

<grid depth="12" name="queue" rows="11" cols="12" cell_width="75" cell_height="75" repeat_content="true" controller="LootContainer">

<item_stack name="0"/>

the values here in red need to be 16 and 20 the 11 and 12 value is wrong and will cause nres.

- - - Updated - - -

this allows the lootcontainers to be able to have enough room in it to fit everything it needs to . having a smaller value will result in nres exactly like what your seeing

- - - Updated - - -

the loot.xml is correct and has the correct values but due to the windows looting values being wrong it is unable to open the lootcontainer

 
Thank 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 :(

 
Thank 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 :(
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 error

 
So does this mod still work with 17.2 or are there xml changes needed to get it to work?
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

 
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
Is 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">

 
Is 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">
Yeh the rows and cols are what needed fixing :-)

 
Yeh the rows and cols are what needed fixing :-)
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.

 
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.
Please upload output.log and your changed modlet so I can view please

 
Back
Top