100% Custom Loot tables - v1.7.7

kaysio

Valued Member!
Link to files :

http://whiskey-tango-foxtrot.co.uk//customspawnloot.zip



1>

Put these 3 files into your main mission folder

CfgBuildingLoot.hpp
CfgBuildingPos.hpp
CfgLoot.hpp



2>

Open init.sqf file in your mission folder and change the lines with variables.sqf & compiles.sqf, to the following

call compile preprocessFileLineNumbers "custom\variables.sqf";
call compile preprocessFileLineNumbers "custom\compiles.sqf";



3>

Place custom & fixes folders into your mission folder
[Ive left my self bloodbag script & modded dynamic weather script in there aswell]



4>

Open up your description.ext from your mission folder
and add the following to the very top of the file.


#include "cfgBuildingLoot.hpp"







*** Now you can alter CfgBuildingLoot.hpp & CfgLoot.hpp to change the loot spawns



*** To change to spawn rates times, check out these values in your variables.sqf

dayz_spawnDelay = 300;
dayz_spawnWait = -300;





*** A big thankyou goes towards the original idea & members from the following threads,

http://opendayz.net/threads/100-custom-loot-tables-tutorial.8474/page-15#post-53996
http://opendayz.net/threads/krixes-self-bloodbag-script.9212/#post-33185
http://opendayz.net/threads/change-weather-server-side.6702/
http://opendayz.net/threads/guide-clear-nights.9866/
 

kaysio

Valued Member!
Pretty sure this doesn't work (CfgBuildingLoot class does not get overwritten)

Think you forgot to change configFile to missionConfigFile in your init_loot.sqf (and your other files too)
good point, I will double check
correct files have been uploaded.
 

kaysio

Valued Member!
Can someone explain what this does?
Once you have followed those instructions you will be able to edit all 3 of those .hpp files and have the ability to:

Increase or decrease loot chance
Add more loot to certain spawns
Add or remove points for loot to spawn inside buildings
Add or remove types buildings that spawn loot
Add customized loot tables for new buildings
 

CommanderRetra

Moderator
Staff member
Make the post look preety, I just looked at white and black stuff when I saw your post didn't actually read any of it. Also you need to give credits to the person that made the previous version.
 

kaysio

Valued Member!
Make the post look preety, I just looked at white and black stuff when I saw your post didn't actually read any of it. Also you need to give credits to the person that made the previous version.
well if you did read it, you would notice I made a link to the original post
 

istealth

Well-Known Member
having some problems i followed the directions and i remove nvgoggles from the list but i saw one at an crash site when i was testing this.
 
It still works for me on 1.7.7.1 with the right files but I have no loot on my heli crashes could there be anything in these files messing that up? I can't find anything wrong.
 

kaysio

Valued Member!
It still works for me on 1.7.7.1 with the right files but I have no loot on my heli crashes could there be anything in these files messing that up? I can't find anything wrong.

Have you checked further out from the crash sites.
Ive noticed they spawn in a wider area.
 

kaysio

Valued Member!
having some problems i followed the directions and i remove nvgoggles from the list but i saw one at an crash site when i was testing this.

If you want to modify the loot on the crash site, you will need to edit your configFile like above in your dayz_server.pbo
 

kaysio

Valued Member!
If you want to modify the loot on the crash site, you will need to edit your configFile like above in your dayz_server.pbo


server_spawnCrashSite.sqf

line 76 : _itemTypes = [] + getArray (configFile >> "CfgBuildingLoot" >> _lootTable >> "lootType");

change to : _itemTypes = [] + getArray ( missionConfigFile >> "CfgBuildingLoot" >> _lootTable >> "lootType");
 
server_spawnCrashSite.sqf

line 76 : _itemTypes = [] + getArray (configFile >> "CfgBuildingLoot" >> _lootTable >> "lootType");

change to : _itemTypes = [] + getArray ( missionConfigFile >> "CfgBuildingLoot" >> _lootTable >> "lootType");

I just tried that and really thought that would actually solve my problem but unfortuanatly it did not :(

I'm not trying to change my spawning items btw. My heli crashes aren't spawning any loot at all.

Got any more suggestions? My server is running on DayZ.st btw.
 
I have no loot on my heli crashes could there be anything in these files messing that up? I can't find anything wrong.

If anybody fixes my problem I would donate 10$ to him. I've been struggling with this problem for 4 days now.

Add me on skype: timhoeve

if you think you can help.

Thanks in advance
 
These files are different then the default files for the dayz mod. you MUST update the files to 1.7.7.1 so everything works right or some things that have changed will not work at all.. Right now i am comparing the files here with my Dayz mod files and there are differences. BUT only by a few lines. Those lines are for the Heli loot that lifts it off the ground that they added for 1.7.7.1 So you might be getting spawns but then cant been seen because they are underground.
 
Top