Some questions about Moding
Moderator: Moderators
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Some questions about Mapping
you mean rep_bldg_forwardcenter? That won't be in sides, it will be in the msh/odf folders.
-
Xavious
- Sith Master

- Posts: 2783
- Joined: Mon Jun 12, 2006 3:46 pm
Re: Some questions about Mapping
What do you mean you can't find it? The ODF should be in the Rep ODF folder. (With the MSH and effects in their respective folders) I can find it.
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
I edited my question the exact same time y'all posted. I mean where is the file I am supposed to type "rep_fly_....."
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Some questions about Mapping
what? What do you mean? Please be more clear.
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
The file "rep.lvl" is not it the "side" folder.
data_XYZ\sides\rep\-no rep.lvl
Where in "assets" can I get it?
EDIT: NVM I found it in the XYZc_con.lau file
*EDIT*
Question: How do I switch the clone to Phase I on a custom level?
data_XYZ\sides\rep\-no rep.lvl
Where in "assets" can I get it?
EDIT: NVM I found it in the XYZc_con.lau file
*EDIT*
Question: How do I switch the clone to Phase I on a custom level?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Some questions about Mapping
I have no idea what you are talking about but the rep.lvl is in Star Wars Battlefront II\GameData\DATA\_LVL_PC\SIDE.
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
Thank you. The question about the rep.lvl was confusion on my part. I file I was looking for was the XYZc_con.lau file. I found it, and have altered in accordingly.
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Some questions about Mapping
Ironjaw - go into your lua.
Open it with Notepad.
Next go to the section in your lua that looks like this:
So I'm gonig to replace han solo with the trooper.
soldier = { "all_hero_hansolo_tat",1,2},
Make it so it looks like this:
soldier = { "rep_inf_ep2_rifleman",1,2},
Next, go up a bit. To this bit.
Now, go to the bit where it says this:
ReadDataFile("SIDE\\rep.lvl",
"rep_hero_yoda",
"rep_hero_macewindu",
"rep_hero_anakin",
"rep_hero_aalya",
"rep_hero_kiyadimundi",
"rep_hero_obiwan")
and add your unit below rep_hero_obiwan.
Like this:
ReadDataFile("SIDE\\rep.lvl",
"rep_hero_yoda",
"rep_hero_macewindu",
"rep_hero_anakin",
"rep_hero_aalya",
"rep_hero_kiyadimundi",
"rep_hero_obiwan",
"rep_inf_ep2_rifleman")
Then you're all done!
If you can't do this just tell me and post your lua and I'll do it for you.
Open it with Notepad.
Next go to the section in your lua that looks like this:
Ok now you can replace a unit with your phase one trooper - for instance rep_inf_ep2_rifleman is the normal phase 1 clone.SetupTeams{
hero = {
team = ALL,
units = 12,
reinforcements = -1,
soldier = { "all_hero_hansolo_tat",1,2},
assault = { "all_hero_chewbacca", 1,2},
engineer= { "all_hero_luke_jedi", 1,2},
sniper = { "rep_hero_obiwan", 1,2},
officer = { "rep_hero_yoda", 1,2},
special = { "rep_hero_macewindu", 1,2},
},
}
AddUnitClass(ALL,"all_hero_leia", 1,2)
AddUnitClass(ALL,"rep_hero_aalya", 1,2)
AddUnitClass(ALL,"rep_hero_kiyadimundi",1,2)
SetupTeams{
villain = {
team = IMP,
units = 12,
reinforcements = -1,
soldier = { "imp_hero_bobafett", 1,2},
assault = { "imp_hero_darthvader",1,2},
engineer= { "cis_hero_darthmaul", 1,2},
sniper = { "cis_hero_jangofett", 1,2},
officer = { "cis_hero_grievous", 1,2},
special = { "imp_hero_emperor", 1,2},
},
}
AddUnitClass(IMP, "rep_hero_anakin",1,2)
AddUnitClass(IMP, "cis_hero_countdooku",1,2)
So I'm gonig to replace han solo with the trooper.
soldier = { "all_hero_hansolo_tat",1,2},
Make it so it looks like this:
soldier = { "rep_inf_ep2_rifleman",1,2},
Next, go up a bit. To this bit.
This shows you all the units you are loading into the game when it starts up.ReadDataFile("SIDE\\all.lvl",
"all_hero_luke_jedi",
"all_hero_hansolo_tat",
"all_hero_leia",
"all_hero_chewbacca")
ReadDataFile("SIDE\\imp.lvl",
"imp_hero_darthvader",
"imp_hero_emperor",
"imp_hero_bobafett")
ReadDataFile("SIDE\\rep.lvl",
"rep_hero_yoda",
"rep_hero_macewindu",
"rep_hero_anakin",
"rep_hero_aalya",
"rep_hero_kiyadimundi",
"rep_hero_obiwan")
ReadDataFile("SIDE\\cis.lvl",
"cis_hero_grievous",
"cis_hero_darthmaul",
"cis_hero_countdooku",
"cis_hero_jangofett")
Now, go to the bit where it says this:
ReadDataFile("SIDE\\rep.lvl",
"rep_hero_yoda",
"rep_hero_macewindu",
"rep_hero_anakin",
"rep_hero_aalya",
"rep_hero_kiyadimundi",
"rep_hero_obiwan")
and add your unit below rep_hero_obiwan.
Like this:
ReadDataFile("SIDE\\rep.lvl",
"rep_hero_yoda",
"rep_hero_macewindu",
"rep_hero_anakin",
"rep_hero_aalya",
"rep_hero_kiyadimundi",
"rep_hero_obiwan",
"rep_inf_ep2_rifleman")
Then you're all done!
If you can't do this just tell me and post your lua and I'll do it for you.
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
Thanks! I should be able to get that.
Next:
When I load my level, no unites appear. It's just me and my level. Also the building will appear, but no vehicles. (Come to think of it, I had two different vehicles. I only added on to the .lau. But then the other didn't appear ether.)
*EDIT: It seems that that the "conquest" layer was selected when I put the K-Wing and V-Wings down.*
How do I link a turret to a turret chair? In the .lau, or in ZE?
Next:
When I load my level, no unites appear. It's just me and my level. Also the building will appear, but no vehicles. (Come to think of it, I had two different vehicles. I only added on to the .lau. But then the other didn't appear ether.)
*EDIT: It seems that that the "conquest" layer was selected when I put the K-Wing and V-Wings down.*
How do I link a turret to a turret chair? In the .lau, or in ZE?
-
JediJalepinio
- Private Recruit
- Posts: 26
- Joined: Tue Feb 24, 2009 4:50 pm
Re: Some questions about Mapping
I don't know if it's required, but I thought it was. You have to add you vehicles to both of a maps lua files for it to work.IronJaw wrote: Also the building will appear, but no vehicles. (Come to think of it, I had two different vehicles. I only added on to the .lau. But then the other didn't appear ether.)
*EDIT: It seems that that the "conquest" layer was selected when I put the K-Wing and V-Wings down.*
e.g.
Under C:\BF2_ModTools\data_PGS\Common\scripts\PGS
for conquest there are two luas for clone wars conquest: PGSc_con.lua and PGSc_con.lua.bak
they both have to have the new vehicles added into them. If not, you might not have all the required assets in the right place, but then again, maybe you do.
- Eggman
- Master Bounty Hunter

- Posts: 1516
- Joined: Mon Jul 16, 2007 1:30 pm
- Projects :: Battlefront Chronicles
- Location: Las Vegas
Re: Some questions about Mapping
lua.bak files are only backups of the normal .lua file - they serve no function in game. In fact, you can delete the backups if you don't want them.JediJalepinio wrote:I don't know if it's required, but I thought it was. You have to add you vehicles to both of a maps lua files for it to work.IronJaw wrote: Also the building will appear, but no vehicles. (Come to think of it, I had two different vehicles. I only added on to the .lau. But then the other didn't appear ether.)
*EDIT: It seems that that the "conquest" layer was selected when I put the K-Wing and V-Wings down.*
e.g.
Under C:\BF2_ModTools\data_PGS\Common\scripts\PGS
for conquest there are two luas for clone wars conquest: PGSc_con.lua and PGSc_con.lua.bak
they both have to have the new vehicles added into them. If not, you might not have all the required assets in the right place, but then again, maybe you do.
If a vehicle or unit isn't appearing in-game, you either don't have all the necessary assets, set up the vehicle spawn in ZE incorrectly, or did not load it in the .lua properly.
Edit: If you aren't positive your advice is correct, it's best not to go around giving that advice.
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
I went to the .lua and changed:
Also I changed some skins, and added vehicle spawns like so:
And Munged it like so: (no error file popped up)
But,
1) No Ep2 unite.
2)No vehicles
Any thoughts?
To:ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder",
"rep_fly_vwing",
"all_fly_kwing")
*edit*I changed the "rep_ep3_engineer" to "rep_inf_ep2_pilot." I'm Munging as I type.ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep2_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder",
"rep_fly_vwing",
"all_fly_kwing")
Also I changed some skins, and added vehicle spawns like so:
Hidden/Spoiler:
Hidden/Spoiler:
1) No Ep2 unite.
Hidden/Spoiler:
Any thoughts?
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Some questions about Mapping
yeah, post your lua and I'll fix it for you. I know where you've gone wrong 
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
Here ya' go:
Hidden/Spoiler:
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Some questions about Mapping
There. All fixed. Change the line I highlighted in red from what it was to what it is now.IronJaw wrote:Hidden/Spoiler:
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
Thanks! A question, how do you change the name of an addon map from it's three letter name to it's full name? I had read something about it, but can't find it.
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Some questions about Mapping
you can but what's the point of it?
You can just change the name of your map using the editlocalize.bat in your data_ABC folder.
You can just change the name of your map using the editlocalize.bat in your data_ABC folder.
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
I mean:
Currently all maps that I add to my "addon" folder only show up as three letter names in game. e.g. in the map selection screen. How do I change that?
Currently all maps that I add to my "addon" folder only show up as three letter names in game. e.g. in the map selection screen. How do I change that?
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Some questions about Mapping
O.o
Maybe you have the version 1.0 patch. I suggest getting the v1.1 patch so you can see the proper names.
Maybe you have the version 1.0 patch. I suggest getting the v1.1 patch so you can see the proper names.
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
Version 1.1 and 1.3 have been loaded. But I still can't get the vehicles or skins to loaded from my earlier post:
*note* ep2 trooper problem has been fixed.IronJaw wrote: Also I changed some skins, and added vehicle spawns like so:And Munged it like so: (no error file popped up)Hidden/Spoiler:But,Hidden/Spoiler:
1) No Ep2 unite.
2)No vehiclesHidden/Spoiler:
Any thoughts?
