Page 1 of 1

How can I use other sides?

Posted: Sun Jan 10, 2016 9:36 pm
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?

Re: How can I use other sides?

Posted: Mon Jan 11, 2016 2:41 am
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.

Re: How can I use other sides?

Posted: Tue Jan 12, 2016 9:08 pm
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.

Re: How can I use other sides?

Posted: Wed Jan 13, 2016 6:55 am
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.

Re: How can I use other sides?

Posted: Wed Jan 13, 2016 10:40 pm
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.

Re: How can I use other sides?

Posted: Thu Jan 14, 2016 4:16 am
by BF2-Master
Did you copy and paste the LVL file into you pre-munged SIDE folder, or the final folder made AFTER munging?

Re: How can I use other sides?

Posted: Thu Jan 14, 2016 9:05 pm
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

Re: How can I use other sides?

Posted: Fri Jan 15, 2016 12:22 am
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.