Jump to content

How to control runways regarding local ATC, AI, crashes, and wrecks


Recommended Posts

Posted

I know this question has been asked in several different forms over a few threads over a few years, but I'm just getting back into DCS scripting after the 1.5 change-over and a year away from scripting.

 

I'm the author of this script, which was a lot of fun to make and play with. I've made some more edits and found a few boundary conditions and memory leaks. I want to release an updated version and continue improvements.

http://forums.eagle.ru/showthread.php?t=141099

 

Of course, as with a lot of our random'ing AI scripted missions, at some point damage occurs on a runway or taxiway that prevents any future AI craft from taxi'ing, take-off, or landing. Even well after the actual debris has de-rezzed due to time, there remains a black spot that seems to be the cause of the stuck airbase.

 

From what I can tell, this is caused by the spot itself or the local ATC becoming unresponsive. I've tested this myself on a simple mission and found that when I crash on the runway and respawn, the local ATC will never respond to requests to taxi to the runway or permission to take-off.

 

So it seems the ATC knows the runway should be closed or it is causing it to be closed.

 

For me, it is a critical function to find some way to re-open the runway. From what I can tell, this is not exactly easy or we would have all found a way to do it by now.

 

Things that DON'T work:

 

1) destroy() function on crashed aircraft. Once the sim fully explodes an aircraft, it's not an addressable object within the Lua script. For my script, I could detect this happening because my array of aircraft would have an ID that would not exist and then I knew the sim had de-rezzed the aircraft and I needed to just delete the info from my internal array. But the crash spot and debris still remained and runway inactive.

 

2) Having a ground unit just zig-zag around the runway like a Zamboni smashing the debris. Again the black spot remains and ATC is unresponsive.

 

3) Re-spawning groups with same name. Black spot remains and airbase inactive.

 

Things that MAY work and I need your HELP:

 

1) Finding some way to address these black spots in the sim from a lua script and then removing them.

 

a) Either this is possible now and I can't find a way to enumerate them from with a lua script, or

 

b) maybe I need to "dofile" load an additional installed lua file from the DCS directories, or

 

c) maybe remove some of the "sanitize" lines from "MissionScripting.lua" so that my lua script has access to a larger scope that the "sanitized" environment.

 

2) Somehow changing the airbase's local ATC to ignore the black spot or just re-active the runway with the spot intact. Yes, I realize this might cause future aircraft to be damaged or crash from the black spot, but at least the runway would become active again.

 

3) Somehow change DCS to completely ignore this condition and never close the airbase' under any circumstances.

 

4) Write some kind of out-of-band parasitic helper application outside of the DCS program that somehow hacks the code periodically to fix this situation. I've got enough amateur programming skills to chase after this idea if someone more knowledgeable could point me in the right direction.

 

 

There simply HAS to be a way to re-activate these damaged runways and taxiways!!! Please help. I don't mind doing the work to find out how, but I'd like to connect with some scripters, designers, or actual DCS programmers that could assist me.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...