Some help with modding

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

riku2211
Private Recruit
Posts: 21
Joined: Thu Jul 16, 2009 2:55 pm

Some help with modding

Post by riku2211 »

im making a map and just needed to know some things.
1. how can i make walls? i need to add walls with pretty plain houses, like with windows, bricks, and i light tan/brown color.

2. is there a way i can take textures and images from files and such and use them for ground/walls etc?

3. i munged my map for a test (i have the ground and sky so far, and a custom hero) but it wouldn't let me use conquest, the game just crash after it was done loading. should i be worried about that or is it just because the level doesnt have really thing in it or ecause of my custom hero(more on that futher in)?

4. i read a guide on making custom troops but it didnt exactly specify how to make custom heros. i sort of improvised and, for instance, just changed "rep_hero_anakin" to "org_hero_roxas" (my side's name it Organization XIII(org) and the hero is roxas) and all the normal troops' side to org. and in assult roxas wasnt there (although i wasnt suprised, i dont think he has anything yet except for the .anim, .zafbin, and .zaabin), nor was the orginization team. would the org. team only be in conquest?
last couple of questions:

5. i want him to have dual sabers and, i guess, aayla secura's moveset, unless there's a better dual wield moveset. does that just come with the .anim, .zafbin, and .zaabin files or something?

6. what will the model be? aayla's? if it is can i give her a cloak and completely cover her face and body?

last question(wow this is a long post), is there any way i can change the sabers? like to swords or anything like that?

any help is greatly appreciated :)
User avatar
StormtrooperCommander
Private
Posts: 31
Joined: Fri Jul 10, 2009 8:09 am

Re: some help with modding

Post by StormtrooperCommander »

It probaly crashed because you needed to setup the lua files or because you overwrited one of the aayla files in common.
User avatar
YouJediJunkie
Command Sergeant Major
Command Sergeant Major
Posts: 256
Joined: Mon Mar 10, 2008 4:06 pm

Re: some help with modding

Post by YouJediJunkie »

It sounds like if you are used to brushes in other map editors. To say it straight - there are no brushes in the SWBF games. You can only use models. :cpu:
User avatar
TK432
2nd Lieutenant
2nd Lieutenant
Posts: 408
Joined: Tue May 26, 2009 4:18 pm
Location: Somewhere far away

Re: some help with modding

Post by TK432 »

riku2211 wrote:im making a map and just needed to know some things.
1. how can i make walls? i need to add walls with pretty plain houses, like with windows, bricks, and i light tan/brown color.
if you want to make your own walls youll need to make them in sketchup or other programms and not in ZE. otherwise look for ...wall.odf's
riku2211 wrote: 2. is there a way i can take textures and images from files and such and use them for ground/walls etc?

yes, simply copy the texture into the world1 folder and browse it
own images need to be converted into tga
and make sure you use right sizes
Commander_Fett
High General
High General
Posts: 847
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: some help with modding

Post by Commander_Fett »

riku2211 wrote:im making a map and just needed to know some things.
1. how can i make walls? i need to add walls with pretty plain houses, like with windows, bricks, and i light tan/brown color.

2. is there a way i can take textures and images from files and such and use them for ground/walls etc?

3. i munged my map for a test (i have the ground and sky so far, and a custom hero) but it wouldn't let me use conquest, the game just crash after it was done loading. should i be worried about that or is it just because the level doesnt have really thing in it or ecause of my custom hero(more on that futher in)?

4. i read a guide on making custom troops but it didnt exactly specify how to make custom heros. i sort of improvised and, for instance, just changed "rep_hero_anakin" to "org_hero_roxas" (my side's name it Organization XIII(org) and the hero is roxas) and all the normal troops' side to org. and in assult roxas wasnt there (although i wasnt suprised, i dont think he has anything yet except for the .anim, .zafbin, and .zaabin), nor was the orginization team. would the org. team only be in conquest?
last couple of questions:

5. i want him to have dual sabers and, i guess, aayla secura's moveset, unless there's a better dual wield moveset. does that just come with the .anim, .zafbin, and .zaabin files or something?

6. what will the model be? aayla's? if it is can i give her a cloak and completely cover her face and body?

last question(wow this is a long post), is there any way i can change the sabers? like to swords or anything like that?

any help is greatly appreciated :)
1: this isn't like hammer editor where you can draw on the walls. You need to make models in a program like XSI.

2: Yes, just copy the image to the world1 folder of your map and you can aply it to the ground in ZE. You need to make sure it's a TGA file without RLE compression and that its sides are powers of 2 (2,4,8,16,32,64,128,256,512,1024, etc)

3: If it crashed after loading it's 99% of the time a problem with the custom sides.

4: heros are made pretty much the same. When you made the hero, did you make his req file and addd him to the side's req?

5: You need the Aayla anims, plus the combo file. Put the combo file in the odf folder, not the anims folder. Then, reference the aayla anims in the odf instead of anakin's.

6: Any model you want. Just put in who's model you want in the odf file.

7: yes, you could use a sword model or replace the actual "laser" part of a lightsaber with an image of a sword. There are some of both here on GT.
riku2211
Private Recruit
Posts: 21
Joined: Thu Jul 16, 2009 2:55 pm

Re: Some help with modding

Post by riku2211 »

1: do you know where i can get XSI?

2:how can i convert images to tga?

4:yes, i did, but just now realized i added it wrong. the hero's req is "org_hero_roxas" and in the sides req i just put roxas. i'll change that now.

6: where can i fin the model? would that be in BF2_modtools\assets\animations\soldieranimationbank\aayla?

7: can i make the whole saber whatever i want? like the saber AND the hilt into something else (not a sword)?

one more questions: can i use aayla's animations (dual wielding and everything) and then use someone elses model, maybe vader's, and then give him a cloak with a hood up?
Commander_Fett
High General
High General
Posts: 847
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Some help with modding

Post by Commander_Fett »

1: No, but I'm sure a quck search could reveal some answers.
2: Use an image editor. I prefer GIMP, but photoshop or other programs work too.
6: the model would be in the side file, not the anims file. Assets/sides/*side you want model from*/msh. You'd need the msh and tga files.
7:the laser part is an image, the hilt is a model. both can be edited/replaced, but I believe there is something you need to place on weapons for handgrips and the point the ordinance comes out of.
riku2211
Private Recruit
Posts: 21
Joined: Thu Jul 16, 2009 2:55 pm

Re: Some help with modding

Post by riku2211 »

1: i search google and found the softimage website but it didnt have anything about xsi =\

7:so in other words it would be really complicated to replace the hilt?
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Some help with modding

Post by Frisbeetarian »

7) Not really complicated. You just change the GeometryName to whatever mesh you want and have LightSaberLength = "0".
riku2211
Private Recruit
Posts: 21
Joined: Thu Jul 16, 2009 2:55 pm

Re: Some help with modding

Post by riku2211 »

alright i've gone thru the custom side guide about 3 times and cant get my character to show up. i have no clue what im doing wrong, i have all the odfs,mshs,tgas,zaabin,zafbin,and anims in place. i had them all with their original names, and i changed them to roxas's name, and neither worked. :(
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Some help with modding

Post by Xavious »

Do you have req file(s) for your unit(s)? Is your unit in the side's main req file? Are all the references spelled correctly?
riku2211
Private Recruit
Posts: 21
Joined: Thu Jul 16, 2009 2:55 pm

Re: Some help with modding

Post by riku2211 »

yep, his req is in the req folder, the side's req is in the side's folder next to the req, everything is spelled right, msh, effects, MUNGED, and odf folders. i've got aayla secura's zaabin, zafbin, and anims in the MUNGED folder, and darth vader's (because i want him to have a cloak completly covering his face and body and thought it'd be easiest to start with vader seeing as he's pretty much pitch black, but i guess this may be the problem, trying to give vader aayla's animation and moveset) msh and tga files in the msh folder, and aayla's .combo, rep_weap_lightsaber_aalya.odf, and her .odf. and for some reason they have her name spelled aalya... anyway, im pretty sure i have everything right. am i supposed to rename all the files to match my character?

actually, i just thought of something. i have my Side's folder as "Organization XIII", and roxas as "ORG_inf roxas" (i switched him to infantry so it'd be easier to see if it added him yet rather than activating the hero) should i have the side's folder name and req name and everything changed to org or can i just change Roxas' name and stuff to organization XIII?

edit: this map isnt working out for me, so im just gonna give up on it. but i do still want to make this side though, so yeah.
Jaspo
Command Sergeant Major
Command Sergeant Major
Posts: 282
Joined: Sun Mar 01, 2009 4:34 am
Projects :: AotC DoW+++Boonta Eve Classic
Games I'm Playing :: WoT MBWBVC Robocraft
xbox live or psn: No gamertag set
Contact:

Re: Some help with modding

Post by Jaspo »

User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Some help with modding

Post by Par3210 »

you need to rename all of the files to your hero otherwise it will not be able to find the names of the animations. For instance if there was a animation called aayla_inf_saber_twirl you'd need to rename it to roxas_inf_saber_twirl. This would apply to all the animations. Please correct me if I'm wrong. Why don't you just get Aayla and reskin her? Much much easier. I would not start off making your first map with a custom hero. Use a stock one or download one with the proper files. Still, up to you, though.
riku2211
Private Recruit
Posts: 21
Joined: Thu Jul 16, 2009 2:55 pm

Re: Some help with modding

Post by riku2211 »

ok, that makes sense, and as for the map with the right files, i'll just use what i have of my other map, even thought it's not really a real map, it works. so lemme try renamming them again, and we'll see what happens

edit:ok, i renamed all the files and he still doesnt appear. but i'm gonna try replacing a republic class rather then adding another side.
Commander_Fett
High General
High General
Posts: 847
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Some help with modding

Post by Commander_Fett »

Par3210 wrote:you need to rename all of the files to your hero otherwise it will not be able to find the names of the animations. For instance if there was a animation called aayla_inf_saber_twirl you'd need to rename it to roxas_inf_saber_twirl. This would apply to all the animations. Please correct me if I'm wrong. Why don't you just get Aayla and reskin her? Much much easier. I would not start off making your first map with a custom hero. Use a stock one or download one with the proper files. Still, up to you, though.

No, you don't need to rename the anims, unless you want to. Also, while it is most likely a side problem, are you sure you referenced it right in the LUA? can we see the sections you changed to add him in?
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Some help with modding

Post by Par3210 »

i really should say that you should copy and paste the rep side to your Sides folder, then take out all the units that you don't need, aka things like rep_inf_sniper and rep_inf_officer. Take all them out and leave yourself with the files you want. (The org_hero_whatever it was files) I think this is neccesary to call it in the lua. I would - if I were you. Anyway someone please correct me. I think I'm wrong but not totally sure.
And yes, please post your lua, and BF2 Log for us.We might be able to help if it is not this problem.
And also your side's folder cannot be called Organisation XII or whatever it was. It must be a three letter code - like your map - so it should be "ORG", or "org" (without the quotes, obviously).
riku2211
Private Recruit
Posts: 21
Joined: Thu Jul 16, 2009 2:55 pm

Re: Some help with modding

Post by riku2211 »

ok, i'll rename the side folder to org, clean, munge, and try that. then i'll try everything else.

edit:ok, it loaded up and then crashed.

my LUA(the important parts):
Hidden/Spoiler:
ReadDataFile("sound\\yav.lvl;yav1cw")
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")

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")

ReadDataFile("dc:SIDE\\org.lvl",
"org_inf_roxas")


ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},
}
}

SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_anakin")

AddUnitClass(REP, "org_inf_roxas",1,4)
i highlighted the parts that included my character. i changed the folder name and the req file to ORG rather than organization XIII. i'll try putting the repubblic file with it later, i g2g for now.
Last edited by riku2211 on Tue Jul 21, 2009 6:28 am, edited 2 times in total.
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Some help with modding

Post by Par3210 »

WAIT! Remebmer that the 3 letter side name MUST match your troops (E.g. if you named it org and you had a troop called ORG_inf_supertrooper it would not work, you'd have to have it as org_inf_supertrooper.)
And OK, let's hope that it works :yes:
riku2211
Private Recruit
Posts: 21
Joined: Thu Jul 16, 2009 2:55 pm

Re: Some help with modding

Post by riku2211 »

oh, i had it like that the whole time. :yes:
Post Reply