Briefing

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
Petcat
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 148
Joined: Sat Nov 06, 2010 10:10 pm
Location: Ye Middle Lands, UK

Briefing

Post by Petcat » Tue Aug 09, 2016 9:39 pm

I've tried looking on the forum and on the wiki but I can't find any documentation on the briefing animation of arrows and captions before the battle.
Is there something I've missed?

pipfromslitherine
Site Admin
Site Admin
Posts: 9248
Joined: Wed Mar 23, 2005 10:35 pm

Re: Briefing

Post by pipfromslitherine » Tue Aug 09, 2016 10:35 pm

IIRC you need a UI file named as <scenario>_map.txt in the DATA/UI/ folder of your campaign. They are standard UI files which are built with animations in to show the various arrows etc.

Best bet is to check out the existing files, e.g. in Bagration etc, as these show off how it is done.

Cheers

Pip
follow me on Twitter here

Petcat
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 148
Joined: Sat Nov 06, 2010 10:10 pm
Location: Ye Middle Lands, UK

Re: Briefing

Post by Petcat » Thu Aug 11, 2016 11:51 am

Thanks
Just the trick.

Petcat
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 148
Joined: Sat Nov 06, 2010 10:10 pm
Location: Ye Middle Lands, UK

Re: Briefing

Post by Petcat » Thu Aug 11, 2016 7:55 pm

When setting up a skirmish, I seem to have broken the briefing.
Probably due to the new nation added, is there another file I could alter and look at that sets up briefings for skirmish games.
Screen_00000042.jpg
Screen_00000042.jpg (150.59 KiB) Viewed 3015 times

pipfromslitherine
Site Admin
Site Admin
Posts: 9248
Joined: Wed Mar 23, 2005 10:35 pm

Re: Briefing

Post by pipfromslitherine » Thu Aug 11, 2016 10:36 pm

There is a skirmish_map.txt file in DATA/UI. I have a (very vague) recollection this is used for skirmishes, so you should in theory be able to over-ride it in your custom campaign.

Cheers

Pip
follow me on Twitter here

pipfromslitherine
Site Admin
Site Admin
Posts: 9248
Joined: Wed Mar 23, 2005 10:35 pm

Re: Briefing

Post by pipfromslitherine » Thu Aug 11, 2016 10:42 pm

Further to this, note you can include a BRIEFING_CALLBACK function in your scenario script, which is expected to call the SetBriefingScreen function to fill in the animation, string ID for the name of the mission, etc. At least, that's what the code says!

Cheers

Pip
follow me on Twitter here

Petcat
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 148
Joined: Sat Nov 06, 2010 10:10 pm
Location: Ye Middle Lands, UK

Re: Briefing

Post by Petcat » Fri Aug 12, 2016 9:50 am

Changing the side 7 to 8 in the skirmish map got it working.
What is the file stores the string for the text?
Screen_00000043.jpg
Screen_00000043.jpg (148.68 KiB) Viewed 3005 times

pipfromslitherine
Site Admin
Site Admin
Posts: 9248
Joined: Wed Mar 23, 2005 10:35 pm

Re: Briefing

Post by pipfromslitherine » Fri Aug 12, 2016 4:00 pm

OK, I had to go digging a bit. The briefing screen stuff is set up in MapGenerate2.bsf (around line 296) in DATA/BATTLE/SCRIPTS. If needed you should be able to copy and tweak this file in your custom campaign.

Effectively, you need strings of the form IDS_<constructed_name>_SKIRMISHMAP_TEXT0 (for example) these map to the skirmishmap_text0 text control in the UI (as per the usual UI rules for text substitution). So currently the script builds a constructed_name from the type and sides (e.g. ATTACK1v7) and this is used for both the text setup and the animation that it plays when the briefing pops up.

Cheers

Pip
follow me on Twitter here

Petcat
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 148
Joined: Sat Nov 06, 2010 10:10 pm
Location: Ye Middle Lands, UK

Re: Briefing

Post by Petcat » Mon Aug 29, 2016 1:42 pm

Cheers, fixed it.

Post Reply

Return to “Battle Academy 2: Modders Corner”