Developer's Backdoor > GSX Backdoor
Custom GSX layouts
ganesh:
Before rushing a workaround, wouldn't it be better to understand why GSX is having troubles with your scenery? What problems are you experiencing precisely? Maybe fixing them is just as easy as your proposed workaround while being less inconvenient for AFCAD designers.
Paavo:
The drive-through method exploits many characteristics of FSX pathfinding algorithm that GSX does not take into account (nor would I expect it to).
For instance, FSX always prefers to guide AI aircraft from runway to parking via taxiway links. If we have one route consisting of taxiway links, and the other of apron links, FSX will always use the former to lead an aircraft in, and likewise it will use apron links to guide out to the runway. This means that two independent taxi networks can be constructed, giving a lot of control over how aircraft taxi. With carefully tested layout, there are no side-effects. Even Progressive Taxi works (ATC guides user via intended paths).
A description of this method can be found here:
http://stuff4fs.com/Tutorials/Drive-Through%20Parking%20Tutorial.pdf
Since GSX uses independent pathfinding, it comes as no surprise that it fails to follow the logic of default AI.
Here's an example:
GSX follow-me vehicle leads (red line) the aircraft from taxiway to parking via apron links (green) instead of taxi links (blue), and parking spot's direction as well as node layout (there's one only few cms away from the spot to prevent pushbacks) cause erratic behaviour. On top of that, marshaller gets placed right in the way (blue M), facing the wrong direction.
There is no way to construct a drive-through parking system that would guide AI aircraft correctly and at the same time satisfy GSX's expectations for the layout, nor does it seem like an easy task to alter GSX to follow all the small rules and nuances that FSX has. Feeding a simplified (normal) layout would be a very elegant, easy to use and hopefully easy to implement solution.
ganesh:
--- Quote from: Paavo on September 17, 2014, 08:18:30 pm ---There is no way to construct a drive-through parking system that would guide AI aircraft correctly and at the same time satisfy GSX's expectations for the layout, nor does it seem like an easy task to alter GSX to follow all the small rules and nuances that FSX has. Feeding a simplified (normal) layout would be a very elegant, easy to use and hopefully easy to implement solution.
--- End quote ---
Woah, you are making a lot of assumptions on the GSX internals. I'm not saying that it's an easy task to make GSX work with your layout, but allow me to understand the whole issue and only then I can make an effort estimation. While I agree that your proposed fix is easy to implement, I disagree that it is an elegant solution and I'd rather not pursue it if I have an alternative.
Paavo:
I was merely pointing out default AI being far more complex than it appears.
For example, the mentioned preferences for taxiing in and out are not always respected. After an aircraft stops for a moment at holding point while taxiing in, it will continue via the closest node, regardless of its link type and connection to the network it followed that far.
Such jumps between unconnected links can occur elsewhere, since FSX carries out a run-time optimization of node network and merges close nodes together. In certain places, jumps are desirable - in others, not so much.
There are some general rules to follow, but the default AI is so filled with intricate rules that designing a drive-through layout ultimately becomes a time-consuming exercise of trial and error. I am worried that even the smallest differences between GSX and default pathfinding would bring the situation back to square one.
ganesh:
I apologize for the delay. I have investigated the issue and I believe I can modify Couatl so that GSX behaves correctly with your layout without having you to provide two versions of the airport. The idea is to have GSX ignore specific path segments when plotting the followme trajectory. In particular, it would be sufficient to ignore any one segment among the path that "leaves" the parking, so that the followme is forced to enter the parking from the correct side. I see two possible approaches:
* A) totally automated: Couatl can actually check if a path segment leaves a parking area from the "wrong" side, by comparing the path segment direction with the parking heading. This approach would require no effort on your part, but might theoretically produce false positives and the feature would be limited to paths leaving parkings;
* B) designer-assisted: you could tag the specific paths to ignore, for example by assigning them a specific name (for example "gsx:noac", where there the "gsx:" prefix is to avoid mistakes and "noac" means "do not use for aircrafts", since the followme never uses paths that are not suitable for a/c). This approach has the advantage that you won't have false positives and is potentially usable for other situations that are not related to parkings. It could even be extended by adding other "gsx:xxx" tags for other uses.
Approach B seems more promising and it's very easy to implement on my part. What do you think?
By the way, I am not concerned at all with "small differences" between GSX and the default pathfinding. The two algorithms are indeed significantly different from one another. No difference can be considered "small" at the current state of facts and I'm perfectly fine with that.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version