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

Loot.xml not working

Nova_Mast

New member
I just want to say before I start to explain my problem, that I'm not used to editing xml files. Sorry if i'm bad at it.

Ok, so I wanted to start messing around with the alpha 17 xml files so I tried to. I edited the loot xml file first and went into

the game.

When I tried to search something like a container, there is always nothing there. I did this serval times with different containers.

Can someone fix this?

I used an xml verifier and it said that nothing was wrong.

I also checked the console and there was no errors.

Here's a link to the xml file:

https://pastebin.com/8Qt4eTNq

Thank you for the help! :smile-new:

PS: I might not respond immediately, so if that's the case, please hold on.

 
What all did you edit? Its a pretty big file to comb through blindly. I did notice that you changed a lot of the counts to 9999. Never tried anything that high. If it exceeds the stack size of the item that could cause issues. It also doesn't do anything to increase the probability of finding something in the container, just how much if you do. I've had 20 containers in a row with nothing in them so you have to check a lot. I would first verify that you have the stack size of all the items above 9999 but under 30000 or reduce the number of the loot to something like 100 instead.

 
Max stacksize is a bit over 30 000. More cant work but thats the stacksize

I guess you should start from scratch and do it with more sense.

(I guess you will find no modder who is willed to check your whole file for possible errors)

Start by editing 5 Entrys, then testplay

Next 5-10 entrys if it worked, testplay

repeat...

Or you get my modlet collection and chose the 5000% lootabundance at gamestart (its in the adpated version of Red eagles Broader Gameoptions)

https://7daystodie.com/forums/showthread.php?103985-Vanilla-modlet-collection

At least if full container was your aim

 
Last edited by a moderator:
I think also when editing a file as-large as loot.xml xpath becomes more and more powerfull if it comes to other people reading into your changes and also the game reporting back errors (resulting in not-applying the patch instead of potentially breaking the whole loot.xml-file if something would happen to the structure in the file accidentally)

Part of the error seems to stem that in your current version the game should only be able to find any eligible loot-table when you're at 16% of total GS.

On top of that I note the default values are ranges and currently you supply a single int; that's bound to give complications for the logic trying to use the value; it's safe to assume the game needs a range (i.e. 1,999999) instead of single ints for all loot level lines.

I haven't really experimented with this however, just waiting for RWG to finish and that's the main thing I noticed when comparing your pastebin to the original.

 
Max stacksize is a bit over 30 000. More cant work but thats the stacksize
I guess you should start from scratch and do it with more sense.

(I guess you will find no modder who is willed to check your whole file for possible errors)

Start by editing 5 Entrys, then testplay

Next 5-10 entrys if it worked, testplay

repeat...

Or you get my modlet collection and chose the 5000% lootabundance at gamestart (its in the adpated version of Red eagles Broader Gameoptions)

https://7daystodie.com/forums/showthread.php?103985-Vanilla-modlet-collection

At least if full container was your aim
5000% what the lol. Red eagle lxixs 500% was absolutely nuts. But 5000% lol

- - - Updated - - -

Oh and yeh I would do what royal suggested. Bits at a time for new moddwrs little things leads to massive things.

@annihlator maybe a bit more easier code talk for the new modder lol. Maybe

 
5000% what the lol. Red eagle lxixs 500% was absolutely nuts. But 5000% lol
XD

ACC67969DE2F3B58F9FB057E6DFAE12A54A03FBF


 
@annihlator maybe a bit more easier code talk for the new modder lol. Maybe
Yeah fair enough, just hard for me to notice when something might be hard to understand for a novice and to gauge his knowledge.

By the fact he already used an xml-verifier all I would dare assume is he did something similar before :p

@OP; If i've confused you in any way or brought up additional questions just say so, I'll keep an eye on this topic too.

 
Yes op, dont mind the offtopic, thats part of the community here

We all want to help. Your request was simply to do someting (search a full XML) we try to avoid at our own mods. because as you know now, its no fun

 
Back
Top