How do i add vehicles to a map?

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

Post Reply
jim4feyenoord

How do i add vehicles to a map?

Post by jim4feyenoord »

i don't know how to add vehicles spawns to a map.
i read the documentation but it just doesnt work, when i test the map their is nothing.
Spacerocker

Post by Spacerocker »

I'm also having this problem. What else besides what it says in the Getting Started doc do we need to do to get vehicles to spawn.
A little help for a couple of noobies please?
Talibanman

Post by Talibanman »

theres a tutorial for that
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Fistly, welcome to gametoast!

Secondly, I would look in the SWBF1 Modding forum at the stickies, and download any tutorials from the downloads section you can get your hands on. Usually they will cover anything you should need. If you still have trouble, tell us whether some vehicles are spawning, none, etc.

The community is glad to help, but we typically will refer you to the tutorials first. There's a help file tutorial in the Battlefront 1 downloads section that should help you both with vehicles, but I would also browse the BF1 modding stickies, and I'd also recommend our new "FAQ/Everything you need" section in this forum, as it is updated a couple of times a week as we all learn the new features of BF2.
jim4feyenoord

Post by jim4feyenoord »

ok thanks i didn't look at the bf1 forums and tutorials yet
Spacerocker

Post by Spacerocker »

Thank you very much for pointing us in the right direction.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

You've quite welcome. :D
Spacerocker

Post by Spacerocker »

One last question. At least I hope it is.
Ok. Im a little confused with one step in the tutorial. Ive added the vehical spawn to my map and opened up my LUA file, then the tutorial tells me this step-

10. If you choose GCW Era Mission LUA, look under the file for the line ReadDataFile("SIDE\\all.lvl",. If you had added the Alliance Combat Speeder to your map, you must type "all_hover_combatspeeder", under "all_inf_basicdesert",.

The only problem is that there isn't an "all_inf_basicdesert" in the LUA file for my map to type "all_hover_combatspeeder" under. Now Im sure Im in the right LUA because it has the other "all_~_~" lines in it. What should I do?
OGEB1103

Post by OGEB1103 »

the lua files for your map should be in data_###/Common/Scripts/###
### = your mod id

i have a problem with flyers in ground maps
i've added the spawn object into the world(on the conquest layer) and added the string name to it. i added this to the lua but the flyer didn't appear in-game. i've done the same for normal vehicles(namely the isp) and it works. and i'm pretty sure that there is a memory pool for flyers in the lua too
please help
Leviathan
Missing Jedi Admin
Posts: 3277
Joined: Fri Nov 12, 2004 2:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Leviathan »

Space', using "all_hover_combatspeeder" independently of "all_inf_basicdesert" can be done, since this last entry is affiliated to the Rebel Alliance's units called by the level and not to vehicles present on it. Therefore, to sum up, you do not need to paste the "all_hover_combatspeeder" entry after a section named "all_inf_basicdesert", but equally after a one titled "all_inf_basic", "all_inf_basicsnow", etc...
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Odd... I've had flyers in.. make sure you hit page down and fill in both ATK and DEF values in the spawn properties.
OGEB1103

Post by OGEB1103 »

Why both? Surely if the ALL is ATK and the IMP DEF i only need to put my IMP flyer into the IMP DEF value.
Darth-Derkie
1st Lieutenant
1st Lieutenant
Posts: 453
Joined: Thu Feb 03, 2005 6:32 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: The Netherlands

Post by Darth-Derkie »

When you cannot get your vehicles to spawn, assign your spawn points to a side. That worked for me. :)
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

It's just safer to fill in both. There's no reason not to. Especially if you change sides in your luas.
OGEB1103

Post by OGEB1103 »

Darth-Derkie wrote:When you cannot get your vehicles to spawn, assign your spawn points to a side. That worked for me. :)
what does THAT mean
Spacerocker

Post by Spacerocker »

Leviathan wrote:Space', using "all_hover_combatspeeder" independently of "all_inf_basicdesert" can be done, since this last entry is affiliated to the Rebel Alliance's units called by the level and not to vehicles present on it. Therefore, to sum up, you do not need to paste the "all_hover_combatspeeder" entry after a section named "all_inf_basicdesert", but equally after a one titled "all_inf_basic", "all_inf_basicsnow", etc...
Thanks for the info Leviathan, it worked. Yay!
Darth_Plegueis

Post by Darth_Plegueis »

My vehicles are in, but they don't have sound. My second pilot's gun makes noise but nothing else.
Post Reply