![]() |
black box in-flight data recorder
3 Attachment(s)
Howdy all
Figured I would post my 'black box' script and corresponding mission file. It is a basic flight test data recorder, nothing fancy, nothing new just took a few different examples and put them into one script file. I made if for those who are into testing, but might not be into C# programing. The script does two things; one it displays to the screen (HUD) the time, heading, altitude, speed, and air temp, and two it logs this data to a csv file on the root of your C drive called 'FLIGHT_TEST_DATA.CSV'. If ya have MS EXCEL you can open er up and do all sorts of stuff with it. Here is the script code Code:
//-$debug Code:
[PARTS] C:\Users\<YOUR NAME HERE>\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Single Than from the FMB open the 'black_box.mis' file and select 'Play Mission'! When yer done, goto the root of your C drive and there you will find the 'FLIGHT_TEST_DATA.CSV'. Note after each run, you should rename this file, because each time you run the mission it just keeps adding to (append) this file Also keep in mind parr.. The HUD display and log file have some tumble weed looking values while the plane is on the ground, once she gets up in the blue the values seem to be fine, Also note the ROC value in the script is the indicated value, that is to say it is the value used to drive the cockpit gauges. Now on the spit, the gauge has a max of 4000fpm, and thus the indicated value is limited to that value, even though the ROC is higher than that. When I tested a 109E4 the ROC value was stuck at zero.. So there are some issues, but, there are other values you can use for ROC, but I have not had enough time to ponder over them to figure out them thar units yet. That's all I can recollect fer now, try er out and let me know what ya think. That's about it parr, good luck! Oh, if yah are lazy like me, below is an attached zip file you can dl that has all the above code and an example track |
Thanks for sharing. I think it might be useful.
I followed all the instructions but I do not get it to work. I have opened a new window of information and I have added all possible data, but no data appears from the script and dont create the CSV file at end of flight. Any help, please? |
Quote:
Quote:
Quote:
Code:
1) unzip the attached zip file (black_box.zip) into your '\missions\Single' folder. Let me know how far ya get in those steps, than we can talk more PS note in step one you have two options as to where to unzip the files 1) the dir where the game is installed 2) your USER folder note below the bold USER, on your PC you will see your log in 'USER' name Below are the two 'typical' paths, either one should work, but I typically use the USER path C:\Users\<USER>\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Single C:\Program Files\Steam\SteamApps\common\il-2 sturmovik cliffs of dover\missions\Single Oh one more thing, that attached zip also has a track file in it (black_box.trk), you can delete it or move it to the \records folder assuming you want watch it at some point |
Thank you for your reply.
It's hard for me to write in English, so I put pictures as answers: Mis and cs files are from your zip file, and unzziped here: http://i103.photobucket.com/albums/m134/vencejo/1-4.jpg and i can open it in full mission builder: http://i103.photobucket.com/albums/m134/vencejo/2-4.jpg Here the script: http://i103.photobucket.com/albums/m134/vencejo/3-3.jpg Here the "new window information" (sorry, literal translation from spanish): http://i103.photobucket.com/albums/m134/vencejo/4-3.jpg And no information from script, with and without "window information": http://i103.photobucket.com/albums/m134/vencejo/5-3.jpg Thinking about the possibilities ... will be possible to include information about acceleration :rolleyes:? Thanks. |
Everything looks correct up to this point..
Quote:
As soon as you start the mission you should see the HUD overlay display as shown in the attached pictures.. If your not seeing that.. than there is a problem with the script.. But to be honest I don't know for sure what it is just yet.. Ill can make a new script.. where we basically comment out some items one by one to see which item is causing the error.. Problem is I wont have much free time until sunday. But I love debugging so, if ya can hang in there till sunday I know we can get it to work! Quote:
|
Sure I can wait until Sunday ... but no more please... :grin:
Seriously, I like to test the aircraft and I think that your script is very useful, so I'll be here as long as needed. Thank you very much for the effort. Quote:
|
Hey partner
I going to re-write the script in a way that will allow you to turn portions of it on and off.. Ill upload them in a bit. I was also thinking of another thing to try right now.. Not 100% sure if you 'need' to do this next step, but it would be very interesting to see if this fixes your problem. You may 'need' to install the FREE Microsoft Visual Studio C# 2010 ESPRESS Again, not 100% sure if you 'need' to, in that I think winXP and win7 comes with the file allready installed but I am not sure. My reasoning a script that only use madox includes wont need this, but, if you start making use of 'other' includes as I have done you might need to install it. Again, give it a try and if it works, we found it, if not, well you can uninstall it. |
You should test the .getParameter(part.ParameterTypes.I_MagneticCompas s, -1); about null value, not every plane has a magnetic compass in game (blenheim for example).
|
Quote:
|
Quote:
Ok, re-worked the script a little bit for ya. See below Code:
//-$debug Code:
//User Control 1st TEST Code:
//User Control Than run the 'black_box.mis'. You should see the HUD but you will not be logging any data.. If you see the HUD, than we have narrowed down our search.. If you don't see the HUD goto next test 2nd TEST Code:
//User Control Than run the 'black_box.mis'. You should NOT see the HUD but you should be logging any data.. Let the mission run for a few min, than exit the game, goto the root of your C:\ drive and open the file called 'BLACK_BOX_DATA.CSV' to see if any data was written to the file.. If you see the data in the file, than we have narrowed down our search.. If you don't see data in the file goto next test 3rd TEST Code:
//User Control Than run the 'black_box.mis'. You should see the HUD and you should be logging any data. Let the mission run for a few min, while it is 'see' if all the HUD values are ZERO (0.0), they should be because we did not 'get' any data thus only the init values are displayed. Than exit the game and goto the root of your C:\ drive and open the file called 'BLACK_BOX_DATA.CSV' to see if any data was written to the file.. All the data should be ZERO (0.00) If you saw all ZEROS in the HUD display and you see all ZEROS in the log file than we have narrowed down our error to a 'get' issue If you didn't see the HUD display and the log file is empty.. Than.. well.. shoot Ill have to ponder it some more! ;l PS before you start each TEST above goto the root of your C:\ drive and delete the file called 'BLACK_BOX_DATA.CSV' if there is one. |
All times are GMT. The time now is 07:39 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.