Vehicles and other questions

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

adventfear
Rebel Sergeant
Rebel Sergeant
Posts: 199
Joined: Fri Feb 29, 2008 3:46 pm

Re: Vehicles

Post by adventfear »

It won't let me spawn:
Flyers
AT-TEs
Hailfires
STAPs

It will let me spawn:
IFTs
AATs
BARC Speeders

Do those top ones need some special odfs transfered?
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Vehicles

Post by woner11 »

They need everything copied into your side folder and the odfs need to be called in the luas. Did your read the getting started doc, because none of us can explain it as good as that.
adventfear
Rebel Sergeant
Rebel Sergeant
Posts: 199
Joined: Fri Feb 29, 2008 3:46 pm

Re: Vehicles

Post by adventfear »

Well, got the AT-TE finally working after TWO DAYS. Only problem: No sound from the stomping or weapons.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Vehicles

Post by woner11 »

Open the odf and add the sound files you want.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Vehicles

Post by FragMe! »

The odf already has all the sound references in them the problem is that not all world sound files have the walker sounds. What you will need to do is in the LUA change the line ReadDataFile("sound\\yav.lvl;yav1cw") to a world that would normally have the ATTE I would suggest ReadDataFile("sound\\geo.lvl;geo1cw") now the problem with this is you may now get the walker sounds but may lose some other ones. The other thing you could do is make a custom sound file which would have all the sounds required for the ATTE but the first way I mentioned is easier.
User avatar
tsurugi13
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Mon Dec 17, 2007 6:16 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Battling the ISA menace on Helghan.

Re: Vehicles

Post by tsurugi13 »

You need to add those to the .lua. It should look like this:

ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc: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_cloakedanakin",
"rep_hover_barcspeeder") << replace with what you want or just add.
ReadDataFile("dc:SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"sit_hero_revan",
"cis_hover_aat")

Sorry for the mess, code buttons not working?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Vehicles

Post by Maveritchell »

Appreciate the helpfulness, but there's no need to make a new topic to answer his question. (Especially since the documentation still covers this in addition to the fact that it's been posted countless times.)
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: Vehicles

Post by obiboba3po »

yea lol, i made this, then realized he already answered it, so w/e
adventfear
Rebel Sergeant
Rebel Sergeant
Posts: 199
Joined: Fri Feb 29, 2008 3:46 pm

Re: Vehicles

Post by adventfear »

Great, now the droid starfighters won't show. What do I have to type into the LUA: droidfighter or droidstarfighter?
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Vehicles

Post by woner11 »

@ Obibabdo (whatever)- it actually is in the docs you just haven't been looking hard enough because that is where I have learned it.

@adventfear- You have type in the odf name. Underscores and everything. This has been asked countless times and documented countless times as well.
adventfear
Rebel Sergeant
Rebel Sergeant
Posts: 199
Joined: Fri Feb 29, 2008 3:46 pm

Re: Vehicles

Post by adventfear »

But what name do I have to type in?
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Vehicles

Post by woner11 »

What?!! How can this be even a question?!! you type in the odf title - the .odf part. This is in the getting started guide which it seems you haven't read. If you have, the read it again. I refuse to answer any more noobish questions.
adventfear
Rebel Sergeant
Rebel Sergeant
Posts: 199
Joined: Fri Feb 29, 2008 3:46 pm

Re: Vehicles

Post by adventfear »

I have read it four times yet it doesn't really help my situation.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Vehicles

Post by Maveritchell »

adventfear wrote:But what name do I have to type in?
What are you trying to spawn? Specifically? And what's the name of the .odf? Do you know the name of the .odf you want?

For flyers, it's best to spawn the versions that have _sc in the names of their .odfs, those are the ones you're used to from space.
adventfear
Rebel Sergeant
Rebel Sergeant
Posts: 199
Joined: Fri Feb 29, 2008 3:46 pm

Re: Vehicles

Post by adventfear »

No confusion on that anymore. But what I am having trouble with now are buildings. I copy everything (msh, odf) to my "world1" file, yet when I put the building in the map it comes out gray and textureless on the Zero Editor, coming out that way on the map itself as well. I checked all the tuts and documents and nothing helps.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Vehicles

Post by Maveritchell »

Make sure you're copying all the associated .tga files, too (can be found by opening the .msh file and searching ".tga")
adventfear
Rebel Sergeant
Rebel Sergeant
Posts: 199
Joined: Fri Feb 29, 2008 3:46 pm

Re: Vehicles

Post by adventfear »

Okay, thanks. My new map is coming along nicely (and this time it IS in the addon folder so when it is done I can ship it).

Just a few more questions:

How can I make it so the rep_fly_gunship (not sc version) has the AT-TE's lasers and the IFT's missiles?
Is it possible to make it stop midair by tapping and holding down the "down" button?
Is it possible to increase the passengar slots on the gunship?


Is it possible to increase the amount of dust in the map provided by the "dust" prop?
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Vehicles

Post by woner11 »

Go into the odf and you'll see all those values that you just asked about. I've got to go, so I can't explain it in much detail.
adventfear
Rebel Sergeant
Rebel Sergeant
Posts: 199
Joined: Fri Feb 29, 2008 3:46 pm

Re: Vehicles

Post by adventfear »

I did but it's all greek to me. What exact values do I change/add for the Gunship?

I'm talking about the weaker rep_fly_gunship and not the rep_fly_gunship_sc.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Vehicles

Post by woner11 »

Change the odf name under the weapon section to change it to a different weapon, remember to type the new weapon's odf name. As for passenger slots if you read down through the odf you'll see that they are mentioned in there, you might be able to duplicate them, however, I'm not sure what the carrying capacity is. As for the stopping in midair, I'm not sure, if it was a jedi you could use a combo file, but for this I'm really not sure.
Post Reply