Jump to content

tdavison

Member
  • Posts

    69
  • Joined

  • Last visited

Posts posted by tdavison

  1. V1.0b Hotfix added to my github: https://github.com/tdavison70/Helicopter-Supply-Drop/releases

     

    Below are the changes:

    • Moved all functions to separate file and compile on init
    • Replaced sleep command with uiSleep for performance issues
    • Crates get cleaned up whether they are found or not
    • Better handling for timers

    Hopefully, the timer issue is fixed. Below is an excerpt from my RPT files this weekend which show them working. I apologize if anyone has issues. You can see it sending choppers out about every 20 minutes, and crates get deleted now. You can set SDROP_Debug = false; if you don't want entries added to your RPT file.

    16:59:55 [SDROP]: Starting Supply Drop Mission Framework.
    
    17:14:58 [SDROP]: Helicopter spawned, and moving to WP
    17:19:11 [SDROP]: Crate landed. Starting Crate de-spawn timer
    17:49:11 [SDROP]: No players found the crate. Deleted crate
    
    18:04:17 [SDROP]: Helicopter spawned, and moving to WP
    18:06:55 [SDROP]: Crate landed. Starting Crate de-spawn timer
    18:49:04 [SDROP]: Player found crate. Crate Deleted after timeout. Restarting new drop.
    
    19:04:05 [SDROP]: Helicopter spawned, and moving to WP
    19:08:41 [SDROP]: Crate landed. Starting Crate de-spawn timer
    19:38:41 [SDROP]: No players found the crate. Deleted crate
    
    19:53:44 [SDROP]: Helicopter spawned, and moving to WP
    19:59:45 [SDROP]: Crate landed. Starting Crate de-spawn timer
    20:29:45 [SDROP]: No players found the crate. Deleted crate
    
    20:44:48 [SDROP]: Helicopter spawned, and moving to WP
    
  2. The server runs in 4 hour restarts. At 12:53 EST someone posted about the supply drops going crazy. This was about 7 hours later that I logged on, so it persisted across restarts. I was on the server for about a 1/2 an hour and saw the helicopters appearing every 3 - 5 minutes myself.

     

    I plan on getting a different server today and will start with vanilla EPOCH and only my mission for testing. I should have an updated version by end of weekend. I plan to update the timers, and do some additional crate cleanup (currently crate will not get de-spawned if a player gets within range of it/loots it). Thanks for letting me know about the issues.

  3. I just logged onto my server after getting home from work and found 12 supply crates. They are dropping about every 3 - 5 minutes. There were 5 players on and the server's been running about 3 hours.

     

    Was it a fresh install, or has it been running fine until today? Very weird that it is not cleaning up those crates if no one gets within the range to activate victory conditions. The only thing I can consider at this point is that the diag_tickTime is tied to individual players which is causing the timers some havoc. I'll try to test on this some more - I may have to use serverTime or some other timer to que off of.

  4. I have a user telling me that the supply drops started appearing about one a minute today. I'm not home so i can't look into it but i thought I'd mention it.

     

    Can you find out if this just starting happening randomly? Was it after a fresh restart? How many players were on? etc. 

     

    I used diag_TickTime to aid in the timing of drops... but that might not have been the best choice (although it has worked perfectly - I added a bunch of diag logs to tell me when the drops start/stop etc). Unfortunately, my public test server has had really low populations, so I cannot test effectively on a high-population server. Sorry for so many questions, I don't have a good test harness to work with.

  5. I was just on my server. There was a marker for the supply box and it hadn't been cleared yet when a second helicopter came and dropped another box somewhere else. Should another helicopter come if the last supply box wasn't found yet? If so, could we get an option to make it so the timer for the chopper won't begin if there's an unfound supply box?

     

    I'll have to test that more - but on my public server, a new helicopter doesn't come out until the supply crate has been triggered by a player, or its time expired. Been running since 10AM and never missed a beat as far as timers go. Did you modify any of the timers?

  6. Below is the tentative changelog for the upcoming update for A3EAI (0.4.0), I'm in the process of doing final checking. The changes to the Dynamic and Random spawns are to make them a bit more fair to players by allowing them to inherit the spawn probability set for each location type (Village, City, Capital City, Remote). This will allow users the flexibility to make certain areas more dangerous, and certain areas more safe. The addition of the Wilerness location category can be used to define Dynamic and Random spawn probabilities for areas that are very far away from any named location (1000m+ away).

     

    Sounds awesome - can't wait to test this out.

  7. Version 1.0b has been released on my github page: https://github.com/tdavison70/Helicopter-Supply-Drop/releases

     

    This should fix helicopters that cannot find a safe position from hovering aimlessly. Some other performance-related fixes (using logic for drop height) were made, which should fix any yellow link icons from happening. 

     

    Thanks again for all of your testing & suggestions. Hopefully this add-on will run better than before.

  8. how can I start this script only, if >10 Players are on the server?

     

    I haven't tested this, but I think you can do something like:

    if (isServer) then {
         if (count playableUnits > 10) then {
              //call mission
              [] ExecVM "\SDROP\init.sqf";
         };
    };
    

    Again, not tested. Sorry if any errors - you also want to make sure any other "isServer" calls are not in the IF condition to check players.

  9. Is that really big (about 1000*1000m) purple radius on map is this mission?

     

    The marker is 500 meters x 500 meters - you can change it, but the crate might not be within a smaller radius. I'll be doing a hotfix for this in just a little while. The hotfix includes some performance issues as well as putting the marker where the crate is (with a slight offset).  After the hotifx, you can change the radius to be smaller - but I'd suggest at least 300 meter radius, unless you want to use the exact position marker.

  10. Sorry do not understand a thing for installation this.

    Installation:
    
    Extract it to your Desktop or somewhere where you won't lose it. Inside the Zip is this Readme.MD, and the folder "SupplyDrop-1.0". Inside you will find SDROP.pbo and the "SDrop" folder with mission and script files.
    
    1. Edit your epoch.Altis initServer.sqf (or add one)
    Paste in the following line (or add to existing IF SERVER condition):
    
    if (isServer) then {
    [] ExecVM "\SDROP\init.sqf";
    };
    
    2. Edit your epoch.Altis init.sqf (or add one)
    Paste in the following - this is used for sending messages to all players:
    
    //Supply Drop Alert Event
    "SDROP_Alert" addPublicVariableEventHandler {
    hint parseText format["%1", _this select 1];
    };
    

    Should I add this strings to init.sqf in epoch.Altis.pbo in \MPMissions on server or what?

     

    You should be able to put that in your epoch.Altis.pbo (unpacked) init.sqf

  11. Just a little heads up:

    Let BIS_fnc_findSafePos search in a 8000m radius by the server is insane and will produce a heavy delay on other scripts and probably many yellow chains on well populated servers!

    Keep a look into my fn_findMissionPos.sqf to see how I create a random position on the Map and then use BIS_fnc_findSafePos in a much lower radius, to search a valid position.

    You are free to adapt this script (or take parts out of it) and use it for your supply drop mission.

    But keep in mind that my fn_findMissionPos script is dependent on the results/calculations, made by the fn_getWorldData.sqf, which dynamically creates a center and a maximum search radius for every map.

    Greez KiloSwiss

     

    KiloSwiss: Do you happen to have any references or pages that reference performance issues with BIS_fnc_findSafePos? From what I can tell, it simply returns a coordinate that meets the parameters set in the array.

     

    According to Lost_Noob - he gets the yellow link when the helicopter drops the crate, which makes no sense at all to me - because BIS_fnc_findSafePos was called way prior to that... the helicopter is simply dropping the crate and attaching to a parachute. I will add deleteVehicle _chute; after the crate has landed.

     

    Ahh - this is most likely the issue causing the yellow link:

    while {(getPosATL _crate) select 2 > _chuteMinDistanceToOpen} do
    {
    	sleep 0.2;
    };
    

    I'll have to find a better way to handle that one... but will most likely just remove the _chutMinDistanceToOpen variable. Which really means the parachute will most likely fall outside the LZ.

  12. If you go into editor, click preview, then press escape and click ANIMATIONS, you can see a wide variety of animations and loops.

     

    My questions is batter asked this way...

     

    Is there a function or execVM a player can call to trigger the helicopter script? 

     

    I honestly don't know if a script can be triggered by a player using a radio - I'm pretty sure that animation is driven on the client-side of things. Very sorry.

  13. I have a request. I have an animation script where my guy uses his walkie talkie.

     

    Is there a way for a player to have a chance of triggering a supply drop within a certain distance?

     

    Great script BTW  :wub:

     

    I wouldn't know how to do this - haven't seen any animations for using radio... are you attempting to do this client-side or server-side? (the add-on was meant for server-side). If you have code that triggers the animation, I am sure you could find a way to make it work within that framework (like not call the script from initServer, rather call it from the radio animation).

  14. I'm on Taviana and could be the map center etc...  

     

    Chisel - I found these coordinates for Tavi in A3AEI's config: ["tavi",[10887.825, 11084.657],8500]

     

    So, you could modify the coordinates like so for Tavi:

    //these variables determine a safe location for the supply crate drops
    //map center below is based on TAVI with halved values
    _mapCenter = [5444,5543,0];
    _coords = [_mapCenter,500,8000,30,0,10,0] call BIS_fnc_findSafePos;
    

    Try those coords and let me know if you continue to have issues.

  15. 19:21:15 Warning Message: No entry 'bin\config.bin/CfgMagazines.FootSnooter'.

    19:21:15 Warning Message: No entry '.picture'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.scope'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: Error: creating magazine FootSnooter with scope=private

    19:21:15 Warning Message: No entry '.displayName'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.displayNameShort'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.nameSound'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.Library'.

    19:21:15 Warning Message: No entry '.libTextDesc'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.type'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.count'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.maxLeadSpeed'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.initSpeed'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.reloadAction'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.modelSpecial'.

    19:21:15 Warning Message: '/' is not a value

    19:21:15 Warning Message: No entry '.ammo'.

    19:21:15 Warning Message: '/' is not a value

    19:22:19 Error: Object(3 : 13) not found

    19:25:53 Error: Object(3 : 17) not found

    19:27:47 Warning: looped for animation: a3\animals_f_beta\chicken\data\anim\hen\henwalk.rtm differs (looped now 0)! MoveName: hen_stop2lean

    19:27:47 Warning: looped for animation: a3\animals_f_beta\chicken\data\anim\hen\henwalk.rtm differs (looped now 1)! MoveName: hen_lean2stop

    19:28:15 "playerDisconnected:76561198070365822:ITOLHCS"

    19:29:14 Warning Message: No entry 'bin\config.bin/CfgMagazines.Heal_EPOCH'.

    19:29:14 Warning Message: No entry '.picture'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.scope'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: Error: creating magazine Heal_EPOCH with scope=private

    19:29:14 Warning Message: No entry '.displayName'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.displayNameShort'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.nameSound'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.Library'.

    19:29:14 Warning Message: No entry '.libTextDesc'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.type'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.count'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.maxLeadSpeed'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.initSpeed'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.reloadAction'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.modelSpecial'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.ammo'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry 'bin\config.bin/CfgMagazines.Repair_EPOCH'.

    19:29:14 Warning Message: No entry '.picture'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.scope'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: Error: creating magazine Repair_EPOCH with scope=private

    19:29:14 Warning Message: No entry '.displayName'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.displayNameShort'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.nameSound'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.Library'.

    19:29:14 Warning Message: No entry '.libTextDesc'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.type'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.count'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.maxLeadSpeed'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.initSpeed'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.reloadAction'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.modelSpecial'.

    19:29:14 Warning Message: '/' is not a value

    19:29:14 Warning Message: No entry '.ammo'.

    19:29:14 Warning Message: '/' is not a value

    19:29:54 "playerConnected:76561198070365822:ITOLHCS"

    19:30:04 No speaker given for Rahim Khalili

    19:30:04 Speaker Male04_F not found in CfgVoiceTypes

    19:30:14 "SKN AdminLog ["Map to Teleport",2,B Alpha 1-1:1 (ITOLHCS) REMOTE,"uivjczlh"]"

    19:30:14 "SKN2 AdminRequest [["19:20","Sgt. Scrapmetal"," -ON-","Vehicle MARKER"],["19:20","Sgt. Scrapmetal"," -ON-","Map to Teleport"],["19:30","Sgt. Scrapmetal"," -ON-","Map to Teleport"]]"

    19:30:15 "SKN AdminLog ["AI MARKER",2,B Alpha 1-1:1 (ITOLHCS) REMOTE,"uivjczlh"]"

    19:30:15 "SKN2 AdminRequest [["19:20","Sgt. Scrapmetal"," -ON-","Vehicle MARKER"],["19:20","Sgt. Scrapmetal"," -ON-","Map to Teleport"],["19:30","Sgt. Scrapmetal"," -ON-","Map to Teleport"],["19:30","Sgt. Scrapmetal"," -ON-","AI MARKER"]]"

    19:30:16 "SKN AdminLog ["Vehicle MARKER",2,B Alpha 1-1:1 (ITOLHCS) REMOTE,"uivjczlh"]"

    19:30:16 "SKN2 AdminRequest [["19:20","Sgt. Scrapmetal"," -ON-","Vehicle MARKER"],["19:20","Sgt. Scrapmetal"," -ON-","Map to Teleport"],["19:30","Sgt. Scrapmetal"," -ON-","Map to Teleport"],["19:30","Sgt. Scrapmetal"," -ON-","AI MARKER"],["19:30","Sgt. Scrapmetal"," -ON-","Vehicle MARKER"]]"

    19:33:12 Warning Message: No entry 'bin\config.bin/CfgMagazines.Heal_EPOCH'.

    19:33:12 Warning Message: No entry '.picture'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.scope'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: Error: creating magazine Heal_EPOCH with scope=private

    19:33:12 Warning Message: No entry '.displayName'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.displayNameShort'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.nameSound'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.Library'.

    19:33:12 Warning Message: No entry '.libTextDesc'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.type'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.count'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.maxLeadSpeed'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.initSpeed'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.reloadAction'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.modelSpecial'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.ammo'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry 'bin\config.bin/CfgMagazines.Repair_EPOCH'.

    19:33:12 Warning Message: No entry '.picture'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.scope'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: Error: creating magazine Repair_EPOCH with scope=private

    19:33:12 Warning Message: No entry '.displayName'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.displayNameShort'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.nameSound'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.Library'.

    19:33:12 Warning Message: No entry '.libTextDesc'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.type'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.count'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.maxLeadSpeed'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.initSpeed'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.reloadAction'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.modelSpecial'.

    19:33:12 Warning Message: '/' is not a value

    19:33:12 Warning Message: No entry '.ammo'.

    19:33:12 Warning Message: '/' is not a value

    19:33:53 Error: Object(3 : 28) not found

    19:34:51 "#SEM: Running Mission 1 "Plane Crashsite" at Position [6681.52,7876.76,0]"

    19:34:53 "#SEM: Spawned 10 units at position [6681.52,7876.76,0]"

    19:37:40 Warning Message: No entry 'bin\config.bin/CfgMagazines.FootSnooter'.

    19:37:40 Warning Message: No entry '.picture'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.scope'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: Error: creating magazine FootSnooter with scope=private

    19:37:40 Warning Message: No entry '.displayName'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.displayNameShort'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.nameSound'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.Library'.

    19:37:40 Warning Message: No entry '.libTextDesc'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.type'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.count'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.maxLeadSpeed'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.initSpeed'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.reloadAction'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.modelSpecial'.

    19:37:40 Warning Message: '/' is not a value

    19:37:40 Warning Message: No entry '.ammo'.

    19:37:40 Warning Message: '/' is not a value

     

     

    After instal this script any ideas?

     

    Schloti1993:

     

    I pretty sure none of those warnings are part of my add-on.

  16. I'm on Taviana and could be the map center etc...  

     

    Chisel:

     

    If you can open the map editor for Taviana, you can find the center coordinates for the map (this addon was made for Altis). Anyway, if you can find the center for Taviana, divide those by 2, and put those values in the SDROP_SupplyDrop.sqf

    //these variables determine a safe location for the supply crate drops
    //map center is based on ALTIS with halved values
    _mapCenter = [7720,7671,0];
    _coords = [_mapCenter,500,14000,30,0,10,0] call BIS_fnc_findSafePos;
    

    You may want to adjust the 14000 also, as that determines how far out from center to look for drop zones.

  17. Oh, it was definitely there. It's just nobody could find it (it landed in some reeds and wasn't visible). I'd rather not have to have an admin point out where it is though :D

     

    There is a marker in missions/SDROP_SupplyDrop.sqf that will give the exact location of the crate - I commented it out as I felt it made it too easy to find the crate. You can comment-out the original marker and un-comment the exact postion marker - see below:

    //create marker at supply crate's landing zone (NOTE: only an approximation of where crate will be, and crate could be slightly outside the LZ)
    _marker = createMarker ["SupplyDropMarker", _wpPosition ];
    _marker setMarkerSize [500,500];
    _marker setMarkerBrush "Horizontal";
    _marker setMarkerShape "ELLIPSE";
    _marker setMarkerColor "ColorCIV";
    
    //If you decide to use the marker below, comment out marker above
    //This marker spawns on the crate - giving away the crate's exact position
    //_marker = createMarker ["SupplyDropMarker", getPos _crate ];
    //_marker setMarkerType "mil_objective";
    //_marker setMarkerColor "ColorYellow";
    

    In the above code, you would un-comment the second marker, and comment-out the top marker.

  18. I believe that is the supply heli looking for a spot to drop.  This happens on my server as well.  Heli hovers, then moves a bit to a new location, hovers, moves, I believe they are looking for a clear spot to drop...

     

    That is really odd - I tested by setting my timer to 30-seconds, and admin TP to crate to re-start mission (literally hundreds of times)... I even had like 6-8 heli's on the map at the same time... all found a place to drop, and all returned and got de-spawned. I'll try to add some logic in there for timing if a crate never gets dropped. 

  19. Thanks for the update! Next request, and this was touched on by at least one other reply, how about randomization of the box contents? Maybe even have the loot pulled from the Epoch loot tables?

     

    I thought about randomizing all the crates, but wanted to avoid issues with BE filters. I'll consider this in a future update. 

×
×
  • Create New...