Author: firefly2442
Author Website: https://github.com/firefly2442

Requirements: Python 2.7

Version: 1.1

Short description: This program batch upconverts old OFP and Arma style missions to the new briefing system used in Arma 2.

Date: 2014-06-09 09:13


Comments: (0)
Rating:



 







Arma Mission Briefing Conversion

by
firefly2442


Description:
This program batch upconverts old OFP and Arma style missions to the new briefing system used in Arma2. It parses the briefing.html file and pulls out the appropriate sections and creates a briefing.sqf file. Debriefing is still kept and saved to a new briefing.html file. An init.sqf is also created and the briefing.sqf file is set to execVM.


Installation / Usage:
This program will process ALL missions in the folder you specify. It's recursive so this means all folders, subfolders, etc.
Edit run.py and make any changes you wish to html_tag_remove, html_tag_find, and html_tag_replace. An attempt is made to try to find these in the briefing.html file.
Open a commandline terminal and change directory to the location of ArmaBriefingConversion. Then type the following:
python run.py /full_path_to_missions_folder/ /empty_folder_for_converted_missions/
I would recommend using full paths as opposed to relative.
The folder for where you will be saving the converted missions must be empty.

I'm not responsible for lost missions or issues. Make backups! You have been warned.

This program will process ALL missions in the folder you specify. It's recursive so this means all folders, subfolders, etc.


Known issues:
If this doesn't work for your mission:
"I'm not surprised... the briefing HTML is difficult to parse. The program relies heavily on regular expressions. Many missions were created with incorrect or poorly formatted HTML. If you have suggestions for how to improve the program, fork it on Github and submit a pull request with the change."


[size=1]Credits & Thanks:[/size]
Thanks to "Snake Man" for testing.


Changelog:
v1.1
- Made a couple of tweaks and improvements. Should be able to run on more missions now without failing.


Forum topic:
- BI forums



- Python 2.7 or greater




Enable javascript to be able to download from Armaholic please!



Tags: Briefing,   Conversion