About making German play first in MP

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

About making German play first in MP

Post by enric »

Recently I had the possibility (thanks to Pip) to test deeply what happens when a MP scenario is created with the German play as side 0, e.i. German plays first.
  • Make a map from scratch
  • Add only one infantry for each side (just to test)
  • Choosing side 0 as Nation German and side 1 as nation Russian
    Screen Shot 2015-05-25 at 15.33.05.png
    Screen Shot 2015-05-25 at 15.33.05.png (32.65 KiB) Viewed 2786 times
  • No bonus, no plugins, no scripts
  • Adding a file SIDES.TXT at the CAMPAIGN folder

    [Axis]
    UICOLOUR 00ff1111
    NATION 1

    [Allies]
    UICOLOUR 00ffffff
    NATION 7
RESULT

Open a match as Allied, and an opponent accepts the match, then…
You play as German your opponent as Allied.
German plays first

Open another match as German, and an opponent accepts the match, then…
You play as Allied your opponent as German.
German plays first
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: About making German play first in MP

Post by enric »

Well, one of the fascinating things of BA is to discover how to do something without any documentation on it.
I think I found how to create an Axis MP scenario without any of the last troubles described in the above post.

I can't be sure if I'm right with all I'm saying, but that way it worked (for now).

After doing everything described above, you must put the SIDES.TXT file as following:

[Axis]
string IDS_SIDE1
UICOLOUR 00ff1111
NATION 1

[Allies]
string IDS_SIDE0
UICOLOUR 00ffffff
NATION 7

=====
Then VERY IMPORTANT
in the TEXT1.TXT file you must add

IDS_SIDETYPE0,"Axis",
IDS_SIDETYPE1,"Allies",

This two lines seems to prevent the server to change sides. Don't ask me where is the logic of this.....

I'll post now the link for Stalingrad b9 in the hope it works finally as expected.
pipfromslitherine
Site Admin
Site Admin
Posts: 9860
Joined: Wed Mar 23, 2005 10:35 pm

Re: About making German play first in MP

Post by pipfromslitherine »

Oh - I am sure we documented that in the past - though well done for working it out from first principles :)

Cheers

Pip
follow me on Twitter here
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: About making German play first in MP

Post by enric »

When you know what you are searching it's easier to found it, the problem is when you don't know what are you looking for. :)
rwm59
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 86
Joined: Tue Feb 17, 2015 6:52 pm

Re: About making German play first in MP

Post by rwm59 »

enric wrote:Well, one of the fascinating things of BA is to discover how to do something without any documentation on it.
I think I found how to create an Axis MP scenario without any of the last troubles described in the above post.

I can't be sure if I'm right with all I'm saying, but that way it worked (for now).

After doing everything described above, you must put the SIDES.TXT file as following:

[Axis]
string IDS_SIDE1
UICOLOUR 00ff1111
NATION 1

[Allies]
string IDS_SIDE0
UICOLOUR 00ffffff
NATION 7

=====
Then VERY IMPORTANT
in the TEXT1.TXT file you must add

IDS_SIDETYPE0,"Axis",
IDS_SIDETYPE1,"Allies",

This two lines seems to prevent the server to change sides. Don't ask me where is the logic of this.....

I'll post now the link for Stalingrad b9 in the hope it works finally as expected.
Hi Enric,
I've just follewsd exactly these instructions, more those for using a MP scenario in SP way ( moving into the Sp folder ) ... BA2 run with german first, but I haven't any "point" for choice units, tanks ecc. ( 0/0 ) so the scrn don't give me the "ok" button for start.. was i did wrong ?
danke!
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: About making German play first in MP

Post by enric »

Please look at any of my scenarios where German goes first.
Usually I don't put the units in the map using the editor but scripting all of them to have more control.
Post Reply

Return to “Battle Academy 2: Modders Corner”