Jump to content

[MOOSE] RAT - Random Air Traffic


Recommended Posts

I got some C-17 flying at FL310 mininum, but I would like to know if I can speed them up, they fly so low with a funny alpha.

i5 8400 | 32 Gb RAM | RTX 2080Ti | Virpil Mongoose T-50 base w/ Warthog & Hornet sticks | Warthog throttle | Cougar throttle USB | DIY Collective | Virpil desk mount | VKB T-Rudder Mk IV | Oculus Rift S | Buddy-Fox A-10 UFC | 3x TM MFDs | 2x bass shakers pedal plate| SIMple SIMpit chair | WinWing TakeOff panel | PointCTRL v2 | Andre JetSeat | Winwing Hornet UFC | Winwing Viper ICP

FC3 - Warthog - F-5E - Harrier - NTTR - Hornet - Tomcat - Huey - Viper - C-101 - PG - Hip - SuperCarrier - Syria - Warthog II - Hind - South Atlantic - Sinai - Strike Eagle

Link to comment
Share on other sites

  • 3 weeks later...

I have a problem:

I can't stop the ratmanager. Whether "manager:Stop(60)" nor "RATMANAGER:_Stop()" works. It runs forever. Even starting another lua- ratmanager script with additional units doesn't stop the first one.

I am thankful for every hint.

Edit: Found this errormessage in the log:

 

2020-07-23 17:48:18.043 ERROR SCRIPTING: Mission script error: [string "C:\Users\CORNEL~1\AppData\Local\Temp\DCS.openbeta\/~mis0000361E.lua"]:63641: bad argument #2 to 'format' (string expected, got nil)

stack traceback:

[C]: ?

[C]: in function 'format'

[string "C:\Users\CORNEL~1\AppData\Local\Temp\DCS.openbeta\/~mis0000361E.lua"]:63641: in function '_Stop'

[string "RATMANAGER:_Stop()"]:1: in main chunk


Edited by Cornelius
Link to comment
Share on other sites

  • 4 weeks later...

As of the latest version of MOOSE, v2.5.0 pre2, (RAT Script) large planes are still colliding

with ground objects. It's probably more of an airport design more than anything,

I mean, who puts buildings and fuel tanks right next to the taxiway? Nothing larger than a Cessna

could get through. Maybe a Yak 40. Certainly not an airliner.

 

Maybe you could allow the wings to "ghost?" When the first plane gets hung up like that,

then the rest of them can't do anything either. They just sit there.

 

OH BTW, "SetDestination" and "ExcludedAirports" commands don't work.

Either the script won't load, or I get an error message like this.

(Example: A380:SetDestination({"Dubai","Abu Dhabi"}) etc. Even one destination triggers the error.

 

nsmRv2T.jpg

 

Rt6nxvI.jpg

 

cZaEkDG.jpg


Edited by rayrayblues

🇺🇦  SLAVA UKRAINI  🇺🇦

MoBo - ASUS 990FX R2 Sabertooth,     CPU - AMD FX 9590 @4.7Gb. No OC
RAM - GSkill RipJaws DDR3 32 Gb @2133 MHZ,   GPU - EVGA GeForce GTX 1660Ti 6Gb DDR5 OC'd, Core 180MHz, Memory 800MHz
Game drive - Samsung 980 M.2 EVO 1Tb SSD,    OS Drive - 860 EVO 500Gb SATA SSD, Win10 Pro 22H2

Controls - Thrustmaster T-Flight HOTAS X,   Monitor - LG 32" 1920 X 1080,   PSU - Prestige ATX-PR800W PSU

Link to comment
Share on other sites

As of the latest version of MOOSE, v2.5.0 pre2, (RAT Script) large planes are still colliding

with ground objects. It's probably more of an airport design more than anything,

I mean, who puts buildings and fuel tanks right next to the taxiway? Nothing larger than a Cessna

could get through. Maybe a Yak 40. Certainly not an airliner.

 

Maybe you could allow the wings to "ghost?" When the first plane gets hung up like that,

then the rest of them can't do anything either. They just sit there.

yeah, finding parking spots for larger aircraft is really difficult in DCS. you can set terminal types but the big ones often make problems. I implemented a scan that checks the vicinity around the parking spot for statics and scenery. Not sure if it is enabled by default.

 

 

OH BTW, "SetDestination" and "ExcludedAirports" commands don't work.

Either the script won't load, or I get an error message like this.

(Example: A380:SetDestination({"Dubai","Abu Dhabi"}) etc. Even one destination triggers the error.

Make sure you use airbase names exactly as spelled in the mission editor. For example, Dubai is called "Dubai Intl".

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

Quote: "Make sure you use airbase names exactly as spelled in the mission editor. For example, Dubai is called "Dubai Intl"."

 

 

Thank you Franky, seems to be working somewhat. In this test mission,

all the planes take off from Chippelle, the radio messages say that planes

are landing in Lignerolles, but are not actually landing there. They are landing elsewhere.

What's going on?

Normandy 2.miz

Bf-109 K.lua

🇺🇦  SLAVA UKRAINI  🇺🇦

MoBo - ASUS 990FX R2 Sabertooth,     CPU - AMD FX 9590 @4.7Gb. No OC
RAM - GSkill RipJaws DDR3 32 Gb @2133 MHZ,   GPU - EVGA GeForce GTX 1660Ti 6Gb DDR5 OC'd, Core 180MHz, Memory 800MHz
Game drive - Samsung 980 M.2 EVO 1Tb SSD,    OS Drive - 860 EVO 500Gb SATA SSD, Win10 Pro 22H2

Controls - Thrustmaster T-Flight HOTAS X,   Monitor - LG 32" 1920 X 1080,   PSU - Prestige ATX-PR800W PSU

Link to comment
Share on other sites

Quote: "Make sure you use airbase names exactly as spelled in the mission editor. For example, Dubai is called "Dubai Intl"."

 

one question

how to find the exactly name oh each airport ?

looking in the terrain folder, but nothing.

i look for the new syria map

thanks

Link to comment
Share on other sites

Here's another good one. :)

 

f92PUW3.jpg

🇺🇦  SLAVA UKRAINI  🇺🇦

MoBo - ASUS 990FX R2 Sabertooth,     CPU - AMD FX 9590 @4.7Gb. No OC
RAM - GSkill RipJaws DDR3 32 Gb @2133 MHZ,   GPU - EVGA GeForce GTX 1660Ti 6Gb DDR5 OC'd, Core 180MHz, Memory 800MHz
Game drive - Samsung 980 M.2 EVO 1Tb SSD,    OS Drive - 860 EVO 500Gb SATA SSD, Win10 Pro 22H2

Controls - Thrustmaster T-Flight HOTAS X,   Monitor - LG 32" 1920 X 1080,   PSU - Prestige ATX-PR800W PSU

Link to comment
Share on other sites

Here's another good one. :)

 

f92PUW3.jpg

 

:lol:yeah, that stuff always looks nice. Use for example :SetTerminalType(AIRBASE.TerminalType.OpenBig) to avoid the hardened shelters for bigger aircraft.

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

  • 4 weeks later...

Hello,

 

I try to use RAT in the Syria map but keep receiving Loading Error

[sIGPIC][/sIGPIC]

 

IAF Bell205

IAF Anafa

 

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

DCS World Modules: A-10C, FC3, MiG-21BiS, F-86, P-51, KA-50, UH-1H Huey, Mi-8, M2000K, Gazal, Bf109, Mig-15, Hawk and NTTR

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

My System - ASUS Maximus HERO iiiv, CoolMaster 120 Sadion Plus, I7 -6700K @4.0, G.Skill ddr4 16GB ram, Gigabyte GTX 1070 G1 , PSU Seasonic X-650W, OCZ 150 500Gb ssd drive X2, Seagate 7200 1T X2.

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

Link to comment
Share on other sites

Can i please get the airports name for the lua?

[sIGPIC][/sIGPIC]

 

IAF Bell205

IAF Anafa

 

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

DCS World Modules: A-10C, FC3, MiG-21BiS, F-86, P-51, KA-50, UH-1H Huey, Mi-8, M2000K, Gazal, Bf109, Mig-15, Hawk and NTTR

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

My System - ASUS Maximus HERO iiiv, CoolMaster 120 Sadion Plus, I7 -6700K @4.0, G.Skill ddr4 16GB ram, Gigabyte GTX 1070 G1 , PSU Seasonic X-650W, OCZ 150 500Gb ssd drive X2, Seagate 7200 1T X2.

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

Link to comment
Share on other sites

Thank u very much

[sIGPIC][/sIGPIC]

 

IAF Bell205

IAF Anafa

 

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

DCS World Modules: A-10C, FC3, MiG-21BiS, F-86, P-51, KA-50, UH-1H Huey, Mi-8, M2000K, Gazal, Bf109, Mig-15, Hawk and NTTR

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

My System - ASUS Maximus HERO iiiv, CoolMaster 120 Sadion Plus, I7 -6700K @4.0, G.Skill ddr4 16GB ram, Gigabyte GTX 1070 G1 , PSU Seasonic X-650W, OCZ 150 500Gb ssd drive X2, Seagate 7200 1T X2.

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

Link to comment
Share on other sites

I need some help

 

cant find way my planes not spawn

 

-- local A320_skins={"Air Arabia", "Al Maha", "Gulf Air", "Kuwait Airways", "Saudi Gulf", "Emirates"}

-- local A320=RAT:New{"RAT_A320-1")

--local A320_Country={"SAUDI_ARABIA", "IRAQ", "YEMEN", "JORDAN"}

 

 

-- A320:SetCoalitionAircraft("blue")

-- A320:SetCoalition("sameonly")

-- A320:SetTakeoff("cold")

-- A320:SetCountry(country.id.SWITZERLAND)

-- A320:ContinueJourney()

--A320:SetFLcruise(33000)

-- A320:Livery(A320_skins)

-- A320:Spawn(10)

 

 

 

-- Liveries

 

local A320_skins={"Air Arabia", "Al Maha", "Gulf Air", "Kuwait Airways", "Saudi Gulf"}

local CivAirport={"Damascus", "Bassel_Al_Assad", "Beirut_Rafic_Hariri"}

local A320=RAT:New("RAT_A320-1")

A320:SetDeparture(CivAirport)

A320:SetCoalitionAircraft("neutral")

A320:SetCountry(country.id.SWITZERLAND)

A320:Livery(A320_skins)

A320:SetMaxRespawnTriedWhenSpawnedOnRunway(0)

--A320:StatusReports(false)

--A320:SetSpawnDelay(60)

A320:SetSpawnInterval(0.5)

A320:SetTakeoff("takeoff-hot")

A320:RespawnInAirNotAllowed()

A320:RespawnAfterTakeoff()

A320:Spawn(7)

A320:Uncontrolled() --parking

--A320:ActivateUncontrolled(1, 1, 120, 0.5) --max delay on parking

 

--A380:SetDeparture(CivAirport)

--A380:SetCoalitionAircraft("neutral")

--A380:SetCountry(country.id.SWITZERLAND)

--A380:Livery(A320_skins)

--A380:SetMaxRespawnTriedWhenSpawnedOnRunway(0)

--A320:StatusReports(false)

--A320:SetSpawnDelay(60)

--A380:SetSpawnInterval(0.5)

--A380:SetTakeoff("cold")

--A380:RespawnInAirNotAllowed()

--A380:RespawnAfterTakeoff()

--A380:Spawn(7)

--A380:Uncontrolled() --parking

--ActivateUncontrolled(1, 1, 120, 0.5) --max delay on parking

 

local A380_skins={"Air Arabia", "Al Maha", "Gulf Air", "Kuwait Airways", "Saudi Gulf"}

local CivAirport={"Damascus", "Bassel_Al_Assad", "Beirut_Rafic_Hariri"}

local A380=RAT:New("RAT_A380-1")

A380:SetDeparture(CivAirport)

A380:SetCoalitionAircraft("neutral")

A380:SetCountry(country.id.SWITZERLAND)

A380:Livery(A320_skins)

A380:SetMaxRespawnTriedWhenSpawnedOnRunway(0)

--A380:StatusReports(false)

--A380:SetSpawnDelay(60)

A380:SetSpawnInterval(0.5)

--A320:SetTakeoff("cold")

A380:RespawnInAirNotAllowed()

A380:RespawnAfterTakeoff()

A380:Spawn(7)

A380:Uncontrolled() --parking

--A380:ActivateUncontrolled(1, 1, 120, 0.5) --max delay on parking

 

local A320_skins={"Air Arabia", "Al Maha", "Gulf Air", "Kuwait Airways", "Saudi Gulf"}

local CivAirport={"Damascus", "Bassel_Al_Assad", "Beirut_Rafic_Hariri"}

local A320=RAT:New("RAT_A320-1")

A320:SetDeparture("RAT Zone A")

A320:SetCoalitionAircraft("neutral")

A320:SetCountry(country.id.SWITZERLAND)

A320:Livery(A320_skins)

A320:SetMaxRespawnTriedWhenSpawnedOnRunway(0)

--A320:StatusReports(false)

--A320:SetSpawnDelay(60)

A320:SetSpawnInterval(0.5)

A320:SetTakeoff("air")

A320:RespawnInAirNotAllowed()

A320:RespawnAfterTakeoff()

A320:Spawn(10)

A320:Uncontrolled() --parking

--A320:ActivateUncontrolled(1, 1, 120, 0.5) --max delay on parking

 

local A380_skins={"Air Arabia", "Al Maha", "Gulf Air", "Kuwait Airways", "Saudi Gulf"}

local CivAirport={"Damascus", "Bassel_Al_Assad", "Beirut_Rafic_Hariri"}

local A380=RAT:New("RAT_A380-1")

A380:SetDeparture("RAT Zone A")

A380:SetCoalitionAircraft("neutral")

A380:SetCountry(country.id.SWITZERLAND)

A380:Livery(A320_skins)

A380:SetMaxRespawnTriedWhenSpawnedOnRunway(0)

--A380:StatusReports(false)

--A380:SetSpawnDelay(60)

A380:SetSpawnInterval(0.5)

A380:SetTakeoff("air")

A380:RespawnInAirNotAllowed()

A380:RespawnAfterTakeoff()

A380:Spawn(10)

A380:Uncontrolled() --parking

--A380:ActivateUncontrolled(1, 1, 120, 0.5) --max delay on parking

 

local RAT_A380=RAT:New("RAT_A380-1")

RAT_A380:SetTakeoff("air")

RAT_A380:SetDeparture("RAT Zone A")

RAT_A380:Spawn(5)

 

local RAT_A320=RAT:New("RAT_A320-1")

RAT_A320:SetTakeoff("air")

RAT_A320:SetDeparture("RAT Zone A")

RAT_A320:Spawn(5)

 

[sIGPIC][/sIGPIC]

 

IAF Bell205

IAF Anafa

 

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

DCS World Modules: A-10C, FC3, MiG-21BiS, F-86, P-51, KA-50, UH-1H Huey, Mi-8, M2000K, Gazal, Bf109, Mig-15, Hawk and NTTR

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

My System - ASUS Maximus HERO iiiv, CoolMaster 120 Sadion Plus, I7 -6700K @4.0, G.Skill ddr4 16GB ram, Gigabyte GTX 1070 G1 , PSU Seasonic X-650W, OCZ 150 500Gb ssd drive X2, Seagate 7200 1T X2.

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

Link to comment
Share on other sites

Have you created a template/unit/group in the mission named RAT_A320-1?

 

Yes

[sIGPIC][/sIGPIC]

 

IAF Bell205

IAF Anafa

 

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

DCS World Modules: A-10C, FC3, MiG-21BiS, F-86, P-51, KA-50, UH-1H Huey, Mi-8, M2000K, Gazal, Bf109, Mig-15, Hawk and NTTR

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

My System - ASUS Maximus HERO iiiv, CoolMaster 120 Sadion Plus, I7 -6700K @4.0, G.Skill ddr4 16GB ram, Gigabyte GTX 1070 G1 , PSU Seasonic X-650W, OCZ 150 500Gb ssd drive X2, Seagate 7200 1T X2.

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

Link to comment
Share on other sites

hey guys, trying my hardest to write a script for RATs but i genuinly just dont get it,,does anyone have an example full script for persian gulf map that i can look through,edit and use please?

 

many thanks

 

this is my script... it works except for flying out of the map via a trigger zone:

 

local c17_2={}
c17_2.outbound=RAT:New("RAT_C-17", "C17 Europe")
c17_2.outbound:SetTerminalType(AIRBASE.TerminalType.OpenBig)
c17_2.outbound:SetDestination("RAT Zone A")
c17_2.outbound:StatusReports(true)
c17_2.outbound:SetMaxDistance(350)
c17_2.outbound:SetSpawnDelay(1200)
c17_2.outbound:SetSpawnInterval(1200)
c17_2.outbound:SetTakeoff("cold")
c17_2.outbound:RespawnInAirNotAllowed()
c17_2.outbound:RespawnAfterTakeoff()
c17_2.outbound:Spawn(1)

 

could be the problem that the trigger zone does not allow spaces in name? any other constellations works except this one...

i get a message ingame from the script: similar like this "no suitable destination airport found"?

Has anybody an advice for me?

@gonzo: my whole script is attached... others are functionally.

rat.lua

Gruß / Greetings

Corsi

Link to comment
Share on other sites

Any log for the RAT lua file ?

 

I cant find way the Moose and the RAT file not load to the missions over Syria map

[sIGPIC][/sIGPIC]

 

IAF Bell205

IAF Anafa

 

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

DCS World Modules: A-10C, FC3, MiG-21BiS, F-86, P-51, KA-50, UH-1H Huey, Mi-8, M2000K, Gazal, Bf109, Mig-15, Hawk and NTTR

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

My System - ASUS Maximus HERO iiiv, CoolMaster 120 Sadion Plus, I7 -6700K @4.0, G.Skill ddr4 16GB ram, Gigabyte GTX 1070 G1 , PSU Seasonic X-650W, OCZ 150 500Gb ssd drive X2, Seagate 7200 1T X2.

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

Link to comment
Share on other sites

c17_2.outbound:SetDestination("RAT Zone A")

c17_2.outbound:SetMaxDistance(350)

 

to solve my problem... the Destination Zone must be in range... so set maxdistance to higher value, it works... but error message is pretty confusing. :-)

 

and... i use RAT on Syria... it is functional...

Gruß / Greetings

Corsi

Link to comment
Share on other sites

  • 1 month later...

Please help. How to force planes to fly from one air zone to another and despawn in middle air?

 

[b][b]RAT:DestinationZone()[/b][/b]


Destinations are treated as zones.

Aircraft will not land but rather be despawned when they reach a random point in the zone.

 

 

local yak=RAT:New("RAT_YAK")

-- Set takeoff type to air.
yak:SetTakeoff("air")

yak:SetDeparture({"RAT Zone West", "RAT Zone South"})

yak:DestinationZone("RAT Zone North")

-- Spawn ten Yak-40s.
yak:Spawn(10)

 

Planes not reaching the destination zones but land at random airports.

 

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