Jump to content

MOOSE - Mission Object Oriented Scripting Framework


Recommended Posts

2021-08-29 15:45:14.760 INFO    VISUALIZER: CameraIndependedPreload()
2021-08-29 15:45:15.352 INFO    VISUALIZER: CameraIndependedPreload() finished
2021-08-29 15:45:15.960 INFO    DCS: MissionSpawn:spawnShips 68
2021-08-29 15:45:16.139 INFO    DCS: MissionSpawn:initScript
2021-08-29 15:45:16.139 INFO    DCS: MissionSpawn:spawnCoalition neutrals
2021-08-29 15:45:16.139 INFO    DCS: MissionSpawn:spawnCoalition red
2021-08-29 15:45:16.139 INFO    DCS: MissionSpawn:spawnPlanes 2
2021-08-29 15:45:16.140 INFO    DCS: MissionSpawn:spawnPlanes 46
2021-08-29 15:45:16.175 INFO    DCS: MissionSpawn:spawnCoalition blue
2021-08-29 15:45:16.175 INFO    DCS: MissionSpawn:spawnPlanes 68
2021-08-29 15:45:16.222 INFO    DCS: MissionSpawn:spawnVehicles 68
2021-08-29 15:45:16.313 INFO    DCS: MissionSpawn:spawnPlanes 34
2021-08-29 15:45:16.328 ERROR   SCRIPTING: Mission script error: [string "BASE:TraceAll(true)..."]:1: attempt to index global 'BASE' (a nil value)
stack traceback:
	[C]: ?
	[string "BASE:TraceAll(true)..."]:1: in main chunk
2021-08-29 15:45:18.711 INFO    SCRIPTING: *** MOOSE GITHUB Commit Hash ID: 2021-08-28T08:52:12.0000000Z-4c5c320073f45f76db55d30ff2955a6f0e001410 ***
2021-08-29 15:45:18.711 INFO    SCRIPTING: *** MOOSE STATIC INCLUDE START *** 
2021-08-29 15:45:18.711 INFO    SCRIPTING: Init: Scripts Loaded v1.1
2021-08-29 15:45:18.713 INFO    SCRIPTING:  15874( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Group: CANADA_AJS37_ASM_1)
2021-08-29 15:45:18.713 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: CANADA_AJS37_ASM_1)
2021-08-29 15:45:18.713 INFO    SCRIPTING:  15874( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Group: USA_E-3A_AWACS_1)
2021-08-29 15:45:18.713 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Luft-1-3)
2021-08-29 15:45:18.713 INFO    SCRIPTING:  15874( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Group: DF CCCP AWACS)
2021-08-29 15:45:18.713 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: DF CCCP AWACS)
2021-08-29 15:45:18.713 INFO    SCRIPTING:  15874( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Group: DG CCCR EWR)
2021-08-29 15:45:18.713 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: DG CCCR EWR)
2021-08-29 15:45:18.713 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: DG CCCR EWR-1)
2021-08-29 15:45:18.713 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: DG CCCR EWR-2)
2021-08-29 15:45:18.714 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: DG CCCR EWR-3)
2021-08-29 15:45:18.714 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: DG CCCR EWR-4)
2021-08-29 15:45:18.714 INFO    SCRIPTING:  15874( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Group: USSR_MIG21_AD_2)
2021-08-29 15:45:18.714 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: USSR_MIG21_AD_2)
2021-08-29 15:45:18.714 INFO    SCRIPTING:  15874( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Group: USSR_MIG29_AD_1)
2021-08-29 15:45:18.714 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: USSR_MIG29_AD_1)
2021-08-29 15:45:18.714 INFO    SCRIPTING:  15874( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Group: Naval-1)
2021-08-29 15:45:18.714 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-1)
2021-08-29 15:45:18.714 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-2)
2021-08-29 15:45:18.715 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-3)
2021-08-29 15:45:18.715 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-4)
2021-08-29 15:45:18.715 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-5)
2021-08-29 15:45:18.715 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-6)
2021-08-29 15:45:18.715 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-7)
2021-08-29 15:45:18.715 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-8)
2021-08-29 15:45:18.715 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-9)
2021-08-29 15:45:18.715 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-10)
2021-08-29 15:45:18.715 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-11)
2021-08-29 15:45:18.715 INFO    SCRIPTING:  15884( 15062)/I:                      DATABASE00003._RegisterGroupsAndUnits(Register Unit: Naval-1-12)
2021-08-29 15:45:18.716 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Abu Musa Island (ID=1 UID=1), parking=10 [244=0 68=0 40=0 216=0 176=0 104=8 16=2 72=0 ])
2021-08-29 15:45:18.719 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Bandar Abbas Intl (ID=2 UID=2), parking=52 [244=0 68=0 40=0 216=0 176=0 104=29 16=2 72=21 ])
2021-08-29 15:45:18.720 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Bandar Lengeh (ID=3 UID=3), parking=7 [244=0 68=0 40=0 216=0 176=0 104=0 16=2 72=5 ])
2021-08-29 15:45:18.733 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Al Dhafra AFB (ID=4 UID=4), parking=254 [244=0 68=0 40=1 216=0 176=0 104=22 16=4 72=227 ])
2021-08-29 15:45:18.739 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Dubai Intl (ID=5 UID=5), parking=100 [244=0 68=0 40=0 216=0 176=0 104=96 16=4 72=0 ])
2021-08-29 15:45:18.744 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Al Maktoum Intl (ID=6 UID=6), parking=71 [244=0 68=0 40=2 216=0 176=0 104=67 16=2 72=0 ])
2021-08-29 15:45:18.745 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Fujairah Intl (ID=7 UID=7), parking=6 [244=0 68=0 40=0 216=0 176=0 104=4 16=2 72=0 ])
2021-08-29 15:45:18.745 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Tunb Island AFB (ID=8 UID=8), parking=6 [244=0 68=0 40=0 216=0 176=0 104=0 16=2 72=4 ])
2021-08-29 15:45:18.747 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Havadarya (ID=9 UID=9), parking=24 [244=0 68=0 40=0 216=0 176=0 104=12 16=2 72=10 ])
2021-08-29 15:45:18.748 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Khasab (ID=10 UID=10), parking=14 [244=0 68=0 40=0 216=0 176=0 104=5 16=2 72=7 ])
2021-08-29 15:45:18.748 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Lar (ID=11 UID=11), parking=7 [244=0 68=0 40=0 216=0 176=0 104=5 16=2 72=0 ])
2021-08-29 15:45:18.751 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Al Minhad AFB (ID=12 UID=12), parking=64 [244=0 68=0 40=0 216=0 176=0 104=31 16=2 72=31 ])
2021-08-29 15:45:18.752 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Qeshm Island (ID=13 UID=13), parking=14 [244=0 68=0 40=0 216=0 176=0 104=12 16=2 72=0 ])
2021-08-29 15:45:18.755 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Sharjah Intl (ID=14 UID=14), parking=51 [244=0 68=0 40=0 216=0 176=0 104=47 16=4 72=0 ])
2021-08-29 15:45:18.755 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Sirri Island (ID=15 UID=15), parking=4 [244=0 68=0 40=0 216=0 176=0 104=2 16=2 72=0 ])
2021-08-29 15:45:18.756 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Tunb Kochak (ID=16 UID=16), parking=4 [244=0 68=0 40=0 216=0 176=0 104=0 16=2 72=2 ])
2021-08-29 15:45:18.756 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Sir Abu Nuayr (ID=17 UID=17), parking=6 [244=0 68=0 40=0 216=0 176=0 104=4 16=2 72=0 ])
2021-08-29 15:45:18.758 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Kerman (ID=18 UID=18), parking=44 [244=0 68=0 40=0 216=0 176=0 104=42 16=2 72=0 ])
2021-08-29 15:45:18.765 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Shiraz Intl (ID=19 UID=19), parking=123 [244=0 68=0 40=0 216=0 176=0 104=89 16=4 72=30 ])
2021-08-29 15:45:18.770 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Sas Al Nakheel (ID=20 UID=20), parking=89 [244=0 68=0 40=68 216=0 176=0 104=19 16=2 72=0 ])
2021-08-29 15:45:18.770 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Bandar-e-Jask (ID=21 UID=21), parking=6 [244=0 68=0 40=2 216=0 176=0 104=0 16=2 72=2 ])
2021-08-29 15:45:18.777 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Abu Dhabi Intl (ID=22 UID=22), parking=130 [244=0 68=0 40=13 216=0 176=0 104=99 16=4 72=14 ])
2021-08-29 15:45:18.779 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Al-Bateen (ID=23 UID=23), parking=50 [244=0 68=0 40=0 216=0 176=0 104=22 16=2 72=26 ])
2021-08-29 15:45:18.782 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Kish Intl (ID=24 UID=24), parking=50 [244=0 68=0 40=0 216=0 176=0 104=28 16=4 72=18 ])
2021-08-29 15:45:18.786 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Al Ain Intl (ID=25 UID=25), parking=76 [244=0 68=0 40=6 216=0 176=0 104=23 16=2 72=45 ])
2021-08-29 15:45:18.786 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Lavan Island (ID=26 UID=26), parking=5 [244=0 68=0 40=0 216=0 176=0 104=0 16=2 72=3 ])
2021-08-29 15:45:18.787 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Jiroft (ID=27 UID=27), parking=5 [244=0 68=0 40=0 216=0 176=0 104=0 16=2 72=3 ])
2021-08-29 15:45:18.788 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Ras Al Khaimah Intl (ID=28 UID=28), parking=20 [244=0 68=0 40=0 216=0 176=0 104=18 16=2 72=0 ])
2021-08-29 15:45:18.791 INFO    SCRIPTING:  15960( 15065)/I:                      DATABASE00003._RegisterAirbases(Register Airdrome: Liwa AFB (ID=29 UID=29), parking=67 [244=0 68=0 40=0 216=0 176=0 104=14 16=2 72=51 ])
2021-08-29 15:45:18.792 INFO    SCRIPTING:  15252(163494)/I:                      DATABASE00003.?(Register ZONE: Patrol Zone (Polygon, Quad))
2021-08-29 15:45:18.792 INFO    SCRIPTING: 163497(    -1)/I:                          BASE00000.function(Checking de-sanitization of os, io and lfs:)
2021-08-29 15:45:18.792 INFO    SCRIPTING: 163502(    -1)/I:                          BASE00000.function(- os NOT available! Some functions may not work.)
2021-08-29 15:45:18.792 INFO    SCRIPTING: 163506(    -1)/I:                          BASE00000.function(- io available)
2021-08-29 15:45:18.792 INFO    SCRIPTING: 163514(    -1)/I:                          BASE00000.function(- lfs NOT available! Some functions may not work.)
2021-08-29 15:45:18.792 INFO    SCRIPTING: 163518(    -1)/I:                          BASE00000.function(Check <DCS install folder>/Scripts/MissionScripting.lua and comment out the lines with sanitizeModule(''). Use at your own risk!))
2021-08-29 15:45:18.792 INFO    SCRIPTING:   7013(163520)/I:                          BASE00000.?(Tracing in MOOSE is OFF)
2021-08-29 15:45:18.792 INFO    SCRIPTING: *** MOOSE INCLUDE END *** 
2021-08-29 15:45:18.793 INFO    VISUALIZER: Preload() camera=-86106.763171, 6054.383040, -241357.710694 radius=150000.000000
2021-08-29 15:45:18.793 INFO    EDTERRAINGRAPHICS41: ITerrainGraphicsImpl4::forceLoading(): pos=(-86106.8, 6054.38, -241358), radius=150000
2021-08-29 15:45:19.076 INFO    EDTERRAINGRAPHICS41: surface5 clean up LOD 0: left 12  released 5
2021-08-29 15:45:19.076 INFO    EDTERRAINGRAPHICS41: surface5 clean up LOD 1: left 21  released 10
2021-08-29 15:45:19.076 INFO    EDTERRAINGRAPHICS41: surface5 clean up 0.181700 ms
2021-08-29 15:45:19.786 INFO    VISUALIZER: Preload() finished
2021-08-29 15:45:19.804 INFO    DCS: Screen: mission_offline
2021-08-29 15:45:19.805 INFO    Dispatcher: precache units resources in slots
2021-08-29 15:45:19.814 INFO    Lua: Lua CPU usage: metric: average mission loading: 41.8323 %
2021-08-29 15:45:19.814 INFO    Dispatcher: loadMission Done: Сontrol passed to the player

Changed the moose.lua but it seems something else when starting up the mission. I also added a delay for my skript,...but no success

Link to comment
Share on other sites

  • 4 weeks later...
On 9/18/2021 at 9:32 AM, Desert Fox said:

 

The two asset download links work, rest after these are all broken including the 1. 2. 3. ... examples below 😉 Guess they are meant to link somewhere here or here?

This chap hasn't been active for two years, I was ready to move the post but this was only the second time in as many years there's really a problem, so we left it as it was 🙂

Discord is maintained and busy, this thread...is not 😉

  • Thanks 1

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Link to comment
Share on other sites

On 8/29/2021 at 7:58 PM, spacemishka said:

fixed it somehow

 

Computer executed your 1.

before you told it what the 2.

1. script
2. moose functions were
3. What on earth are you talkign about

Pay attention to script order, even if you think you made it correctly, the computer got to the first one, before the second. It's important else the computer wont know 3.
😉

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Link to comment
Share on other sites

Question regarding A2A Dispatcher...

 

What would make my Blue F-16 AI planes fire on other Blue aircraft??  They're killing anything and everything in the air, red or blue, doesn't matter.  If it moves, it dies.  One just shot my Huey down, lol.  I've never seen this behavior, but that doesn't mean much, haha.

 

Edited to add that it had been a red-only set up initially, which had been running fine. I only added the blue side tonight and that's when I noticed the friendly fire. I copy/pasted a lot of the red stuff in the script for the blue side, so maybe I forgot to change one of the parameters?

 

Edit again - Think I figured it out.  Made separate scripts for both red and blue sides.  Seems to be working fine now.  Still learning this stuff; I guess maybe you can't make red and blue into the same script file?


Edited by CL30

i5-9600k @ 5.0 GHz| Gigabyte Z390 Aorus Master | 32 GB Trident G.Skill RAM @ 3200 MHz | Thermaltake Floe Riing 360 AIO | Samsung EVO 860 500 GB SSD | Crucial MX500 500 GB M.2 | SanDisk 1TB SSD | EVGA RTX 2080 Ti Ultra Gaming | EVGA G3 850W Gold PSU | Thermaltake View 71 TG Snow Edition | Thrustmaster Warthog HOTAS | MFC Crosswind pedals | Oculus Rift-S

 

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

  1. Hi all, really noob in MOOSE and mission editing, I need a bit of help, just write my first script but...surprisngly....didn't work 🙂 
    Can someone just check my simple mission and tell me where I make the mistake? I made a very simple mission on DCS on The Channel with A2A Dispatcher.....just some EWR station, some base, squadron and then I tried to activate some CAP/GCI with the dispatcher....just put some Blue aircraft to activate the defence but it didn't work...Probably someone with expereince could find the error easy...for me it's impossible... 😞
    The mission is attached, thx to all thet could help me.

     

Test MOOSE A2A Dispatcher .miz

Link to comment
Share on other sites

Welcome to the wonderful world of Moose scripting.

 

1.  Quite difficult to troubleshoot without the Moose script.

2.  Moose help is more readily available at the Moose Discord.

3.  Before seeking help be sure to read the Moose User Guide and other docs. Links can be found at Moose Discord.

  • Like 1
Link to comment
Share on other sites

Hi, thx for Your reply. I thinked that the script could be found inside the .miz file (is a zip) but could provide it, is not a problem.
In the meantime I managed to have it work (but I must to deactivate the Border Zone parameter).
Now I have another problem, I see that the dispatcher spawn 1 aircraft at time, even if it spawn  for example 4 aircraft in total it do in 4 flight of 1. This is not realistic cause normally aircraft spawn in pair so, there's a method or a parameter to have the dispatcher spawn aircraft in wings of two? Thx.

Here the script (it's really simple and with a big inspiration from the mission demostration that I found online...) but as I stated I'm a nood 😅
Also forgive my bad English.

 

AID-A2A-EAF51-TheChannel3.lua

Link to comment
Share on other sites

44 minutes ago, gortex said:

Also, it is really useful to install Eclipse and set up everything the way the tutorial video instructs.

 

Also, your DCS log file will show you which line has an error when you try to run your mission with the script.

 

Hi, thx for the support, I watch the video, try to install Eclips but following the step by step tutorial I get an error in the last step, a building error or something...so after ten attempts I switched to Notepad++
 

38 minutes ago, gortex said:

 

Is this really one long string inside the braces?

DetectionSetGroup:FilterPrefixes( { "DF AXIS EWR" } )

After watching the video and classes and looking at some tutorial missions I think yes, do You belive is there the error? Actually the problem seem related not to detection but about spawning...

 

Link to comment
Share on other sites

On 10/10/2021 at 4:40 PM, gortex said:

Just checking.

 

Every demo I've seen of the dispatcher spawns the aircraft in separate groups, not in one flight.  If this isn't true then someone please let us know.

 

As for Eclipse, it also showed some errors for me, but it works fine.

Found! You need to specify it:

A2ADispatcher:SetSquadronGrouping( "Dunkirk", 2 )  (example)

and You need to comment (or delete) any reference to visibility of the squadron at start (on Discord a guy told me that there's a bug).
-- A2ADispatcher:SetSquadronVisible( "Dunkirk" )

 

  • Like 1
Link to comment
Share on other sites

6 hours ago, gortex said:

Does that spawn 2 aircraft in a flight versus a single intruder?  Or does it just put the two defenders in the same group provided that there are 2, 4, or 6, etc. defenders?

It spawn two aircraft in a flight; the amount of groups spawned is determined by the overhead factor.

Link to comment
Share on other sites

On 10/10/2021 at 10:22 AM, Hunter Joker said:

Hi, thx for the support, I watch the video, try to install Eclips but following the step by step tutorial I get an error in the last step, a building error or something...so after ten attempts I switched to Notepad++
 

After watching the video and classes and looking at some tutorial missions I think yes, do You belive is there the error? Actually the problem seem related not to detection but about spawning...

 

 

Build errors are not a problem. Just ignore and start using Eclipse.

  • Thanks 1
Link to comment
Share on other sites

I tried ask on discord and not got solution, use new var for each spawn doesn't help as it was advised there so I  will try here.

I have problem to reuse template for spawn. Only first group is spawned in DCS. No error in log.

I am doing something wrong please? I am basically stuck without reusing template. I tough it is whole idea to reuse template.

Simple mission showing my issue attached. Thanks for any advice.

spawn_test_2.miz


Edited by ataribaby
Link to comment
Share on other sites

17 hours ago, ataribaby said:

I tried ask on discord and not got solution, use new var for each spawn doesn't help as it was advised there so I  will try here.

I have problem to reuse template for spawn. Only first group is spawned in DCS. No error in log.

I am doing something wrong please? I am basically stuck without reusing template. I tough it is whole idea to reuse template.

Simple mission showing my issue attached. Thanks for any advice.

spawn_test_2.miz 1.32 MB · 2 downloads

 

try this solution

spawn_test_modified.lua

  • Like 1

 

 

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 months later...

Is it possible to get add a beacon (or a continuous radio transmission) to a boat?

I tried Core.Beacon and Core.Radio but they don't seem to work (or most likely I didn't set them properly)...

Any ideas on how to implement this?

Thank you. 

Link to comment
Share on other sites

  • 2 weeks later...

Checking a Script I was putting together: Any help would be great.  Goal is a spawn at air base on load then every hour.

local Allied1CapPlane = SPAWN:New( "CAP_Spitfire_1" ):InitDelayOnOff( false ):InitCleanup( 600 ):SpawnScheduled( 3600 )
Allied1CapPlane:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.TheChannel.Manston ), SPAWN.Takeoff.Hot )
local Allied2CapPlane = SPAWN:New( "CAP_Mustang_1" ):InitDelayOnOff( false ):InitCleanup( 600 ):SpawnScheduled( 3600 )
Allied2CapPlane:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.TheChannel.Headcorn ), SPAWN.Takeoff.Hot )
local Allied3CapPlane = SPAWN:New( "CAP_Spitfire_2" :InitDelayOnOff( false )):InitCleanup( 600 ):SpawnScheduled( 3600 )
Allied3CapPlane:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.TheChannel.Lympne ), SPAWN.Takeoff.Hot )

local Axis1CapPlane = SPAWN:New( "CAP_FW190A8_1" ):InitDelayOnOff( false ):InitCleanup( 600 ):SpawnScheduled( 3600 )
Axis1CapPlane:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.TheChannel.Dunkirk_Mardyck ), SPAWN.Takeoff.Hot )
local Axis2CapPlane = SPAWN:New( "CAP_BF109A8_1" ):InitDelayOnOff( false ):InitCleanup( 600 ):SpawnScheduled( Frequency, 3600 )
Axis2CapPlane:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.TheChannel.Saint_Omer_Longuenesse ), SPAWN.Takeoff.Hot )
local Axis3CapPlane = SPAWN:New( "CAP_FW190A8_2" ):InitDelayOnOff( false ):InitCleanup( 600 ):SpawnScheduled( Frequency, 3600 )
Axis3CapPlane:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.TheChannel.Saint_Omer_Longuenesse ), SPAWN.Takeoff.Hot )

local Allied1PatrolZone = ZONE:New( "NE_Channel_Patrol" )
local Allied2PatrolZone = ZONE:New( "Middle_Patrol" )
local Allied3PatrolZone = ZONE:New( "SW_Channel_Patrol" )

local Axis1PatrolZone = ZONE:New( "NE_Channel_Patrol" )
local Axis2PatrolZone = ZONE:New( "Middle_Patrol" )
local Axis3PatrolZone = ZONE:New( "SW_Channel_Patrol" )

Allied1CapZone = AI_CAP_ZONE:New( Allied1PatrolZone, 3000, 5000, 354, 500 )
Allied1CapZone:SetControllable( Allied1CapPlane )
Allied1CapZone:SetEngageRange( 12874.8 )
Allied1CapZone:__Start( 1 )

Allied2CapZone = AI_CAP_ZONE:New( Allied2PatrolZone, 3000, 5000, 354, 500 )
Allied2CapZone:SetControllable( Allied2CapPlane )
Allied2CapZone:SetEngageRange( 12874.8 )
Allied2CapZone:__Start( 1 )

Allied3CapZone = AI_CAP_ZONE:New( Allied3PatrolZone, 3000, 5000, 354, 500 )
Allied3CapZone:SetControllable( Allied3CapPlane )
Allied3CapZone:SetEngageRange( 12874.8 )
Allied3CapZone:__Start( 1 )

Axis1CapZone = AI_CAP_ZONE:New( Axis1PatrolZone, 3000, 5000, 354, 500 )
Axis1CapZone:SetControllable( Axis1CapPlane )
Axis1CapZone:SetEngageRange( 12874.8 )
Axis1CapZone:__Start( 1 )

Axis2CapZone = AI_CAP_ZONE:New( Axis2PatrolZone, 3000, 5000, 354, 500 )
Axis2CapZone:SetControllable( Axis2CapPlane )
Axis2CapZone:SetEngageRange( 12874.8 )
Axis2CapZone:__Start( 1 )

Axis3CapZone = AI_CAP_ZONE:New( Axis3PatrolZone, 3000, 5000, 354, 500 )
Axis3CapZone:SetControllable( Axis3CapPlane )
Axis3CapZone:SetEngageRange( 12874.8 )
Axis3CapZone:__Start( 1 )

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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