Sea Power

Sea Power

Not enough ratings
How to Set Up Mission Breifing
By Schizo
Teaches how to properly add a Briefing in Mission Editor.
   
Award
Favorite
Favorited
Unfavorite
Introduction
In this guide you will learn how to properly add a briefing to your Scenario in the Mission Editor, enabling you to create detailed briefings!
Adding Briefing Text
1.
To start, type out your briefing on a separate page or window (Note Pad etc.) This will allow you to easily modify the text so it appears correctly in the Briefing Pane.

2.
Go to SteamLibrary/Steamapps/common/Sea Power/Sea Power_Data/Streaming Assets/user/missions/ and create a new folder named Mission_Example_Briefing you can replace "Mission_Example" With whatever the name of your mission is (you should also see an .ini file in the missions folder, this is the actual mission itself, keep this outside the new _briefing folder) Keep the _briefing at the end of the folder name.

3.
Once that is done and the briefing is complete, it's time to add it into the Scenario. Click on the "Mission Briefing" Tab in the Mission editor. Click "Pick Assets Folder" and choose the Mission_Example_Briefing folder that was just created in step 2. Next, enable the "Expert Mode" Check boxes for both the Left and Right Panes.

4.
On the Left Pane is where your text will go, to begin with, copy and paste your briefing text into the Left Pane with Expert Mode enabled, then click "Update Left Pane"

5.
As you can see, the text doesn't appear correctly, XAML code is used to ensure it appears properly in the Pane.

6.
Start by adding
<TextBlock>
at the very top of your briefing, and
</TextBlock>
at the very bottom of your briefing in the original Note Pad or other text editor from earlier. (See Image)

If the briefing is cutting off, Identify at what word / point. To insert a return or enter, you must add a
<LineBreak/>
underneath the section where you want to put a Break in the text editor. See the image as an example of this.



All lines after <TextBlock> should be indented with a space until the </TextBlock> at the very bottom. (Like a sandwich)

7.
After this is done, copy and paste the newly coded text into to the Mission Briefing Left Pane, then click "Update Left Pane" to ensure it appears correctly in the Preview. If it doesn't, continue adjusting as needed with
<LineBreak/>

8.
Save the Mission in the Mission Editor.
Adding Briefing Image
Adding a Briefing image is slightly more complex than text, however still simple.

1.
Go to your previously created _briefing folder at SteamLibrary/Steamapps/Common/Sea Power/Sea Power_Data/StreamingAssets/user/missions/Mission_Example_Briefing

2.
Inside this folder, add your briefing image, you should also see the Left Pane .xml file for your text. Currently the only readable file formats for images are .bmp .png and .jpg - If your file isn't in one of these format's it cannot be read and will not appear, you can easily use an online file converter if this is a problem.

3.
In the Mission Editor: In the Right Pane, add:
<Image Source="{Binding Assets[FILENAME]}" />
Replace FILENAME with the exact name of your briefing image, otherwise this code will not read your image and add it. Click Update Right Pane, you should see your image appear. After this is finished, Save the mission in the mission editor.

4.
Go to SteamLibrary/Steamapps/Common/Sea Power/Sea Power_Data/StreamingAssets/user/missions/ and double click on the mission.ini file, this may also be named _Custom Mission.ini or what ever you named your Scenario. You should see your Scenario description near the top. Hit enter, and add the following below it:
MissionBriefingAssetsDirectory=missions/Mission_Example_Briefing/briefingimage_briefing MissionBriefingAssetsSearchPattern=*.png,*.jpg,*.bmp MissionBriefingLeftPane=missions/Mission_Example_Briefing/LeftPane_en.xml MissionBriefingRightPane=missions/Mission_Example_Briefing/RightPane_en.xml
Change Mission_Example_Briefing with the name of the folder you created. Change briefingimage_briefing with the name of your briefing image. Make sure to save the .ini file after this has been added. Keep in mind, if you ever change the location of the briefing folder, this path will need to be modified accordingly.


5.
Click Update right pane, you should now see your image. If it doesn't appear, double check the code from step 3 is correct, that all of the code for the image matches its exact name, and that your image is one of the supported file formats.
Appendix
Let me know if you need any help in the comments! Thank you to TheHappyYachter from Trassic Games for providing the necessary code.
5 Comments
Schizo  [author] 24 Nov @ 3:01pm 
@Sierra182 ChatGPT can also help you make Larger / Smaller fonts, different colours, or anything that is possible with XAML code! Simply ask ChatGPT to put it in XAML format, however it doesn't always get it right.
BobTheGoblin 24 Nov @ 12:33am 
@Schizo Thank you, I'll try that. I only have a victory trigger, so maybe that's the issue.
Sierra182 23 Nov @ 9:39pm 
Wonderful thank you very much, was able to have chatgpt help me with an EUCOM report for a mission i'm building and your guide help me load it all into the editor so thank you for that mate.
Schizo  [author] 23 Nov @ 12:38pm 
@BobTheGoblin No, This will only affect the Briefing Screen. To change mission objectives completed / incomplete, I believe you need to use triggers. (non victory triggers)
BobTheGoblin 23 Nov @ 11:57am 
Does anything in the Mission Briefing affect the mission objectives? I created a Briefing and it displays at the start properly, but once my victory trigger fired, the AAR had "Objectives Incomplete" for the Mission Outcome. Thanks! Very nice instructions, extremely helpful!