MrRightclick
New Member
Would it be possible to change the types of zombies spawning in certain buildings with the same technique, using a server side fix?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
okei i tried to do what the first post said and no loot spawned, here is the building_spawnLoot and yeah know it says txt after sqf but i have made another one after i found that out but the one i used and that is the same.
http://www.mediafire.com/view/ov8qozwxandrhuw/building_spawnLoot.sqf.txt
and i took a look in my rpt log and it said this:
"Survivors:1, FPS:40, FPSMin:32"
"SpawnCheck Loc.Agents: 11/28. Models: 11/55 W.holders: 0/55 (radius:200m 32fps)."
Error in expression <Class"];
_obj = _this select 0;
_type = typeOf>
Error position: <select 0;
_type = typeOf>
Error select: Type Object, expected Array,Config entry
File mpmissions\__CUR_MP.chernarus\fixes\building_spawnLoot.sqf, line 5
I am having the same problem, and all of the instances where it said configfile >> "CfgBuildingLoot" in all of the files I changed to missionConfigFile >> (etc.). However, it doesn't work. Here is the path to my mission file, if that helps "C:\Program Files (x86)\Steam\steamapps\common\arma 2 operation arrowhead\MPMissions\dayz_1.chernarus\Fixes". Could it be because I am using DayzCC?You haven't changed the configFile >> "CfgBuildingLoot" >> _type; to missionConfigFile >> "CfgBuildingLoot" >> _type;
class Land_kulna: Residential {
lootPos[] = {{0.503174,0.217773,-1.11633},{-0.498291,1.92871,-1.12811}};
class CfgBuildingLoot {
class Default {
zombieChance = 0.4;
minRoaming = 0;
maxRoaming = 5;
zombieClass[] = {"zZombie_Base","z_hunter","z_teacher","z_suit1","z_suit2","z_worker1","z_worker2","z_worker3","z_villager1","z_villager2","z_villager3"};
lootChance = 0.2;
lootPos[] = {};
lootType[] = {};
hangPos[] = {};
vehPos[] = {};
};
Thank you for the suggestion! I looked at my default building lootChance and it was 0. I changed it to 0.2, but there was still no loot. Thanks a bunch for the suggestion, though!One reason why some people might be getting no loot after tinkering is that they've altered the lootChance = line in the default class at the top of cfgBuildingLoot.hpp?
This class Default is how each building is initially set up. So making this variable lootChance with a high value is bad. Make it very low. Then the chance of a building having no loot is made rare.
Hope this helps.
Code:class CfgBuildingLoot { class Default { zombieChance = 0.4; minRoaming = 0; maxRoaming = 5; zombieClass[] = {"zZombie_Base","z_hunter","z_teacher","z_suit1","z_suit2","z_worker1","z_worker2","z_worker3","z_villager1","z_villager2","z_villager3"}; lootChance = 0.2; lootPos[] = {}; lootType[] = {}; hangPos[] = {}; vehPos[] = {}; };
Please correct me if I'm wrong.![]()
Thank you for the suggestion! I looked at my default building lootChance and it was 0. I changed it to 0.2, but there was still no loot. Thanks a bunch for the suggestion, though!
I looked all through my building_spawnLoot.sqf and I don't see anything wrong and nothing spawns, http://opendayz.net/threads/custom-loot-not-spawning.12226/I also got no loot when I had accidentally marked up an Item in cfgBuildingLoot.hpp as the wrong type.
ie I had set
{"ItemAntibiotic","generic",0.10}
which is incorrect instead of
{"ItemAntibiotic","magazine",0.10},
Maybe check your items have the right classification next to them in that file?
There are a lot of variables in variables.sqf that affect the spawning of loot, so careful editing needs to be done.
dayz_maxMaxWeaponHolders = 200
dayz_spawnArea = 50
dayz_safeDistPlr = 5
dayz_lootSpawnBias = 87
dayz_lootDelay = 3
dayz_lootWait = -100
dayz_spawnDelay = 120
dayz_spawnWait = -120
Is what I use.
Same here, I just fnished going through all my loot files, and everyting seems correct. Not wrong commas, or apostrophes, etc.I looked al
I looked all through my building_spawnLoot.sqf and I don't see anything wrong and nothing spawns, http://opendayz.net/threads/custom-loot-not-spawning.12226/
Same here, I just fnished going through all my loot files, and everyting seems correct. Not wrong commas, or apostrophes, etc.
Also, in my .rpt file, I get this error, not sure if it is connected to the messed up stuff: "Invalid path (only relative paths supported): 'C:\Program Files (x86)\Steam\steamapps\common\arma 2 operation arrowhead\MPMissions\dayz_1.chernarus\loot_init.sqf'"
Thanks!
I looked al
I looked all through my building_spawnLoot.sqf and I don't see anything wrong and nothing spawns, http://opendayz.net/threads/custom-loot-not-spawning.12226/