• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

SOLVED AI Line generation/Missing Guidelines

3DCat

New Member
I'm not sure if there is a gap in my track creation workflow but for some reason I do no have track borders at all, and I cannot record an AI line. My AI folder remains empty on exiting AC.

I've made sure to make non-track areas that are drivable IS_VALID_TRACK=0 in surfaces leaving only ROAD set to IS_VALID_TRACK=1.

On loading into the track and pulling up the AI app the track has no red lines to mark the edge, is this a chicken and egg scenario where I need to generate the initial AI line via record before I get them? If so then I need to fix my not generating issue.

I've got two empties, one for AC_START_0 and AC_HOTLAP_START_0 but it didn't seem to help when attempting to record an AI line even after a few laps.

With AI Line Helper open left and right show NaN.

I don't need anything perfect as I'm not actually expecting to have AI drive around this track but it does help with wrong way indication and track camera switching.
 

Fuzo

Member
looks like your track is missing "sector gates" (AC_TIME_x_L, AC_TIME_x_R), first pair of nodes should be at the start/finish, then 2 pairs somewhere into the track, properly aligned (local Y facing up, Z facing to the drivings direction), then you should be able to record the AI line. I am not sure whether one pair is enough or you need to have all 3, I have never tested it. But with 3 you will be OK for sure.
 

3DCat

New Member
looks like your track is missing "sector gates" (AC_TIME_x_L, AC_TIME_x_R), first pair of nodes should be at the start/finish, then 2 pairs somewhere into the track, properly aligned (local Y facing up, Z facing to the drivings direction), then you should be able to record the AI line. I am not sure whether one pair is enough or you need to have all 3, I have never tested it. But with 3 you will be OK for sure.
That was indeed the case, I assumed that these pairs were meant to denote a virtual "line" between them so set them up as such, one at the start and another about halfway through the track and everything just started working correctly.

Now I'm fighting to get cameras to behave, I figured out how in/out works and even though clicking on my track spline was essentially useless I was able to manually enter the values and get them all setup.

I can't seem to actually switch between them though even though creating an AI line should have fixed that issue, it used to start and be stuck on the first camera but now it seems as though I'm stuck on about the third (?) camera an unable to swap between them.

Not sure what all the options do either, I'm guessing IS_FIXED=1 prevents following the target car?
 

Fuzo

Member
I sometimes have this issue as well, I can't directly import my track fbx to ksEditor, load AI spline and edit cameras, clicking on the spline does nothing or the marker appears somewhere else. There is a workaround though, for me it works when I export my track from ksEditor to KN5 and then unpack it to fbx again with 3dsimed. Then I load that exported fbx to the ksEditor and everything works. There is another way, you can enter spline edit tab in ksEditor and move the spline marker with arrows in the menu, in this case it is good to resample the spline to make movement quicker :)

I am not sure what you mean by switching between the cameras, because game is switching automatically according to AI spline of your car. You can switch only whole camera sets if you have more than one.

IS_FIXED=1 creates static camera not following car.
 

3DCat

New Member
I sometimes have this issue as well, I can't directly import my track fbx to ksEditor, load AI spline and edit cameras, clicking on the spline does nothing or the marker appears somewhere else. There is a workaround though, for me it works when I export my track from ksEditor to KN5 and then unpack it to fbx again with 3dsimed. Then I load that exported fbx to the ksEditor and everything works. There is another way, you can enter spline edit tab in ksEditor and move the spline marker with arrows in the menu, in this case it is good to resample the spline to make movement quicker :)

I am not sure what you mean by switching between the cameras, because game is switching automatically according to AI spline of your car. You can switch only whole camera sets if you have more than one.

IS_FIXED=1 creates static camera not following car.
So by having all my track cams contained in a single cameras.ini its not allowing me to manual switch as its simply using the camera closest to the target vehicle based on the spline?

After some testing I noticed it did indeed switch automatically as I drove around the track, though sometimes it seemed to bug out and switch various car cams rather than track cams.. not sure what that is about. Maybe since I was driving slowly around the track while testing the track cams? Perhaps I need to add some overlap in the IN/OUT?

I'm guessing to get manual switching I would need to move each camera to its own set?
 

Fuzo

Member
So by having all my track cams contained in a single cameras.ini its not allowing me to manual switch as its simply using the camera closest to the target vehicle based on the spline?

After some testing I noticed it did indeed switch automatically as I drove around the track, though sometimes it seemed to bug out and switch various car cams rather than track cams.. not sure what that is about. Maybe since I was driving slowly around the track while testing the track cams? Perhaps I need to add some overlap in the IN/OUT?

I'm guessing to get manual switching I would need to move each camera to its own set?
No, you can't manually change track cameras, only car cameras, and even those are cycling trough presets :)

Your camera set needs to cover the whole spline which goes from 0 - start to 1 - finish, everything between needs to be covered by cameras, IN of one camera has to be OUT of the camera before. First camera starts at 0, last finishes at 1.

For those manual cameras, I am not sure how that would work, maybe only create static cameras with IN on 0 and out on 1... But still, you don't have control over the sets, by pressing F3 you are just cycling trough presets.
 

3DCat

New Member
No, you can't manually change track cameras, only car cameras, and even those are cycling trough presets :)

Your camera set needs to cover the whole spline which goes from 0 - start to 1 - finish, everything between needs to be covered by cameras, IN of one camera has to be OUT of the camera before. First camera starts at 0, last finishes at 1.

For those manual cameras, I am not sure how that would work, maybe only create static cameras with IN on 0 and out on 1... But still, you don't have control over the sets, by pressing F3 you are just cycling trough presets.
Sounds like I've got everything setup right on that front then, in replays the cameras behave as expected so I imagine the weirdness was coming from trying to drive while viewing myself from a track cam.
 
Top