How can I use other sides?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
SwaaT
Private Recruit
Posts: 29
Joined: Fri Oct 02, 2015 10:19 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

How can I use other sides?

Post by SwaaT »

I'm working on making a fun little side mod for the Tanative IV map, and I want to use some units from some sides from maps/mods i've played. Is there a way to do this?
BF2-Master
Captain
Captain
Posts: 469
Joined: Thu Mar 02, 2006 7:08 pm

Re: How can I use other sides?

Post by BF2-Master »

SwaaT wrote:I'm working on making a fun little side mod for the Tanative IV map, and I want to use some units from some sides from maps/mods i've played. Is there a way to do this?
If it's a strictly personal mod, just open up the Mission.lvl file to see the unit codes and call the side names in the script like any other side. Make sure to drop the LVL file in your map's addon/side folder. If you need further help, I can give more detailed instructions.

If it's for public use, get the modder permission first and it's probably better to ask for the side source directly, if it's available.
SwaaT
Private Recruit
Posts: 29
Joined: Fri Oct 02, 2015 10:19 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How can I use other sides?

Post by SwaaT »

Ok, thank you i will try that. It's for personal use just to have some fun but thanks for letting me know about asking the person first if it was a public thing.
:P


EDIT
yea i might need some detailed instruction XD i'm really new to this.

I added the .lvl to the map's side folder, added the readdatafile in the clone wars conquest script and when I went to play the map i went to choose republic and the game crashed.
BF2-Master
Captain
Captain
Posts: 469
Joined: Thu Mar 02, 2006 7:08 pm

Re: How can I use other sides?

Post by BF2-Master »

All right, if you already copy and pasted the side lvl file (i.e. jawas.lvl) to the SIDE folder for your mod map, it should just be a matter of changing the LUA file.

For example, you could replace....
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep2_rifleman",
"rep_inf_ep2_rocketeer",
"rep_inf_ep2_engineer",
"rep_inf_ep2_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep2_jettrooper",
"rep_hero_macewindu")
With...
ReadDataFile("dc:SIDE\\jawas.lvl",
"jawa_inf_rifleman",
"jawa_inf_sniper",
"jawa_inf_chief"
The "dc:" tells the LUA to look in the local Side folder (MAP/data/lvl_pc/side/jawas.lvl) instead of the game's main SIDE folder. You would also change later references to match the new classes.
SetupTeams{
rep = {
team = REP,
units = 32,
reinforcements = 150,
soldier = { "rep_inf_ep2_rifleman",9, 25},
assault = { "rep_inf_ep2_rocketeer",1, 4},
engineer = { "rep_inf_ep2_engineer",1, 4},
sniper = { "rep_inf_ep2_sniper",1, 4},
officer = {"rep_inf_ep2_officer",1, 4},
special = { "rep_inf_ep2_jettrooper",1, 4},
Therefore becomes...
SetupTeams{
rep = {
team = REP,
units = 32,
reinforcements = 150,
soldier = { "jawa_inf_rifleman",9, 25},
assault = { "jawa_inf_sniper",1, 4},
sniper = { "jawa_inf_chief",1, 4},
If you don't know the codenames for the units you need, try to use a HEX editor like xvi132 to open the mission.lvl of a map that already uses that side to get the information.
SwaaT
Private Recruit
Posts: 29
Joined: Fri Oct 02, 2015 10:19 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How can I use other sides?

Post by SwaaT »

I tried that.. lemme list what I was doing.

Ok so i'm trying to use the 501st side from Dev's side mod (I think thats the name). I extracted the ABC folder and put it on my desktop. I then proceeded to put the 501st.lvl from the ABC folder into my map folder. I used a hex editor and saw a "rep_inf_501st_trooper_1". I then went into my map script QLZ conquest clonewars and added the loaddatafile for the 501st.lvl with the name of the trooper. When I went to go munge, there wasn't an option for the 501st side to be munged so when it finished it had every unit loaded except that one.
BF2-Master
Captain
Captain
Posts: 469
Joined: Thu Mar 02, 2006 7:08 pm

Re: How can I use other sides?

Post by BF2-Master »

Did you copy and paste the LVL file into you pre-munged SIDE folder, or the final folder made AFTER munging?
SwaaT
Private Recruit
Posts: 29
Joined: Fri Oct 02, 2015 10:19 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How can I use other sides?

Post by SwaaT »

BF2-Master wrote:Did you copy and paste the LVL file into you pre-munged SIDE folder, or the final folder made AFTER munging?
i put it into the premunged side folder
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: How can I use other sides?

Post by AnthonyBF2 »

The *.lvl file is already created, it goes in your mod addon folder (not mod munge folder)

Place the file in addon\MOD\data\_lvl_pc\side\ (MOD=your mod name)

Then follow what BF2-Master said above about loading it into the script and assigning it to teams.
Post Reply