Adding boats to the KIAs report?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Adding boats to the KIAs report?

Post by GottaLove88s »

Pip/Andrew, How do I add 'boats' to the Killed in Action report screen?
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: Adding boats to the KIAs report?

Post by Amaris »

I tried to modify the final result of battles with modify the RESULTS.TXT but BA don't like that. :oops:
“Take care, my friend; watch your six, and do one more roll… just for me.”
AndrewGardner
Slitherine
Slitherine
Posts: 535
Joined: Tue Nov 13, 2012 6:24 pm

Re: Adding boats to the KIAs report?

Post by AndrewGardner »

I think you were on the right track, you should be able to supply your own Data/UI/Results.txt to include boats, which is type 5 in the standard terrain file. If you follow the pattern for ResultsType#, ResultsKills#, and ResultsCas# adding another row should work. The type name is in string IDS_SQUADTYPE#, I think BA only has the strings up to wheeled.

As always, there is the potential for a conflict with a future update when overriding a core UI or script, but I don't think this one is particularly likely to be changed in a patch.
Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: Adding boats to the KIAs report?

Post by Amaris »

Very interesting! Thanks I'll check that ;-)
“Take care, my friend; watch your six, and do one more roll… just for me.”
Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

Re: Adding boats to the KIAs report?

Post by Amaris »

It works!

Image

Adds into \data\ui folder the following RESULTS.TXT file:

Code: Select all

[#START]
ANIM PLACE ResultsKills0 0 335 -100 
ANIM MOVE ResultsKills0 0 335 240 12 
ANIM PLACE ResultsKills1 0 335 -100 
ANIM MOVE ResultsKills1 0 335 290 12 
ANIM PLACE ResultsKills2 0 335 -100 
ANIM MOVE ResultsKills2 0 335 340 12 
ANIM PLACE ResultsKills3 0 335 -100 
ANIM MOVE ResultsKills3 0 335 390 12 
ANIM PLACE ResultsKills4 0 335 -100 
ANIM MOVE ResultsKills4 0 335 440 12 
ANIM PLACE ResultsKills5 0 335 -100 
ANIM MOVE ResultsKills5 0 335 490 12 

ANIM PLACE ResultsCas0 0 450 -100
ANIM MOVE ResultsCas0 5 450 240 12 
ANIM PLACE ResultsCas1 0 450 -100
ANIM MOVE ResultsCas1 5 450 290 12 
ANIM PLACE ResultsCas2 0 450 -100
ANIM MOVE ResultsCas2 5 450 340 12 
ANIM PLACE ResultsCas3 0 450 -100
ANIM MOVE ResultsCas3 5 450 390 12 
ANIM PLACE ResultsCas4 0 450 -100
ANIM MOVE ResultsCas4 5 450 440 12
ANIM PLACE ResultsCas5 0 450 -100
ANIM MOVE ResultsCas5 5 450 490 12  

ANIM PLACE ResultsAchStar0 0 -100 555
ANIM PLACE ResultsAchStar1 0 -100 555
ANIM PLACE ResultsAchStar2 0 -100 555
ANIM PLACE ResultsAchStar3 0 -100 555
ANIM PLACE ResultsAchStar4 0 -100 555

ANIM PLACE ResultsAchStar0 20 37 555
ANIM PLACE ResultsAchStar1 25 117 555
ANIM PLACE ResultsAchStar2 30 197 555
ANIM PLACE ResultsAchStar3 35 277 555
ANIM PLACE ResultsAchStar4 40 357 555

[#ACH0]
ANIM BOUNCE ResultsAchStar0 0 1200 1000 15

[#ACH1]
ANIM BOUNCE ResultsAchStar1 0 1200 1000 15

[#ACH2]
ANIM BOUNCE ResultsAchStar2 0 1200 1000 15

[#ACH3]
ANIM BOUNCE ResultsAchStar3 0 1200 1000 15

[#ACH4]
ANIM BOUNCE ResultsAchStar4 0 1200 1000 15

[Results]
LEVEL 1
type image
x 0
y 0
width 1024
height 768
FILE resultsBack.TGA
HANDLER DeployHandler	// we need all the battle stats et al
MODAL

[ResultsOK]
type button
width 55
height 55
file tick_round_button_large.dds
x 863
y 660
HITEX button_hi.tga
HICOLOUR fffee37c
HISIZE 1
HISPIN 1
HIADDITIVE
sfxfocus 7
sfx 5

[Results_friendly]
type text
x 310
y 185
width 162
height 40
font SquadNameFont
colour fffee37c
border ff000000
parent results
string ids_results_enemy

[Results_enemy]
type text
x 420
y 185
width 162
height 40
font SquadNameFont
colour fffee37c
border ff000000
parent results
string ids_results_friendly

[Results_casualties]
type text
x 90
y 175
width 162
height 40
font SmoothFontF
colour fffee37c
border ff000000
parent results
string ids_results_casualties

[ResultsType0]
type text
x 140
y 240
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsType1]
type text
x 140
y 290
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsType2]
type text
x 140
y 340
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsType3]
type text
x 140
y 390
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsType4]
type text
x 140
y 440
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsType5]
type text
x 140
y 490
width 162
height 40
font SquadNameFont
colour fffee37c


//[ResultsKillsText]
//type text
//x 54
//y 80
//width 162
//height 40
//string IDS_RESULT_KILLS 
//font SquadNameFont
//colour fffee37c

[ResultsKills0]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsKills1]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsKills2]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsKills3]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsKills4]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsKills5]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

//[ResultsCasText]
//type text
//x 54
//y 80
//width 162
//height 40
//string IDS_RESULT_CAS 
//font SquadNameFont
//colour fffee37c

[ResultsCas0]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsCas1]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsCas2]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsCas3]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsCas4]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c

[ResultsCas5]
type text
x 54
y 80
width 162
height 40
font SquadNameFont
colour fffee37c


// achievements
[ResultsAchStar0]
type button
x 0
y 615
width 64
height 64
file USStar.tga

[ResultsAchStar1]
type button
x 70
y 615
width 64
height 64
file USStar.tga

[ResultsAchStar2]
type button
x 140
y 615
width 64
height 64
file USStar.tga

[ResultsAchStar3]
type button
x 210
y 615
width 64
height 64
file USStar.tga

[ResultsAchStar4]
type button
x 280
y 615
width 64
height 64
file USStar.tga
And add into the text1.txt campaign's file the following string:

Code: Select all

IDS_SQUADTYPE5,"Ships",
One more feature for future v4. :wink:
“Take care, my friend; watch your six, and do one more roll… just for me.”
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Adding boats to the KIAs report?

Post by GottaLove88s »

Very cool! I'll nab that for Dieppe... merci...
:D
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Post Reply

Return to “Battle Academy : Modders Corner ”