Flyer splines not working

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

Captain
User avatar
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Location: Look to your left.... no, your other left....
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO

Flyer splines not working

Postby wishihadaname » Wed Nov 05, 2008 11:57 pm

so i just added soem gunships to my map and set up the splines as the document asked for and named them EntityPath gunship1 2 and 3. and named the branch region EntityPathBranch Backup but when my gunship is ingamge it just flies in a strait line and runs into a cliff instead of following the splines the only error that seemed related in my BFront.log is this

Code: Select all
Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [MEDIUM] radius [4.72] in node [Hub23]

Jedi Admin
User avatar
Posts: 7420
Joined: Mon Aug 21, 2006 11:03 pm

Re: Flyer splines not working

Postby Maveritchell » Thu Nov 06, 2008 2:51 am

Did you add the correct PathFollowerClass?

Captain
User avatar
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Location: Look to your left.... no, your other left....
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO

Re: Flyer splines not working

Postby wishihadaname » Thu Nov 06, 2008 1:12 pm

im not sure how to do that i thought i just put a line, name it correctly and ships will follow along it? i didn't really understand most of the document. do i have to change the odf for the gunship?

Master of the Force
User avatar
Posts: 6069
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Flyer splines not working

Postby DarthD.U.C.K. » Thu Nov 06, 2008 1:56 pm

i dont think so
just give the path the correct followerclass
pathfollowlines from tieinterceptor:
Code: Select all
// PathFollower Attributes
PathFollowerClass          = "imp"
PathFollowerClass_CTF      = "imp_flag"
PathFollowerBranchPaths     = "6"
PathFollowerBranchMaxAngle  = "60"
PathFollowerMinBranchDist   = "190.0"
PathFollowerBranchRange      = "1500"

Jedi Admin
User avatar
Posts: 7420
Joined: Mon Aug 21, 2006 11:03 pm

Re: Flyer splines not working

Postby Maveritchell » Thu Nov 06, 2008 3:09 pm

If you don't take time to carefully read it through (I know it's a lot to take in at once, but even the same) you'll wind up - inevitably - with something going wrong down the line. Here are the pertinent parts of "FlyerSplineFollowing.txt" (emphasis mine):
Path Follower ODFs
------------------

Any entities which are derived from EntityPathFollower (ask a programmer) can
follow a designer defined path. The ODF associated with the entity class can
contain the following properties to control how an entity follows a path...


PathFollowerClass -
A string which is used to determine paths this entity can follow. If this is
not set, the entity will follow any path.


PathFollowerClass_CTF -
Just like above, but used when they are carrying the flag. If this is not set,
they'll just use the normal class above when they get the flag


Path properties
---------------

Class -
String ID which relates to the entity ODF's PathFollowerClass property. An
entity will only follow a path if...


o the PathFollowerClass property of the entity is [edited in correction] set
o the Class property of the path is [edited in correction] set
o the Class property of the path is the same as the PathFollowerClass property
of the entity.

Up to 5 class properties can be set on a path allowing 5 different entity
classes to follow the path. To specify additional classes, use another
property with the name "Class1", "Class2", etc...
If more than 5 classes are required per path, ask a programmer.


You must set the property of the flyer spline path to match up with the PathFollowerClass set in your flyer's .odf. The republic gunship should already have its PathFollowerClass set to "rep".

Once you've already set up your path (which is the easy part, because a flyer spline is just a normal path prepended with "entitypath"), the only thing that makes it a flyer spline is this adding a PathFollower Class, as seen here:

Hidden/Spoiler:
Image


Note that in this example, I have two different pathfollower classes set to follow the same path - PathFollowerClasses "orep" and "sith." For you, you'd want to make your property type be "class" (or if you've got more than one, "class1"), and your property value to be "rep" (or "all" if you're talking about the Alliance gunship).

Captain
User avatar
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Location: Look to your left.... no, your other left....
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO

Re: Flyer splines not working

Postby wishihadaname » Thu Nov 06, 2008 4:06 pm

thank you for the help i don't quite have it workign yet but its probably cas the splines and the gunship are in different layers :oops: i put the gunship in teh conquest layer cas thats were my cp's are but the lines are in the base layer so i'm fixing that atm, just one more qeustion i have, is there a special way to set up landing hintnodes? do they have to be in a branch area? i looked over the spline.doc and it didn't say how to make the fliers land.

Return to SWBF2 Modding

Who is online

Users browsing this forum: No registered users and 0 guests