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: 149
Joined: Sat Nov 06, 2010 10:10 pm

Briefing

Post by Petcat »

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: 9702
Joined: Wed Mar 23, 2005 10:35 pm

Re: Briefing

Post by pipfromslitherine »

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: 149
Joined: Sat Nov 06, 2010 10:10 pm

Re: Briefing

Post by Petcat »

Thanks
Just the trick.
Petcat
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 149
Joined: Sat Nov 06, 2010 10:10 pm

Re: Briefing

Post by Petcat »

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 4576 times
pipfromslitherine
Site Admin
Site Admin
Posts: 9702
Joined: Wed Mar 23, 2005 10:35 pm

Re: Briefing

Post by pipfromslitherine »

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: 9702
Joined: Wed Mar 23, 2005 10:35 pm

Re: Briefing

Post by pipfromslitherine »

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: 149
Joined: Sat Nov 06, 2010 10:10 pm

Re: Briefing

Post by Petcat »

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 4566 times
pipfromslitherine
Site Admin
Site Admin
Posts: 9702
Joined: Wed Mar 23, 2005 10:35 pm

Re: Briefing

Post by pipfromslitherine »

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: 149
Joined: Sat Nov 06, 2010 10:10 pm

Re: Briefing

Post by Petcat »

Cheers, fixed it.
Post Reply

Return to “Battle Academy 2: Modders Corner”