[Tutorial] Custom Loot Tables and Adjusting Spawn Rates

Ok, I am trying to follow this thing but for the life of me can't find a Cfgbuildingloot.hpp in my dayz_code.

Running Fallujah.


Ok, so apparently all files are merged into one config.cpp

How would I go about changing the loot tables with this file?
 
mdswish , i saw your pbo .... the folder dayz_code .. you change the name to debug ...... if you reference it correctly its ok ... the cfglootpos.hpp is missing in the main directory where cfgbuildingloot and cfg loot are... , in loot_init
do not put missionconfigfile .. , it works for me .... i have medbox0 in hospital and antibiotics and more in my server.....
 
cfglootpos is merged in with cfgBuildingLoot in the Trinity mod. I've seen it that way in a couple other mods as well. It works fine with spawning loot when the server is running off the files in dayz_code.pbo. So one would then assume that it should work when it's part of the custom loot method as well. Right? I tried leaving missionconfigfile out of loot_init and it made no difference....still doesn't work.

I suppose I could try extracting the pos data from the cfgBuildingLoot and make it a separate hpp file as the guide suggests. Can't hurt at this point.

As for the duplicate compiles.sqf, the secondary one only contains a link to a file for the self blooding. It's not loading any duplicate calls from the primary compiles.sqf. But good catch! ;)
 
Hey guys,

Last night I tried to get custom loot tables working. For some reason the zombies and the loot wasn't spawning. I followed everything to the "T", or so I believe. I even implemented the server-side fix mentioned in the instructions.

Here are the files I used in the mission.pbo file:

http://www.167clan.net/files/missionpbo.zip

I'd include it as an attachment, but I don't see the option here.
 
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;


This isn't clear for me, too..
 
Sorry if this has already been asked, but when using another mod (we use Oring), should I be using the files from @dayz_oring/addons/dayz_code.pbo or should I always use the files from @dayz/addons/dayz_code.pbo?
The reason I am confused is because the one from @dayz_oring is missing a couple of the files and some of the files it does have, don't have the lines you're telling me to edit... But if I use the default ones, then surely I would lose any of the custom map loot items?

Never mind, I found a solution and have posted it here.
 
I have tried this multiple times, and so have my friends... There is absolutely no zombies or loot spawning on the map. Please assist me... It will be much appreciated.
 
This isn't clear for me, too..

It wasn't clear for me either, Matt L helped me with this.

Using C++ hit ctrl F, go to replace, find configFile, replace with missionConfigfile. Do this for the added files in Fixes that need adjusting.

That should get it working. I'm all loaded in; whereas before I would get black gui, broken leg and debug plains, so that's a plus. Testing some value tweaks atm.
 
This is bullshit and doesnt work. Iv done it over and over 5 times now and there is still no loot spawning. Hell people can barely connect.
 
So the ">> class" are not to be removed?

Don't even touch it. Just do the CRTL+F in C++ and find/replace.

The directions were a little misleading in this part, but its a long instruction and things happen.

All you have to worry about in this case is replacing:
configfile

with:
missionConfigfile

Everything is running 100% for me and enjoying the loot control. Thanks to OP!
 
This is bullshit and doesnt work. Iv done it over and over 5 times now and there is still no loot spawning. Hell people can barely connect.

I can confirm this does work and works well! This small mod gives you total control over what spawns , where it spawns and when it spawns even zombies (with some other overides).
If it is not working for you Julian and you need some assistance please be a bit more specific in your post, for example:Version/Map/RPT.Maybe reread the OP.Check,check and double check all syntax because even when using copy/paste method errors can still be made.
STENCH
 
im using it and it works ... with all dayz weapons .. cant get the SCARS to spawn .. and they are not banned .. the medbox0 in the hospital is really a life saver :) and i increased the zombies... 45 in combat scenario and the zombies per building :) jejejeje zombie rampage XD

cant ge to spawn the G36 :(
 
im using it and it works ... with all dayz weapons .. cant get the SCARS to spawn .. and they are not banned .. the medbox0 in the hospital is really a life saver :) and i increased the zombies... 45 in combat scenario and the zombies per building :) jejejeje zombie rampage XD

cant ge to spawn the G36 :(

Not sure what mod your using. But SCAR's are banned in Chernarus without rMod.

Certain G36's are banned w/o rMod as well.
 
"1-In the root of your mission folder you can edit CfgBuildingLoot, CfgBuildingPos, and CfgLoot, I will be giving a quick run down of what each does."2-After you have edited the loot tables to your liking you can save the changes and pack up your mission folder and upload it to the server. Now you have edited your loot spawns and should see a good increase on loot spawns.

1- BY that you mean the original mission.pbo file or the ones I moved into the "fixes" folder because I get confused on that part.

2- And how does the folders have to be packed, do I replace the original files with the ones I edited ? or do I pack the "Fixes" folder and upload it to my sever files?


I understand the instructions up until that part, it would be nice if you let me know that part ive wanted to make a tutorial video(with your permission of course, so that people can go there and check it out)
 
He means the original mission pbo, the one that you downloaded. (Its called "dayz_mission.pbo")

When you "pack" your pbo you right click the mission folder (the one you have downloaded and edited), scroll till you find "pbo manager" and then find "pack into dayz_mission.pbo"
 
He means the original mission pbo, the one that you downloaded. (Its called "dayz_mission.pbo")

When you "pack" your pbo you right click the mission folder (the one you have downloaded and edited), scroll till you find "pbo manager" and then find "pack into dayz_mission.pbo"

I know how to pack the files but do I pack the "fixed" folder or replace the old files that I downloaded with the new ones and then pack them up?
 
Not sure what mod your using. But SCAR's are banned in Chernarus without rMod.

Certain G36's are banned w/o rMod as well.


Yeah most of the SCARs and G36 But theres some models that are not banned in the dayz_anim .. i can get some of them to spawn in Heli crash sites using a custom Heli crash site add on but i can't do it in the lootables :-(
 
For people with a single 'config.cpp' in the root of dayz_code.pbo INSTEAD of both 'cfgBuildingLoot.hpp' and 'cfgBuildingPos.hpp' in dayz_code\Configs\CfgLoot\.

Ok, so apparently all files are merged into one config.cpp

How would I go about changing the loot tables with this file?


I had the same problem with Oring. I found a solution though.
Open your config.cpp and find "cgfBuildingLoot", it should look something like this (the brace may be on the next line);
Code:
class CfgBuildingLoot {
Select it's first brace '{' then scroll to the bottom of the file to make sure the closing brace '}' is highlighted red.
If it is, then you want to copy everything from (including) 'class cfgBuildingLoot' all the way down to include the closing brace.

Now, make a new file in notepadd++ and on the first line type
Code:
#include "CfgLoot.hpp"
Then paste what you just copied underneath that.
Save this file as 'cfgBuildingLoot.hpp' in the root of your mission.pbo AND copy the file 'cfgloot.hpp' from the dayz_code.pbo also into the root of your mission.pbo.

Now just make the edits that are in the tutorial on the first page and it should all be working. :)
 
Back
Top