This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arma2:missions:html_briefing_to_sqf [2011-07-01 12:36] snakeman created html_briefing_to_sqf initial page. |
arma2:missions:html_briefing_to_sqf [2014-06-04 15:38] (current) snakeman added updated info. |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Convert ArmA briefing.html to ArmA 2 briefing.sqf ====== | + | ====== Convert OFP / ArmA briefing.html to ArmA 2 briefing.sqf ====== |
- | Convert ArmA briefing.html to ArmA 2 briefing.sqf script file. | + | Convert OFP / ArmA briefing.html to ArmA 2 briefing.sqf script file. |
Use Powergrep to do the initial converting the html code to ArmA 2 compatible sqf script. With delimited regular expressions use this: | Use Powergrep to do the initial converting the html code to ArmA 2 compatible sqf script. With delimited regular expressions use this: | ||
<code> | <code> | ||
- | <a href="marker:===<marker name=' | + | <a href="marker:(.*?)">(.*?)</a>===<marker name = '\1'>\2</marker> |
- | ">==='> | + | |
- | </a>===</marker> | + | |
</code> | </code> | ||
Line 26: | Line 24: | ||
With that change your markers are compatible. Next you need to manually copy paste the relevant text from the html into your new sqf script, yes there is no automated one click method to magically convert a briefing, some manual work is required. | With that change your markers are compatible. Next you need to manually copy paste the relevant text from the html into your new sqf script, yes there is no automated one click method to magically convert a briefing, some manual work is required. | ||
+ | |||
+ | **Update:** | ||
+ | |||
+ | First run [[https://github.com/firefly2442/ArmaBriefingConversion|Firefly's briefing.html to briefing.sqf python script]] | ||
+ | |||
+ | Then use PowerGrep delimited regular expressions search and replace lines for the new briefing.sqf files you created: | ||
+ | <code html> | ||
+ | <a href="#MySection">War Situation</a>===War Situation | ||
+ | <h2>=== | ||
+ | </h2>=== | ||
+ | <h6>=== | ||
+ | </h6>=== | ||
+ | <p>=== | ||
+ | </p>=== | ||
+ | <br>===<br/> | ||
+ | </br>===<br/> | ||
+ | <hr>=== | ||
+ | </hr>=== | ||
+ | <b>=== | ||
+ | </b>=== | ||
+ | </a>=== | ||
+ | <a href="marker:(.*?)">(.*?)</a>===<marker name = '\1'>\2</marker> | ||
+ | <a name="MySection">=== | ||
+ | <a href="#plan">Back to plan</a>=== | ||
+ | </code> | ||
+ | Please note that the MySection and plan are unique searches in our case, your mission briefings may be different. |