fergrim Posted March 25, 2018 Posted March 25, 2018 Using DCS 2.5 I created a simple mission with just a blue base, and in notepad++ I put the following A2A_GCICAP_Blue = AI_A2A_GCICAP:New( "BLUE EWR", "Blue Squadron" ) I named my EWR source Blue EWR and placed two single planes with late activation named Blue Squadron and Blue Squadron #001 I set up a single trigger that loads moose.lua first and after loads my missiontest.lua with the above code. I cross the line in my plane and upon crossing, my RWR lights up and nothing spawns, just nothing happens. I can't figure out what I'm doing wrong, it's killing me and I'm frustrated beyond belief. Can anyone tell me what I'm doing wrong?
RED Posted March 25, 2018 Posted March 25, 2018 (edited) Using DCS 2.5 I created a simple mission with just a blue base, and in notepad++ I put the following A2A_GCICAP_Blue = AI_A2A_GCICAP:New( "BLUE EWR", "Blue Squadron" ) I named my EWR source Blue EWR and placed two single planes with late activation named Blue Squadron and Blue Squadron #001 I set up a single trigger that loads moose.lua first and after loads my missiontest.lua with the above code. I cross the line in my plane and upon crossing, my RWR lights up and nothing spawns, just nothing happens. I can't figure out what I'm doing wrong, it's killing me and I'm frustrated beyond belief. Can anyone tell me what I'm doing wrong?There are some things I ran into: After saving the Lua, you have to reopen the mission. Make sure all your names of the objects are correct. I got that wrong too often ... Flight control made a good documentation and tutorials. Take one of the example missions and go through while watching a video or tutorials. For the ai dispatcher there is a good one where you can go step by step. Edit: don't get frustrated. Start with simple stuff like e.g. the spawn function. It is very rewarding to see some trucks plopping up and driving around. Edited March 25, 2018 by RED
EntropySG Posted March 25, 2018 Posted March 25, 2018 Hi I'm still learning the ropes with scripting so maybe my advice is not correct, but have you looked at the documentation, especially point 4.1 where you find an easy example of an implementation. The way I see it, what your code is missing is the actual zone that the Blue Squadron will be defending.. https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/AI_A2A_Dispatcher.html#AI_A2A_GCICAP from the documentation: AI\_A2A\_GCICAP:New(EWRPrefixes, TemplatePrefixes, CapPrefixes, CapLimit, GroupingRadius, EngageRadius, GciRadius, Resources) AIA2AGCICAP constructor. Parameters •#string EWRPrefixes : A list of prefixes that of groups that setup the Early Warning Radar network. •#string TemplatePrefixes : A list of template prefixes. •#string CapPrefixes : A list of CAP zone prefixes (polygon zones). •#number CapLimit : A number of how many CAP maximum will be spawned. •#number GroupingRadius : The radius in meters wherein detected planes are being grouped as one target area. For airplanes, 6000 (6km) is recommended, and is also the default value of this parameter. •#number EngageRadius : The radius in meters wherein detected airplanes will be engaged by airborne defenders without a task. •#number GciRadius : The radius in meters wherein detected airplanes will GCI. •#number Resources : The amount of resources that will be allocated to each squadron. [sIGPIC][/sIGPIC]
fergrim Posted March 25, 2018 Author Posted March 25, 2018 I followed this video And I copied it there exactly at the time where it shows the code that he entered; this is flight control. The way he had it, they would automatically spawn and then go after the detected object. But I'll try adding the zone also. But yeah, what I have above is from following the tutorial video exactly, step by step. That's why I'm so frustrated, I can't even get a single line of code to work properly
EntropySG Posted March 25, 2018 Posted March 25, 2018 fergrim, you are correct. I just tried it also, the above code you pasted is sufficient, just as in Flightcontrols video, there is no need to add a zone (but its optional) I tested your code and made a mission, it works exactly as advertised. couple of question: did you set the coalition of your airbase, check that its not neutral can you paste your dcs log under saved games? [sIGPIC][/sIGPIC]
EntropySG Posted March 25, 2018 Posted March 25, 2018 added my test missionGCI_CAP.miz [sIGPIC][/sIGPIC]
Recommended Posts