how do i get a vehicle flyer to work?

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

Private Recruit
User avatar
Posts: 18
Joined: Mon May 11, 2015 12:36 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

how do i get a vehicle flyer to work?

Postby savinpvtmike » Sun May 14, 2017 10:17 pm

ok ik that im kinda anoying but i spent all weekend looking at docs and videos and i get nothing. so i am trying to port a ti model to the game and i managed to export it it shows up in the mesh viewer how i want it but when i make an odf for it and i munge my map it dosnt do anything. even in the map editor when i change a vehicle name it spawns the original. plz help.
Hidden/Spoiler:
Image
Image
Image
Image
Image
Image
Image

Modeling Master
Posts: 673
Joined: Fri Mar 31, 2006 11:02 pm
Location: alberta, canada
Projects :: Scarif Map Pack and Starter Kit

Re: how do i get a vehicle flyer to work?

Postby Gogie » Mon May 15, 2017 12:50 am

You need to set up your custom side; and after it should read ReadDataFile(dc:SIDE//imp.lvl

2nd Lieutenant
User avatar
Posts: 388
Joined: Wed Apr 24, 2013 10:34 pm
Location: Your House
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set

Re: how do i get a vehicle flyer to work?

Postby Lorul1 » Mon May 15, 2017 5:59 pm

you'll have to do just as Gogie said, you'll need to set up a "custom" side and then change (or add) a preexisting tie fighter.

Every "team" in battlefront two (CIS, Republic, Rebel Alliance, Ewoks ect) is contained in its own "side" folder.
In order to edit a soldiers appearance, weapon, or in your case vehicle, you'll need to create a "custom side".

a tutorial can be found here: viewtopic.php?f=27&t=12729

Private Recruit
User avatar
Posts: 18
Joined: Mon May 11, 2015 12:36 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: how do i get a vehicle flyer to work?

Postby savinpvtmike » Mon May 15, 2017 7:55 pm

at this point i think im going to give up but here is what i did based on that tutorial just dk

Hidden/Spoiler:
Image
Image
Image
Image
Image
Image
Image
Image
Image

Jedi
User avatar
Posts: 1184
Joined: Mon Mar 21, 2011 8:12 pm
Location: STALKER!
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4

Re: how do i get a vehicle flyer to work?

Postby ARCTroopaNate » Mon May 15, 2017 10:17 pm

A couple of things, it looks like you're missing weapon odfs.

Secondly, in your lua, it should be "scm_fly_tiehunter") instead of "scm_fly_tiehunter", because it's the last req being called for that side, see how for the other sides the last one has a ) at the end.

Private Recruit
User avatar
Posts: 18
Joined: Mon May 11, 2015 12:36 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: how do i get a vehicle flyer to work?

Postby savinpvtmike » Mon May 15, 2017 11:19 pm

ARCTroopaNate wrote:A couple of things, it looks like you're missing weapon odfs.

Secondly, in your lua, it should be "scm_fly_tiehunter") instead of "scm_fly_tiehunter", because it's the last req being called for that side, see how for the other sides the last one has a ) at the end.

thx man that ) spawns a tie now but it is a tie interceptor for some reason.

edit= im stupid i forgot about this
Image
but in game nothing shows up well back to the drawing board

Modeling Master
Posts: 673
Joined: Fri Mar 31, 2006 11:02 pm
Location: alberta, canada
Projects :: Scarif Map Pack and Starter Kit

Re: how do i get a vehicle flyer to work?

Postby Gogie » Tue May 16, 2017 3:24 pm

Edit because I reread lua and I was wrong.

Do you have imp att set in the second page of vehicle spawns odf?

Edit 2: scm should not be 1kb your sides aren't munging properly do you have the improved and fixed munge files?

Edit 3: your lua is also missing a closing bracket it should read

ReadDataFile(dc:SIDE\\imp.lvl, "scm_fly_tiehunter")

Resistance Leader
User avatar
Posts: 4902
Joined: Tue Feb 09, 2010 8:43 pm
Location: Los Angeles, CA
Projects :: EVERYWHERE
Games I'm Playing :: Dark Souls + BF4
xbox live or psn: Marth8880

Re: how do i get a vehicle flyer to work?

Postby Marth8880 » Tue May 16, 2017 8:48 pm

Do you have a memory pool allocated for EntityFlyer in your mission script? If not, add one.

Example:
Code: Select all
SetMemoryPool("EntityFlyer", 16)

Private Recruit
User avatar
Posts: 18
Joined: Mon May 11, 2015 12:36 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: how do i get a vehicle flyer to work?

Postby savinpvtmike » Wed May 17, 2017 7:09 pm

Marth8880 wrote:Do you have a memory pool allocated for EntityFlyer in your mission script? If not, add one.

Example:
Code: Select all
SetMemoryPool("EntityFlyer", 16)

where can i find the mission script?

Resistance Leader
User avatar
Posts: 4902
Joined: Tue Feb 09, 2010 8:43 pm
Location: Los Angeles, CA
Projects :: EVERYWHERE
Games I'm Playing :: Dark Souls + BF4
xbox live or psn: Marth8880

Re: how do i get a vehicle flyer to work?

Postby Marth8880 » Wed May 17, 2017 7:39 pm

"Mission script" refers to your map's associated LUA file, which will be named something along the lines of "ABCc_con.lua", "ABCc_ass.lua", etc.

Private Recruit
User avatar
Posts: 18
Joined: Mon May 11, 2015 12:36 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: how do i get a vehicle flyer to work?

Postby savinpvtmike » Thu May 18, 2017 6:11 pm

Marth8880 wrote:"Mission script" refers to your map's associated LUA file, which will be named something along the lines of "ABCc_con.lua", "ABCc_ass.lua", etc.

do i just add it anywhere?

Resistance Leader
User avatar
Posts: 4902
Joined: Tue Feb 09, 2010 8:43 pm
Location: Los Angeles, CA
Projects :: EVERYWHERE
Games I'm Playing :: Dark Souls + BF4
xbox live or psn: Marth8880

Re: how do i get a vehicle flyer to work?

Postby Marth8880 » Thu May 18, 2017 7:23 pm

You should add the line anywhere around where the other SetMemoryPool lines are located - not the Combo ones though.

Private Recruit
User avatar
Posts: 18
Joined: Mon May 11, 2015 12:36 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: how do i get a vehicle flyer to work?

Postby savinpvtmike » Thu May 18, 2017 8:35 pm

i give up or just link me every tutorial to port a vehicle and making it work in game

Resistance Leader
User avatar
Posts: 4902
Joined: Tue Feb 09, 2010 8:43 pm
Location: Los Angeles, CA
Projects :: EVERYWHERE
Games I'm Playing :: Dark Souls + BF4
xbox live or psn: Marth8880

Re: how do i get a vehicle flyer to work?

Postby Marth8880 » Fri May 19, 2017 5:33 pm

It's not a complicated concept, you just need to apply your critical thinking skills. :)

This is the section of the script where you should add the line:

Code: Select all
   --  Level Stats
   ClearWalkers()
   AddWalkerType(0, 0)  -- number of droidekas
   AddWalkerType(1, 0)
   AddWalkerType(2, 0)
   AddWalkerType(3, 0)
   local weaponCnt = 256
   local guyCnt = 64
   SetMemoryPoolSize("Aimer", 20)
   SetMemoryPoolSize("AmmoCounter", weaponCnt)
   SetMemoryPoolSize("BaseHint", 250)
   SetMemoryPoolSize("EnergyBar", weaponCnt)
   SetMemoryPoolSize("EntityCloth", 0)
   SetMemoryPoolSize("EntityFlyer", 0)
   SetMemoryPoolSize("EntitySoundStatic", 45)
   SetMemoryPoolSize("Navigator", guyCnt)
   SetMemoryPoolSize("Obstacle", 393)
   SetMemoryPoolSize("PathFollower", guyCnt)
   SetMemoryPoolSize("PathNode", 384)
   SetMemoryPoolSize("SoldierAnimation", 442)
   SetMemoryPoolSize("SoundSpaceRegion", 26)
   SetMemoryPoolSize("TentacleSimulator", 0)
   --SetMemoryPoolSize("Timer", 512)
   SetMemoryPoolSize("TreeGridStack", 150)
   SetMemoryPoolSize("UnitAgent", guyCnt)
   SetMemoryPoolSize("UnitController", guyCnt)
   SetMemoryPoolSize("Weapon", weaponCnt)

Private Recruit
User avatar
Posts: 18
Joined: Mon May 11, 2015 12:36 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: how do i get a vehicle flyer to work?

Postby savinpvtmike » Fri May 19, 2017 6:11 pm

Marth8880 wrote:It's not a complicated concept, you just need to apply your critical thinking skills. :)

thats not why this is why

Image
Image

Jedi
User avatar
Posts: 1184
Joined: Mon Mar 21, 2011 8:12 pm
Location: STALKER!
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4

Re: how do i get a vehicle flyer to work?

Postby ARCTroopaNate » Fri May 19, 2017 10:36 pm

Can you post your bf2 error log from the debug version.

Resistance Leader
User avatar
Posts: 4902
Joined: Tue Feb 09, 2010 8:43 pm
Location: Los Angeles, CA
Projects :: EVERYWHERE
Games I'm Playing :: Dark Souls + BF4
xbox live or psn: Marth8880

Re: how do i get a vehicle flyer to work?

Postby Marth8880 » Sat May 20, 2017 11:55 am

savinpvtmike wrote:
Marth8880 wrote:It's not a complicated concept, you just need to apply your critical thinking skills. :)

thats not why this is why

Hidden/Spoiler:
Image
Image

Sorry, that's my bad. The name shouldn't be SetMemoryPool, it should be SetMemoryPoolSize.

Private Recruit
User avatar
Posts: 18
Joined: Mon May 11, 2015 12:36 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: how do i get a vehicle flyer to work?

Postby savinpvtmike » Sat May 20, 2017 1:47 pm

ok before i keep going lets start back at the beginning i am creating a new world and is it possible just to replace the original model with my new one just to see if it works?

Resistance Leader
User avatar
Posts: 4902
Joined: Tue Feb 09, 2010 8:43 pm
Location: Los Angeles, CA
Projects :: EVERYWHERE
Games I'm Playing :: Dark Souls + BF4
xbox live or psn: Marth8880

Re: how do i get a vehicle flyer to work?

Postby Marth8880 » Sun May 21, 2017 3:19 am

The EntityFlyer memory pool needs to be filled in order to have flyers spawn in-game no matter what. :p

Return to SWBF2 Modding

Who is online

Users browsing this forum: No registered users and 4 guests