How to replace 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

User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: How to replace sides?

Post by Cleb »

Did you rename the odf and req files and their contents to fit their new name? If you did, do a manual clean and remunge. Its in the BF2 Error log errors explained sticky.
BobTheHunted
3rd Warning
3rd Warning
Posts: 33
Joined: Fri Oct 19, 2012 11:27 pm
Projects :: No Mod project currently.
Games I'm Playing :: none yet
xbox live or psn: No gamertag set

Re: How to replace sides?

Post by BobTheHunted »

Cleb wrote:Did you rename the odf and req files and their contents to fit their new name? If you did, do a manual clean and remunge. Its in the BF2 Error log errors explained sticky.
I'm on it

EDIT
I changed the name inside the req files and such but it still gives me the errors. I renamed the odfs and reqs, but the textures have different names. Do I need to edit those too? Should I just leave the inside of the odf the way it is?
Hidden/Spoiler:
ClassParent = "rep_inf_default_rifleman"

[Properties]
GeometryName = "rep_inf_ep3trooper"
GeometryLowRes = "rep_inf_ep3trooper_low1"
FirstPerson = "REP\reptroop;rep_1st_trooper"
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: How to replace sides?

Post by Nedarb7 »

You renamed: rep_inf_default_rifleman
correct?
If you did you need to edit this line to the new name of
rep_inf_default_rifleman:

ClassParent = "rep_inf_default_rifleman"
User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: How to replace sides?

Post by Cleb »

Did you rename: rep_inf_default_rifleman? You can either change your odf that you posted to this:
BobTheHunted wrote:
Hidden/Spoiler:
ClassParent = "<insert new name of rep_inf_default_rifleman here"

[Properties]
GeometryName = "rep_inf_ep3trooper"
GeometryLowRes = "rep_inf_ep3trooper_low1"
FirstPerson = "REP\reptroop;rep_1st_trooper"
Or keep it how you posted it and keep rep_inf_default_rifleman how it is. If that doesn't work, manual clean.
BobTheHunted
3rd Warning
3rd Warning
Posts: 33
Joined: Fri Oct 19, 2012 11:27 pm
Projects :: No Mod project currently.
Games I'm Playing :: none yet
xbox live or psn: No gamertag set

Re: How to replace sides?

Post by BobTheHunted »

Nedarb7 wrote:You renamed: rep_inf_default_rifleman
correct?
If you did you need to edit this line to the new name of
rep_inf_default_rifleman:

ClassParent = "rep_inf_default_rifleman"
I didn't rename those originally, but now I did and changed in the files and it worked. But now, both of the teams names are screwed up and they both have the textures for the second team... wtf? lol thanks ill see if I can fix it


EDIT
Cleb wrote:Did you rename: rep_inf_default_rifleman? You can either change your odf that you posted to this:
BobTheHunted wrote:
Hidden/Spoiler:
ClassParent = "<insert new name of rep_inf_default_rifleman here"

[Properties]
GeometryName = "rep_inf_ep3trooper"
GeometryLowRes = "rep_inf_ep3trooper_low1"
FirstPerson = "REP\reptroop;rep_1st_trooper"
Or keep it how you posted it and keep rep_inf_default_rifleman how it is. If that doesn't work, manual clean.
I just saw this post... I already changed it, so it doesn't really matter... The problem I'm having now that it's working is how the textures are now from the second team, it kinda switched places lol

EDIT2
The team that i changed the names on is reading the textures of the other team now. I just figured this out

EDIT3
*facepalm
|
|
\/
Double posting is against the RULES; please EDIT your post instead -Staff
Last edited by BobTheHunted on Mon Oct 29, 2012 6:04 pm, edited 1 time in total.
User avatar
Tears2Roses
Chief Warrant Officer
Chief Warrant Officer
Posts: 336
Joined: Thu Jul 07, 2011 9:20 am
Projects :: Oh some random stuff who knows
Games I'm Playing :: SWBF2
xbox live or psn: PC beats xbox.

Re: How to replace sides?

Post by Tears2Roses »

hm....regarding textures, try THIS tutorial.
BobTheHunted
3rd Warning
3rd Warning
Posts: 33
Joined: Fri Oct 19, 2012 11:27 pm
Projects :: No Mod project currently.
Games I'm Playing :: none yet
xbox live or psn: No gamertag set

Re: How to replace sides?

Post by BobTheHunted »

I honestly want to abandon this idea, ill just do clones vs empire instead. Nothing seems to work, and honestly, it's not worth the hastle. Thanks anyways
User avatar
Tears2Roses
Chief Warrant Officer
Chief Warrant Officer
Posts: 336
Joined: Thu Jul 07, 2011 9:20 am
Projects :: Oh some random stuff who knows
Games I'm Playing :: SWBF2
xbox live or psn: PC beats xbox.

Re: How to replace sides?

Post by Tears2Roses »

wait! the mustafar campaign has cis vs empire! Here is that LUA:
Hidden/Spoiler:
ReadDataFile("sound\\mus.lvl;mus1cross")

ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_dark_trooper",
"imp_inf_officer")
---- "imp_bldg_defensegridturret")

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_droideka",
"CIS_inf_officer")
--"cis_bldg_defensegridturret")

SetAttackingTeam(ATT)
SetupTeams{
imp = {
team = IMP,
units = 13,
reinforcements = 40,
soldier = { "imp_inf_rifleman"},
assault = { "imp_inf_rocketeer"},
engineer = { "imp_inf_engineer"},
sniper = { "imp_inf_sniper"},
officer = { "imp_inf_officer"},
special = { "imp_inf_dark_trooper"},

},
cis = {
team = CIS,
units = 10,
reinforcements = -1,
soldier = { "CIS_inf_rifleman",1,50},
assault = { "CIS_inf_rocketeer",1},
engineer = { "CIS_inf_engineer",1},
sniper = { "CIS_inf_sniper",1},
officer = { "CIS_inf_officer",1},
--special = { "cis_inf_droideka",0},

},

}


The mus1cross sound.lvl should have imperial and cis sounds too! Try it, and see if it works. I cant test it at the moment. I would just replace the setup teams section in your current LUA with the above. :thumbs:
BobTheHunted
3rd Warning
3rd Warning
Posts: 33
Joined: Fri Oct 19, 2012 11:27 pm
Projects :: No Mod project currently.
Games I'm Playing :: none yet
xbox live or psn: No gamertag set

Re: How to replace sides?

Post by BobTheHunted »

Tears2Roses wrote:wait! the mustafar campaign has cis vs empire! Here is that LUA:
Hidden/Spoiler:
ReadDataFile("sound\\mus.lvl;mus1cross")

ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_dark_trooper",
"imp_inf_officer")
---- "imp_bldg_defensegridturret")

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_droideka",
"CIS_inf_officer")
--"cis_bldg_defensegridturret")

SetAttackingTeam(ATT)
SetupTeams{
imp = {
team = IMP,
units = 13,
reinforcements = 40,
soldier = { "imp_inf_rifleman"},
assault = { "imp_inf_rocketeer"},
engineer = { "imp_inf_engineer"},
sniper = { "imp_inf_sniper"},
officer = { "imp_inf_officer"},
special = { "imp_inf_dark_trooper"},

},
cis = {
team = CIS,
units = 10,
reinforcements = -1,
soldier = { "CIS_inf_rifleman",1,50},
assault = { "CIS_inf_rocketeer",1},
engineer = { "CIS_inf_engineer",1},
sniper = { "CIS_inf_sniper",1},
officer = { "CIS_inf_officer",1},
--special = { "cis_inf_droideka",0},

},

}


The mus1cross sound.lvl should have imperial and cis sounds too! Try it, and see if it works. I cant test it at the moment. I would just replace the setup teams section in your current LUA with the above. :thumbs:
I already knew that I could do CIS vs Empire, but thanks anyways, i'm still doing clones vs empire

EDIT
Ok, I'm not sure if this applies to custom sides(it kinda does), But I just tryed to edit a stock map for the second time(first time was successful) And for no apparent reason, It says it can't open the data file
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open dc:RB2\kam1.lvl
I followed all of the steps on the topic, yet it did this. Does it have something to do with the fact that I edited the sides and such? I'm wondering if I can have edited sides on a stock map... Help?

EDIT
I guess that I can't post error logs or anything, because I just got another warning. This is not a double post. I thought that was obvious...
If anyone has a solution to my problem, please post here, if not, suggestions are appreciated. As for the error, I followed all of the steps exactly and got that error, so idk what to do.
Post Reply