Jump to content

Recommended Posts

Posted (edited)

Inspired by BB.'s race script, I created this cross-country version.

The course doesn't have to be a lap, but can run from one place to another.

The script keeps track of anyone flying inside the course, and also checks for missed gates, flying the wrong way, etc.

 

The course is set up using a series of large trigger zones to create a corridor in which players are detected as race participants, and a series of small trigger zones to make up the gates.

All gates must be inside the corridor, otherwise the script can't keep time correctly.

 

To use the script, you will need to define three triggers in your mission:

1. At mission start, (no condition), do script --> enter parameters

2. Once, Time more than 1, do script file "mist_4_3_73.lua"

3. Once, Time more than 2, do script file "CrossCountryRace.lua"

 

See the attached screenshots for details.

 

Current features:

- Keep time for all individual aircraft in course

- Show intermediate times for all individual aircraft in course

- Show player with fastest time

- Compare intermediate and total time to fastest time

- Top-10 of fastest players

 

Planned features (wishlist):

- Maximum course altitude

- Maximum altitude per gate

- Distinguish between clients and AI (currently AI is also registered as airrace participant)

 

Please let me know if you find any bugs or other problems with this script.

 

[edit]

 

Finally had time to update the script, it is now compatible with DCS World 1.5.4 and uses mist 4.3.73.

I updated the script and the test mission in the attachments.

Screen_140203_232214.thumb.jpg.67dbd0870b2f21c0227c95236605586c.jpg

Screen_140203_232251.thumb.jpg.8a879dc5c040a9f92dc4112e9fa7fe58.jpg

Screen_140203_232322.thumb.jpg.3198794fb94395a7076945d36630355b.jpg

Screen_140203_232333.thumb.jpg.4fc9f8025fda9d31be4a0c1d3679a63f.jpg

Screen_140203_232458.thumb.jpg.cc6c1d620d0f61b9f45450a0d067156c.jpg

Screen_140203_233913.thumb.jpg.f657cb6babdefc12eb1ea9abcc6390c1.jpg

CrossCountryRace.lua

Race Test.miz

Edited by Joe Kurr
  • Like 1
Dutch Flanker Display Team | LLTM 2010 Tiger Spirit Award
  • 1 year later...
Posted

is there any way you know of to display the current race time on screen , but not the scrolling debug list you have now, just something neat and tidy up in the corner, kind of like the fps counter?

 

thx

My kit: i7-4790K@4GHz / 8GB - GTX 980ti + rift CV1 - X52 pro - Multi Keyboard Remapper - 2DOF motion sim (in development)

  • 3 weeks later...
Posted

nothing really fancy, but you can use outText with clearview set to true. It will supress any other message, but will stay in the top-right corner, as far as I have understood the concept. If you only wanna display a racetimer that should work fine!

  • 8 months later...
Posted

I have finally had time to update the script.

It will now only show the text in the top-right corner of the screen.

Also, it can cope with larger numbers of gates (tested with 29 gates).

 

Please see the opening post to download the updated script and test mission.

 

Enjoy!

Dutch Flanker Display Team | LLTM 2010 Tiger Spirit Award
  • 1 month later...
  • 3 years later...
Posted (edited)

Hi guys! ( of course those who are still alive))))

 

I upgraded this script for the rules of Red Bull Air Race and Yak-52 aircraft:

And so, what came of it:

- the track is built on regular pylons (no additional mods except the actual module Yak-52 is not required)

- there is a time counter

- - there is a check for the passage of the gate in height (both horizontal and single pilots) no higher than 25 m

- there is a check for the passage of horizontal gates on the roll, no more than 10 degrees.

- there is a speed check when passing the starting gate, no more than 300 km / h

- well, of course there is a check for the Downing of pylons

 

 

penalties:

+2 seconds for non-horizontal passage of the gate

+2 seconds for exceeding the height

+3 seconds for a downed pylon

DNF (did not finish) speeding at the starting gate

DNF (did not finish) three of the downed pylons

Edited by avrora74
  • 1 month later...
  • 1 month later...
Posted (edited)

I focused my efforts and launched the championship of Russian Virtual Aviation Races (ViRAG)...

 

script now knows almost everything that is necessary for Red Bull racing

 

final of the first stage of the championship

 

 

https://discord.gg/utUmKSr

 

 

Edited by avrora74
  • 5 months later...
Posted

Hi, I'm a noob when it comes to scripting, but I've got Basman's script working well on an air race.  I have 2 issues I'm hoping someone can help with.

 

1.  If a player crashes, and respawns, they are still listed as being in the race area, and cannot reinitialise the start of the race.

 

2.  I'm using comms towers, and if pilots crash into them, they can get destroyed.  Is there a way to make all the comms towers immortal?

TIA.

i7 10700k @4.8GHz | Aurora GTX 3080 | Samsung NVMe m.2 970 Pro 1Tb x 3 | Corsair 64GB DDR4 3200MHz

HP Reverb G2 | Vkb Gunfighter II MCG Pro Stick | Virpil T-50CM Throttle | MFG Crosswind Pedals | Custom built collective | 150 button custom cockpit with 3 x Cougar MFDs

  • 1 year later...
Posted

Reopening an old post. But I cannot get this script running properly. 

The error I'm encountering is that when passed the 1st gate the timer starts then all other gates are not recognised, calling missed gates on all following gates. I'm using the script directly from your github and am using the standard show cones as Pylons and oblong Gates labelled correctly as per instructions on your github. I can't see what issue I'm missing here but it's getting frustrating! 

 

Kind regards 

Joe Couzens-Howard 

  • 4 months later...
Posted (edited)
On 5/17/2022 at 9:31 PM, RedBear311 said:

Reopening an old post. But I cannot get this script running properly. 

The error I'm encountering is that when passed the 1st gate the timer starts then all other gates are not recognised, calling missed gates on all following gates. I'm using the script directly from your github and am using the standard show cones as Pylons and oblong Gates labelled correctly as per instructions on your github. I can't see what issue I'm missing here but it's getting frustrating! 

 

Kind regards 

Joe Couzens-Howard 

I dont know if its me but aswell, i fly in the Race Zone #001 and subsequently Gate #001 nothing starts

 

Edit: The Github one with AirRace3.lua works for me

Edited by BuxtonHouse
  • Thanks 1
  • 3 months later...
  • 1 year later...
  • 3 months later...
Posted (edited)

I fixed a bug and Joe Kurr implemented it. I also found the sound fix to play for indvidual units rather than sounds to all.

My updates work using the latest MIST.

I also added another feature. It’s a low Alt bonus. You pass in a set of gates to apply the bonus to and you set the altitude (in meter agl)that has to be flown under. For example if you have a gate on a bridge, you can set the bonus alt to the height of the bridge and if the player makes the gate and goes under the bridge they get a 5 second bonus.

Edited by Freediver72
  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...