prue420 Posted April 5, 2015 Report Share Posted April 5, 2015 Thank you deadeye that worked. Link to comment Share on other sites More sharing options...
VAKE Posted April 13, 2015 Report Share Posted April 13, 2015 I threw this together, but you can do something like the file below.https://www.mediafire.com/#4a4423jvm2n8a Only downside i see, is each crate will spawn the same "random" weapons each reboot ... but you get the idea. Is sign up required to access this file? I get a sign up/log in screen when I click your link. Link to comment Share on other sites More sharing options...
VAKE Posted April 13, 2015 Report Share Posted April 13, 2015 This isn't spawning loot crates for me. I updated the coords and put the PBO file in the @epochhive/addons folder. Nothing needs to go in the mission's init or description files, correct? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 13, 2015 Author Report Share Posted April 13, 2015 No just the addon PBO is all that's needed. Check your server RPT for errors. Link to comment Share on other sites More sharing options...
VAKE Posted April 14, 2015 Report Share Posted April 14, 2015 No RPT errors. RPT shows it is loading the PBO file, but I'm not getting any info at all in the RPT about the loot crates. Shouldn't I at least see this if it's loading in correctly? diag_log "Static crates loaded successfully!"; Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 14, 2015 Author Report Share Posted April 14, 2015 That dialog is posted after all the other lines have successfully loaded. What map are you using this for? If it's anything other than Bornholm you will have had to change the coords on the crates, otherwise they could be anywhere on a map like Altis or Chernarus. Link to comment Share on other sites More sharing options...
VAKE Posted April 14, 2015 Report Share Posted April 14, 2015 I already changed the coords for Altis. I got it to work by extracting the main sqf (fn_random_crateLoot.sqf) and calling it from the mission's init.sqf. :wacko: It works as intended! Thanks again! Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 14, 2015 Author Report Share Posted April 14, 2015 This should be able to be loaded from the PBO server side. I just tested the code again and moved it to Github. Please re-download and try it again. Link to comment Share on other sites More sharing options...
joe201x Posted April 17, 2015 Report Share Posted April 17, 2015 works great nice one Link to comment Share on other sites More sharing options...
cyncrwler Posted April 26, 2015 Report Share Posted April 26, 2015 Works great Darth. Thank you for the share! Link to comment Share on other sites More sharing options...
Metalfoundry Posted April 27, 2015 Report Share Posted April 27, 2015 can I add as many crates as I want in fn_random_crateLoot.sqf ? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 27, 2015 Author Report Share Posted April 27, 2015 Yes you can set as many as you like. Be sure to check out the new version, just posted moments ago. There's a few new options that will be of interest to many folks. Thanks goes to Ghostrider-DBD-! Link to comment Share on other sites More sharing options...
Metalfoundry Posted April 27, 2015 Report Share Posted April 27, 2015 Thnx, that works! But if I define 20 Spawn points, but only want to spawn 2-3 at the same time ? And I want to allow this only, if more then 20 players are on the server :-)... how to? Thank you for your work! Metal Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 27, 2015 Author Report Share Posted April 27, 2015 To have it start only once more than 20 players are on the server you could add diag_log "[Loot Crates]Loading Static Loot Container Spawning System"; diag_log "[Loot Crates]Waiting for sufficient player count...."; waitUntil {count playableUnits => 20}; diag_log "[Loot Crates]Minimum Player count reached. Beginning loot crate spawning!"; to the top of the file. That "should" work. As for limiting the number of crates at a time, that's a question for someone smarter than me. :) Metalfoundry 1 Link to comment Share on other sites More sharing options...
Metalfoundry Posted April 28, 2015 Report Share Posted April 28, 2015 Thank you for your support & your script Darth! :) Darth_Rogue 1 Link to comment Share on other sites More sharing options...
Ghostrider-GRG Posted April 28, 2015 Report Share Posted April 28, 2015 To have it start only once more than 20 players are on the server you could add diag_log "[Loot Crates]Loading Static Loot Container Spawning System"; diag_log "[Loot Crates]Waiting for sufficient player count...."; waitUntil {count playableUnits => 20}; diag_log "[Loot Crates]Minimum Player count reached. Beginning loot crate spawning!"; to the top of the file. That "should" work. As for limiting the number of crates at a time, that's a question for someone smarter than me. :) Metalfoundry, this could be done. Shoot me a PM with more about what you'd like to do. Metalfoundry and Darth_Rogue 2 Link to comment Share on other sites More sharing options...
Skin Posted April 28, 2015 Report Share Posted April 28, 2015 Hi Darth_Rogue Thanks for this script. Could you please advise what I need to change in the new layout to get this working on Altis ? Thanks Insem Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 28, 2015 Author Report Share Posted April 28, 2015 With the new version you shouldn't have to do anything other than change the coordinates of where you want the crates to spawn. You can adjust the loot types and amounts if you would like, but it's not required to get it working. Link to comment Share on other sites More sharing options...
Skin Posted April 29, 2015 Report Share Posted April 29, 2015 Thanks for the reply.... I must be doing something wrong then... all I changed was the locations for the 4 crates here switch (_worldName) do { case "altis":{ diag_log "Altis-specific settings loaded"; [[8484.51,25058.1,0.00132751],0], [[8706.97,25374.2,0.00118256],0], [[3049.72,13202,18.3877],0], [[3137.43,13088.5,0.00112152],0] }; and they wont show up ? Have I done something wrng with this ? Cheers Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 29, 2015 Author Report Share Posted April 29, 2015 Check your server RPT for a confirmation that the crates are loaded. It should look like "Static crates loaded successfully!" If you have that, then they are loaded and you should double check your coords to make sure they are correct. If you use Infistar you could turn on "Construction Markers" which will show the crates on the map. It will also show many other things but it will help find them at least. Link to comment Share on other sites More sharing options...
Skin Posted April 29, 2015 Report Share Posted April 29, 2015 Check your server RPT for a confirmation that the crates are loaded. It should look like "Static crates loaded successfully!" If you have that, then they are loaded and you should double check your coords to make sure they are correct. If you use Infistar you could turn on "Construction Markers" which will show the crates on the map. It will also show many other things but it will help find them at least. Thanks Darth I checked the RPT it shows 11:55:15 "Loading Static Loot Container Spawning System" 11:55:15 "Altis-specific settings loaded" 11:55:15 "[crateLoot.sqf] --- >>> worldname is altis" 11:55:15 "Static crates loaded successfully!" So is working.... I double checked my cords and they are the same as the previous version of this I was using before and they are correct ? I don't have infistar loaded so pretty hard to check.... I may have to install it to check this out.... It must be something with the cords Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 29, 2015 Author Report Share Posted April 29, 2015 Yeah I agree. Make sure you haven't missed any commas or [] as that could keep them from spawning properly. If one character is missing early in the array it could prevent all of them from spawning in. If you want to paste your whole file to pastebin or something I would be happy to take a look. Link to comment Share on other sites More sharing options...
Skin Posted April 29, 2015 Report Share Posted April 29, 2015 Darth I am very impressed with the speed that you reply, its awesome thanks :) If you wouldn't mind having a look for me that would be great.... The file is here in zip https://www.dropbox.com/s/rccbjj4ki9jp75j/a3_custom_crates.zip?dl=0 All I changed was the 4 locations for the crates to spawn at two of my AI bases... pbo it and put epochhive/addons Cheers Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 30, 2015 Author Report Share Posted April 30, 2015 No problem. I'll take a look in the morning. Won't be home from work until super late tonight. Link to comment Share on other sites More sharing options...
Ghostrider-GRG Posted April 30, 2015 Report Share Posted April 30, 2015 Darth is absolutely right - not sure what I was thinking !!! coffee, more coffee. 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