How can I add briefing to my custom scenario?

Ask, comment, read.
korkikorkota
Second Lieutenant
Posts: 6
Joined: Wed Apr 22, 2020 7:02 pm

How can I add briefing to my custom scenario?

Unread postby korkikorkota » Tue May 12, 2020 6:35 pm

I made a scenario in the editor but can't figure out how to add briefing. Can anyone help?

Aloalo
2x2 Games
Posts: 250
Joined: Mon Oct 21, 2019 9:08 am

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

Unread postby Aloalo » Thu May 14, 2020 12:07 pm

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