Page 1 of 1

How can I add briefing to my custom scenario?

Posted: Tue May 12, 2020 6:35 pm
by korkikorkota
I made a scenario in the editor but can't figure out how to add briefing. Can anyone help?

Re: How can I add briefing to my custom scenario?

Posted: Thu May 14, 2020 12:07 pm
by Aloalo
Hi!

In %localappdata%\.uoc2\_packages you'll find your scenario's directory.
I don't know what's the name of your scenario directory, so I'll call it "test", replace this with the correct name.

To add briefing text do the following:
  • open %localappdata%\.uoc2\_packages\test\data\scenarios\test.usc\scenarios\test\locale.yml
  • add some string ids for the situation and dispatch fields, e.g. id_test_situation and id_test_dispatch
  • open %localappdata%\.uoc2\_packages\test\localization\eng\test_strings.yml
  • add the string ids you added in the locale.yml file here and write the briefing text

Example locale.yml

Code: Select all

date: ''
designer_notes: ''
dispatch: id_test_dispatch
scenario_name: ''
situation: id_test_situation


Example test_strings.yml

Code: Select all

id_test_situation: This is the text that will appear in the situation briefing section
id_test_dispatch: This is the text that will appear in the dispatch briefing section