Jump to content

[MOOSE] RAT - Random Air Traffic


Recommended Posts

No, you are right, and probably that was also my thinking when I first implemented it. But having a commute between to points would also be possible with the new implementation. You would just need to define exactly one departure and one destination. And if you want a random departure and destination you would need to select the single departure and destination randomly before. So nothing would be lost. However, I'll give the SetHome() option another thought :)

 

Ok, yeah, that makes sense. Add functionality to Commute() as opposed to making a whole new function. Though, have to admit, I like the sound of SetHome() lol. Could maybe be used for future use-

 

SetHome("Kabuleti", 3)

SetDestination("Random")

SetDeparture("Random")

 

End result? Plane takes off, flies to three airports, the returns to Kabuleti. Good for C130, UH-1, doing simulated cargo runs ;) I realize actual cargo/mission runs have other actual functions, ways of doing it, just making a fake one for immersion lol only a thought off the top for eye candy

 

Don't know. But AI is not easy to implement and I think it was not on top of their prio list because of PG and Hornet. They improved the taxiing behavior quite a bit meanwhile. That's a good step in the right direction. Hopefully we see more like this.

 

Fare statement ;) as annoyed as well all get with ED, at the end of the day, they really do have a pretty awesome product, even with the issues

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

This has to be a DCS bug/issue (don't think I'd really call it a "bug").

 

I built two sets of air craft. One group is two F18's, the other, 2 F14A's.

 

Both are set to spawn on the Carl. There are PLENTY of parking spaces for them. However, when one set spawns, the other will not. Ever.

 

I've noticed that when they spawn on the Carl, all aircraft, jet's and helicopters alike, always spawn on the cat's, never in the parking spots. But, if they happen to spawn on the Stennis, they'll spawn on the elevators/parking spots, then move to the cat's.

 

Now, if I put a SECOND Stennis in, and assign them to it, one group will pop up next to the tower, the other by catch wires. The 1st plane in the group next the catch wires goes buggy as all get out and just starts moving in a giant circle, getting bigger and bigger until it's off the map, moving at speeds closer to something in Star Trek.

 

I REALLY need to learn how to capture a track/video of this.....

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

Hello, i am tinkering with RAT, i started on caucaus and everything was going very well.

But on Gulf map the planes are spawning always at the end of the runway, so they are stuck in there :( .

BTW helicopters are working fine.

 

I am using nearly the same code that i was using on nevada and caucasus.

Planes are starting cold, by a ratmanager.

i sat the frequency, coalitiononly and the radio frequency.

 

Is there any issue going on in gulf map or it is just something wrong in my setup?

 

I am using 2.3.1 but same stuff is happening in 2.3.0

200m butterflier inside :harhar:

 

MERLO forever

Link to comment
Share on other sites

Grrr what am I doing wrong? I get the correct planes spawning randomly but they all have the same Livery. I do have all the civilian liverys downloaded and am able to use them manually in the mission editor but I can not get rat to randomly assign them when the plans spawn.

 

 

Is there something wrong with my code?

local 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"}
local B737=RAT:New("RAT_B737")
B737:Livery(B737skins)
B737:Spawn(5)

Link to comment
Share on other sites

Is there any issue going on in gulf map or it is just something wrong in my setup?

Spawning on runway usually happens, when an aircraft is too big for the specific airport and has not parking spot there. In Caucasus and NTTR this is checked but not yet on the PG map. I'm working on it :)

For now, make sure that you don't spawn too big AC on small airbases. You can check in the mission editor. Drag the AC at the airport and enable "start from ramp". If the AC stays at the airport it has a parking spot there. If it automatically jumps to another airport, it is too big.

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

Is there something wrong with my code?

No, your code looks fine. Send me the mission file and I take a look.

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

funkyfranky - No question here. Just wanted to say thanks. For the RAT mod, for your help (along with FlightControls!). You guys are ROCKING it! Thanks a million!

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

I cant seem to get this working with the Neutral Coalition is there something that need to be done? or is it just not supported yet?

You mean the new DCS feature? If so, I have not looked into it. What are you trying to do?

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

Just trying to get the Civil traffic to be on neither side, for a PvP mission. Everything works fine when it's on a side, but when swapped to neutral, it stops working

 

Sample of your code? Things work fine for me regardless of side

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

Sample of your code? Things work fine for me regardless of side

 

I am using the sample mission RAT-001 - Basic, changing the coalition to any neutral country causes the aircraft to stop spawning.

 

All aircraft from any country in the red coalition work, All aircraft from any country in the blue coalition work, all neutral country & aircraft combinations fail to spawn.

 

So I think it's fair to look at the neutral coalition as the culprit

 

Also understand that this is a 100% test option that hasn't even been officially released, so don't worry if there are issues.


Edited by Foogle
Link to comment
Share on other sites

Sorry, nothing I tried worked either. I could have SWORN I had loaded some White when I was testing for Blue and Red, but now I cant' get it to work, and I was sloppy, instead of saving incrementally, I kept over writing, so if I did get it to work, I have no idea how at this point. I'll keep trying

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

Neutral Coalition

 

Guys, I just checked out the new neutral coalition feature. It actually does work, but needs some special settings.

 

So first, you have to take a template group which is either red or blue. White/neutral does not work as of now because neutral units are not yet registered in the MOOSE database (will be added soon I guess).

 

Divide the countries into blue/red/neutral when you create a new mission. Pick one country which you defined to be neutral.

 

Here I assume you picked Switzerland to be neutral.

 

The use the following code

 local yak40=RAT:New("RAT_YAK", "Yak-40 Neutral")
 yak40:SetDeparture("Batumi")
[b]  yak40:SetCoalitionAircraft("neutral")
 yak40:SetCountry(country.id.SWITZERLAND)[/b]
 yak:Spawn(1)

 

country.id is an enumerator see here.

 

Note that I cannot see the aircraft on the F10 map. Even when I enter as a neutral GameMaster. But they spawn :)

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

Funky to the save again ;)

B. "Swany" Swanberg

Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0)

32GB Patriot Viper Steel (black, non-RGB)

OS installed on a Samsung Evo 970 1TB SSD

DCS installed on a Samsun Evo 860 1TB SSD

EVGA 2080Ti 11GB

EVGA Supernova 720p 750w PS

3 Dell S2716DG monitors in Surround mode (7680x1440)

Oculus Rift S VR

Thrustmaster Warthog Throttle and Stick

Thrusmaster Rudder Pedals

assorted button boxes/Arduino boards

All drivers always kept up to date (30 days old, max)

Link to comment
Share on other sites

Guys, I just checked out the new neutral coalition feature. It actually does work, but needs some special settings.

 

So first, you have to take a template group which is either red or blue. White/neutral does not work as of now because neutral units are not yet registered in the MOOSE database (will be added soon I guess).

 

Divide the countries into blue/red/neutral when you create a new mission. Pick one country which you defined to be neutral.

 

Here I assume you picked Switzerland to be neutral.

 

The use the following code

 local yak40=RAT:New("RAT_YAK", "Yak-40 Neutral")
 yak40:SetDeparture("Batumi")
[b]  yak40:SetCoalitionAircraft("neutral")
 yak40:SetCountry(country.id.SWITZERLAND)[/b]
 yak:Spawn(1)

 

country.id is an enumerator see here.

 

Note that I cannot see the aircraft on the F10 map. Even when I enter as a neutral GameMaster. But they spawn :)

 

Awesome! Thanks for the help!

Link to comment
Share on other sites

  • 3 weeks later...

i'm having a bit of a problem using RAT, and i'm not sure what the issue is...

i'm trying to spawn 2 seperate groups of aircraft from different airfields, but nothing seems to be happening, it works fine with only 1 group though?

 

local c17=RAT:New("RAT_C-17")

local an30=RAT:New("RAT_AN-30")

 

c17:SetDeparture("Beslan")

c17:SetDestination("Mozdok")

c17:RespawnAfterLanding(45)

c17:Commute()

c17:Spawn(3)

 

an30:SetDeparture("Mineralnye Vody")

an30:SetDestination("Nalchik")

an30:RespawnAfterLanding(45)

an30:Commute()

an30:Spawn(3)

Link to comment
Share on other sites

i'm having a bit of a problem using RAT, and i'm not sure what the issue is...

i'm trying to spawn 2 seperate groups of aircraft from different airfields, but nothing seems to be happening, it works fine with only 1 group though?

 

local c17=RAT:New("RAT_C-17")

local an30=RAT:New("RAT_AN-30")

 

c17:SetDeparture("Beslan")

c17:SetDestination("Mozdok")

c17:RespawnAfterLanding(45)

c17:Commute()

c17:Spawn(3)

 

an30:SetDeparture("Mineralnye Vody")

an30:SetDestination("Nalchik")

an30:RespawnAfterLanding(45)

an30:Commute()

an30:Spawn(3)

 

I'm using multiple different groups on my server from several time without any issue.

 

local yak=RAT:New("RAT_Yak")
yak:Spawn(5)
local an26=RAT:New("RAT_An26B")
an26:Spawn(2)>

And so on.....

 

try to re-arrange your code and keep all the "group" chained like:

 

local c17=RAT:New("RAT_C-17")
c17:SetDeparture("Beslan")
c17:SetDestination("Mozdok")
c17:RespawnAfterLanding(45)
c17:Commute()
c17:Spawn(3)

local an30=RAT:New("RAT_AN-30")
an30:SetDeparture("Mineralnye Vody")
an30:SetDestination("Nalchik")
an30:RespawnAfterLanding(45)
an30:Commute()
an30:Spawn(3)

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Link to comment
Share on other sites

i'm having a bit of a problem using RAT, and i'm not sure what the issue is...

i'm trying to spawn 2 seperate groups of aircraft from different airfields, but nothing seems to be happening,

Your code looks fine at first glance. Can you attach a mission miz file so I can have a look?

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

  • 3 weeks later...

Hi funkyfranky!

 

First, thank you for your amazing work!

 

When can we expect the Hormuz map to be supported?

 

I tried my first RAT there today:

 

local A380=RAT:New("RAT_A380")

A380:Spawn(1)

 

And it kept spawning planes, didn´t remove stuck ones, didn´t respawn landed ones and was not really working at all :/

 

Same script on Caucasus:

Everything works excellent :)

 

 

And i have a feature question / request ( I could not find anything in the documentation :( ):

 

Is there a way to get moving triggerzones spawned with the airplanes?

 

Let´s say i want to do an intercept:

 

As a player approaches the Plane and enters the trigger, he gets radio commands like:

Report ID

Contact Pilot (on 121.5)

Force to land (On the nearest possible Airport?)

etc. whatever

 

The Radio stuff can be done in the Mission editor, but i could not get a triggerzone to apply to the spawned Plane :/

 

If you are going to realize that, i will help you as a beta tester ;)

 

Kind regards

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