xcom Posted May 19, 2015 Posted May 19, 2015 Hi all, I've been working recently on this script which works side by side with a specific mission. The way this script works is - 1. It checks for zones. (Zone name example - 1vs1_modern) 2. It checks for correspondent units. (Group name example - 1vs1_modern_GUNS) 3. It runs an automated start up sequence of a dogfight - a. Wait for all members of dogfight for 30 seconds. (if not all join in that time, any that are active will be thrown back to the menu). b. Run 10 seconds for dogfight start. c. After winner is declared, wait 30 seconds to make sure winner is still alive and log the results. 4. log the results to 2 external CSV files, one file for match overview, 2nd file for match events information. example can be seen in this WIP page - http://89.163.173.82/DCS/AoS/AOS.php (you can drill down by clicking on the table record to see further details about the match). This script is still in the last testing phase, although most of it is working flawlessly. Using this script and statistics that can be shown in the link above, we are planning to open a dogfight league. It has detailed logging into the dcs.log file for example - 02010.401 INFO SCRIPTING: [zoneManager][2vs2_modern1] ZONE COUNTDOWN RUNNING - WAITING FOR ALL PLAYERS 02010.401 INFO SCRIPTING: [zoneManager][2vs2_modern1] All necessary players are flying, zone is turned on. 02010.402 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY TO START 10 SECONDS COUNT 02010.402 INFO SCRIPTING: [zoneManager][2vs2_modern1] CALL zoneManager for dogfight start 02011.396 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY - TIMER: 9 02012.392 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY - TIMER: 8 02013.389 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY - TIMER: 7 02014.383 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY - TIMER: 6 02015.378 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY - TIMER: 5 02016.378 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY - TIMER: 4 02017.374 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY - TIMER: 3 02018.374 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY - TIMER: 2 02019.404 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY - TIMER: 1 02020.400 INFO SCRIPTING: [zoneManager][2vs2_modern1] DOGFIGHT READY - TIMER: 0 02020.400 INFO SCRIPTING: [zoneManager][2vs2_modern1] Updating AOS stats table. 02020.400 INFO SCRIPTING: [zoneManager][2vs2_modern1] CALL dogfightManager - TIMER: 0 This project has gone a bit larger then I anticipated and therefore it is quite complicated to explain all the procedures and processes that are on going in the script, hopefully the logging and some of the remarks and comments in the script itself will be enough for good understanding. This script requires to: 1. Sanitize - io,lfs,os. 2. Create a folder named AceOfSpades in your - Saved Games\DCS folder. Features: 1. Detailed logging. 2. Exports statistics. 3. Saves information table for future use in case of server crash. (AceOfSpades.lua in root DCS folder). Still needs to be tweaked. 4. Has a built in system for dogfight server management. Download: https://www.dropbox.com/s/t4llesqxrpg7uv4/Dogfight_ZonesV6.lua?dl=0 Changes and Additions are welcome :) [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Recommended Posts