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

Post Reply
savinpvtmike
Private Recruit
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?

Post by savinpvtmike »

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
User avatar
Gogie
Modeling Master
Modeling Master
Posts: 708
Joined: Fri Mar 31, 2006 11:02 pm
Projects :: Tinkering away with LEGO
Location: alberta, canada

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

Post by Gogie »

You need to set up your custom side; and after it should read ReadDataFile(dc:SIDE//imp.lvl
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

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

Post by Lorul1 »

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: http://www.gametoast.com/viewtopic.php?f=27&t=12729
savinpvtmike
Private Recruit
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?

Post by savinpvtmike »

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
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

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

Post by ARCTroopaNate »

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.
savinpvtmike
Private Recruit
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?

Post by savinpvtmike »

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
User avatar
Gogie
Modeling Master
Modeling Master
Posts: 708
Joined: Fri Mar 31, 2006 11:02 pm
Projects :: Tinkering away with LEGO
Location: alberta, canada

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

Post by Gogie »

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")
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

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

Post by Marth8880 »

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

Example:

Code: Select all

SetMemoryPool("EntityFlyer", 16)
savinpvtmike
Private Recruit
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?

Post by savinpvtmike »

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?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

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

Post by Marth8880 »

"Mission script" refers to your map's associated LUA file, which will be named something along the lines of "ABCc_con.lua", "ABCc_Diet Dr. Pepper.lua", etc.
savinpvtmike
Private Recruit
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?

Post by savinpvtmike »

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_Diet Dr. Pepper.lua", etc.
do i just add it anywhere?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

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

Post by Marth8880 »

You should add the line anywhere around where the other SetMemoryPool lines are located - not the Combo ones though.
savinpvtmike
Private Recruit
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?

Post by savinpvtmike »

i give up or just link me every tutorial to port a vehicle and making it work in game
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

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

Post by Marth8880 »

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)
savinpvtmike
Private Recruit
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?

Post by savinpvtmike »

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
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

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

Post by ARCTroopaNate »

Can you post your bf2 error log from the debug version.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

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

Post by Marth8880 »

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.
savinpvtmike
Private Recruit
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?

Post by savinpvtmike »

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?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

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

Post by Marth8880 »

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