GEORGE FLOROS GR 4207 Posted April 2, 2019 4 minutes ago, ArteyFlow said: I might even replace Ravage's cleanup system with yours, LOL This is what i just proposed. Share this post Link to post Share on other sites
ArteyFlow 170 Posted April 2, 2019 8 minutes ago, GEORGE FLOROS GR said: This is what i just proposed. I meant that I'll try out your cleanup script and see if I run into any problems and what not; If I don't then I'll just use yours instead. Thank you by the way. 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted April 6, 2019 Changelog: v3.1 Fixed , working now also on Dedicated , with auto init. Share this post Link to post Share on other sites
TPM_Aus 137 Posted June 16, 2019 Morning @GEORGE FLOROS GR , I am back to working on my Encerrado En mission. I have nearly finished, however I am having an issue with the auto loot script. I have set the loot to only spawn within 200m from a player, as seen below. However it spawns across the whole map on mission start. Any ideas? diag_log "//________________ GF_Auto_Loot Script initializing ________________"; //________________ Settings ________________ //________________ Set true or false ________________ GF_Auto_Loot_Systemchat_info = true; GF_Auto_Loot_Hintsilent_info = false; GF_Auto_Loot_diag_log_info = false; GF_Auto_Loot_Debug = true; GF_Auto_Loot_Systemchat_info_count_items = true; GF_Auto_Loot_Hintsilent_info_count_items = true; GF_Auto_Loot_diag_log_info_count_items = true; GF_Auto_Loot_Possibility = 10; // 1 = Load every Mod + Bohemia Items , 2 = Load every Mod - No Bohemia Items , 3 = Load Bohemia Items Only , 4 = Custom items only GF_Auto_Loot_Select = 1; GF_Auto_Loot_Blacklist_Zone_distance = 1000; // Add here the distance from the Blacklist Zones GF_Auto_Loot_Distanse_from_Players = 200; // Add here the distance from players 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted June 16, 2019 6 minutes ago, TPM_Aus said: GF_Auto_Loot_Distanse_from_Players = 200; // Add here the distance from players Hello there TPM_Aus ! This is only a distance from the items only when these are spawning and the spawn is not dynamic ( spawning - despawning ), it will spawn the items in the whole map except the blacklists zones and the certain distance from players , if this is > 0. 1 Share this post Link to post Share on other sites
TPM_Aus 137 Posted June 16, 2019 4 minutes ago, GEORGE FLOROS GR said: Hello there TPM_Aus ! This is only a distance from the items only when these are spawning and the spawn is not dynamic ( spawning - despawning ), it will spawn the items in the whole map except the blacklists zones and the certain distance from players , if this is > 0. Oh sorry, I misunderstood what that parameter was for. I have another question if you have the time. With regards to: GF_Auto_Loot_Possibility = 10; Is that 10% of buildings will spawn loot? 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted June 16, 2019 1 minute ago, TPM_Aus said: GF_Auto_Loot_Possibility = 10; If i remember i need to delete this line , because in the previous updates , i changed the possibility with certain numbers instead , in order to be more accurate and reliable. ----> i just checked the script and this is deleted ! are you running the current version or is it that i have update this only in my pc ? can you check it please ? these are the current settings : //________________ Settings ________________ //________________ Set true or false ________________ GF_AL_Systemchat_info = true; GF_AL_Hintsilent_info = true; GF_AL_diag_log_info = true; GF_AL_Debug = true; GF_AL_Systemchat_info_count_items = true; GF_AL_diag_log_info_count_items = true; GF_AL_items_number = 1000; // Number of the spawned items // 1 = Load every Mod + Bohemia Items , 2 = Load every Mod - No Bohemia Items , 3 = Load Bohemia Items Only , 4 = Custom items only GF_AL_Select = 1; GF_AL_Blacklist_Zone_distance = 1000; // Add here the distance from the Blacklist Zones GF_AL_Distance = 200; // Add here the distance from players GF_AL_Cleaner_Spawn_Enabled = true; GF_AL_Cleaner_Spawn_Loop = 14400; // ex : 4 hours = 14400 sec Share this post Link to post Share on other sites
TPM_Aus 137 Posted June 16, 2019 I am not running the current version then, I downloaded this one a few months ago. I have been away on a work trip and just getting back into finishing my mission. I will keep the current version I am using and not worry about the possibility section. Just trying to gain as much performance from my mission as possible. 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted June 16, 2019 44 minutes ago, TPM_Aus said: Just trying to gain as much performance from my mission as possible. You should really check the new version because there were some main changes in the code ! 1 Share this post Link to post Share on other sites
TPM_Aus 137 Posted June 16, 2019 Downloaded the new version. Limiting the number of items to the a selected amount was a good move. 1 Share this post Link to post Share on other sites
TPM_Aus 137 Posted June 16, 2019 What does this line do? GF_AL_Cleaner_Spawn_Enabled = true; 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted June 16, 2019 This is a new feature , the loot can be deleted in the selected time and spawn again. 2 Share this post Link to post Share on other sites
Marius U 12 Posted July 5, 2019 @GEORGE FLOROS GR hey man...here are a couple of questions i got about your script...hope you can help me out 1. right now it spawns a TONE of stuff...how can i set it to only spawn items within a radius of the player as opposed to everywhere on the map? 2. how can i adjust the stuff that spawns in (for example i dont want nvgs or glasses or whatnot) ? 3. what are the parameters of the trigger or marker i need to set in order for the area to be blacklisted? (i know where to add the marker/trigger names - but i dont know what options to set in them) 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 5, 2019 Hello there Marius U and wecome also to Bis Forums ! 1.Fisrt , if i understand well you can create a marker to get the items spawned , if you don't want to have the full size of the map , but the spawn is not dynamic ( spawn an despawn ) , it will spawn everything once and then you can select from the settings if you want to get the loot spawned in a loop with a certain time, this means , to clean all the spawned items from the script and spawn again the new ones. The default settings is enabled , with a 4 hour delay. 2.There are first two ways of spawning the items , an auto detection list , from the enabled (server) Mods , or a Custom list , that you can also select from the settings of the script : // 1 = Load every Mod + Bohemia Items , 2 = Load every Mod - No Bohemia Items , 3 = Load Bohemia Items Only , 4 = Custom items only GF_AL_Select = 1; then whatever your selection is , everything will be added in the Main array : GF_AL_cfgArray GF_AL_cfgArray = GF_AL_primaryWeapon_array + GF_AL_secondaryWeapon_array + GF_AL_handgunWeapon_array + GF_AL_Magazines_array + GF_AL_Uniform_array + GF_AL_Vests_array + GF_AL_Headgear_array + GF_AL_Backpacks_array + GF_AL_Goggles_array + GF_AL_Items_array + GF_AL_Attachments_array + GF_AL_Binocular_and_Nvg_array // + Custom arrays + GF_AL_Custom_array_1 // Ravage_items + GF_AL_Custom_array_2 // ACE3_mod_Medical + GF_AL_Custom_array_3; // ACE3_mod_items_array as you can see , there are also some custom arrays that you can use , in order to have a bigger percentage of the certain items : Spoiler // + Custom arrays + GF_AL_Custom_array_1 // Ravage_items + GF_AL_Custom_array_2 // ACE3_mod_Medical + GF_AL_Custom_array_3; // ACE3_mod_items_array So you can even filter the Main array ( GF_AL_cfgArray ) , if you comment "//" or remove , a certain line. For example , if i want only the weapons available for the loot list : GF_AL_cfgArray = GF_AL_primaryWeapon_array + GF_AL_secondaryWeapon_array + GF_AL_handgunWeapon_array; 3. For the blacklist zones , you can just load the example mission in the editor and select the markers for the zones and copy paste them in to your mission. There are 5 by default and if you want you can add also more , or you can not use them at all , without need to edit anything. GF_AL_Blacklist_Zone_distance = 1000; // Add here the distance from the Blacklist Zones For any other question that you have feel free to share it , in order also for anyone to get benefit from ! Thanks ! 1 Share this post Link to post Share on other sites
Marius U 12 Posted July 5, 2019 it didnt work: check out the screenshot i set the distance from the marker to 100 and i commented out the uniforms, nvg etc from the array as you said...and you can clearly see it doesnt work. it works on your stratis mission no problem, and i copy pasted as you told me also...what i meant by my first question 1. is to basically have a marker (place a marker on the map) in which items spawn (ONLY IN THAT MARKER AREA) please let me know if you can help man...cheers! 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 5, 2019 36 minutes ago, Marius U said: it didnt work: check out the screenshot i set the distance from the marker to 100 and i commented out the uniforms, nvg etc from the array as you said...and you can clearly see it doesnt work. I stiil see the uniforms there ! Might be that you are just not editing the correct sqf ? You can spawn to a certain marker , though i think that it's way better to blacklist the locations. To do this you need to check in line 91- 92 GF_AL_centerPosition = getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition"); GF_AL_size = worldsize; and change this to , ex : GF_AL_centerPosition = getMarkerPos "Spawn_Marker"; GF_AL_size = 1500; 1 Share this post Link to post Share on other sites
Marius U 12 Posted July 5, 2019 GF_AL_centerPosition = getMarkerPos "Spawn_Marker"; <- is "spawn_marker" the name of the marker? GF_AL_size = 1500; <- is 1500 the area around the marker? 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 5, 2019 Yes try this ! 1 Share this post Link to post Share on other sites
Marius U 12 Posted July 5, 2019 ok...i also commented out some stuff... a bunch of items i didnt want from the custom array but then i got this error when i try to run it here also...no weapons or anything else is spawning after i comment out those items 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 5, 2019 This is because when you are editing the arrays you need to check the last "clasname" not having a comma after. ex : _array = [ "classname", "classname", "classname" ]; Insead of comment a line typing comment or by using // , you can also comment more than one line using : /* here is now commented */ 1 Share this post Link to post Share on other sites
Marius U 12 Posted July 6, 2019 lol wow...thanks man...really really thanks...its a dumb mistake to make....but it works now! Thanks a bunch! i appreciate all the help and patience! 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 6, 2019 No problem , thanks also Marius ! 1 Share this post Link to post Share on other sites
Marius U 12 Posted July 6, 2019 hey man...one more question GF_AL_centerPosition = getMarkerPos "GF_AL_Blacklist_Zone_1", "GF_AL_Blacklist_Zone_2"; <--- on that line...how do i add multiple marker names? the comma doesnt work 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 6, 2019 The blacklist zone markers ( like GF_AL_Blacklist_Zone_1 ) is not for spawning items , you can add your marker there and if you want multiple markers then you need to add , ex : // select a random marker _array = selectRandom[ "Marker_1", "Marker_2", "Marker_3" ]; GF_AL_centerPosition = getmarkerPos _array; and you need to add this code inside the loop , else it won't be random. add the above code in line 585. But as i said before , i think that it's better to get the whole map size and just add the blacklist zones. 1 Share this post Link to post Share on other sites
Marius U 12 Posted July 6, 2019 i think i put it on the wrong line? probably inside the wrong loop ? 1 Share this post Link to post Share on other sites