Joe Kurr Posted February 3, 2014 Posted February 3, 2014 (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.CrossCountryRace.luaRace Test.miz Edited September 28, 2016 by Joe Kurr 1 Dutch Flanker Display Team | LLTM 2010 Tiger Spirit Award
RagnarDa Posted February 6, 2014 Posted February 6, 2014 Good job! Added to the list here http://forums.eagle.ru/showthread.php?p=1964602#post1964602 Don't hesitate to send me a note when you post a script, it gets very quickly swallowed in all the posts on these forums. DCS AJS37 HACKERMAN There will always be bugs. If everything is a priority nothing is.
steve2112 Posted January 7, 2016 Posted January 7, 2016 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)
0xDEADBEEF Posted January 25, 2016 Posted January 25, 2016 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!
Joe Kurr Posted September 28, 2016 Author Posted September 28, 2016 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
Pikey Posted November 25, 2016 Posted November 25, 2016 Tried this recently, the scripts in the mission and the script supplied seperate are diffferent which could be confusing for people. Not sure how to solve the flickering on the screen at the start and shortly after each gate. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
avrora74 Posted May 4, 2020 Posted May 4, 2020 (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 August 14, 2020 by avrora74
basman Posted June 15, 2020 Posted June 15, 2020 (edited) AirRaceScript on github In the hope to focus our efforts in improving the script further, I've put it on github: https://github.com/basman/DCSAirRaceScript Edited June 15, 2020 by basman
avrora74 Posted August 14, 2020 Posted August 14, 2020 (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 August 20, 2020 by avrora74
Midnight Posted August 14, 2020 Posted August 14, 2020 Hi there Avrora...looks great, do you have an updated script available? My interest is more a cross country nav exercise.
avrora74 Posted August 14, 2020 Posted August 14, 2020 link ready missions, I think figure out how to get a script from them... https://forums.eagle.ru/showpost.php?p=4450131&postcount=29
Midnight Posted August 15, 2020 Posted August 15, 2020 link ready missions, I think figure out how to get a script from them... https://forums.eagle.ru/showpost.php?p=4450131&postcount=29 Much appreciated..thank you.
Burnie Posted February 9, 2021 Posted February 9, 2021 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
RedBear311 Posted May 17, 2022 Posted May 17, 2022 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
BuxtonHouse Posted October 5, 2022 Posted October 5, 2022 (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 October 5, 2022 by BuxtonHouse 1
hancerPL Posted February 4, 2023 Posted February 4, 2023 I have the same, the script does not start after passing the first gate. Specialization A-10C https://vbw304.pl/
Penfold-88 Posted November 24, 2024 Posted November 24, 2024 exaclty what i was looking for but have the same error as everyone above
Freediver72 Posted March 19 Posted March 19 (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 March 19 by Freediver72 1
Recommended Posts