Jump to content

Recommended Posts

Yeah the traffic I generate from the stennis works just fine (actually it didn't didn't work with an f14 I tried it just got stuck on the cat) but the 18's work great they just never fly back to the carrier they always fly from and to airbases after they've left the carrier.

Link to post
Share on other sites
  • Replies 607
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

I've done the exact same thing and had fun setting up the mission and leveraging the RAT functionality (thanks @funkyfranky)  One bookmark I use quite a bit is this one for MOOSE.  The documentation i

Hi guys,   I have been working on a new implementation - simply named RAT - to generate random air traffic. This is something I was missing a lot in many of my missions :)   So what is RAT about? R

Hello,   The actual script that is inside the mission isn't the one you show above .. .it is this one:   local yak=RAT:New("RAT_YAK") yak:Spawn(5)   When you edit a scr

I may just be having a brain fart but what would I add or change from this code to make the b727 be part of Switzerland and the neutral Coalition so the Russians don't shoot down the passenger jets?

 

Thanks in advance.

 

Martin

 

local b727=RAT:New("B727")

b727:SetMinDistance(15)

b727:Livery(b727skins)

b727:SetCoalitionAircraft("blue")

b727:SetCoalition("Sameonly")

b727:SetDeparture({"Anapa-Vityazevo", "Beslan", "Gudauta", "Kobuleti", "Krasnodar-Center", "Krasnodar-Pashkovsky", "Krymsk", "Kutaisi", "Maykop-Khanskaya", "Mineralnye Vody", "Mozdok", "Nalchik", "Novorossiysk", "Senaki-Kolkhi", "Sochi-Adler", "Soganlug", "Sukhumi-Babushara", "Tbilisi-Lochini", "Vaziani", "ASIA", "MIDEAST", "EUROPE", "RUSSIA"})

b727:SetDestination({"Anapa-Vityazevo", "Beslan", "Gudauta", "Kobuleti", "Krasnodar-Center", "Krasnodar-Pashkovsky", "Krymsk", "Kutaisi", "Maykop-Khanskaya", "Mineralnye Vody", "Mozdok", "Nalchik", "Novorossiysk", "Senaki-Kolkhi", "Sochi-Adler", "Soganlug", "Sukhumi-Babushara", "Tbilisi-Lochini", "Vaziani", "ASIA", "MIDEAST", "EUROPE", "RUSSIA"})

b727:SetTerminalType(AIRBASE.TerminalType.OpenBig)

b727:TimeDestroyInactive(60)

--b727:SetFLmin(220)

--b727:SetFLcruise(250)

b727:SetFLmax(350)

b727:SetTakeoffHot()

b727:Spawn(3)

Link to post
Share on other sites

b727:SetCoalitionAircraft("neutral")

b727:SetCountry(country.id.SWITZERLAND)

 

And delete:

 

b727:SetCoalition("Sameonly")


Edited by Rudel_chw

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia GTX1070ti - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar - Oculus Rift CV1

Mobile: iPad Pro 12.9" of 256 GB

Link to post
Share on other sites
  • 2 weeks later...

Hi,

 

Thanks for all the great advice everyone.

 

I'm trying to get random skins to work, well randomly.

 

I can get them to work randomly if I use a line as such:

local B747skins={"AI", "CP", "KLM", "LH", "NW", "PA", "QA"}

 

But what I want is the script to choose from all skins in the liveries without having to type them all in as in the line above.

 

At the moment it just seems to pick whatever is chosen in ME.

 

What I have at the moment is this:

 

-- RAT Object

local yak=RAT:New("RAT_Yak")

local b737=RAT:New("RAT_B-737")

local b747=RAT:New("RAT_B-747")

local c17a=RAT:New("RAT_C-17A")

local an26b=RAT:New("RAT_An-26B")

 

-- Liveries

yak:Livery(yakskins)

b737:Livery(b747skins)

b747:Livery(b747skins)

c17a:Livery(b747skins)

an26b:Livery(b747skins)

 

-- Spawn

yak:Spawn(3)

b737:Spawn(3)

b747:Spawn(3)

c17a:Spawn(3)

an26b:Spawn(3)


Edited by Helles Belle

[sIGPIC][/sIGPIC]

https://hbdcs.tumblr.com/

 

Windows 10 Home 64-bit | CPU: AMD Ryzen 5 1600 | RAM: Corsair 32.0GB Dual-Channel | MOBO: MSI B350 Tomahawk | GPU: 2047MB NVIDIA GeForce GTX 1060 6GB | SSD: Samsung SSD 860 EVO 2TB & Samsung SSD 970 EVO Plus 1TB for Gaming

 

CH Fightersick - Pro Throttle - Pro Pedals | Thrustmaster MFD Cougar x 3 | Buddy Fox A-10C UFC

Link to post
Share on other sites

This is copied from Discord stickies, Frank already made a master list for CAM.

-- Liveries CAM v0.80

B727skins={"AEROFLOT", "Air France", "Alaska", "Alitalia", "American Airlines", "Clean", "Delta Airlines", "Delta Airlines OLD", "Hapag Lloyd", "Lufthansa", "Lufthansa Oberhausen Old", "Northwest", "Pan Am", "Singapore Airlines", "Southwest", "UNITED", "UNITED Old", "ZERO G"}

B737skins={"Air Algerie", "Air Berlin", "Air France", "airBaltic", "Airzena", "AM", "American_Airlines", "British Airways", "C40s", "Clean", "Disney", "EA", "easyjet", "FINNAIR", "HARIBO", "JA", "Jet2", "kulula", "LH", "Lufthansa BA", "Lufthansa KR", "OLD_BA", "OMAN AIR", "PAN AM", "Polskie Linie Lotnicze LOT", "QANTAS", "RYANAIR", "SouthWest Lone Star", "ThomsonFly", "TNT", "Ukraine Airlines", "UPS"}

B747skins={"AF", "AF-One", "AI", "CP", "IM", "KLM", "LH", "NW", "PA", "QA", "TA"}

B757skins={"AA", "BA", "C-32", "Delta", "DHL", "easyJet", "Swiss", "Thomson"}

A320skins={"Aeroflot", "Aeroflot 1", "Air Asia", "Air Berlin", "Air Berlin FFO", "Air Berin OLT", "Air France", "Air Moldova", "Airbug Neo", "Al Maha", "Alitalia", "American Airlines", "British Airlines", "Cebu Pacific", "Clean", "Condor", "Delta Airlines", "Easy Jet", "Easy Jet Berlin", "Easy Jet w", "Edelweiss", "Emirates", "Etihad", "Eurowings", "Eurowings BVB09", "Eurowings Europa Park", "Fly Georgia", "Fly Niki", "Frontier", "German Wings", "Gulf Air", "Iberia", "Iran Air", "Jet Blue NY", "JetBlue", "jetBlue FDNY", "Kish Air", "Kuweit Airways", "Lufthansa", "Lufthansa New", "MEA", "Qatar", "S7", "SAS", "Saudi Gulf", "Saudia", "Small Planet", "Star Alliance", "SWISS", "Thomas Cook", "Tunis Air", "Turkish Airlines", "United", "Ural Airlines", "US Airways", "Vietnam Airlines", "Virgin", "WiZZ", "WiZZ Budapest", "WOW"}

A380skins={"Air France", "BA", "China Southern", "Clean", "Emirates", "KA", "LH", "LHF", "Qantas Airways", "QTR", "SA", "TA"}

Cessnaskins={"Blank", "D-EKVW", "HellenicAF", "Muster", "N9672H", "SEagle_blue", "SEagle_red", "USAF-Academy", "V5-BUG", "VH-JGA"}

 

Although if you want regional only or variation you still need to set Livery per spawn using the line in your RAT object like this, to limit, the script will not and should not randomly pick liveries without being told to otherwise you would lose control and people would get mad:

 

a380s:Livery({"Emirates", "China Southern", "BA", "KA"})


Edited by Pikey

___________________________________________________________________________

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

Link to post
Share on other sites

Thanks pikey,

 

I've resorted to using something like what you've got above (just not all liveries)

 

Slowly educating myself on lua scripting and getting more in depth with it.

 

Thanks for all the hard work?

[sIGPIC][/sIGPIC]

https://hbdcs.tumblr.com/

 

Windows 10 Home 64-bit | CPU: AMD Ryzen 5 1600 | RAM: Corsair 32.0GB Dual-Channel | MOBO: MSI B350 Tomahawk | GPU: 2047MB NVIDIA GeForce GTX 1060 6GB | SSD: Samsung SSD 860 EVO 2TB & Samsung SSD 970 EVO Plus 1TB for Gaming

 

CH Fightersick - Pro Throttle - Pro Pedals | Thrustmaster MFD Cougar x 3 | Buddy Fox A-10C UFC

Link to post
Share on other sites
yes i want to know how to do this

 

 

Use the :SetDeparture and :SetDestination statements, where you explicitly designate which airbases to use.

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia GTX1070ti - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar - Oculus Rift CV1

Mobile: iPad Pro 12.9" of 256 GB

Link to post
Share on other sites
Use the :SetDeparture and :SetDestination statements, where you explicitly designate which airbases to use.

Well yeah, exactly, if one is running a script where RAT is using things you dont want it to, then, 'untell' to use those in the same way as you told it to, but in reverse...

___________________________________________________________________________

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

Link to post
Share on other sites

Using RAT to spawn bad guys is no problem but I'm trying to spawn them every 5-10 minutes. I can't find it. I'm sure this is simple and the answer is on here somewhere but a little nudge in the right direction would be greatly appreciated!

Link to post
Share on other sites
  • 4 weeks later...

Hi Guys, hope someone can help out here.

Just updated my stable version of DCS to 2.5.6 and Moose R.A.T to 2.5.0, all of my training missions that I have set up are all void of Random Air Traffic. None of my existing lus'a load, I can't even get a simple 3 line lua to work on a brand new mission, I reverted back to R.A.T 2.4.13 but still the same.

 

My usual process after any update of DCS, Clean Up, Repair, delete FXO & Metashaders 2

Also I have reopened missions in the editor, tweaked and resaved, checked triggers and resaved.

 

Is it something really easy I'm missing here?

 

Much appreciated.

Modules NOT currently in my hanger

 

Yak 52/F-14 Tomcat/CE II/Mig-19/I-16/FW-A-8/JF-17/Supercarrier

 

 

 

My system:

 

 

MSI Z97 Gaming 5 mobo

3.5 GHz Intel Core i5 4690k

H100i CPU Cooler

16 GB 1866 MHz DDR3 Hyper X Fury Red

MSI GTX980ti GPU

EVGA 850W PSU

Samsung EVO 850 500GB SSD

128gb Plextor M.2 storage (Boot Drive)

Windows 10 X64 Professional

Acer XB281HK G-sync monitor

Trackir 5

MFG Crosswind pedals

T M Warthog Hotas

 

Link to post
Share on other sites
Hi Guys, hope someone can help out here.

Just updated my stable version of DCS to 2.5.6 and Moose R.A.T to 2.5.0, all of my training missions that I have set up are all void of Random Air Traffic. None of my existing lus'a load, I can't even get a simple 3 line lua to work on a brand new mission, I reverted back to R.A.T 2.4.13 but still the same.

My usual process after any update of DCS, Clean Up, Repair, delete FXO & Metashaders 2

Also I have reopened missions in the editor, tweaked and resaved, checked triggers and resaved.

Is it something really easy I'm missing here?

Much appreciated.

 

any news on that matter? same here, CAM RAT demo instant missions also not showing any traffic...

Link to post
Share on other sites

It seems that neutral units can only spawn or land on neutral airfields. One would have expected that they'd be able to use all of them, since blue and red can use neutral fields.

 

Would be nice to let neutral aircraft land at any coalition, at least as an option.

Link to post
Share on other sites
Hi Guys, hope someone can help out here.

Just updated my stable version of DCS to 2.5.6 and Moose R.A.T to 2.5.0, all of my training missions that I have set up are all void of Random Air Traffic. None of my existing lus'a load, I can't even get a simple 3 line lua to work on a brand new mission, I reverted back to R.A.T 2.4.13 but still the same.

 

My usual process after any update of DCS, Clean Up, Repair, delete FXO & Metashaders 2

Also I have reopened missions in the editor, tweaked and resaved, checked triggers and resaved.

 

Is it something really easy I'm missing here?

 

Much appreciated.

 

in case you are still looking for an answer, it is here

https://forums.eagle.ru/showpost.php?p=4215291&postcount=1922

 

apparently the fix doesn't solve the problem for the NTTR map

Link to post
Share on other sites
in case you are still looking for an answer, it is here

https://forums.eagle.ru/showpost.php?p=4215291&postcount=1922

 

apparently the fix doesn't solve the problem for the NTTR map

 

Thanks HILOK, but this didn't work for me, a simple 3 line lua:

 

local yak=RAT:New("RAT_YAK")

 

yak:SetDeparture("Nalchik")

yak:Spawn(5)

 

I'm not that experienced with scripting, but I have had a lot more than this working in the past, Hope it worked for you.

NewShark Trainer.miz

Modules NOT currently in my hanger

 

Yak 52/F-14 Tomcat/CE II/Mig-19/I-16/FW-A-8/JF-17/Supercarrier

 

 

 

My system:

 

 

MSI Z97 Gaming 5 mobo

3.5 GHz Intel Core i5 4690k

H100i CPU Cooler

16 GB 1866 MHz DDR3 Hyper X Fury Red

MSI GTX980ti GPU

EVGA 850W PSU

Samsung EVO 850 500GB SSD

128gb Plextor M.2 storage (Boot Drive)

Windows 10 X64 Professional

Acer XB281HK G-sync monitor

Trackir 5

MFG Crosswind pedals

T M Warthog Hotas

 

Link to post
Share on other sites
Thanks HILOK, but this didn't work for me, a simple 3 line lua:

local yak=RAT:New("RAT_YAK")

yak:SetDeparture("Nalchik")

yak:Spawn(5)

I'm not that experienced with scripting, but I have had a lot more than this working in the past, Hope it worked for you.

 

nope! looked very promising though, hence my post, but unfortunately no luck so far...

Link to post
Share on other sites

Is it something really easy I'm missing here?

I tried you mission and Moose and your script are not loading. You have set up a trigger type "ONCE" on event "ON MISSION START". Looks like that is not working.

 

Use "TYPE: 4 MISSION START" as trigger for both loading Moose and the script and it works.

NewShark Trainer.miz

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

i7-8700K | Asus RTX 2080Ti Strix OC | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 960 Pro SSD | VKB Gunfighter Pro | MFG Crosswind | Rift S

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

Link to post
Share on other sites
I tried you mission and Moose and your script are not loading. You have set up a trigger type "ONCE" on event "ON MISSION START". Looks like that is not working.

 

Use "TYPE: 4 MISSION START" as trigger for both loading Moose and the script and it works.

 

thank you so much, funkyfranky! that did it for me : )

i only do this every once in a while, and just followed the instructions in the OP, where it recommends using the once trigger...

 

thanks

hilok

Link to post
Share on other sites

RAT Object is not respawing after being destroyed (by RAT script itself) for being idle in ground for too long, in my case after getting damaged while trying to park in a used by static parking spot.

 

I don't know if this is intended that way. If it is, maybe add a setting command to force respawn instead of destroy object in case of getting stuck on ground for too long.

 

(I tried the RAT:RespawnAfterCrashON(), but it won't respawn the object after it gets destroyed by RAT)

Link to post
Share on other sites

 

Use "TYPE: 4 MISSION START" as trigger for both loading Moose and the script and it works.

 

Thanks funkyfranky, back on track again, as HILOK said, small change has been made. Love learning this programming, albeit at a very slow pace.

Modules NOT currently in my hanger

 

Yak 52/F-14 Tomcat/CE II/Mig-19/I-16/FW-A-8/JF-17/Supercarrier

 

 

 

My system:

 

 

MSI Z97 Gaming 5 mobo

3.5 GHz Intel Core i5 4690k

H100i CPU Cooler

16 GB 1866 MHz DDR3 Hyper X Fury Red

MSI GTX980ti GPU

EVGA 850W PSU

Samsung EVO 850 500GB SSD

128gb Plextor M.2 storage (Boot Drive)

Windows 10 X64 Professional

Acer XB281HK G-sync monitor

Trackir 5

MFG Crosswind pedals

T M Warthog Hotas

 

Link to post
Share on other sites
  • 3 weeks later...

is there any any way to have working routes with this script? Can't find the answer.

 

I know about "Air traffic implementation attempt" by Zubetto, will try it later.

I seen some functions in doc but nothing seems to work for me. Could someone point me in the right direction please?

Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...