Adding space ships in ground maps [Solved]

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
User avatar
Xterminator
Private Second Class
Posts: 69
Joined: Thu Feb 19, 2009 5:07 pm

Adding space ships in ground maps [Solved]

Post by Xterminator »

Ok I was wondering , can you add spaceships eg Republics LA AT onto a ground map.

So far I have followed the tutorial to get shipped map kamino on my level and that worked, but i want a Republic LA AT on my kamino level so i added a vehicle spawn and added Rep_LA_AT to the Class neutral.
I munge but no ship.

Also I am editing the galactic civil war era beacuse i want the rebels to have the LA AT is this the problem?
Last edited by Xterminator on Sat Apr 04, 2009 10:56 am, edited 1 time in total.
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: Adding space ships in ground maps

Post by B.I.G_Cookie »

You have to add the laat in your map lua
You have to add "rep_fly_gunship"

And you have also to add "rep_fly_gunship" to your vehicle spawn
User avatar
Xterminator
Private Second Class
Posts: 69
Joined: Thu Feb 19, 2009 5:07 pm

Re: Adding space ships in ground maps

Post by Xterminator »

I did this and nothing happened. Do i need a custom side or add a dc: anywhere?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Adding space ships in ground maps

Post by DarthD.U.C.K. »

no, try to enter the gunships name in the rep and imp atk/ and all and cis def boxes
User avatar
Xterminator
Private Second Class
Posts: 69
Joined: Thu Feb 19, 2009 5:07 pm

Re: Adding space ships in ground maps

Post by Xterminator »

It still doesnt work it must be somthing wrong with the .lua (note i m editing the KF1g_1flag.lua

Code: Select all

     ReadDataFile("sound\\kam.lvl;kam1gcw")


     --SetMaxFlyHeight(43)
     --SetMaxPlayerFlyHeight (43)

     ReadDataFile("SIDE\\all.lvl",
                    "all_inf_rifleman_urban",
                    "all_inf_rocketeer_fleet",
                    "all_inf_sniper_fleet",
                    "all_inf_engineer_fleet",
                    "all_hero_hansolo_tat",
                    "all_inf_wookiee",
                    "all_inf_officer",
                    "rep_fly_gunship")
                    
     ReadDataFile("SIDE\\imp.lvl",
                    "imp_inf_rifleman",
                    "imp_inf_rocketeer",
                    "imp_inf_engineer",
                    "imp_inf_sniper",
                    "imp_inf_dark_trooper",
                    "imp_hero_bobafett",
                    "imp_inf_officer")
ReadDataFile("SIDE\\tur.lvl",
                        "tur_bldg_chaingun_roof",
                        "tur_weap_built_gunturret") 

Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Adding space ships in ground maps

Post by Xavious »

You can't load the Republic gunship from the Rebel side. What you want is "all_fly_gunship_sc," which will give you the gunship the Rebels use in space. (Identical to Republic gunship other than symbol on side) Make sure you fix the reference in the lua and the vehicle spawn to be "all_fly_gunship_sc."
User avatar
Xterminator
Private Second Class
Posts: 69
Joined: Thu Feb 19, 2009 5:07 pm

Re: Adding space ships in ground maps

Post by Xterminator »

I did what you said but still nothing :(

I been thinking is it any of these?

-That i need the all side in my sides folder in data_KF1/sides

- Ive put the class lables wrong - i put the all_fly_gunship_sc in netural ,and n both All class lables

- Am i mungeing it wrong to i need to unclick all the boxes or click another one? at the moment I just have common selected and with no sides
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Adding space ships in ground maps

Post by Xavious »

Ah, I forgot, the gunship is a command flyer. You'll need to add this line to your memory pool section in your lua:

Code: Select all

SetMemoryPoolSize("CommandFlyer", 2)
The number is the number of command flyers you want in the map. You'll also need to set up the vehicle spawn to correspond with the team number you want it to spawn for. There's an input box in ZeroEditor where you can set this up once you select the vehicle spawn object. (1 would be Empire, and 2 would be Rebels)
User avatar
Xterminator
Private Second Class
Posts: 69
Joined: Thu Feb 19, 2009 5:07 pm

Re: Adding space ships in ground maps

Post by Xterminator »

Thankyou it works now :D

thankyou all who helped me especialy xavious :) :)
Post Reply