User Tools

Site Tools


arma2:missions:html_briefing_to_sqf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arma2:missions:html_briefing_to_sqf [2013/06/24 05:27] – real regex config added. snakemanarma2:missions:html_briefing_to_sqf [2024/08/01 21:24] (current) – links added. snakeman
Line 1: Line 1:
 ====== Convert OFP / ArmA briefing.html to ArmA 2 briefing.sqf ====== ====== Convert OFP / ArmA briefing.html to ArmA 2 briefing.sqf ======
 +
 +[[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]]
  
 Convert OFP / ArmA briefing.html to ArmA 2 briefing.sqf script file. Convert OFP / ArmA briefing.html to ArmA 2 briefing.sqf script file.
Line 24: Line 26:
  
 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.
 +
arma2/missions/html_briefing_to_sqf.1372051626.txt.gz · Last modified: 2013/06/24 05:27 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.