Vehicle spawn

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Post Reply
User avatar
Dragonum
2nd Lieutenant
2nd Lieutenant
Posts: 405
Joined: Tue Nov 16, 2004 4:08 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Vehicle spawn

Post by Dragonum »

my problem is, i make one Vehicle spawn at CP1 and it works, but when i make a vehicle spawn at CP2, the vehicle will not spawn. I do the same like vehicle spawn at CP1, i only change CP1 to CP2.
I try the vehicle from vehicle spawn CP2 on vehicle spawn CP1, and the vehicle spawn. so there is no problem with the vehicle.
where is the problem, is there anything to change in the mission lua, or is it a other problem.

thanks
dragonum
eddie
Gametoast Supporter
Gametoast Supporter
Posts: 366
Joined: Mon Oct 18, 2004 3:27 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 eddie »

it is probably mission. I do not know how they work I just use existing one, like if you want a lot of flyers=bes1, if you want balanced types of vehicles=nab1 or tat1.
User avatar
Dragonum
2nd Lieutenant
2nd Lieutenant
Posts: 405
Joined: Tue Nov 16, 2004 4:08 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 Dragonum »

Know it works, thanks to Saturn5, for help.

Here, Saturn5 tell me what is wrong:

Go into object mode and select your imperial flyer. Look at the property
box on the right hand side of the screen. You have filled in the TIE
fighter boxes for ClassImpAtk. This is the incorrect part that is causing.
Basically, when you create a map, the game sets two teams, and defines one
as the attacking team and one as the defending team.

By default, the Rebels and Droids are attacking. So, if you want the rebels
to have an X-Wing, as you have correctly done, you fill in all_fly_xwing in
the ClassAllAtk box. Now, if you want the Empire to have a TIE fighter, as
they are the defending team, you need to press the PageDown button, where
you will find boxes for the defending team. Fill in imp_fly_tiefighter in
the ClassImpDef box. Save the map and munge. All being well, there is your
TIE fighter. :)

I have attached the modified .wld file for you. Replace your .wld file with
this one, and try editing the map. (By the way, I have renamed the vehicle
spawns to show which CP they are attached to, just a good idea when your
maps become more complex. If you want to enable flyers in the Clone Wars
map, don't forget to remove the comment marks ( -- ) in the
SetMemoryPoolSize section.


Look again at the tutorial, step 8 :

Click the page down button, and fill in these boxes:
ClassImpDef - type in imp_fly_tiefighter
ClassRepDef - type in rep_fly_jedifighter

I am copying this reply to the forum so that other modders with this problem
can read it.
Cheers and best of luck with the modding,

Saturn5
Saturn_V
Emperor's Hand
Posts: 487
Joined: Sun Dec 26, 2004 12:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Saturn_V »

Hi, I posted the reply to Dragonum without proofreading :oops: The first paragraph should read:

Go into object mode and select your CP2 flyer. Look at the property box on the right hand side of the screen. You have specified a TIE fighter in the ClassImpAtk box. This is the incorrect part that is causing the problem. Basically, when you create a map, the game sets two teams, and defines one as the attacking team and one as the defending team.

Cheers,
Saturn5
Lindsey

Post by Lindsey »

When I try to add vehicles and put them in the script and what not and play the mission in the debug, I get error messages that theres a vehicle spawn with a missing class followed by the name of the vehicle I tryed to add (ex. all_fly_xwing) :?
Post Reply