Jump to content

[MOOSE] RAT - Random Air Traffic


Recommended Posts

11 hours ago, Rudel_chw said:

 

I tried it today .. works fine, but you have to be careful with big aircrafts as there are not many parking spots for them.

My problem is that didn´t work. I use RAT in all my other maps (NTTR, Caucasus, Syria, PG) but didn´t work on SA map. Going to try again to see if i can understand why didn´t work.

Neverthelees, all i need to know that it works.

@Rudel_chw thank you very much for your help/reply.

Best regards from Portugal,

F.

 - "Don't be John Wayne in the Break if you´re going to be Jerry Lewis on the Ball".

About carrier ops: "The younger pilots are still quite capable of holding their heads forward against the forces. The older ones have been doing this too long and know better; sore necks make for poor sleep.'

 

PC: I7 4790K 4.6ghz | 32GB RAM | Zotac GTX 1080Ti 11Gb DDR5x | Water cooler NZXT AIO Kraken x53 | 3.5TB (x4 SSD´s) | Valve Index| Andre´s JeatSeat.

Link to comment
Share on other sites

17 minutes ago, fagulha said:

My problem is that didn´t work. I use RAT in all my other maps (NTTR, Caucasus, Syria, PG) but didn´t work on SA map. Going to try again to see if i can understand why didn´t work.

 

Here you can see that it does indeed work:

 

Eduardo.

  • Like 1

 

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 3600X - 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 comment
Share on other sites

3 hours ago, Rudel_chw said:

 

Here you can see that it does indeed work:

 

Eduardo.

Eduardo when you said it works i believed you 🙂

You´re one user that i always praise your opinion.

If don´t be too much trouble to you but can you send me that simple mission so i can compare with mine to check what i´m doing wrong please?

 

Thank you once again,

Bruno.

EDIT 1: i only get it to work with moose 2.5.0, and albeit my script have  c130:Spawn(3)  only one is spawned. Going to further testing.

EDIT 2: got it to work with latest moose 2.7.10, i just deleted the triggers etc load everything again, changed script for a new one and for the moment it seems it is working. Still can´t find what was the issue... Thank you.


Edited by fagulha

 - "Don't be John Wayne in the Break if you´re going to be Jerry Lewis on the Ball".

About carrier ops: "The younger pilots are still quite capable of holding their heads forward against the forces. The older ones have been doing this too long and know better; sore necks make for poor sleep.'

 

PC: I7 4790K 4.6ghz | 32GB RAM | Zotac GTX 1080Ti 11Gb DDR5x | Water cooler NZXT AIO Kraken x53 | 3.5TB (x4 SSD´s) | Valve Index| Andre´s JeatSeat.

Link to comment
Share on other sites

5 hours ago, fagulha said:

If don´t be too much trouble to you but can you send me that simple mission so i can compare with mine to check what i´m doing wrong please?

 

Is this one:

https://1drv.ms/u/s!Ai6cuX3YQI26iN9jKogrYmVIKRiPfQ?e=FO2Fmo

 

the first few triggers are the ones that deal with RAT ..  you will need the Pucara Mod in order to load the mission, get it here: https://github.com/PucaraPastrana/PucaraDCS/releases/tag/v0.12b

 

 

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 3600X - 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 comment
Share on other sites

Just now, Rudel_chw said:

 

Is this one:

https://1drv.ms/u/s!Ai6cuX3YQI26iN9jKogrYmVIKRiPfQ?e=FO2Fmo

 

the first few triggers are the ones that deal with RAT ..  you will need the Pucara Mod in order to load the mission, get it here: https://github.com/PucaraPastrana/PucaraDCS/releases/tag/v0.12b

 

Muito obrigado Eduardo.

 

Going to compare with my missions.

 

Bruno.

  • Like 1

 - "Don't be John Wayne in the Break if you´re going to be Jerry Lewis on the Ball".

About carrier ops: "The younger pilots are still quite capable of holding their heads forward against the forces. The older ones have been doing this too long and know better; sore necks make for poor sleep.'

 

PC: I7 4790K 4.6ghz | 32GB RAM | Zotac GTX 1080Ti 11Gb DDR5x | Water cooler NZXT AIO Kraken x53 | 3.5TB (x4 SSD´s) | Valve Index| Andre´s JeatSeat.

Link to comment
Share on other sites

Hello!

Could anybody take a look at this script. I can't get any aircraft to spawn.

Liveries--
local a320skins={"Aeroflot 1", "Air Berlin OLT", "Air France", "Air Moldova", "American Airlines", "British Airways", "Emirates", "Fly Georgia", "SWISS", "Lufthansa New"}



local a320=RAT:New("RAT_A320")
a320:Livery(a320skins)
a320:SetSpawnDelay(20)
a320:SetSpawnInterval(0.5)
a320:Uncontrolled()
a320:ActivateUncontrolled(5, 30, 30, 0.5)
a320:ContinueJourney()
a320:Spawn(5)



local a330=RAT:New("RAT_A330")
a330:Livery(a330skins)
a330:SetSpawnDelay(25)
a330:SetSpawnInterval(0.5)
a330:Uncontrolled()
a330:ActivateUncontrolled(5, 30, 30, 0.5)
a330:ContinueJourney()
a330:Spawn(5)



local dc10=RAT:New("RAT_DC10")
dc10:Livery(dc10skins)
dc10:SetSpawnDelay(30)
dc10:SetSpawnInterval(0.5)
dc10:Uncontrolled()
dc10:ActivateUncontrolled(5, 30, 30, 0.5)
dc10:ContinueJourney()
dc10:Spawn(5)

local b727=RAT:New("RAT_727")
b727:Livery(a330skins)
b727:SetSpawnDelay(35)
b727:SetSpawnInterval(0.5)
b727:Uncontrolled()
b727:ActivateUncontrolled(5, 30, 30, 0.5)
b727:ContinueJourney()
b727:Spawn(5)



local b737=RAT:New("RAT_737")
b737:Livery(a330skins)
b737:SetSpawnDelay(40)
b737:SetSpawnInterval(0.5)
b737:Uncontrolled()
b737:ActivateUncontrolled(5, 30, 30, 0.5)
b737:ContinueJourney()
b737:Spawn(5)



local b757=RAT:New("RAT_757")
b757:Livery(a330skins)
b757:SetSpawnDelay(45)
b757:SetSpawnInterval(0.5)
b757:Uncontrolled()
b757:ActivateUncontrolled(5, 30, 30, 0.5)
b757:ContinueJourney()
b757:Spawn(5)

 

Link to comment
Share on other sites

I'm not an expert, but except the missing livery definitions (you only defined the a320skins, but not the others) I can't see any syntax error.

Can you upload your sample mission containing the RAT script, please? Maybe there is an issue with the triggers.

[Modules] A-10C, A-10C II, AH-64D, F-14A/B, F-16C, F/A-18C, FC3, Ka-50, P-51D, UH-1H, CA, SC
[Maps] PG, NTTR, Normandy, Sinai, Syria, TC

[OS] Windows 11 Pro
[PC] MSI Pro Z790-A, i9-13900K, 64 GB DDR5-5200, RTX 4090 24 GB GDDR6X, 2 x SSD 990 PRO 2 TB (M.2), Corsair 5000D Airflow, HX1500i, H150i RGB Elite, Acer X28, TM HOTAS Warthog (Grip@WarBRD Base), MS SW FFB2, Thrustmaster TFRP, TrackIR 5 & TrackClip Pro
[Checklists] A-10C, F-16C, F/A-18C, AH-64D, Ka-50, UH-1H

Link to comment
Share on other sites

5 hours ago, AstonMartinDBS said:

I'm not an expert, but except the missing livery definitions (you only defined the a320skins, but not the others) I can't see any syntax error.

Can you upload your sample mission containing the RAT script, please? Maybe there is an issue with the triggers.

Here's the mission file. I've tried setting the triggers to mission start and once with time more at different settings. Oh, and its using CAM.

Operation Caucasus (Winter Clear).miz


Edited by Zyberdash
Link to comment
Share on other sites

1 hour ago, Zyberdash said:

Oh, and its using CAM.

...and A-4E-C and Hercules. If you remove those two from the mission, I'll take a look.

[Modules] A-10C, A-10C II, AH-64D, F-14A/B, F-16C, F/A-18C, FC3, Ka-50, P-51D, UH-1H, CA, SC
[Maps] PG, NTTR, Normandy, Sinai, Syria, TC

[OS] Windows 11 Pro
[PC] MSI Pro Z790-A, i9-13900K, 64 GB DDR5-5200, RTX 4090 24 GB GDDR6X, 2 x SSD 990 PRO 2 TB (M.2), Corsair 5000D Airflow, HX1500i, H150i RGB Elite, Acer X28, TM HOTAS Warthog (Grip@WarBRD Base), MS SW FFB2, Thrustmaster TFRP, TrackIR 5 & TrackClip Pro
[Checklists] A-10C, F-16C, F/A-18C, AH-64D, Ka-50, UH-1H

Link to comment
Share on other sites

3 hours ago, Zyberdash said:

Here's the mission file

 

I tried it, but it logs this error message when running your RAT definition lua:

 

"ERROR   SCRIPTING: Mission script error: [string "C:\Users\Eduardo\AppData\Local\Temp\DCS.openbeta\/~mis0000347F...."]:2: '=' expected near 'local'"

 

However, I don't see anything wrong on your RAT definition, perhaps a user more versed with lua can distinguish what is the issue here.

  • Thanks 1

 

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 3600X - 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 comment
Share on other sites

  • 5 weeks later...
On 10/3/2017 at 3:28 PM, funkyfranky said:

 

 

Step 1:

First, you need to download the Moose.lua file from the MOOSE github page. This contains the RAT class. Here is also the direct link to the Moose.lua version 2.3.1.

 

Step 2:

 

 

Open the DCS mission editor and:

 

  • Add an aircraft of your choice. In this example I use a Yak-40 as template group.
  • Rename the group to "RAT_YAK".
  • Check the "LATE ACTIVATION" tick box.

 

 

Repeat similar steps as in Step 4 to include the "RAT Script.lua":

  • Add a second trigger: TYPE=ONCE, EVENT=MISSION START.
  • Add a new action for this trigger: ACTION=DO SCRIPT FILE.
  • Click on OPEN and load the "RAT Script.lua" file you created in step 3.

 

 

 

Hi! i made all this and nothing happened

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

3 hours ago, UN9249 said:

i made all this and nothing happened

Upload your mission and we can check for errors, please.

[Modules] A-10C, A-10C II, AH-64D, F-14A/B, F-16C, F/A-18C, FC3, Ka-50, P-51D, UH-1H, CA, SC
[Maps] PG, NTTR, Normandy, Sinai, Syria, TC

[OS] Windows 11 Pro
[PC] MSI Pro Z790-A, i9-13900K, 64 GB DDR5-5200, RTX 4090 24 GB GDDR6X, 2 x SSD 990 PRO 2 TB (M.2), Corsair 5000D Airflow, HX1500i, H150i RGB Elite, Acer X28, TM HOTAS Warthog (Grip@WarBRD Base), MS SW FFB2, Thrustmaster TFRP, TrackIR 5 & TrackClip Pro
[Checklists] A-10C, F-16C, F/A-18C, AH-64D, Ka-50, UH-1H

Link to comment
Share on other sites

57 minutes ago, AstonMartinDBS said:

Upload your mission and we can check for errors, please.

finally i was able to start traffic. (trigger should start on noevent), not on mission start.)

rat yak is ok. (like it was on example), but rat_il - not starting.

 

 

 

omg. am so dumb. sorry i edited wrong ratscriptlia and forget to put it in mission😪

2.miz

 

RATScript.lua


Edited by UN9249

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

3 hours ago, UN9249 said:

sorry i edited wrong ratscriptlia and forget to put it in mission😪

So you've solved your problem, right?

If not, here's the working mission: RAT_UN9249.miz

You can extract the script from the mission file, if you open it with 7-Zip for example.

[Modules] A-10C, A-10C II, AH-64D, F-14A/B, F-16C, F/A-18C, FC3, Ka-50, P-51D, UH-1H, CA, SC
[Maps] PG, NTTR, Normandy, Sinai, Syria, TC

[OS] Windows 11 Pro
[PC] MSI Pro Z790-A, i9-13900K, 64 GB DDR5-5200, RTX 4090 24 GB GDDR6X, 2 x SSD 990 PRO 2 TB (M.2), Corsair 5000D Airflow, HX1500i, H150i RGB Elite, Acer X28, TM HOTAS Warthog (Grip@WarBRD Base), MS SW FFB2, Thrustmaster TFRP, TrackIR 5 & TrackClip Pro
[Checklists] A-10C, F-16C, F/A-18C, AH-64D, Ka-50, UH-1H

Link to comment
Share on other sites

  • 2 months later...

Hi,

 

Does anyone tried to use the PseudoATC function? tried with no joy.

 

Thank you in advance.

 - "Don't be John Wayne in the Break if you´re going to be Jerry Lewis on the Ball".

About carrier ops: "The younger pilots are still quite capable of holding their heads forward against the forces. The older ones have been doing this too long and know better; sore necks make for poor sleep.'

 

PC: I7 4790K 4.6ghz | 32GB RAM | Zotac GTX 1080Ti 11Gb DDR5x | Water cooler NZXT AIO Kraken x53 | 3.5TB (x4 SSD´s) | Valve Index| Andre´s JeatSeat.

Link to comment
Share on other sites

  • 2 months later...
  • 6 months later...

Is it possible to assign oil & gas rigs as departure & destination points using the RAT class? I could swear I did it a couple of years ago, but don't remember how and can't seem to get it working now.

 

And I will execute vengeance in anger and fury upon the heathen, such as they have not heard.

                                                                                                                 Micah 5:15

Link to comment
Share on other sites

3 hours ago, rwbishUP said:

Is it possible to assign oil & gas rigs as departure & destination points using the RAT class? I could swear I did it a couple of years ago, but don't remember how and can't seem to get it working now.


yes, it is possible:

 

 


here, @funkyfranky helped me with this and provided the necessary info:

 

 

 

  • Thanks 1

 

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 3600X - 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 comment
Share on other sites

  • 3 weeks later...
12 hours ago, buur said:

@OzCougar check your line 92. You have a capital C where a small one is needed. Always check your log for errors.

@buur .... DOH!!!! Amazing how 1 little thing can mess everything up.

I did actually check the log but didn't see this error listed. Not sure why .... but fixed and all good.

Many thanks ..... Cheers 😎


Edited by OzCougar
  • Like 1
Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

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