[Tutorial] Custom Loot Tables and Adjusting Spawn Rates

ukdayz

Member
thank you for the guide, so much was all over the place, it was hard to put all the pieces of the puzzle together
 

Sup3rn0va

Member
Thanks its kinda working and kinda not, the loot spawn one time, and after that it want respawn, when elektro is looted then it is looted till next server restart, anyone may know what this problem is ?
 

hexxar

Member
hmm this fucked up my whole loots...on helicrashe only mk48 mod and m249..strange anyone got the same problem ?

maybe i did something wrong...can someone tell me what to do with :

_config = configfile >> "CfgBuildingLoot" >> _type;

where i have to change it? all files?
 

AVendettaForYou

Well-Known Member
Thanks its kinda working and kinda not, the loot spawn one time, and after that it want respawn, when elektro is looted then it is looted till next server restart, anyone may know what this problem is ?
You would need to edit your lootspawn delay in variables and decrease the time between new loot spawning.

I have past the problem is still not put tents now help
Only thing that would effect this if you have any type of script that restricts object placement.

Hospital seems to be bugged too ;) no boxes no antibiotics. totally strange
Have you made sure to change all your _configs to read as:
Code:
_config = missionConfigFile >> "CfgBuildingLoot" >> _type;
this would also pertain to CfgLoot.

hmm this fucked up my whole loots...on helicrashe only mk48 mod and m249..strange anyone got the same problem ?

maybe i did something wrong...can someone tell me what to do with :

_config = configfile >> "CfgBuildingLoot" >> _type;

where i have to change it? all files?
In all of the files that you copied over to the Fixes folder is what you would make changes to.
 

justchil

Well-Known Member
I`m getting these on .rpt log

Code:
22:28:07 Error Zero divisor
 
22:28:07 File mpmissions\__cur_mp.chernarus\Fixes\spawn_loot.sqf, line 27
 
22:28:07 Error in expression <find _iClass;
 
_weights = dayz_CLChances select _index;
 
_cntWeights = count _weig>
 
22:28:07 Error position: <select _index;
 
_cntWeights = count _weig>

Did you figure out where that "0" was? I just found the error in my logs as well.

Edit: Didnt find out exactly what I did but replaced my loot tables and re-edited and all good lol
 

Clexin

New Member
Thanks everyone for your hard work here. I have followed these steps as close as I can and I'm getting this message when I try to enter my server.


Script z\addons\dayz_code\init\Fixes\loot_init.sqf not found

Any suggestions as to what I may have missed?
 

hexxar

Member
Line 420: call compile preprocessFileLineNumbers "Fixes\loot_init.sqf";

thats ure mistake change that in your compiles.sqf should be located in fixes ;)
 

Clexin

New Member
Line 420: call compile preprocessFileLineNumbers "Fixes\loot_init.sqf";

thats ure mistake change that in your compiles.sqf should be located in fixes ;)
That was it hexxar! Thanks a ton! This seems to be working great so far.
 

Clexin

New Member
I'm using this tutorial and one more (auto refuel) on my server and for some reason Side Chat will not work with these installed? Could this Custom Loot be causing this issue? I am certain that I have Side Chat enabled on my Dayz.St Control Panel.
 

Essix

Member
having an issue with this and sarges ai script. totally disables the ai script, wont even spawn the ai. but the script works well.
 

Fubar22

New Member
Help - I am unable to locate two files required above:
  • dayz_code\Configs\CfgLoot\CfgBuildingLoot.hpp
  • dayz_code\Configs\CfgLoot\CfgBuildingPos.hpp
Thanks!
 

Philip Nelson

New Member
I am trying to obtain the default loot tables for 1.7.7.1 but I cannot seem to find them!

Thank you in advance ladies and gentlemen.
 

HEROTHOR

Member
AM I CHANING ALL THE configFiles to missionConfigFile such as ....................?

Code:
agent = objNull;
if (count _unitTypes == 0) then {
    _unitTypes = []+ getArray (missionConfigFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
};
or just the lines that are

Code:
_config = configFile >> "CfgBuildingLoot" >> _type;
 

ahughes3

New Member
Aaarghhh! I have tried this like 3 times already and everytime I finish and try it I get a "Wait for Host" screen. Can you help me please or do it for me, for a donation?

Thanks
Andy
 

Graivex

New Member
this is an excellent guide and it worked perfect on my chernarus server but would anyone know how or know a good guide such as this one to adding more loot veriety such as a lot of the weapons from other maps etc etc? thanks!
 
Top