Men of War: Assault Squad 2

Men of War: Assault Squad 2

Not enough ratings
How to make a new army in skirmish (real fr)
By Floppa gaming
This is a follow-up of the guide to add vehicles to skirmish:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3169523653

I will tell you how to make a new army for skirmish and multiplayer.
   
Award
Favorite
Favorited
Unfavorite
Overview
We will go over:
  • Files
  • Giving your army its soldiers
  • Giving your army its soldiers part 2
  • Vehicles
  • Giving squads, towed artillery and heroes an icon
  • Finalization
  • To make bots use it
Files
Just as in the previous guide. It is recommended to have notepad++ for this (or not). I will create an army called the "Ger 3".
Go to resource\set\multiplayer\armies and copy-paste the ger.set file and name it ger3.set. You don't have to copy-paste that one, but I chose one.

This is optional if you don't need to rename or give it another flag.
Open it up and rename:
  • {title "mp/army/ger"}" to "{title "mp/army/ger3"}
  • {icon "/interface/pages/multi/flag_ger"} to {icon "/interface/pages/multi/flag_ger3"}
  • If you want to you can change what flag it has if you want to in {flag "/interface/scene/common/flag-germany"}.

As a placeholder, I will just make a copy of the normal German interface.


For {icon "/interface/pages/multi/flag_ger3"}, go to resource\interface\pages\multi and copy-paste flag_ger.tga to flag_ger3.tga.


For the name, go to localization and find #dlg_mp.lng. Open it and find "army" values with the names of the armies. Just copy-paste Germany's names under Germany.

For {flag "/interface/scene/common/flag-germany"}, go to resource/interface/scene/common/, copy-paste flag-germany.tga to flag-ger3.tga if you chose to change this.
Giving your army its soldiers
In order to have an army, you need soldiers.
Go to resource\set\breed\mp and copy-paste the ger folder to ger3.
If you want to, you can boot up editor and change these soldiers, but I won't.

In order to make the army use the soldiers, go to resource\set\multiplayer\units.
It will be a lot of values to add, so I hope that you are using notepad++.

The first thing you will see is the tankman being defined. Underneath it lays the different armies' tankmen. Go to {"mp/ger/tankman" ("tankman" side(ger))}, press ctrl D to copy paste the line under {"mp/ger/tankman" ("tankman" side(ger))}. Rename it to {"mp/ger3/tankman" ("tankman" side(ger3))}.Thankfully you don't have to add all of these to your army. You could even add more to your army if you want to. But for a full army that is equal to the others, maybe you should.
You will have to also do this to:
  • {"mp/ger/tankman2" ("tankman2" side(ger))}
  • {"mp/ger/vehicle_supporter" ("vehicle_supporter" side(ger))}
  • {"mp/ger/home_guard" ("home_guard" side(ger))}
  • {"mp/ger/home_guard2" ("home_guard" side(ger))}
  • {"mp/ger/rifle" ("rifle" side(ger))}
  • {"mp/ger/rifle2" ("rifle" side(ger))}
  • {"mp/ger/smg" ("smg" side(ger))}
  • {"mp/ger/smg2" ("smg" side(ger))}
  • {"mp/ger/squadleader" ("squadleader" side(ger))}
  • {"mp/ger/squadleader2" ("squadleader" side(ger))}
  • {"mp/ger/mgun" ("mgun" side(ger))}
  • {"mp/ger/saper" ("saper" side(ger))}
  • {"mp/ger/ap_miner" ("ap_miner" side(ger))}
  • {"mp/ger/at_miner" ("at_miner" side(ger))}
  • {"mp/ger/elite" ("elite" side(ger))}
  • {"mp/ger/elite2" ("elite" side(ger))}
  • {"mp/ger/elite3" ("elite" side(ger))}
  • {"mp/ger/elite4" ("elite" side(ger))}
  • {"mp/ger/elite5" ("elite" side(ger))}
  • {"mp/ger/elite6" ("elite" side(ger))}
  • {"mp/ger/elite_at" ("elite" side(ger))}
  • {"mp/ger/sturmovik" ("sturmovik" side(ger))}
  • {"mp/ger/sturmovik2" ("sturmovik" side(ger))}
  • {"mp/ger/sturmovik3" ("sturmovik" side(ger))}
  • {"mp/ger/sturmovik4" ("sturmovik" side(ger))}
  • {"mp/ger/sturmovik4b" ("sturmovik" side(ger))}
  • {"mp/ger/sturmovik5" ("sturmovik" side(ger))}
  • {"mp/ger/sturmovik5b" ("sturmovik" side(ger))}
  • {"mp/ger/sturmovik6" ("sturmovik" side(ger))}
  • {"mp/ger/sturmovik6b" ("sturmovik" side(ger))}
  • {"mp/ger/flamer" ("flamer" side(ger))}
  • {"mp/ger/flamer2" ("flamer" side(ger))}
  • {"mp/ger/sniper" ("sniper" side(ger))}
  • {"mp/ger/sniper2" ("sniper" side(ger))}
  • {"mp/ger/radioman" ("radioman" side(ger))}
  • {"mp/ger/oficer" ("oficer" side(ger))}
  • {"mp/ger/bazooker" ("bazooker" side(ger))}
  • {"mp/ger/bazooker2" ("bazooker" side(ger))}
  • {"mp/ger/bazooker3" ("bazooker" side(ger))}
  • {"mp/ger/at_rifle" ("at_rifle" side(ger))}
  • {"mp/ger/at_rifle2" ("at_rifle" side(ger))}
This is such a long list that I will make another section for the rest.
Giving your army its soldiers, part 2
Now that you have add the soldiers to your army, you will need to create squads with them.
While you are in the same folder as soldiers.set file, open up squads.set file.

You will kinda have to to the same here, but again not all are required.
Find ("squad_with2types" side(ger) name(home_guards) c(30) g(squad_1) c1(home_guard:6) c2(home_guard2:2) b(squad1) t(all inf_only) level(1) cost(60) f(-1.0)), ctrl d, rename the "side(ger)" value of the duplicate to "side(ger3)".
Again, you will have to do this optionally to:
  • ("squad_with3types" side(ger) name(smgs) c(30) g(squad_2) c1(squadleader2:1) c2(rifle2:3) c3(smg2:4) b(squad1) t(all inf_only) level(1) cost(110) f(1.0))
  • ("squad_with4types" side(ger) name(riflemans) c(30) g(squad_2) c1(squadleader:1) c2(rifle:5) c3(smg:1) c4(mgun:1) b(squad1) t(all inf_only) level(1) cost(150) f(1.0))
  • ("squad_with3types" side(ger) name(elites) c(0) g(squad_4) c1(elite:3) c2(elite2:3) c3(elite3:2) b(squad1) t(all inf_only) level(4) cost(225) f(1.0))
  • ("squad_with3types" side(ger) name(stormtroopers) c(0) g(squad_5) c1(sturmovik:4) c2(sturmovik2:2) c3(sturmovik3:2) b(squad1) t(all inf_only) level(8) cost(330) f(1.0))
  • {"storm_mech_ger" ("vb3" c(0) c1(sdkfz251_1) t(all inf_only) s(ger) n1(6) n2(2) n3(2) g(squad_6) b(squad1)) {level 12} {cost 480} {fore 1.0}}
  • ("squad_with1types" side(ger) name(ap_miners) c(120) g(squad_7) c1(ap_miner:4) b(squad1) t(all inf_only engineers mines) level(11) cost(150) f(0))
  • ("squad_with1types" side(ger) name(at_miners) c(120) g(squad_8) c1(at_miner:4) b(squad1) t(all inf_only engineers mines) level(14) cost(200) f(0))
  • ("squad_with1types" side(ger) name(sappers) c(120) g(squad_9) c1(saper:2) b(squad1) t(all inf_only engineers) level(1) cost(50) f(0))

That was for the squads. For the single soldiers:
  • ("squad_with1types" side(ger) name(riflemans2) c(0) g(soldier_1) c1(rifle:1) b(squad2) t(all inf_only single) level(1) cost(10) f(1.0))
  • ("squad_with1types" side(ger) name(smgs2) c(0) g(soldier_2) c1(smg:1) b(squad2) t(all inf_only single) level(1) cost(12) f(1.0))
  • ("squad_with1types" side(ger) name(tankmans) c(30) g(soldier_3) c1(tankman:2) b(squad2) t(all inf_only tankmans) level(1) cost(10) f(-1.0))
  • ("squad_with2types" side(ger) name(at_rifles) c1(at_rifle:1) c2(at_rifle2:1) c(15) g(soldier_4) b(squad2) t(all inf_only) level(1) cost(60) f(1.0))
  • ("squad_with2types" side(ger) name(bazookers) c1(bazooker:1) c2(bazooker2:1) c(15) g(soldier_5) b(squad2) t(all inf_only) level(1) cost(90) f(1.0))
  • ("squad_with1types" side(ger) name(mgs2) c(300) g(soldier_6) c1(mgun:1) b(squad2) t(all inf_only) level(1) cost(70) f(1.0))

We also have sturmoviks, flamers and officers, which are usually a trio or a pair of soldiers in the same button:
  • ("squad_with2types" side(ger) name(stormtroopers1) c(60) g(soldier_7) c1(sturmovik4:3) c2(sturmovik4b:2) b(squad2) t(all inf_only) level(7) cost(130) f(1.0))
  • ("squad_with2types" side(ger) name(stormtroopers2) c(60) g(soldier_5) c1(sturmovik5:1) c2(sturmovik5b:2) b(squad2) t(all inf_only) level(14) cost(155) f(1.0))
  • ("squad_with2types" side(ger) name(stormtroopers3) c(300) g(soldier_6) c1(sturmovik6:1) c2(sturmovik6b:2) b(squad2) t(all inf_only) level(21) cost(145) f(1.0))
  • ("squad_with2types" side(ger) name(flamers) c(150) g(soldier_8) c1(flamer:1) c2(flamer2:1) b(squad2) t(all flamer inf_only) level(3) cost(75) f(0))
  • ("squad_with1types" side(ger) name(snipers) c(150) g(soldier_9) c1(sniper:1) b(squad2) t(all sniper_only inf_only) level(8) cost(160) f(0))
  • ("squad_with2types" side(ger) name(officers) c(150) g(soldier_10) c1(oficer:1) c2(smg2:2) b(squad2) t(all officer inf_only) level(18) cost(200) f(0))

The only thing left is to open vehicles_xnotanks.set, and do what you have done before, here. That is really it for the soldiers of your army, now it is for the vehicles.
Vehicles
Now your army needs vehicles. As you are still in the resource\set\multiplayer\units folder, copy-paste vehicles_ger.set and rename the duplicate to vehicles_ger3.set.
Open it up.

Fortunately this area is much less work to do here as a placeholder. All you need to do, is to (in notepad++) press ctrl f, then go to the replace button on the tab, put s(ger) in the Find what: box and put s(ger3) in the Replace with: box.
Click the replace all button.

Then change the s(ger) box to side(ger) and s(ger3) box with side(ger3). Press replace all again.
There is also the heroes at the bottom of the file. You can change the ger part to ger3, but it isn't actually important what you call it since the s(ger3) is what chooses what army it is in. You could even let it be named like how it is already.

If you want to change the vehicles, go to my previous tutorial that handles that.
That's it for the vehicles.
Giving squads, towed artillery and heroes an icon
If you test the unit in game. You would see that the infantry squads, towed artilleries and heroes have a blank icon on the purchase menu.
To give them one, first, take a note on the name. An example for the first towed artillery for the army is named "how_aa" on vehicles_ger3.set. Go to resource\interface\scene\unit_icon and copy-paste the how_aa(ger)_00.tga to 03.tga and rename the duplicates to how_aa(ger3)_00.tga to 03.tga.
Finalization
Now that you have done all of this, you still have to (optionally):
  • Add the army to one of the two alliances (Not optional).
  • Give the soldiers, heroes, towed artillery a description.
  • Add those vehicles to the vehicles_x.set and vehicles_xnotanks.set.
This will not take much time.
Go to set\multiplayer\games and open up preset_alliances.inc.
Add your army whichever alliance you army is with.
Now if you don't care about the description or the vehicles_x.set and vehicles_xnotanks.set files, you're done for this section.

For the description, go to localization and open up the desc.lng file. There you can give your soldiers their names. For an example, to give the rifleman squad a name for the army, find {"riflemans(ger)" "Regular infantry"} and well, you know what to do. For the induvidual soldiers desc to show up when you hover over them, find the {"mp" containers, then find the {"ger" container. Copy-paste that and where the braces (where the end of the { in {"ger") is. Rename the "ger" to "ger3".
Now for the vehicles_x.set and vehicles_xnotanks.set files, if you haven't added anything new to the army, then there is no need to do anything here. If you have added anything, go to vehicles_x.set and add the vehicle or artillery to where they would fit and give them the appropriate values. Do the same for vehicles_xnotanks.set for any light vehicles that would fit.

There is also an info.lng file. There you can add literal descriptions to your units. Do that in the "squads" container if it is an infantry squad (or an apc with infantry), or in the "entity" container if it is a vehicle/artillery.

And that is truly it for the army that you've made.
There is only one thing left...
To make bots use it
If you ever want the ai to use the army in game, go to resource\script\multiplayer and open up bot.data.lua.

I promise you that this is the last time that you have to do what you did in soldiers.set.
Find the first ["ger"], select it and everything until you get to the lone brace and comma ( }, ).
Ctrl d and change the ["ger"] in the duplicate to ["ger3"], change the --Germany to --Ger 3 (optional) and rename the squads inside the container that has (ger) in them to (ger3).
Fun fact: You can also add hero squads too into the bot. Just add the name of the squad to the code and don't include the (ger3) at the end of the line.

You will do that again to the other times it shows up. In total you should have done it eight times including the first one you did.

Now the ai will use the units in the army if you choose the ai to be that army.
9 Comments
cjb.seals 22 May @ 3:09am 
I got it to work it wasn't because of loading it was just a slight mistake in the code but thank you very much you helped a lot and really good tutorial. :steamthumbsup:
Floppa gaming  [author] 18 May @ 3:27am 
@cjb.seals This is mainly for vanilla. But if you are able to make it work on the older version but no in newer. Maybe it is because the files you made are being overwritten by other mods. Check Documents\my games\men of war - assault squad 2\profiles\XXX\ and open options.set. At the bottom of the file you should find your mod load order. If something is under robz or your mod, maybe either move the edits you've done to that mod or maybe try disabling that mod or move it to load before robz or your mod. Maybe robz have a different way of setting up factions or is referencing a different file that holds the factions. Is nothing of your faction showing up?
cjb.seals 18 May @ 2:03am 
works really well i tried it with robz 1.29.5 but now i want to make port to robz 1.28.6 because its more stable but i can figure it out how to, it does not come up in the select country menu.
Floppa gaming  [author] 6 Feb @ 2:10pm 
@cjb.seals You could go to the entity file that you want to use a different texmod by copy-pasting the .def file in the folder, then adding the line: {texmod "XXX"} in the .def file, but you would then also have to add unit_icon files, add name to desc.lng and then add the vehicle to the army.
cjb.seals 28 Jan @ 3:42pm 
Is there a way to change texmods, For example I have a French Sherman as a texmod I want it to all ways spawn in with that texmod without change to like a default winter one?
Floppa gaming  [author] 6 Jan @ 10:57pm 
@GoRdOn od mlyna Do you have a .pak file? They can be opened with 7-zip or other similar tools.
GoRdOn od mlyna 6 Jan @ 9:33am 
resource\set\multiplayer\armies
I dont have set or multiplayer folder there
der_marschall 2 Sep, 2024 @ 6:30am 
Incredible! You’re a real blessing and such a huge help! :honor:
Floppa gaming  [author] 30 Aug, 2024 @ 11:20am 
@der_marschall Here.