Results 1 to 15 of 15

How to create your own squad and customize it.

  1. #1

    How to create your own squad and customize it.

    In this tutorial I shall explain how to change the number of units in your squad and customize it. This time I will be working with a scout marine squad, but the given examples can be used on any army squad which might take your fancy.

    First thing you need is an "sbps" file you can edit for your chosen squad, so if you haven't got one yet, extract the "sm_scout_marine.rbf" file from "C:\Program Files\Steam\steamapps\common\dawn of war 2\GameAssets\Archives" with your SGA reader. Now convert to "txt" with your "rbfconv.exe" tool, click on it to access it and scroll down until you bottom out. This section is for the units upgrades:

    squad_upgrade_ext



    If you compare your original document with my edited one, you will probably realize I have added new wargear to the thread (sm_plasma_gun1) and changed the extension for each weapon. The scout marine squad comes with two default weapon upgrades (shotgun and sniper_rifle), but you can actually add weapons of your choice if you know how to do it. The idea now is you copy my spoiler and paste it onto your original document. At this point you need to make sure the thread isn't broken and that you don't add any character of your own to it.

    Now you have a new weapon allocated to your squad, but the job isn't over yet. After doing this, you need to tell the engine where to place in-game icons or else your plasma gun will be placed in the sniper rifle's slot, therefore depriving you from taking benefit from this upgrade as well. To be able to do this you will need a copy of the "sm_plasma_gun" file you have already allocated to your scout marine squad + a copy of the other two default ones. Now convert to "txt".

    button_index



    The only difference in between your document and mine is the "12" allocated to the "button_index" line. Yours has a "9" in it whereas mine has a "12", so change its value and make your document look the same as mine. Just to learn how the index system works, it would be advisable you try with different indexes and see how the engine reacts to it. If you , for example, give a value of "4" to the index line, your allocated weapon of choice will still appear in-game, but it is going to display out of the upgrade's box.

    index4



    As for "5", it would appear right next to your Cyrus icon and so on (Cyrus is "6").

    At this point you need to edit the squad's upgrades for your weapon of choice if you are to relate them with the other two default weapons your scout marine has been rigged up with by Relic Entertainment. Scroll down from where you are now.

    plasma_gun



    and make this section of your document look the same as mine. Now do the same with both your "shotgun" and "sniper_rifle" files, so that all files do relate with each other.

    sniper_rifle



    shotgun



    You are very likely to wonder yourself why is it the shotgun file hasn't got the same player_upgrade section as the other two (sniper_rifle and plasma_gun). The reason for this is quite simple. As the shotgun is your unit's default upgrade weapon it does not require any upgrading whatsoever, so it is pointless to add this line. Leave this command empty if you want your weapon of choice to be available at hand as you start a new skirmish game. "Tier_1" stands for "building_upgrade1" whereas "tier_2" stands for "building_upgrade2", so be clear as to what you want in this sense and edit accordingly.

    If you want to change the number of units in your squad click on your "sm_scout_marine" txt file and change the unit's loadout from "3" to whatever you like. As the scout marine squad comes with a marine sergeant upgrade as default, you don't need to do anything in this respect. As for other units, look for "upgrade\pvp\race_marine\troops" to find a suitable sergeant upgrade for your squad.

    scout_marine_loadout_ext



    scout_marine_sergeant



    plasma_cannon_sergeant



    Now it is time to add "1" to every file's name for your weapon of choice (sm_plasma_gun1, etc.) so that your DoW2 engine will be able to locate and upload them correctly into the game. Cut and paste in the right place (C:\Program Files\Steam\steamapps\common\dawn of war 2\your_mod\Attrib\simulation\attrib\upgrade\pvp\race_marine\troops) and create those folders if they don't exist. If you have followed my instructions correctly, you'll get this in-game:

    scout_marine_plasma_gun



    As you can see in this pick I have further customized my scout marine squad with a few stealth cloaks. You can achieve this by adding new units to your "sm_scout_marine" file or whatever the "sbps" file you might be editing. You won't find these models in the "ebps" folder, but you can still borrow stuff from other modders insofar you don't mean to upload or you ask for permission to do it (it would be most unfair not to credit the modder for his creation).

    squad_loadout_ext



    What I have done here is to assign different indexes to the "type" command line, so that the engine will be able to tell them appart from the default "sm_scout_marine" file. These files I did borrow from the "Epic_wargear_mod" "ebps" folder, but, like I'm saying, you can borrow anything you like if you know where to look for. Just don't be weary of asking for permission or crediting in the read_me file: It's just for the records, really, and it is always desirable to play clean. To achieve this, just find some suitable "sbps" file, convert to "rbs" and edit it to suit best your personal taste. Plese do note that you will need to back up your "sbps" file with some "ebps" counterparts for the mod to work properly. And don't forget to rename your file so that it matches with the edited file's command line.
    Last edited by smeckma; 29th Jul 09 at 5:25 PM.
    One day I shall redeem my STRAWMAN
    DoW2 Apocalypse
    Community Map Pack
    The Gods Of War

  2. #2
    Awesome work, I got my 3 man scout squad up and running how I want it to.

    Question for you, is there a way to make an upgrade give away two fully different weapons? I'm looking to give off a full squad of shotties (or 2, if I can't get it to default to all) while giving them a sniper rifle at the same time. The sniper is 1 person, the shotties are (preferably) the rest of the team (or 2 people).

    When I try this out, fails.

  3. #3
    Well, I don´t know, it makes sense what you´re saying. If you can´t get that one to work I´d say there is something you´re still doing wrong. Just be patient. You won´t be long until you´ll figure it all out.

  4. #4
    I don't think it's possible, I'll have to settle with being ok with triple shottie scouts then. I see absolutely 0 units that exhist with two seperate weapon types via upgrade, so I'm thinking it's not. Granted, I could look at the eldar exarch and how they give her the weapons and make the sarge get a sniper. . .[COLOR="Silver"]

    ----------

    To get a seperate weapon on the leader as on the squad, you need to have the squad's weapons FIRST. If they are second they will not load.

    You also need no_leader on the weapons for the squad and leader_only for the weapon on the leader. There you go, leader with a unique weapon.
    Last edited by GADefence; 15th Dec 10 at 7:10 PM. Reason: did more troubleshooting

  5. #5
    I think it is possible. I remember that there was a Dawn of war mod that made squads all have diffrent weapons. Dawn of war II is Kinda set up the same as Dawn of war I.

  6. #6
    One quick question, does this make a new build unit option at your base. I'm trying to make a copy of the imperial guards men ,and make them buildible, and than make them look like a different unit, and still have the regular guardsmen buildible.

  7. #7
    To make a new squad buildable, you need to edit the HQ at ebps\pvp\race(particular race)\buildings\(race)_hq or something like this, under 'spawner'

  8. #8
    sorry,i'm making a mod and i have change the nember of tactical chaos marine to 10,and i have put a plasma gun...but only one of them has plasma gun: how can i put plasma gun to 4 of them?

  9. #9
    You probably need to edit the ubgrades

  10. #10
    this tutorial is for skirmish?

  11. #11
    Support MostWarhammer's question: how to equip everyone in a squad? When i tried to change numbers in "simulation\attrib\sbps\pvp\race_marine\troops\sm_tactical_marine.rbf" to equip all 3 SM :

    Spoiler



    it didn't change in the game

  12. #12
    For this you will probably have to customize every unit there is in the squad and assign the same weapon for each of them. Just follow my instructions to achieve this and come back to this thread if it does not work.

  13. #13
    Can you give a code how to upgrade one scout squad with 4 sniper rifles f.ex.?

  14. #14
    In squad_wargear_count of your wargear\wargear\pvp\race_marine_\sm_wp1_sniper_rifle_of_your_choice.rbf set the count to 4 instead of 1

    Spoiler

    Last edited by smeckma; 23rd Jul 12 at 11:18 AM.

  15. #15
    Thanks a lot smeckma !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •