How to change a faction to have Yellow Command Posts.

Started by dsaf, December 29, 2019, 05:26:53 PM

Previous topic - Next topic
Here is how you change your team to make them have yellow command posts.

Step 1 is download http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=319
(Battlebelk's Mission.lvl Tool)


QuoteHow to use:

go edit mission scripts and then press munge.bat for build mission.lvl

Folders structure:

scripts - mission lua scripts for maps

_lvl_pc - munged mission.lvl

bin     - binaries tools from pandemic mod tool

munged  - munged scripts

reqs    - req files for wrap munged scripts in mission.lvl

addon   - folders and files for buil mission.lvl (TATOOINE: JABBA)



BattleBelk


We will need:

lvl_pc  (VERY IMPORTANT)
scripts (VERY IMPORTANT)
munged (keeps copies of your files)
munge.bat (VERY IMPORTANT)




Step 2 is to compress it, i recommend putting them into a different folder, makes it easier, by dragging everything from the 7z file to the folder)

Step 3, once everything is in one folder, lets open up the scripts folder. Inside you will see bunch of folders. Those are your planets that contain your maps in the game (BES stands for Bespin, both of the 2 maps, END stands for Endor, And so on),

Step 4, Now lets open one of your planets (lets take BES or Bespin for an example). If we open that we see a bunch of lua files

bes1a.lua - the a means its the galactic civil war era (we use the Rebels vs Empire)
bes1a_h.lua - the h means its a map in the historical campaign
bes1r.lua - the r means that it is the civil war era, (we use the CIS vs Republic factions)
bes2a.lua - the .lua is the type of file (or script) you are opening. (Very easy to edit, no worries!)
bes2a_h.lua
bes2r_h.lua

bes1 is Bespin Platforms
bes2 is Bespin Cloud City

Step 5 is to open the LUA files. We can open them with Microsoft word, or notepad. Just like a word document.

Step 6 When you open that you will see, lots of information about the map script, (lets open up bes1a.lua for example). Here we can change a lot of things in the game, such as the units, the factions and the command posts. (be careful what you edit though, because if you edit the wrong item, it will crash the game)

Step 7 One thing we can change in the command posts, we can change them to from green to yellow. After we open it you will see information and numbers along the left side of the script. Let's scroll down to line 44 - line 62. (Might be a different line for each map, but for Bespin platforms, Galactic Civil War Era (Rebels vs Empire instant action map) it is line 44 - line 62. We will see this.

--              Alliance Stats
        SetTeamName(ALL, "Alliance")
        SetTeamIcon(ALL, "all_icon")
    AddUnitClass(ALL, "all_inf_soldierurban",11)
    AddUnitClass(ALL, "all_inf_vanguard",3)
    AddUnitClass(ALL, "all_inf_pilot",4)
    AddUnitClass(ALL, "all_inf_marksman",4)
    AddUnitClass(ALL, "all_inf_smuggler",3)
    SetHeroClass(ALL, "all_inf_lukeskywalker")
    SetAttackingTeam(ATT);


--              Imperial Stats
        SetTeamName(IMP, "Empire")
        SetTeamIcon(IMP, "imp_icon")
    AddUnitClass(IMP, "imp_inf_storm_trooper",11)
    AddUnitClass(IMP, "imp_inf_shock_trooper",3)
    AddUnitClass(IMP, "imp_inf_pilottie",4)
    AddUnitClass(IMP, "imp_inf_scout_trooper",4)
    AddUnitClass(IMP, "imp_inf_dark_trooper",3)
    SetHeroClass(IMP, "imp_inf_darthvader")

Looks like a lot, but I will explain

The Alliance Stats, stands for the Rebel Alliance and faction
The Imperial Stats, stands for the Galactic Units and faction
Under that, we can see the set team name and set team icon, and the classes for both of the factions (how many units of each class are in each map, very interesting stuff).

Step 8 The next step is to look at the part of that that says

SetTeamName(ALL, "Alliance")
        SetTeamIcon(ALL, "all_icon")

or

SetTeamName(IMP, "Empire")
        SetTeamIcon(IMP, "imp_icon")

Step 9 To Make your team have yellow command we need to look at

SetTeamName(IMP, "Empire"),

This is very important, do not do anything to the team icon line. If you edit the other line, it will not work, I already tried it.

Step 10. All we are doing is erasing the word "Empire" and replace it with the word "locals". If you wanted the empire team to have yellow command posts. (could be uppercase as well).

Locals are the sides, that have the yellow command posts, like the Tusken raiders, or the Naboo Royal Guards.

It should look like this

SetTeamName(IMP, "locals")
        SetTeamIcon(IMP, "imp_icon")

SetTeamName(IMP, "locals")[/b]
        SetTeamIcon(IMP, "imp_icon")
AddUnitClass(IMP, "imp_inf_storm_trooper",11)
    AddUnitClass(IMP, "imp_inf_shock_trooper",3)
    AddUnitClass(IMP, "imp_inf_pilottie",4)
    AddUnitClass(IMP, "imp_inf_scout_trooper",4)
    AddUnitClass(IMP, "imp_inf_dark_trooper",3)
    SetHeroClass(IMP, "imp_inf_darthvader")

If you wanted the empire to have yellow command posts. This also works for the Republic, CIS, and Rebels side as well, just change their name in the quotes "Alliance", "CIS", "Republic" to "locals". And that is how you do it.

Step 11. Then when you are done, we save this. (As the same name, and you can overwrite it.

Step 12. 2nd to the last step we need to do is is to go to the the folder where we decompressed ( where we put put everything into one folder, step 2)
where it says

_lvl_pc
addon
bin
munged
req
scripts
munge.bat
readme

We now will need the munge.bat. Click on the munge.bat. It munges your files, and modifies the map of the changes you made. Should only take 30 seconds. It makes a mission.lvl for your game so you can play it.

Step 13 After we use the munge.bat. We need to finally go into the _lvl_pc folder where the munge.bat put the mission.lvl when it was done making it. Now we copy the mission.lvl in the _lvl_pc folder (the modified one we just made with the command post change) and we paste it into your lvl_pc folder of your SWBF1 Directory

If you have the steam version of the game we go to Files (whatever drive you putted steams on (C: or E:) /Steam/Steamapps/common/star wars battlefront (2004)/Gamedata/Data/_LVL_PC and we replace the mission.lvl that is there with this one. (You can overwrite it)

Step 14 Then after you replace the mission.lvl, you can play the game, and enjoy

Step 15 Enjoy!!!

(note that the vehicles disappear for the yellow team)

Hope this helps.
Works In Progress
Yellow Command Mod (TBA)
Native Dune Sea Mod (TBA)
Backwards Battlefront Mod (TBA)

nice  :cheers:
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh