AWACS script

Post Reply
shadow
Senior Member
Senior Member
Posts: 67
Joined: 05 Jul 2015, 15:49
United States of America

AWACS script

#1

Post by shadow » 27 Feb 2018, 05:45

Uploaded a player awacs script into the server scripts folder. (player_awacs_v1.lua)
Script is standalone, does not require any other scripts eg (MIST)
Function:
The mission designer can designate any aircraft group as an AWACS (group name with "AWACS" in the name)
The AWACS unit when on station will have all air contacts with LOS within 70 NM drawn on it's F10 map, updated either every sec or every 5 sec based on user preference (defaults to 1 sec)
Whoever is the AWACS should relay via voice comms to coordinate the air battle.
Best used with 2 player AC, 1 to fly and the other be the battle manager/AWAC operator.

Known issues:
Slight stutter on marker draw in high threat environments (tested up to 28 concurrent threat AC), most evident using the 1 sec update, less so with 5 sec.
Game freeze on disconnect.

Planned improvements:
Reduce stutter with staggered draw commands.
AI AWACS/EWR downlink

User avatar
pyromaniac4002
Colonel
Colonel
Posts: 1477
Joined: 21 Jun 2015, 02:45
Location: Orange County, California
United States of America

Re: AWACS script

#2

Post by pyromaniac4002 » 27 Feb 2018, 23:19

Awesome! Have to think about how to best implement it, but that's pretty damn cool.
Image

shadow
Senior Member
Senior Member
Posts: 67
Joined: 05 Jul 2015, 15:49
United States of America

Re: AWACS script

#3

Post by shadow » 03 Mar 2018, 08:40

Uploaded version 2
Features:
Fixed the stutter issue, tested up to 128 threat ac without major problems. Thanks Roy and Cook for the help
Increased minimum scan rate to 5 sec.

Known Issues:
Game freeze on disconnect still an issue. I think it is DCS clean up function not liking the number of marks, don't know how to fix

User avatar
pyromaniac4002
Colonel
Colonel
Posts: 1477
Joined: 21 Jun 2015, 02:45
Location: Orange County, California
United States of America

Re: AWACS script

#4

Post by pyromaniac4002 » 04 Mar 2018, 06:24

That's a crash when the AWACS script-enabled client disconnects or just anyone who happens to be present while the marks are up?

And am I assuming correctly that's a freeze-to-crash, or are you just talking about a healthy lag spike?
Image

shadow
Senior Member
Senior Member
Posts: 67
Joined: 05 Jul 2015, 15:49
United States of America

Re: AWACS script

#5

Post by shadow » 04 Mar 2018, 15:41

Unfortunately the issues will manifest for all parties present when the script is employed. The game will freeze for the disconnecting client, leading to a crash. My guess is the game is running a clean up function on the marks and the longer the script is run the longer the clean up function takes to complete, effectively freezing the game. However this issue will only affect the client on disconnect and to only the disconnecting client. The server and other clients won't experience any detrimental effects. That being said, the issue will cause the server to freeze on mission completion/change.

User avatar
pyromaniac4002
Colonel
Colonel
Posts: 1477
Joined: 21 Jun 2015, 02:45
Location: Orange County, California
United States of America

Re: AWACS script

#6

Post by pyromaniac4002 » 04 Mar 2018, 15:52

Ahh okay. So still an issue, but something we can work with as long as we have people on to RDP in for mission changes.
Image

shadow
Senior Member
Senior Member
Posts: 67
Joined: 05 Jul 2015, 15:49
United States of America

Re: AWACS script

#7

Post by shadow » 04 Mar 2018, 16:20

There is a possibility that the server given enough time will unfreeze by itself once the cleanup function completes, I just haven't been patient enough to wait to see if it does come back

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest