Jump to content
  • 0

Howto setup Custom Loot with DZE_MissionLootTable


Revoplay

Question

Any Hints or something?

 

I found this in dayz_code

if (DZE_MissionLootTable) then {
	_config = missionConfigFile >> "CfgBuildingLoot";
} else {
	_config = configFile >> "CfgBuildingLoot";
};

But how?

 

I think missionConfigFile will be init.sqf, but then? And with files do i need?

Link to comment
Share on other sites

Recommended Posts

  • 0

Used this to change the loot table on zombies but the custom loot is also spawning on the ground in buildings even tho I haven't changed the buildings config file. Any idea on how to fix this?

 

Most of the buildings and zombies share the same 'loot tables'.

The pilot, Police and a hunter zombies zombies  (I think) are the only one with custom loot tables.

The rest use default loot tables like 'military' etc

Link to comment
Share on other sites

  • 0

1. Make a new folder in your mission file called "loottables". copy the hpp files from here https://github.com/vbawol/DayZ-Epoch/tree/master/SQF/dayz_code/Configs/CfgBuildingLoot into your loottable folder.

 

Is that the file with the init, missions, modules, etc folders? Also, that file can't be found on Github anymore.

Link to comment
Share on other sites

  • 0

Most of the buildings and zombies share the same 'loot tables'.

The pilot, Police and a hunter zombies zombies  (I think) are the only one with custom loot tables.

The rest use default loot tables like 'military' etc

 

When I used the old mod to customize loot it used to be that building loot was controlled only by CfgBuildingLoot.hpp. If anyone has a workaround please share it.

Link to comment
Share on other sites

  • 0

Having trouble getting this to work. When I log into my panthera server I get stuck on the splash screen.

I am using the 3 files above and have everything in the right place (checked enough times).

 

I checked my RPT and was given this error.

 

1:34:47 Error in expression <rea= 1500; 
DZE_MissionLootTable = true
MaxVehicleLimit = 300; 
MaxDynamicDebris>
 1:34:47   Error position: <MaxVehicleLimit = 300; 
MaxDynamicDebris>
 1:34:47   Error Missing ;
 1:34:47 File mpmissions\__cur_mp.panthera2\init.sqf, line 29
 
Any ideas?
Link to comment
Share on other sites

  • 0

 

Having trouble getting this to work. When I log into my panthera server I get stuck on the splash screen.

I am using the 3 files above and have everything in the right place (checked enough times).

 

I checked my RPT and was given this error.

 

1:34:47 Error in expression <rea= 1500; 
DZE_MissionLootTable = true
MaxVehicleLimit = 300; 
MaxDynamicDebris>
 1:34:47   Error position: <MaxVehicleLimit = 300; 
MaxDynamicDebris>
 1:34:47   Error Missing ;
 1:34:47 File mpmissions\__cur_mp.panthera2\init.sqf, line 29
 
Any ideas?

 

Link to comment
Share on other sites

  • 0

could somebody post the full install instructions to how to get this working, its kinda scattered here and there...

 

what I tried didnt work server wouldnt load... but I found the instructions on this page and page 1 and im sure I am missing something...

 

in my init I added

DZE_MissionLootTable = true;

 

in description.ext I added  after enableItemsDropping=0;

#include "loottables\CfgBuildingLoot.hpp"   
 
I created a folder in mission root named loottables 
in loottables folder I placed
CfgBuildingLoot.hpp
CfgBuildingPos.hpp
CfgLoot.hpp
Link to comment
Share on other sites

  • 0

you're missing CfgLootSmall.hpp

thankz but where can I find this CfgLootSmall.hpp

its not in the github I found, nor is it in the code

 

and will these files I download work for panthera epoch 1.0.4.2 ???  or do I have to find panthera specific files

like the CfgLootPos.hpp has positions in it or is that the posistion in the building..

still verry confused

 

I just found this link with all the files there but not sure if it works for panthera epoch 1.0.4.2

it says 

CfgLootPos.hpp added some loot positions for Napf and some more in farm building

 

https://github.com/vbawol/DayZ-Epoch/tree/Release_1.0.4.2/SQF/dayz_code/Configs/CfgBuildingLoot

Link to comment
Share on other sites

  • 0

are any of the files map specific ??

do I have to call the other files like this.......... or only if I change something in the file ?

#include "loottables\CfgBuildingPos.hpp"  /// coord numbers lead me to believe its map specific

 

#include "loottables\CfgBuildingLoot.hpp"  

#include "loottables\CfgLoot.hpp"  

#include "loottables\CfgLootSmall.hpp"  

 

can I only change loot and chances in CfgBuildingLoot and not change other loots files ?

Link to comment
Share on other sites

  • 0

The positions are based on the building/object so it has nothing to do with a specific map.

 

You only need to include the CfgBuildingLoot.hpp in your description.ext and then add the variable to init.sqf

 

You can change any of the 4 files. If you are modding the CfgBuildingLootPos.hpp file then you'll need to change the call at the bottom of the CfgBuidlingLoot.hpp file that's currently commented out.

Link to comment
Share on other sites

  • 0

Not sure what is going wrong here. Have any of you seen this before?

 

Error in expression <eight = round ((_itemChances select _l) * 100);
for "_k" from 0 to _weight - 1 d>
  Error position: <* 100);
for "_k" from 0 to _weight - 1 d>
  Error *: Type String, expected Number
File z\addons\dayz_code\init\loot_init.sqf, line 75
Link to comment
Share on other sites

  • 0

 

Not sure what is going wrong here. Have any of you seen this before?

 

Error in expression <eight = round ((_itemChances select _l) * 100);
for "_k" from 0 to _weight - 1 d>
  Error position: <* 100);
for "_k" from 0 to _weight - 1 d>
  Error *: Type String, expected Number
File z\addons\dayz_code\init\loot_init.sqf, line 75

 

 

I just set up my custom loot tables and I'm getting the exact same error. I've customized CfgBuildingLoot and CfgLoot. Both are located in the loottables folder. At the bottom of CfgBuildingLoot, I added: #include "CfgLoot.hpp"

 

Any ideas?

Link to comment
Share on other sites

  • 0

init.sqf:

DZE_MissionLootTable = true; //Custom Loot Tables
 

description.ext

enableItemsDropping=0;
//INSERT AFTER ^
#include "FOLDERWHERELOOTFILESAREINMISSIONPBO\CfgBuildingLoot.hpp"
 

Copy these 3 files to whatever folder in mission that matches the path above ^

 

https://github.com/vbawol/DayZ-Epoch/tree/Release_1.0.4.2/SQF/dayz_code/Configs/CfgBuildingLoot

 

Done.

 

If you want to change the building position loot you need the 4th file (CfgLootPos.hpp) then you need to open up CfgBuildingLoot.hpp and change the call at the bottom and copy the file into the mission folder where the other 3 files are:

#include "CfgLootPos.hpp"
//If you want to copypast your loottable to your mission w/o
//changing something on the lootPos then use the a include instead of copypasting the CfgLootPos.hpp

//#include "\dayz_epoch_b\CfgLootPos.hpp"
Link to comment
Share on other sites

  • 0

I found I was using the wrong CfgLoot file. Not sure where I got it, but I downloaded the one from here and it seems to fix the problem: https://github.com/vbawol/DayZ-Epoch/tree/Release_1.0.4.2/SQF/dayz_code/Configs/CfgBuildingLoot. At the bottom of CfgBuildingLoot, I put this:

 

//#include "\dayz_epoch_b\CfgLootPos.hpp"
#include "CfgLoot.hpp"
 
I put CfgLoot.hpp and CfgLootSmall.hpp in the same folder as the CfgBuildingLoot.hpp file.
 
Hope that helps someone else. :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...