Page 1 of 1

About making German play first in MP

Posted: Tue May 26, 2015 3:16 pm
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 3169 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

Re: About making German play first in MP

Posted: Mon Jun 01, 2015 3:03 pm
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.

Re: About making German play first in MP

Posted: Mon Jun 01, 2015 3:12 pm
by pipfromslitherine
Oh - I am sure we documented that in the past - though well done for working it out from first principles :)

Cheers

Pip

Re: About making German play first in MP

Posted: Mon Jun 01, 2015 3:30 pm
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. :)

Re: About making German play first in MP

Posted: Mon Aug 31, 2015 10:27 pm
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!

Re: About making German play first in MP

Posted: Tue Sep 01, 2015 7:08 am
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.