Torndeco Posted September 24, 2013 Report Share Posted September 24, 2013 Disclaimer This is not the most efficent way todo custom loot i.e 100k+ missionfile, But it allows for more flexible loot changes + adding in new loot positions If all u are doing is replace / removing the odd weapon there are better ways todo it Infact this way is pure lazy but allows u to alter all the loots & loot positions & zombie loot etc... Or if u want to add loot postions for buidlings u added to server, that don't normally spawn loot Github https://github.com/Torndeco/Epoch-Custom-Loot Credit All credit goes towards http://opendayz.net/threads/tutorial-custom-loot-tables-and-adjusting-spawn-rates.11589/ I just altered it for epoch quickly, i may have made some mistakes To find loot positon (works with only buildings in map i.e not spawned in by server, check out http://opendayz.net/threads/find-building-loot-positions.11031/ DanucasB and crckdns 2 Link to comment Share on other sites More sharing options...
MrTesla Posted September 25, 2013 Report Share Posted September 25, 2013 Thanks. I was somewhat following the guide you linked but couldn't get it working. It works now, but zombies don't seem to be spawning loot. Edit: Fixed the zombie loot problem. Had to add "#include "cfgLoot.hpp"" to my description.ext. Link to comment Share on other sites More sharing options...
Torndeco Posted September 25, 2013 Author Report Share Posted September 25, 2013 I added the #include "cfgLoot.hpp" In cfgBuildingLoot.hpp But either way works :) Link to comment Share on other sites More sharing options...
Torndeco Posted October 8, 2013 Author Report Share Posted October 8, 2013 Also another tip is if u like to have zombie free bases... Instead of teleporting zombies away We do a check for plotholes before spawning loot & zombies Doesn't prevent wild zombies from spawning & wandering into the base. Plus we already have the file included in the mission file, its just a small change in size to add it. player_spawnCheck.sqf { _type = typeOf _x; _config = missionConfigFile >> "CfgBuildingLoot" >> _type; _canLoot = isClass (_config); if(_canLoot) then { _nearbyPole = (getPos _x) nearestObject "Plastic_Pole_EP1_DZ"; if (isNull _nearbyPole) then { ...................... ..................... .................... }; }; Link to comment Share on other sites More sharing options...
dagg929 Posted October 11, 2013 Report Share Posted October 11, 2013 Where do you find the cfgBuildingLoot.hpp to edit the default? - Edit: This looks exactly the same as config.cpp. Why rename this? What was the problem with loot positions? Here are some for epoch 1.0.2.3 with loot position typo fixed Link to comment Share on other sites More sharing options...
SmokeShow Posted October 12, 2013 Report Share Posted October 12, 2013 You download it from the link the top post provided, then add it to your files to compile after you adjust them or change them. Link:http://pastebin.com/c80iLgG6 Save this file as cfgBuildingLoot.hpp Link to comment Share on other sites More sharing options...
dagg929 Posted October 13, 2013 Report Share Posted October 13, 2013 Config.cpp contains the exact same info as cfgbuildingloot.hpp So why are we using this when the config.cpp changes are being loaded? Link to comment Share on other sites More sharing options...
Torndeco Posted October 13, 2013 Author Report Share Posted October 13, 2013 Config.cpp contains more than the 2 files I linked. I have the loot info split into 2 files and it's just the default epoch loot and positions It's just contains a loot typo fix for a residential spawn location, fixed already on github for next epoch version. The whole ideal of the files is that u can edit the file and alter the loot yourself for your server. Link to comment Share on other sites More sharing options...
dagg929 Posted October 14, 2013 Report Share Posted October 14, 2013 So do you bother to include the config.cpp or no? I'm currently only including the cfgbuildingloot and cfgloot.hpp Do I need to have the config.cpp on the missionfile, or no? I assume not, right? As the other files overwrite? Link to comment Share on other sites More sharing options...
dagg929 Posted October 15, 2013 Report Share Posted October 15, 2013 Not sure this is working anymore. I just redid mine completely and it doesn't appear that they're working. Thinking variables.sqf should be moved as well? Link to comment Share on other sites More sharing options...
Ethan_296 Posted October 24, 2013 Report Share Posted October 24, 2013 (edited) One Problem, Zombies aren't spawning. any ideas why? i followed your guide to the letter and am currently scrolling through the files to see if i have missed something. Arma2oaserver.RPT file being spammed with: } forEach _msgList;> 20:29:14 Error position: <_msgList;> 20:29:14 Error Undefined variable in expression: _msglist 20:29:14 Error in expression < allGroups; dayz_serverObjectMonitor = _safety;> 20:29:14 Error position: <_safety;> 20:29:14 Error Undefined variable in expression: _safety 20:29:14 Error in expression <oad, _interval, time]]; }; }; Any ideas? Fixed: found half the code for the cfgbuildingLoot.hpp was missing (my fault) and a spelling error when editing the Building_spawnZombies.sqf (may fault again) but other than that, about an hour of testing later and still no problems :D thanks Torndeco ps. Still getting the .rpt file spam of: }; } forEach _msgList;> 20:50:28 Error position: <_msgList;> 20:50:28 Error Undefined variable in expression: _msglist 20:50:28 Error in expression < allGroups; dayz_serverObjectMonitor = _safety;> 20:50:28 Error position: <_safety;> 20:50:28 Error Undefined variable in expression: _safety 20:50:28 Error in expression <oad, _interval, time]]; }; }; Any Ideas of what causing it? Edited October 24, 2013 by Ethan_296 Link to comment Share on other sites More sharing options...
Torndeco Posted October 27, 2013 Author Report Share Posted October 27, 2013 Updated instructions for Epoch 1.0.2.4 Link to comment Share on other sites More sharing options...
dagg929 Posted October 28, 2013 Report Share Posted October 28, 2013 New patch removed all those config files from the dayz_code/configs folder. Uh.. why, and how do we do this now? Link to comment Share on other sites More sharing options...
Torndeco Posted October 28, 2013 Author Report Share Posted October 28, 2013 http://www.armaholic.com/page.php?id=411 Install unRap run unRap + Extract @DayZ_Epoch\addons\dayz_code\config.bin .... Should be similar process, in the progress of upgrading my servers atm edit: #include "extras\custom_loot\CfgBuildingLoot.hpp" #include "extras\custom_loot\CfgLootSmall.hpp" #include "extras\custom_loot\cfgLoot.hpp" Link to comment Share on other sites More sharing options...
Wesley Posted October 28, 2013 Report Share Posted October 28, 2013 When editing the cfgbuilding_loot.sqf we add a bunch of items, but there is always certain things that spawn EVERYWHERE! For instance, combolock and lockbox @ a rate of 0.005 spawns 4 in a 2story Panelak, Also a winny spawns like crazy there too Also AK107 GL Kobro spawns at about 5/barracks. When its rate of spawn is 0.04 and other weapons are well over 0.10. Link to comment Share on other sites More sharing options...
Bladechaser Posted November 2, 2013 Report Share Posted November 2, 2013 ok please excuse my ignorance im new to the scripting game lol ... but ive followed your instructions to the letter .. my server is up and running ... how do i know that this is working ? .. and how do i go about increasing the loot amount ? Link to comment Share on other sites More sharing options...
Torndeco Posted November 2, 2013 Author Report Share Posted November 2, 2013 To make your custom loot changes edit... extras/custom_loot/config.hpp extras\custom_loot\config.hppextras\custom_loot\cfgLoot.hpp Recommend u use -showScriptErrors In dayz commander -> settings -> Launch Parameters That way u will notice if u make a typo mistake Link to comment Share on other sites More sharing options...
Bladechaser Posted November 3, 2013 Report Share Posted November 3, 2013 thanks for the reply . ive been trying to test to see if i can modify the spawns in certain buildings the most obvious one for me was the hospital i wanted something to spawn in the hospital that normaly doesnt, so i added the wooden arrow . me and a friend have tried several times to see if it drops and still nothing heres the code i used in cfgLoot.hpp hospital[] = { { "ItemBandage", "ItemPainkiller", "ItemMorphine", "ItemEpinephrine", "ItemBloodbag", "ItemAntibiotic", "WoodenArrow" }, { 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.90 im wondering if there is something im missing or done wrong . as it still spawns the same things . just no arrows i havent edited the config.hpp file as wasnt sure which section to change Link to comment Share on other sites More sharing options...
Torndeco Posted November 3, 2013 Author Report Share Posted November 3, 2013 Use -showscripterrors in your launch parameters + walk to the hospital It will show errors on your screen (wont be in your logs) if there is a typo mistake Link to comment Share on other sites More sharing options...
Bladechaser Posted November 3, 2013 Report Share Posted November 3, 2013 well i launched it with commander, set the launch parameters nothing come up on screen anywhere to show that i had a problem with the script Link to comment Share on other sites More sharing options...
Bladechaser Posted November 3, 2013 Report Share Posted November 3, 2013 ok so ive been going back over your instructiosn .. again thank you for the tutorial .. but i have a question in the part where you say 2) Save as extras/custom_loot/config.hpp http://pastebin.com/7hA4c9vu Save as extras/custom_loot/cfgLoot.hpp https://raw.github.c...igs/cfgLoot.hpp Save as extras/custom_loot/CfgLootSmall.hpp https://raw.github.c...fgLootSmall.hpp Edit description.ext in your mission Add the following to the very top of the file #include "extras\custom_loot\config.hpp"#include "extras\custom_loot\cfgLoot.hpp" do i need to make a folder called extras and within that folder another folder call custom_loot as i cant name the files extras\custom_loot\cfgLoot.hpp" and also do i need to have the sqf files listed in the tutorial in the same folder ? again thank you for any help provided, i know im probably asking really basic question B) Link to comment Share on other sites More sharing options...
arkmal Posted November 3, 2013 Report Share Posted November 3, 2013 Hi ! I have tried this today.. I have strictly followed each steps of your explanations.. i've check every steps twice to be sure about typo errors... now the problem is that i stay stuck on the black screen "waiting for the host" Any idea about what it should be? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted November 6, 2013 Report Share Posted November 6, 2013 I have used your tutorial and have done custom loot tables on other servers before as well. I'm having the same problem as always. For some reason some items just don't want to spawn in, regardless of the spawn chance I give them. It's like the server is reading the loot table and just stops after a certain point. I've double and triple checked the loot files to make sure that there isn't an extra comma or semicolon inserted between the items to prevent items from being read. Any ideas? Link to comment Share on other sites More sharing options...
Torndeco Posted November 7, 2013 Author Report Share Posted November 7, 2013 I forgot to mission fix the loot_init.sqf Anyway added the files on github & readme for instructions should make it easier for people https://github.com/Torndeco/Epoch-Custom-Loot/tree/master Link to comment Share on other sites More sharing options...
chisel Posted November 7, 2013 Report Share Posted November 7, 2013 First I just want to say thank you for the time you took to do all this and to help others with their servers. I know all this is very time consuming and answering questions from every direction can be trying. Having said that, your instructions appear to be fragmented. Could you possibly edit your initial post to include all fixes/additions for clarity? I'm doing custom loot on my server and we we're having mixed results. Some luck getting certain items in but many others were spawning seemingly with total disregard to the loot files (6 winchesters in one room, crazy stuff like that). So I see an updated post saying you forgot something, with a link to new files. In those files is a new folder and variables.sqf that I do not see referenced in your instructions. Again I sincerely appreciate your help and willingness to share, but everyone would benefit including you with clearer instructions. You wouldn't have dummies like me asking a million questions. I'd be willing to jump on your TS or you on mine to help go through this and write up step by step instructions with you. Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now