Page 1 of 1
how do i get a vehicle flyer to work?
Posted: Sun May 14, 2017 10:17 pm
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.
Re: how do i get a vehicle flyer to work?
Posted: Mon May 15, 2017 12:50 am
by Gogie
You need to set up your custom side; and after it should read ReadDataFile(dc:SIDE//imp.lvl
Re: how do i get a vehicle flyer to work?
Posted: Mon May 15, 2017 5:59 pm
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
Re: how do i get a vehicle flyer to work?
Posted: Mon May 15, 2017 7:55 pm
by savinpvtmike
at this point i think im going to give up but here is what i did based on that tutorial just dk
Re: how do i get a vehicle flyer to work?
Posted: Mon May 15, 2017 10:17 pm
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.
Re: how do i get a vehicle flyer to work?
Posted: Mon May 15, 2017 11:19 pm
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

but in game nothing shows up well back to the drawing board
Re: how do i get a vehicle flyer to work?
Posted: Tue May 16, 2017 3:24 pm
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")
Re: how do i get a vehicle flyer to work?
Posted: Tue May 16, 2017 8:48 pm
by Marth8880
Do you have a memory pool allocated for EntityFlyer in your mission script? If not, add one.
Example:
Re: how do i get a vehicle flyer to work?
Posted: Wed May 17, 2017 7:09 pm
by savinpvtmike
Marth8880 wrote:Do you have a memory pool allocated for EntityFlyer in your mission script? If not, add one.
Example:
where can i find the mission script?
Re: how do i get a vehicle flyer to work?
Posted: Wed May 17, 2017 7:39 pm
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.
Re: how do i get a vehicle flyer to work?
Posted: Thu May 18, 2017 6:11 pm
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?
Re: how do i get a vehicle flyer to work?
Posted: Thu May 18, 2017 7:23 pm
by Marth8880
You should add the line anywhere around where the other SetMemoryPool lines are located - not the Combo ones though.
Re: how do i get a vehicle flyer to work?
Posted: Thu May 18, 2017 8:35 pm
by savinpvtmike
i give up or just link me every tutorial to port a vehicle and making it work in game
Re: how do i get a vehicle flyer to work?
Posted: Fri May 19, 2017 5:33 pm
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)
Re: how do i get a vehicle flyer to work?
Posted: Fri May 19, 2017 6:11 pm
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

Re: how do i get a vehicle flyer to work?
Posted: Fri May 19, 2017 10:36 pm
by ARCTroopaNate
Can you post your bf2 error log from the debug version.
Re: how do i get a vehicle flyer to work?
Posted: Sat May 20, 2017 11:55 am
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
Sorry, that's my bad. The name shouldn't be SetMemoryPool, it should be SetMemoryPoolSize.
Re: how do i get a vehicle flyer to work?
Posted: Sat May 20, 2017 1:47 pm
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?
Re: how do i get a vehicle flyer to work?
Posted: Sun May 21, 2017 3:19 am
by Marth8880
The EntityFlyer memory pool needs to be filled in order to have flyers spawn in-game no matter what. :p