how do i get a vehicle flyer to work?
Moderator: Moderators
-
- 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?
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:
- Gogie
- 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?
You need to set up your custom side; and after it should read ReadDataFile(dc:SIDE//imp.lvl
- Lorul1
- Rebel Colonel
- Posts: 562
- Joined: Wed Apr 24, 2013 10:34 pm
- Projects :: Assault on Theed
- xbox live or psn: No gamertag set
- Location: Your House
Re: how do i get a vehicle flyer to work?
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
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
-
- 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?
at this point i think im going to give up but here is what i did based on that tutorial just dk
Hidden/Spoiler:
-
- Jedi
- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
Re: how do i get a vehicle flyer to work?
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.
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
- 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?
thx man that ) spawns a tie now but it is a tie interceptor for some reason.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.
edit= im stupid i forgot about this
but in game nothing shows up well back to the drawing board
- Gogie
- 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?
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")
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
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: how do i get a vehicle flyer to work?
Do you have a memory pool allocated for EntityFlyer in your mission script? If not, add one.
Example:
Example:
Code: Select all
SetMemoryPool("EntityFlyer", 16)
-
- 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?
where can i find the mission script?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)
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: how do i get a vehicle flyer to work?
"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.
-
- 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?
do i just add it anywhere?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.
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: how do i get a vehicle flyer to work?
You should add the line anywhere around where the other SetMemoryPool lines are located - not the Combo ones though.
-
- 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?
i give up or just link me every tutorial to port a vehicle and making it work in game
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: how do i get a vehicle flyer to work?
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:
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
- 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?
thats not why this is whyMarth8880 wrote:It's not a complicated concept, you just need to apply your critical thinking skills.
-
- Jedi
- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
Re: how do i get a vehicle flyer to work?
Can you post your bf2 error log from the debug version.
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: how do i get a vehicle flyer to work?
Sorry, that's my bad. The name shouldn't be SetMemoryPool, it should be SetMemoryPoolSize.savinpvtmike wrote:thats not why this is whyMarth8880 wrote:It's not a complicated concept, you just need to apply your critical thinking skills.
Hidden/Spoiler:
-
- 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?
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
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: how do i get a vehicle flyer to work?
The EntityFlyer memory pool needs to be filled in order to have flyers spawn in-game no matter what. :p