How can I add briefing to my custom scenario?
-
- Second Lieutenant
- Posts: 6
- Joined: Wed Apr 22, 2020 7:02 pm
How can I add briefing to my custom scenario?
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?
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:
Example locale.yml
Example test_strings.yml
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