Jump to content

MOOSE - Mission Object Oriented Scripting Framework


Recommended Posts

Can anyone please help me with a small issue?

 

I have a group patrolling a zone, but it ignores the formation and just drives around in a column.

 

Alpha = GROUP:FindByName( "Mechanized Alpha" )
Alpha:PatrolZones( { ZONE:New( "ZONE1" ) }, 30, "Cone" )

Link to comment
Share on other sites

Hey all, Im very new to MOOSE, basically I am looking to create a range location with player scoring much like seen in this video, but I couldn't find how to achieve it, can anyone help?

 

${1}

 

Many thanks!

RAF Air UK Website

http://www.rafairuk-dcs.co.uk/

Mike Alpha Tango's YouTube Channel

http://www.youtube.com/channel/UC9oKDSVDDDErRVjRFqgu3bA

 

Intel i7-6700k

RTX 2080TI

Gigabyte Z170-gaming K3

32gb DDR4 RAM

Hotas Warthog

CV1

 

Link to comment
Share on other sites

Can anyone please help me with a small issue?

 

I have a group patrolling a zone, but it ignores the formation and just drives around in a column.

 

Alpha = GROUP:FindByName( "Mechanized Alpha" )
Alpha:PatrolZones( { ZONE:New( "ZONE1" ) }, 30, "Cone" )

 

Just for fun - try "Vee" and see if that works.

 

Banner EDForum2020.jpg

Have fun. Don't suck. Kill bad guys. 👍

https://discord.gg/blacksharkden/

Link to comment
Share on other sites

Hi everyone,

I have little issue with Airboss...

I’d like to make messages from marshall and LSO little longer.

I mean subtitle.

I found “message.duration” in airboss.lua but it affect only few messages.

Is the subduration in moose.lua the correct parameter?

Thanks!

Lonewolf

Link to comment
Share on other sites

Hello,

is there a way to add something like a "Stop" and "Resume" Command to the airboss Skipper Menu?

the Stennis on our Server steams a fixed set of waypoints across the map with the recovery windows in between, when nobody is online we want to manually stop the carrier and resume its route again the next day when commanded.

Link to comment
Share on other sites

  • 3 weeks later...

ok clearly I have a syntax problem....script fails if run as written. However if I comment out the REDTASK = REDAIR:Engagetargets line, the script runs fine

oops see copied txt....--Inbound Cargo Aircraft

 

local C17=RAT:New("RAT_C17")

C17:SetTakeoff("air")

C17:SetDeparture("Inbound")

C17:SetDestination("Al Dhafra AB")

C17:SetSpawnDelay(300)

C17:SetSpawnInterval(300)

C17:NoRespawn()

C17:Spawn(5)

 

--Randomize Selection on REDCAP

 

Templates = { "RED Template1","RED Template2" }

GroupSize = {2,4}

PickedGroupSize = GroupSize[math.random(1,2)]

 

RED_SPAWN1 = SPAWN:New( "RED AIR1" ):InitLimit( 4, 1 ):InitGrouping(PickedGroupSize):InitRandomizeTemplate(Templates):InitDelayOn():SpawnScheduled(0,0)

 

--See if REDAIR becomes agressive

REDAIR = GROUP:FindByName("RED AIR1#001")

REDTask = REDAIR:EnRouteTaskEngageTargets(100000,{},1)

 

Messager = SCHEDULER:New( nil,

function()

-- TaskRandom = math.random(1,4)

-- if TaskRandom == 1 then

-- REDAIR:OptionROEWeaponFree()

-- REDAIR:PushTask(REDTask,10 )

CrazyRed = MESSAGE:New( "All Players...All Players, Overlord. REDFOR Patrol observed leaving station. Be Alert for Possible Hostile Intent", 20):ToAll()

-- end

end,

{}, 30, 1 )

Link to comment
Share on other sites

Could someone tell me what's is wrong with the script. Most of it works but I'm not seeing the Airboss in the F10 menu.

 

The log is giving me this error: :50: attempt to call method 'SetMenuRecovery' (a nil value)

stack traceback:

[C]: in function 'SetMenuRecovery'

 

Any thoughts?

 

 

local AirbossStennis=AIRBOSS:New("USS Stennis")
AirbossStennis:SetSoundfilesFolder("Airboss Soundfiles/")
AirbossStennis:SetMenuSingleCarrier()
AirbossStennis:SetMenuRecovery(30, 20, false)
AirbossStennis:SetDespawnOnEngineShutdown()
AirbossStennis:Load()
AirbossStennis:SetAutoSave()
AirbossStennis:SetTrapSheet()
AirbossStennis:SetTACAN(74, "X", "MOM")
AirbossStennis:SetICLS(11, "MOM")
AirbossStennis:SetMarshalRadio(127.5, "AM")
AirbossStennis:SetLSORadio(266, "AM")
AirbossStennis:SetPatrolAdInfinitum()
AirbossStennis:SetRadioRelayLSO("Wizard")
AirbossStennis:SetRadioRelayMarshal("Rescue Helo Group")
local CarrierExcludeSet=SET_GROUP:New():FilterPrefixes("Wizard"):FilterStart()
AirbossStennis:SetExcludeAI(CarrierExcludeSet)
--  Recovery window setting (time start, time end, CASE, day, Carrier turn into wind T/F ship speed

-- Case I from 9 to 10 am.
local window1=AirbossStennis:AddRecoveryWindow( "05:00", "14:55", 1, nil, true, 18)
-- Case II with +15 degrees holding offset from 15:00 for 60 min.
local window2=AirbossStennis:AddRecoveryWindow("15:00", "20:55", 2, nil, true, 18)
-- Case III with +30 degrees holding offset from 2100 to 2200.
local window3=AirbossStennis:AddRecoveryWindow("21:00", "23:59", 3, nil, true, 18)
AirbossStennis:Start()

 
 

Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB|  NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling  power supply | G2 Rverb VR

Link to comment
Share on other sites

Any thoughts?

AirbossStennis:SetMenuRecovery(30, 20, false)

If you take that line out and the script works, your Moose.lua is too old as this feature was add later.

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

If you take that line out and the script works, your Moose.lua is too old as this feature was add later.

 

I'm using 2.4.13. Is that not the latest?

 
 

Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB|  NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling  power supply | G2 Rverb VR

Link to comment
Share on other sites

I'm using 2.4.13. Is that not the latest?

Well, that's the latest release version, yes. But it's ancient. The good stuff is in the development version :) https://github.com/FlightControl-Master/MOOSE_INCLUDE/tree/develop/Moose_Include_Static

 

Try the example mission https://github.com/FlightControl-Master/MOOSE_MISSIONS/tree/develop/OPS%20-%20Airboss/Caucasus/BOS-100%20-%20Stennis%20Hornet%20and%20Tomcat

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

edit: Ok, I got it...thanks bud.


Edited by BoneDust
 
 

Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB|  NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling  power supply | G2 Rverb VR

Link to comment
Share on other sites

Using the static Moose.lua file it is not working. I get the user settings menu but nothing else; no airboss menu.


Edited by BoneDust
 
 

Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB|  NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling  power supply | G2 Rverb VR

Link to comment
Share on other sites

This is the new script:

 

-- Rescue Helo @ USS John C. Stennis.
rescueheloStennis = RESCUEHELO:New("USS Stennis", "Rescue Helo Group")
rescueheloStennis:SetRescueOn()  -- Helo will rescue downed pilot
rescueheloStennis:SetTakeoffAir()
rescueheloStennis:SetModex(54)   -- Helo will be spawned and respawn in air.
rescueheloStennis:Start()

--------------------------------
-- NOTE: The RESCUE helo object has to be a GLOBAL variable or the lua garbage collector will deallocate it for unknown reasons.

-- Rescue Helo @ USS Tarawa.
rescueheloCg = RESCUEHELO:New("OHP1", "Rescue Helo Group CG")
rescueheloCg:SetRescueOn()  -- Helo will rescue downed pilot
rescueheloCg:SetTakeoffAir()
rescueheloStennis:SetModex(51)   -- Helo will be spawned and respawn in air.
rescueheloCg:Start()


-- E-2D @ USS Stennis spawning in air.
awacsStennis = RECOVERYTANKER:New("USS Stennis", "E2D Group")

-- Custom settings:
awacsStennis:SetAWACS()
awacsStennis:SetCallsign(CALLSIGN.AWACS.Wizard)
awacsStennis:SetTakeoffAir()
awacsStennis:SetAltitude(25000)
awacsStennis:SetSpeed(275)
awacsStennis:SetRadio(254)
awacsStennis:SetTACAN(55, "WIZ")
awacsStennis:SetRacetrackDistances(40, 20)
awacsStennis:SetHomeBase("USS Stennis")
awacsStennis:SetModex(526)
awacsStennis:Start()

-------------------------------------------------------------------
-- S3 RECOVERY TANKER SCRIPT

S3Stennis = RECOVERYTANKER:New(UNIT:FindByName("USS Stennis"), "TankerS3") --carrier unit name and tanker group name
S3Stennis:SetTACAN(42,"ARC")--sets TACAN to 42, defaults to Y
S3Stennis:SetRadio(257) --sets radio to 254, defaults to AM
S3Stennis:SetTakeoffAir()  --sets take off from carrier once, then respawn in the air
S3Stennis:SetAltitude(7000)  --change number to whatever altitude you want
S3Stennis:SetSpeed(300) -- change number to whatever speed you want the tanker to fly
S3Stennis:SetRacetrackDistances(20,5)  --sets the racetrack distance from the carrier in NM
S3Stennis:SetHomeBase ("USS Stennis")
S3Stennis:SetModex(56)
S3Stennis:Start()

---------------------------------------------
-- KC130 Respawn

Spawn_tanker1 = SPAWN:NewWithAlias("KC130 Tanker","TEXACO")
Spawn_tanker1:InitRepeatOnEngineShutDown()
Spawn_tanker1:InitLimit(1,6)
Spawn_tanker1:SpawnScheduled(300,0)
Spawn_tanker1:InitRadioFrequency(251)
Spawn_tanker1:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.Caucasus.Kobuleti ), SPAWN.Takeoff.Hot )
Spawn_tanker1:OnSpawnGroup()
Spawn_tanker1:EnRouteTaskTanker()

Spawn_tanker2 = SPAWN:NewWithAlias("KC135 MPRS Tanker","SHELL")
Spawn_tanker2:InitRepeatOnEngineShutDown()
Spawn_tanker2:InitLimit(1,6)
Spawn_tanker2:SpawnScheduled(300,0)
Spawn_tanker2:InitRadioFrequency(256)
Spawn_tanker2:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.Caucasus.Batumi ), SPAWN.Takeoff.Hot )
Spawn_tanker2:OnSpawnGroup()
Spawn_tanker2:EnRouteTaskTanker()

----------------------------------AIRBOSS--------------
local AirbossStennis=AIRBOSS:New("USS Stennis")



-- Add recovery windows:

-- Case I from 9 to 10 am.

local window1=AirbossStennis:AddRecoveryWindow( "9:00", "10:00", 1, nil, true, 25)

-- Case II with +15 degrees holding offset from 15:00 for 60 min.

local window2=AirbossStennis:AddRecoveryWindow("15:00", "16:00", 2,  15, true, 23)

-- Case III with +30 degrees holding offset from 2100 to 2200.

local window3=AirbossStennis:AddRecoveryWindow("21:00", "22:00", 3,  30, true, 21)



-- Set folder of airboss sound files within miz file.

AirbossStennis:SetSoundfilesFolder("Airboss Soundfiles/")



-- Single carrier menu optimization.

AirbossStennis:SetMenuSingleCarrier()



-- Skipper menu.

AirbossStennis:SetMenuRecovery(30, 20, false)



-- Remove landed AI planes from flight deck.

AirbossStennis:SetDespawnOnEngineShutdown()



-- Load all saved player grades from your "Saved Games\DCS" folder (if lfs was desanitized).

AirbossStennis:Load()



-- Automatically save player results to your "Saved Games\DCS" folder each time a player get a final grade from the LSO.

AirbossStennis:SetAutoSave()



-- Enable trap sheet.

AirbossStennis:SetTrapSheet()



-- Start airboss class.

AirbossStennis:Start()





--- Function called when recovery tanker is started.

function tanker:OnAfterStart(From,Event,To)



 -- Set recovery tanker.

 AirbossStennis:SetRecoveryTanker(tanker)  





 -- Use tanker as radio relay unit for LSO transmissions.

 AirbossStennis:SetRadioRelayLSO(self:GetUnitName())

 

end



--- Function called when AWACS is started.

function awacs:OnAfterStart(From,Event,To)

 -- Set AWACS.

 AirbossStennis:SetRecoveryTanker(tanker)  

end





--- Function called when rescue helo is started.

function rescuehelo:OnAfterStart(From,Event,To)

 -- Use rescue helo as radio relay for Marshal.

 AirbossStennis:SetRadioRelayMarshal(self:GetUnitName())

end



--- Function called when a player gets graded by the LSO.

function AirbossStennis:OnAfterLSOGrade(From, Event, To, playerData, grade)

 local PlayerData=playerData --Ops.Airboss#AIRBOSS.PlayerData

 local Grade=grade --Ops.Airboss#AIRBOSS.LSOgrade



 ----------------------------------------

 --- Interface your Discord bot here! ---

 ----------------------------------------

 

 local score=tonumber(Grade.points)

 local name=tostring(PlayerData.name)

 

 -- Report LSO grade to dcs.log file.

 env.info(string.format("Player %s scored %.1f", name, score))

end

 

 

 

This is the log errors:

 

2019-10-05 23:54:18.678 INFO SCRIPTING: 92940( -1)/I: RESCUEHELO00394.function(RESCUEHELO USS Stennis_Rescue Helo Group_01 | Starting Rescue Helo Formation v1.0.5 for carrier unit USS Stennis of type Stennis.)

2019-10-05 23:54:18.678 INFO SCRIPTING: Error in SCHEDULER function:[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:92955: attempt to call method 'InitModex' (a nil value)

2019-10-05 23:54:18.678 INFO SCRIPTING: stack traceback:

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20598: in function 'InitModex'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:92955: in function <[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:92936>

(tail call): ?

[C]: in function 'xpcall'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20606: in function '_call_handler'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20702: in function <[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20612>

(tail call): ?

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis000040BF.lua"]:11: in main chunk

2019-10-05 23:54:18.679 INFO SCRIPTING: 92940( -1)/I: RESCUEHELO00399.function(RESCUEHELO OHP1_Rescue Helo Group CG_02 | Starting Rescue Helo Formation v1.0.5 for carrier unit OHP1 of type PERRY.)

2019-10-05 23:54:18.679 INFO SCRIPTING: Error in SCHEDULER function:[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:92955: attempt to call method 'InitModex' (a nil value)

2019-10-05 23:54:18.679 INFO SCRIPTING: stack traceback:

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20598: in function 'InitModex'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:92955: in function <[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:92936>

(tail call): ?

[C]: in function 'xpcall'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20606: in function '_call_handler'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20702: in function <[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20612>

(tail call): ?

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis000040BF.lua"]:20: in main chunk

2019-10-05 23:54:18.679 INFO SCRIPTING: 91405( -1)/I: RECOVERYTANKER00404.function(Starting Recovery Tanker v1.0.6 for carrier unit USS Stennis of type Stennis for tanker group E2D Group.)

2019-10-05 23:54:18.679 INFO SCRIPTING: Error in SCHEDULER function:[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:91418: attempt to call method 'InitRadioCommsOnOff' (a nil value)

2019-10-05 23:54:18.679 INFO SCRIPTING: stack traceback:

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20598: in function 'InitRadioCommsOnOff'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:91418: in function <[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:91402>

(tail call): ?

[C]: in function 'xpcall'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20606: in function '_call_handler'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20702: in function <[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20612>

(tail call): ?

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis000040BF.lua"]:37: in main chunk

2019-10-05 23:54:18.679 INFO SCRIPTING: 91405( -1)/I: RECOVERYTANKER00408.function(Starting Recovery Tanker v1.0.6 for carrier unit USS Stennis of type Stennis for tanker group TankerS3.)

2019-10-05 23:54:18.679 INFO SCRIPTING: Error in SCHEDULER function:[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:91418: attempt to call method 'InitRadioCommsOnOff' (a nil value)

2019-10-05 23:54:18.679 INFO SCRIPTING: stack traceback:

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20598: in function 'InitRadioCommsOnOff'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:91418: in function <[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:91402>

(tail call): ?

[C]: in function 'xpcall'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20606: in function '_call_handler'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20702: in function <[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00006E83.lua"]:20612>

(tail call): ?

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis000040BF.lua"]:51: in main chunk

2019-10-05 23:54:18.680 ERROR DCS: Mission script error: : [string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis000040BF.lua"]:60: attempt to call method 'InitRadioFrequency' (a nil value)

stack traceback:

[C]: in function 'InitRadioFrequency'

[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis000040BF.lua"]:60: in main chunk

 
 

Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB|  NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling  power supply | G2 Rverb VR

Link to comment
Share on other sites

Using the latest Moose.lua (3-10-19) and ai_a2a_dispatch, I assign my squadron (group of 2 F14)to takeoff form runway (Stennis), but I get one hooked up and ready to launch and one not. The one not hooked up to the cat, tries to launch anyway.

Night Ops in the Harrier

IYAOYAS


 
Link to comment
Share on other sites

@BoneDust

 

You're getting different kinds of errors there (they might have a common cause, though).

 

I'd say that the script that's erroring is probably Moose.lua, but I can't be sure.

 

Go to C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta and see if you can find the temporary lua file called ~mis00001EAF.lua

 

(Btw, the folder AppData is hidden by default in Windows, you'll need to make it visible by checking "Hidden items")

 

If you find it, make a copy of it and post it here.

 

 

However, it's quite likely that the temporary lua file ~mis00001EAF.lua has been automatically removed from your pc at this point, but you can always rerun your script in DCS while checking dcs.log, you'll get the errors again and new temporary lua files will be generated in that same folder (make a copy of the referenced lua file(s) BEFORE closing DCS).

 

When you check the errors in dcs.log, pay attention to the following info:

 

Error in SCHEDULER function:[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:92955: attempt to call method 'InitModex' (a nil value)

 

Green --> Location of the temporary lua script file that's erroring (in this case, the error happened somewhere inside the file ~mis00001EAF.lua)

Purple --> Specific line number where the error happened (in this case, the problematic method can be found in line 92955)

Red --> Description of the error (in this case, the problematic method is InitModex)

 

Simply post a copy of the temporary script file referenced in the error(s).

 

 

 

On another note, after a quick look at your script, I've noticed some potential issues (I might be wrong, ofc):

 

 

Spawn_tanker1 = SPAWN:NewWithAlias("KC130 Tanker","TEXACO")

Spawn_tanker1:InitRepeatOnEngineShutDown()

Spawn_tanker1:InitLimit(1,6)

Spawn_tanker1:SpawnScheduled(300,0) -- I'd call this method at the end, after EnRouteTaskTanker()

Spawn_tanker1:InitRadioFrequency(251)

Spawn_tanker1:SpawnAtAirbase( AIRBASE:FindByName(AIRBASE.Caucasus.Kobuleti), SPAWN.Takeoff.Hot ) -- FindByName requires a string value, which must match the valid airbase name... I'm not sure AIRBASE.Caucasus.Kobuleti will provide it. Try "Kobuleti" instead, it should work

Spawn_tanker1:OnSpawnGroup() -- This method is meant for you to call a function when the SPAWN object spawns... you're calling no function, so I don't see why you're using it

Spawn_tanker1:EnRouteTaskTanker()

 

 

Spawn_tanker2 = SPAWN:NewWithAlias("KC135 MPRS Tanker","SHELL")

Spawn_tanker2:InitRepeatOnEngineShutDown()

Spawn_tanker2:InitLimit(1,6)

Spawn_tanker2:SpawnScheduled(300,0) -- I'd call this method at the end, after EnRouteTaskTanker()

Spawn_tanker2:InitRadioFrequency(256)

Spawn_tanker2:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.Caucasus.Batumi ), SPAWN.Takeoff.Hot ) -- FindByName requires a string value, which must match the valid airbase name... I'm not sure AIRBASE.Caucasus.Batumi will provide it. Try "Batumi" instead, it should work

Spawn_tanker2:OnSpawnGroup() -- This method is meant for you to call a function when the SPAWN object spawns... you're calling no function, so I don't see why you're using it

Spawn_tanker2:EnRouteTaskTanker()

 

 

 

--- Function called when recovery tanker is started.

 

function tanker:OnAfterStart(From,Event,To) -- I don't see tanker defined anywhere in your script. If it doesn't exist, this line will cause an error

 

 

 

-- Set recovery tanker.

 

AirbossStennis:SetRecoveryTanker(tanker)

 

 

 

-- Use tanker as radio relay unit for LSO transmissions.

 

AirbossStennis:SetRadioRelayLSO(self:GetUnitName())

 

 

 

end

 

 

--- Function called when AWACS is started.

 

function awacs:OnAfterStart(From,Event,To) -- I don't see awacs defined anywhere in your script. If it doesn't exist, this line will cause an error

 

-- Set AWACS.

 

AirbossStennis:SetRecoveryTanker(tanker)

 

end

 

 

--- Function called when rescue helo is started.

 

function rescuehelo:OnAfterStart(From,Event,To) -- I don't see rescuehelo defined anywhere in your script. If it doesn't exist, this line will cause an error

 

-- Use rescue helo as radio relay for Marshal.

 

AirbossStennis:SetRadioRelayMarshal(self:GetUnitName())

 

end

 

 

 

 


Edited by Hardcard
Link to comment
Share on other sites

@BoneDust

 

You're getting different kinds of errors there (they might have a common cause, though).

 

I'd say that the script that's erroring is probably Moose.lua, but I can't be sure.

 

Go to C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta and see if you can find the temporary lua file called ~mis00001EAF.lua

 

(Btw, the folder AppData is hidden by default in Windows, you'll need to make it visible by checking "Hidden items")

 

If you find it, make a copy of it and post it here.

 

 

However, it's quite likely that the temporary lua file ~mis00001EAF.lua has been automatically removed from your pc at this point, but you can always rerun your script in DCS while checking dcs.log, you'll get the errors again and new temporary lua files will be generated in that same folder (make a copy of the referenced lua file(s) BEFORE closing DCS).

 

When you check the errors in dcs.log, pay attention to the following info:

 

Error in SCHEDULER function:[string "C:\Users\dwigh\AppData\Local\Temp\DCS.openbeta\/~mis00001EAF.lua"]:92955: attempt to call method 'InitModex' (a nil value)

 

Green --> Location of the temporary lua script file that's erroring (in this case, the error happened somewhere inside the file ~mis00001EAF.lua)

Purple --> Specific line number where the error happened (in this case, the problematic method can be found in line 92955)

Red --> Description of the error (in this case, the problematic method is InitModex)

 

Simply post a copy of the temporary script file referenced in the error(s).

 

 

 

On another note, after a quick look at your script, I've noticed some potential issues (I might be wrong, ofc):

 

 

Spawn_tanker1 = SPAWN:NewWithAlias("KC130 Tanker","TEXACO")

Spawn_tanker1:InitRepeatOnEngineShutDown()

Spawn_tanker1:InitLimit(1,6)

Spawn_tanker1:SpawnScheduled(300,0) -- I'd call this method at the end, after EnRouteTaskTanker()

Spawn_tanker1:InitRadioFrequency(251)

Spawn_tanker1:SpawnAtAirbase( AIRBASE:FindByName(AIRBASE.Caucasus.Kobuleti), SPAWN.Takeoff.Hot ) -- FindByName requires a string value, which must match the valid airbase name... I'm not sure AIRBASE.Caucasus.Kobuleti will provide it. Try "Kobuleti" instead, it should work

Spawn_tanker1:OnSpawnGroup() -- This method is meant for you to call a function when the SPAWN object spawns... you're calling no function, so I don't see why you're using it

Spawn_tanker1:EnRouteTaskTanker()

 

 

Spawn_tanker2 = SPAWN:NewWithAlias("KC135 MPRS Tanker","SHELL")

Spawn_tanker2:InitRepeatOnEngineShutDown()

Spawn_tanker2:InitLimit(1,6)

Spawn_tanker2:SpawnScheduled(300,0) -- I'd call this method at the end, after EnRouteTaskTanker()

Spawn_tanker2:InitRadioFrequency(256)

Spawn_tanker2:SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.Caucasus.Batumi ), SPAWN.Takeoff.Hot ) -- FindByName requires a string value, which must match the valid airbase name... I'm not sure AIRBASE.Caucasus.Batumi will provide it. Try "Batumi" instead, it should work

Spawn_tanker2:OnSpawnGroup() -- This method is meant for you to call a function when the SPAWN object spawns... you're calling no function, so I don't see why you're using it

Spawn_tanker2:EnRouteTaskTanker()

 

 

 

--- Function called when recovery tanker is started.

 

function tanker:OnAfterStart(From,Event,To) -- I don't see tanker defined anywhere in your script. If it doesn't exist, this line will cause an error

 

 

 

-- Set recovery tanker.

 

AirbossStennis:SetRecoveryTanker(tanker)

 

 

 

-- Use tanker as radio relay unit for LSO transmissions.

 

AirbossStennis:SetRadioRelayLSO(self:GetUnitName())

 

 

 

end

 

 

--- Function called when AWACS is started.

 

function awacs:OnAfterStart(From,Event,To) -- I don't see awacs defined anywhere in your script. If it doesn't exist, this line will cause an error

 

-- Set AWACS.

 

AirbossStennis:SetRecoveryTanker(tanker)

 

end

 

 

--- Function called when rescue helo is started.

 

function rescuehelo:OnAfterStart(From,Event,To) -- I don't see rescuehelo defined anywhere in your script. If it doesn't exist, this line will cause an error

 

-- Use rescue helo as radio relay for Marshal.

 

AirbossStennis:SetRadioRelayMarshal(self:GetUnitName())

 

end

 

 

 

 

Thanks, I'll take a look.

 
 

Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB|  NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling  power supply | G2 Rverb VR

Link to comment
Share on other sites

Very stumped.

Can't figure out why this isn't working.

Using AI_A2A_DISPATCHING and the latest dev version Moose.lua 3-10-19 has a errorin the A2ADispatcher:SetSqudron function.

 

 

This is the script:

 

-- Define a SET_GROUP object that builds a collection of groups that define the EWR network.
-- Here we build the network with all the groups that have a name starting with DF CCCP AWACS and DF CCCP EWR.
DetectionSetGroup = SET_GROUP:New()
DetectionSetGroup:FilterPrefixes( "EWR" )
DetectionSetGroup:FilterStart()

Detection = DETECTION_AREAS:New( DetectionSetGroup, 80000 )

-- Setup the A2A dispatcher, and initialize it.
A2ADispatcher = AI_A2A_DISPATCHER:New( Detection )

-- Enable the tactical display panel.
A2ADispatcher:SetTacticalDisplay( true )

-- Initialize the dispatcher, setting up a border zone. This is a polygon, 
-- which takes the waypoints of a late activated group with the name CCCP Border as the boundaries of the border area.
-- Any enemy crossing this border will be engaged.
BLUE_Border_Zone = ZONE_POLYGON:New( "BLUE Border", GROUP:FindByName( "BLUE Border" ) )
A2ADispatcher:SetBorderZone( BLUE_Border_Zone )

-- Initialize the dispatcher, setting up a radius of 100km where any airborne friendly 
-- without an assignment within 100km radius from a detected target, will engage that target.
A2ADispatcher:SetEngageRadius( 80000 )

-- Setup the squadrons.
A2ADispatcher:SetSquadron( "CAP F14b", Stennis, { "CAP F14b" } , 20 )
A2ADispatcher:SetSquadron( "INTERCEPT F18c", Steniss, { "INTERCEPT F18c" } , 20 )

-- Setup the overhead
A2ADispatcher:SetSquadronOverhead( "CAP F14b", 1.2 )
A2ADispatcher:SetSquadronOverhead( "INTERCEPT F18c", 1 )


-- Setup the Grouping
A2ADispatcher:SetSquadronGrouping( "CAP F14b", 1 )
A2ADispatcher:SetSquadronGrouping( "INTERCEPT F18c", 2 )


-- Setup the Takeoff methods
A2ADispatcher:SetSquadronTakeoffFromParkingCold( "CAP F14b" )
A2ADispatcher:SetSquadronTakeoffFromParkingCold( "INTERCEPT F18c" )


-- Setup the Landing methods
A2ADispatcher:SetSquadronLandingAtEngineShutdown( "CAP F14b" )
A2ADispatcher:SetSquadronLandingAtEngineShutdown( "INTERCEPT F18c" )


-- Set the Squadron visible before startup of dispatcher.
A2ADispatcher:SetSquadronVisible( "CAP F14b" )
A2ADispatcher:SetSquadronVisible( "INTERCEPT F18c" )


-- CAP Squadron execution.
CAPZone1 = ZONE:New( "CAP Zone 1", GROUP:FindByName( "CAP Zone 1" ) )
A2ADispatcher:SetSquadronCap( "CAP F14b", CAPZone1, 4000, 10000, 500, 600, 800, "BARO" )
A2ADispatcher:SetSquadronCapInterval( "CAP F14b", 2, 30, 60, 1 )

CAPZone2 = ZONE:New( "CAP Zone 2", GROUP:FindByName( "CAP Zone 2" ) )
A2ADispatcher:SetSquadronCap( "INTERCEPT F18c", CAPZone2, 4000, 8000, 600, 800, 800, 1200, "BARO" )
A2ADispatcher:SetSquadronCapInterval( "INTERCEPT F18c", 2, 30, 120, 1 )


-- GCI Squadron execution.
A2ADispatcher:SetSquadronGci( "CAP F14b" , 900, 1200 )
A2ADispatcher:SetSquadronGci( "INTERCEPT F18c" , 900, 1200 )


--CleanUp = CLEANUP_AIRBASE:New( { AIRBASE.Caucasus.Novorossiysk } )


-- Red attack simulation
local Frequency = 300

RedSpawn1 = SPAWN
 :New( "RED Fighter 2" )
 :InitLimit( 2, 10 )
 :InitRandomizeRoute( 0, 0, 30000 )
 --:InitDelayOn()
 :SpawnScheduled( Frequency, 0.4 )

RedSpawn2 = SPAWN
 :New( "RED Fighter" )
 :InitLimit( 2, 10 )  
 :InitRandomizeRoute( 0, 0, 30000 )
 --:InitDelayOn()
 :SpawnScheduled( Frequency, 0.4 )

 

Here's the log:

 

2019-10-08 19:00:18.883 INFO    Dispatcher: loadMission C:\Users\Chris\AppData\Local\Temp\DCS\tempMission.miz
2019-10-08 19:00:18.884 INFO    WORLDGENERAL: loading mission from: "C:\Users\Chris\AppData\Local\Temp\DCS\tempMission.miz"
2019-10-08 19:00:18.987 INFO    EDCORE: (dDispatcher)enterToState_:4
2019-10-08 19:00:18.991 INFO    Dispatcher: Start
2019-10-08 19:00:19.013 INFO    Dispatcher: Terrain theatre Caucasus
2019-10-08 19:00:19.013 INFO    TERRAIN: lSystem::load(./Mods/terrains/Caucasus\terrain.cfg.lua)
2019-10-08 19:00:19.013 INFO    TERRAIN: lSystem::CleanScenes()
2019-10-08 19:00:19.013 INFO    TERRAIN: lSystem::InitScenes()
2019-10-08 19:00:19.013 INFO    EDTERRAIN4: lTerraDispatchImpl::setDate( day=1, month=6)
2019-10-08 19:00:19.023 WARNING GRAPHICSCORE: already registered Renderer callback
2019-10-08 19:00:19.036 INFO    VISUALIZER: StartSimulation
2019-10-08 19:00:19.310 INFO    GRAPHICSCORE: cascade shadows init (preset:'default' quality:4 layers:4 size:4096)
2019-10-08 19:00:19.319 ERROR_ONCE DX11BACKEND: render target 'fftw_foam' not found
2019-10-08 19:00:19.688 INFO    Dispatcher: initial random seed = 1220220
2019-10-08 19:00:19.688 INFO    Dispatcher: apply random seed = 1220220
2019-10-08 19:00:19.723 INFO    WORLDGENERAL: loaded from mission Scripts/World/GPS_GNSS.lua
2019-10-08 19:00:20.160 INFO    WORLDGENERAL: loaded from mission Config/View/SnapViewsDefault.lua
2019-10-08 19:00:20.161 INFO    WORLDGENERAL: loaded from mission Config/View/View.lua
2019-10-08 19:00:20.162 INFO    WORLDGENERAL: loaded from mission Config/View/Server.lua
2019-10-08 19:00:20.297 INFO    Config: netview started
2019-10-08 19:00:20.355 INFO    VISUALIZER: CameraIndependedPreload()
2019-10-08 19:00:20.355 INFO    VISUALIZER: CameraIndependedPreload() finished
2019-10-08 19:00:20.355 INFO    DCS: use_xRay: no
2019-10-08 19:00:20.799 INFO    DCS: MissionSpawn:spawnShips 2
2019-10-08 19:00:20.800 ERROR   WEAPONS: Can't get the fire position connector FIRE_CENTER_L_02: there is no connector with such name.
2019-10-08 19:00:20.801 ERROR   woShip: connector 'SHIP_NOSE_ON_WATERLINE_CENTER_1' is not specified in model 'cvn74'
2019-10-08 19:00:20.801 ERROR   woShip: connector 'SHIP_TAIL_ON_WATERLINE_CENTER_1' is not specified in model 'cvn74'
2019-10-08 19:00:20.806 WARNING EFFECTS2: BowwaveEmitter: unknown parameter
2019-10-08 19:00:20.903 INFO    DCS: MissionSpawn:initScript
2019-10-08 19:00:20.903 INFO    DCS: MissionSpawn:spawnCoalition red
2019-10-08 19:00:20.903 INFO    DCS: MissionSpawn:spawnPlanes 0
2019-10-08 19:00:20.911 INFO    DCS: MissionSpawn:spawnCoalition blue
2019-10-08 19:00:20.911 INFO    DCS: MissionSpawn:spawnHelicopters 8
2019-10-08 19:00:20.915 INFO    DCS: MissionSpawn:spawnPlanes 2
2019-10-08 19:00:21.024 INFO    SCRIPTING: *** MOOSE GITHUB Commit Hash ID: 2019-10-03T10:15:26.0000000Z-7aa91ef1427e4ff8dbe8d63fc87710a29c8fd829 ***
2019-10-08 19:00:21.024 INFO    SCRIPTING: *** MOOSE STATIC INCLUDE START 2019-10-03*** 
2019-10-08 19:00:21.024 INFO    SCRIPTING: Init: Scripts Loaded v1.1
2019-10-08 19:00:21.027 INFO    SCRIPTING:  11882( 12484)/I:                      DATABASE00003._RegisterGroupTemplate({[Coalition]=2,[Category]=0,[Group]=EWR E2D AWACS,[Country]=2,[units]={[1]=EWR E2D AWACS,},})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  11882( 12484)/I:                      DATABASE00003._RegisterGroupTemplate({[Coalition]=2,[Category]=0,[Group]=CAP F14b,[Country]=2,[units]={[1]=CAP F14b,},})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  11882( 12484)/I:                      DATABASE00003._RegisterGroupTemplate({[Coalition]=2,[Category]=0,[Group]=Tanker,[Country]=2,[units]={[1]=Tanker,},})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  11882( 12484)/I:                      DATABASE00003._RegisterGroupTemplate({[Coalition]=2,[Category]=0,[Group]=INTERCEPT F18c,[Country]=2,[units]={[1]=INTERCEPT F18c,},})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  11882( 12484)/I:                      DATABASE00003._RegisterGroupTemplate({[Coalition]=2,[Category]=3,[Group]=Stennis,[Country]=2,[units]={[1]=Stennis,},})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  11882( 12484)/I:                      DATABASE00003._RegisterGroupTemplate({[Coalition]=2,[Category]=1,[Group]=BLUE Border,[Country]=8,[units]={[1]=BLUE Border,},})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  11882( 12484)/I:                      DATABASE00003._RegisterGroupTemplate({[Coalition]=1,[Category]=0,[Group]=RED Fighter,[Country]=0,[units]={[1]=RED Fighter,},})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  11882( 12484)/I:                      DATABASE00003._RegisterGroupTemplate({[Coalition]=1,[Category]=0,[Group]=RED Fighter 2,[Country]=0,[units]={[1]=RED Fighter 2,},})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  12015( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Group:,[2]=RED Fighter 2,})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  11693( 12016)/I:                      DATABASE00003.AddGroup({[1]=Add GROUP:,[2]=RED Fighter 2,})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  12021( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Unit:,[2]=RED Fighter 2,})
2019-10-08 19:00:21.027 INFO    SCRIPTING:  11371( 12022)/I:                      DATABASE00003.AddUnit({[1]=Add UNIT:,[2]=RED Fighter 2,})
2019-10-08 19:00:21.028 INFO    SCRIPTING:  12015( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Group:,[2]=RED Fighter,})
2019-10-08 19:00:21.028 INFO    SCRIPTING:  11693( 12016)/I:                      DATABASE00003.AddGroup({[1]=Add GROUP:,[2]=RED Fighter,})
2019-10-08 19:00:21.028 INFO    SCRIPTING:  12021( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Unit:,[2]=RED Fighter,})
2019-10-08 19:00:21.028 INFO    SCRIPTING:  11371( 12022)/I:                      DATABASE00003.AddUnit({[1]=Add UNIT:,[2]=RED Fighter,})
2019-10-08 19:00:21.028 INFO    SCRIPTING:  12015( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Group:,[2]=Tanker,})
2019-10-08 19:00:21.029 INFO    SCRIPTING:  11693( 12016)/I:                      DATABASE00003.AddGroup({[1]=Add GROUP:,[2]=Tanker,})
2019-10-08 19:00:21.029 INFO    SCRIPTING:  12021( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Unit:,[2]=Tanker,})
2019-10-08 19:00:21.029 INFO    SCRIPTING:  11371( 12022)/I:                      DATABASE00003.AddUnit({[1]=Add UNIT:,[2]=Tanker,})
2019-10-08 19:00:21.029 INFO    SCRIPTING:  12015( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Group:,[2]=INTERCEPT F18c,})
2019-10-08 19:00:21.029 INFO    SCRIPTING:  11693( 12016)/I:                      DATABASE00003.AddGroup({[1]=Add GROUP:,[2]=INTERCEPT F18c,})
2019-10-08 19:00:21.029 INFO    SCRIPTING:  12021( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Unit:,[2]=INTERCEPT F18c,})
2019-10-08 19:00:21.029 INFO    SCRIPTING:  11371( 12022)/I:                      DATABASE00003.AddUnit({[1]=Add UNIT:,[2]=INTERCEPT F18c,})
2019-10-08 19:00:21.030 INFO    SCRIPTING:  12015( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Group:,[2]=CAP F14b,})
2019-10-08 19:00:21.030 INFO    SCRIPTING:  11693( 12016)/I:                      DATABASE00003.AddGroup({[1]=Add GROUP:,[2]=CAP F14b,})
2019-10-08 19:00:21.030 INFO    SCRIPTING:  12021( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Unit:,[2]=CAP F14b,})
2019-10-08 19:00:21.030 INFO    SCRIPTING:  11371( 12022)/I:                      DATABASE00003.AddUnit({[1]=Add UNIT:,[2]=CAP F14b,})
2019-10-08 19:00:21.030 INFO    SCRIPTING:  12015( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Group:,[2]=EWR E2D AWACS,})
2019-10-08 19:00:21.031 INFO    SCRIPTING:  11693( 12016)/I:                      DATABASE00003.AddGroup({[1]=Add GROUP:,[2]=EWR E2D AWACS,})
2019-10-08 19:00:21.031 INFO    SCRIPTING:  12021( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Unit:,[2]=EWR E2D AWACS,})
2019-10-08 19:00:21.031 INFO    SCRIPTING:  11371( 12022)/I:                      DATABASE00003.AddUnit({[1]=Add UNIT:,[2]=EWR E2D AWACS,})
2019-10-08 19:00:21.031 INFO    SCRIPTING:  12015( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Group:,[2]=BLUE Border,})
2019-10-08 19:00:21.031 INFO    SCRIPTING:  11693( 12016)/I:                      DATABASE00003.AddGroup({[1]=Add GROUP:,[2]=BLUE Border,})
2019-10-08 19:00:21.032 INFO    SCRIPTING:  12021( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Unit:,[2]=BLUE Border,})
2019-10-08 19:00:21.032 INFO    SCRIPTING:  11371( 12022)/I:                      DATABASE00003.AddUnit({[1]=Add UNIT:,[2]=BLUE Border,})
2019-10-08 19:00:21.032 INFO    SCRIPTING:  12015( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Group:,[2]=Stennis,})
2019-10-08 19:00:21.032 INFO    SCRIPTING:  11693( 12016)/I:                      DATABASE00003.AddGroup({[1]=Add GROUP:,[2]=Stennis,})
2019-10-08 19:00:21.032 INFO    SCRIPTING:  12021( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Register Unit:,[2]=Stennis,})
2019-10-08 19:00:21.032 INFO    SCRIPTING:  11371( 12022)/I:                      DATABASE00003.AddUnit({[1]=Add UNIT:,[2]=Stennis,})
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12031( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits(Groups:)
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12033( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Group:,[2]=INTERCEPT F18c,})
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12033( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Group:,[2]=Tanker,})
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12033( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Group:,[2]=CAP F14b,})
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12033( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Group:,[2]=RED Fighter,})
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12033( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Group:,[2]=EWR E2D AWACS,})
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12033( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Group:,[2]=Stennis,})
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12033( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Group:,[2]=RED Fighter 2,})
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12033( 11313)/I:                      DATABASE00003._RegisterGroupsAndUnits({[1]=Group:,[2]=BLUE Border,})
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12056( 11315)/I:                      DATABASE00003._RegisterStatics({[statics]={[GroupsRed]={},[GroupsBlue]={},},})
2019-10-08 19:00:21.033 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Anapa-Vityazevo,[3]=12,})
2019-10-08 19:00:21.034 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Krasnodar-Center,[3]=13,})
2019-10-08 19:00:21.034 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Novorossiysk,[3]=14,})
2019-10-08 19:00:21.034 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Krymsk,[3]=15,})
2019-10-08 19:00:21.035 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Maykop-Khanskaya,[3]=16,})
2019-10-08 19:00:21.035 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Gelendzhik,[3]=17,})
2019-10-08 19:00:21.035 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Sochi-Adler,[3]=18,})
2019-10-08 19:00:21.036 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Krasnodar-Pashkovsky,[3]=19,})
2019-10-08 19:00:21.036 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Sukhumi-Babushara,[3]=20,})
2019-10-08 19:00:21.037 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Gudauta,[3]=21,})
2019-10-08 19:00:21.037 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Batumi,[3]=22,})
2019-10-08 19:00:21.037 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Senaki-Kolkhi,[3]=23,})
2019-10-08 19:00:21.038 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Mineralnye Vody,[3]=26,})
2019-10-08 19:00:21.038 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Nalchik,[3]=27,})
2019-10-08 19:00:21.038 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Mozdok,[3]=28,})
2019-10-08 19:00:21.039 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Tbilisi-Lochini,[3]=29,})
2019-10-08 19:00:21.039 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Soganlug,[3]=30,})
2019-10-08 19:00:21.040 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Vaziani,[3]=31,})
2019-10-08 19:00:21.040 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Beslan,[3]=32,})
2019-10-08 19:00:21.040 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Kobuleti,[3]=24,})
2019-10-08 19:00:21.041 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Kutaisi,[3]=25,})
2019-10-08 19:00:21.041 INFO    SCRIPTING:  12083( 11317)/I:                      DATABASE00003._RegisterAirbases({[1]=Register Airbase:,[2]=Stennis,[3]=1,})
2019-10-08 19:00:21.042 INFO    SCRIPTING:  11610(142545)/I:                      DATABASE00003.?({[Cargo]=INTERCEPT F18c,})
2019-10-08 19:00:21.042 INFO    SCRIPTING:  11610(142545)/I:                      DATABASE00003.?({[Cargo]=CAP F14b,})
2019-10-08 19:00:21.043 INFO    SCRIPTING:  11610(142545)/I:                      DATABASE00003.?({[Cargo]=RED Fighter,})
2019-10-08 19:00:21.043 INFO    SCRIPTING:  11610(142545)/I:                      DATABASE00003.?({[Cargo]=Tanker,})
2019-10-08 19:00:21.043 INFO    SCRIPTING:  11610(142545)/I:                      DATABASE00003.?({[Cargo]=EWR E2D AWACS,})
2019-10-08 19:00:21.044 INFO    SCRIPTING:  11610(142545)/I:                      DATABASE00003.?({[Cargo]=Stennis,})
2019-10-08 19:00:21.044 INFO    SCRIPTING:  11610(142545)/I:                      DATABASE00003.?({[Cargo]=RED Fighter 2,})
2019-10-08 19:00:21.044 INFO    SCRIPTING:  11610(142545)/I:                      DATABASE00003.?({[Cargo]=BLUE Border,})
2019-10-08 19:00:21.045 INFO    SCRIPTING:  11500(142546)/I:                      DATABASE00003.?({[1]=Register ZONE:,[Name]=CAP Zone 1,})
2019-10-08 19:00:21.045 INFO    SCRIPTING:  11500(142546)/I:                      DATABASE00003.?({[1]=Register ZONE:,[Name]=CAP Zone 2,})
2019-10-08 19:00:21.045 INFO    SCRIPTING: *** MOOSE INCLUDE END *** 
2019-10-08 19:00:21.049 ERROR   DCS: Mission script error: : [string "C:\Users\Chris\AppData\Local\Temp\DCS\/~mis00002CCF.lua"]:110993: attempt to index field 'Airbase' (a nil value)
stack traceback:
   [C]: ?
   [string "C:\Users\Chris\AppData\Local\Temp\DCS\/~mis00002CCF.lua"]:110993: in function 'SetSquadron'
   [string "C:\Users\Chris\AppData\Local\Temp\DCS\/~mis000073B7.lua"]:27: in main chunk
2019-10-08 19:00:21.091 INFO    TACVIEW.EXPORT: Loading C++ flight data recorder from [C:\Users\Chris\Saved Games\DCS\Mods\tech\Tacview\bin\]
2019-10-08 19:00:21.092 INFO    TACVIEW.EXPORT: Tacview 1.8.0 C++ flight data recorder successfully loaded
2019-10-08 19:00:21.114 INFO    VISUALIZER: Preload() camera=-331009.229076, 21.226591, 392835.156250 radius=100000.000000
2019-10-08 19:00:21.114 INFO    EDTERRAINGRAPHICS41: ITerrainGraphicsImpl4::forceLoading(): pos=(-331009, 21.2266, 392835), radius=100000
2019-10-08 19:00:21.154 INFO    EDTERRAINGRAPHICS41: surface5 clean up LOD 0: left 1  released 6
2019-10-08 19:00:21.154 INFO    EDTERRAINGRAPHICS41: surface5 clean up LOD 1: left 1  released 6
2019-10-08 19:00:21.154 INFO    EDTERRAINGRAPHICS41: surface5 clean up 0.457400 ms
2019-10-08 19:00:21.199 INFO    EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 0.500000. Update lod buffers.
2019-10-08 19:00:21.199 INFO    EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer()
2019-10-08 19:00:21.200 INFO    EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer()
2019-10-08 19:00:21.640 INFO    VISUALIZER: Preload() finished
2019-10-08 19:00:21.646 INFO    TACVIEW.DLL: Tacview Flight Data Recorder 1.8.0 Loaded
2019-10-08 19:00:21.646 INFO    TACVIEW.DLL: Config={bookmarkShortcut=0, clientTelemetryPassword="", compressionLevel=1, dataRecordingEnabled=1, debugModeEnabled=0, hostTelemetryPassword="", playbackDelay=600, profilingPeriod=600, realTimeTelemetryPort=42674, recordClientsSessionsEnabled=0, remoteControlPassword="", remoteControlPort=42675}
2019-10-08 19:00:21.648 INFO    DCS: Screen: mission_offline
2019-10-08 19:00:21.648 INFO    Dispatcher: precache units resources in slots
2019-10-08 19:00:21.680 INFO    Lua: Lua CPU usage: metric: average mission loading: 16.0580 %
2019-10-08 19:00:21.680 INFO    Dispatcher: loadMission Done: Сontrol passed to the player
2019-10-08 19:00:23.173 INFO    TACVIEW.DLL: Recording flight data in [C:\Users\Chris\Documents\Tacview\Tacview-20191008-150023-DCS-CTF_Protection_Ops.zip.acmi]

 

 

 

Mission attached

Any thoughts appreciated.

CTF_Protection_Ops.miz

Night Ops in the Harrier

IYAOYAS


 
Link to comment
Share on other sites

Is anyone else having a problem with some functions just not doing anything? In my case it’s AI_CARGO_APC AND ZONE_CAPTURE_COALITION. Logs don’t through any errors all the Ai units just sit there doing nothing. They won’t board or move to capture the zone. The system shows that it is filtering for my sets and also places the zone marker on the map but none of the units move.

Link to comment
Share on other sites

did you spell Stennis right in this line

 

A2ADispatcher:SetSquadron( "INTERCEPT F18c", Steniss, { "INTERCEPT F18c" } , 20 )

 

 

No.

But fixing that made no difference.

Neither did fixing the spelling of "CAP F14" to "CAP F14b" like it should be.


Edited by SGT Coyle

Night Ops in the Harrier

IYAOYAS


 
Link to comment
Share on other sites

This is the new script:

Your error messages say version of the recovery tanker is 1.0.5, while the current version is 1.0.9.

You get errors because you are using a Moose.lua version which does not include the functions you are using.

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

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...