Is there a Java API for reading BMS campaign (CAM) files?
-
My flight group is heavily restricting the inventory in a new campaign and we want to share the used and available stores for a number of different squadrons after every event. While I can find this information using Mission Commander, it is time consuming and manual. I have Java experience and have no doubt that I could extract the information I am looking for if I had an API to access the campaign file.
If there is no Java API, is there any documentation on the structure of BMS campaign files so that I might try to create my own custom extraction tool to get the inventory levels of stores for specific squadrons in a format that I want to work with? It looks like a structured and organized binary file, but without having a roadmap, it is hard to determine what the different values are. Mission Commander obviously solved this problem, so it can be done.
Thanks for any ideas!
-
Yes…look for pmc tactical with google…there you will find how to parse cam and te files.
-
Awesome, thanks! The detail I was looking for is at http://pmc.editing.wiki/doku.php?id=falcon4:file_formats:cam_trn_tac
-
Awesome, thanks! The detail I was looking for is at http://pmc.editing.wiki/doku.php?id=falcon4:file_formats:cam_trn_tac
Warning: I have been implementing this in Clojure, and some of the information there is incorrect with respect to the latest formats. I have found both Lightning’s Tools (http://svn.assembla.com/svn/lightningstools/trunk/) and the Freefalcon source (https://github.com/FreeFalcon/freefalcon-central) to be helpful. You may find my code (https://github.com/candera/weathergen/blob/vmti-spike/src/weathergen/falcon/files.cljc) to be helpful as well.
I have found this task to be really quite difficult. The basics of parsing a campaign file aren’t too bad, but beyond that there seem to be a lot of details to understand, and accurate documentation is difficult to come by. I’m still totally a beginner, but hit me up here if there’s anything I can help with. I’ll be looking for a fair amount of help myself.