Comments on: Do Not Reference Libraries By File Path https:/2017/09/do-not-reference-libraries-by-file-path/ Developer resources for the X-Plane flight simulator Wed, 04 Oct 2017 13:02:06 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Bruno https:/2017/09/do-not-reference-libraries-by-file-path/#comment-22092 Wed, 04 Oct 2017 13:02:06 +0000 http://developer.x-plane.com/?p=7827#comment-22092 In reply to casmatos.

Bom dia casmatos,

You can check the link I pasted above.

I don’t remember the other METAR, but you may check with the METAR in the video above. Hopefully I will make videos more often in the future so it’s easier to see exactly the problem.

Abraço!

]]>
By: Bruno https:/2017/09/do-not-reference-libraries-by-file-path/#comment-22086 Tue, 03 Oct 2017 22:25:04 +0000 http://developer.x-plane.com/?p=7827#comment-22086 In reply to Ben Supnik.

Hi Ben,

You may check the following video:
https://youtu.be/KsJmBdO8K-k?t=21

Visibility is 0.1sm, but I can see the city lights, airport lights, etc, at FL230!! The link is right when the “phenomenon” happens so you won’t waste time.

But to be fair, even taking this into account, the approach this time was enjoyable, unlike the other time. Unfortunately I was not recording the other one. Would have been a better “report”.

Sorry for the “strange language” spoken in the video and sorry for the swearing. Really hoping for an improved weather engine (hopefully Active Sky will deliver till the end of the year).

Cheers!

]]>
By: Ben Supnik https:/2017/09/do-not-reference-libraries-by-file-path/#comment-22067 Tue, 03 Oct 2017 02:33:20 +0000 http://developer.x-plane.com/?p=7827#comment-22067 In reply to Daniela Rodriguez Careri.

If the region modifiers are ignored, then if a library has two regions, the virtual library path is ambiguous.

But we don’t really want to let a library reach past the virtual path into a -physical- path of another library – the physical path is intentionally not the “interface” of the library so that library authors can re-organize their internals.

]]>
By: Daniela Rodriguez Careri https:/2017/09/do-not-reference-libraries-by-file-path/#comment-22024 Sat, 30 Sep 2017 22:07:20 +0000 http://developer.x-plane.com/?p=7827#comment-22024 In reply to Ben Supnik.

Yes, I see what you mean Ben.

Regions I think are modifiers for X-Plane to consume, not for the library that re exports the asset; you’d just cherry pick individual resources, regions should not have influence on those.

As or multiple variants, I’d assume the consumer knows what he’s doing, if he re exports a multiple asset, it keeps being a multiple asset.

I know the internals must be crazy complex, but from the outside it doesn’t seem that far fetched to implement, and it would add a welcome flexibility for developers 🙂

]]>
By: chris https:/2017/09/do-not-reference-libraries-by-file-path/#comment-22007 Fri, 29 Sep 2017 20:39:16 +0000 http://developer.x-plane.com/?p=7827#comment-22007 Say I added several single objects that are not part of any library, into a new package that I simply call stuff library. Would this library be affected?

]]>
By: Michael Minnhaar https:/2017/09/do-not-reference-libraries-by-file-path/#comment-21993 Fri, 29 Sep 2017 08:00:17 +0000 http://developer.x-plane.com/?p=7827#comment-21993 Another idea to get around ‘regionalization’ libraries would be an airport meta-tag to specify a set of airlines the static placer should fall back to before going totally generic:

E.g. KSEA would have “default_airlines=”dal awe”, a given ramp start may have airlines = “swa”.
Now, if ‘jet_c_swa.obj’ can not be found, it would try the dal and awe suffixes before falling back to the too generic ‘jet_c.obj’.

With that, a scenery may be as specific as it gets at the ramp starts, in hope that a suitable “static aircraft enabled” addon library is installed. And still avoid getting out-of continent aircraft in most cases, if it turns out that exotic airline is not covered by a given users installation.

]]>
By: Michael Minnhaar https:/2017/09/do-not-reference-libraries-by-file-path/#comment-21992 Fri, 29 Sep 2017 07:19:27 +0000 http://developer.x-plane.com/?p=7827#comment-21992 In reply to Ben Supnik.

It would be up to the makers of those aircraft containing libraries to include the right exports to make these available as static aircraft …

Or you ship your ‘regionalization’ library with a script that creates symlinks to make ‘their’ aircraft pop up inside ‘your’ library folder. In that script you’ll have to solve the problem to find that actual directory name and maybe even its exact version to only link to existing aircraft.

]]>
By: Alistair Brown https:/2017/09/do-not-reference-libraries-by-file-path/#comment-21980 Thu, 28 Sep 2017 22:11:08 +0000 http://developer.x-plane.com/?p=7827#comment-21980 In reply to Ben Supnik.

Already reported a bug some time ago that might be related. X-Plane has a nosebleed if it encounters unexpected characters in a METAR feed for example /// which unfortunately happens a lot with UK airports. It gives up reading the METAR and substitutes default values, for example QNH 1013hPa.

]]>
By: Ben Supnik https:/2017/09/do-not-reference-libraries-by-file-path/#comment-21968 Thu, 28 Sep 2017 13:33:11 +0000 http://developer.x-plane.com/?p=7827#comment-21968 In reply to Daniela Rodriguez Careri.

This is not yet possible. It is also not yet possible to make a library that _depends_ on another library – the feature we would need (which would make such dependencies possible) is library entries that map a virtual path to an existing virtual path.

I’m not sure how resolution would work? E.g. if there are region directives or multiple variants on the object from another library you are targeting, do you inherit those? What if they conflict with you region directives?

]]>
By: Daniela Rodriguez Careri https:/2017/09/do-not-reference-libraries-by-file-path/#comment-21967 Thu, 28 Sep 2017 13:23:28 +0000 http://developer.x-plane.com/?p=7827#comment-21967 What would be a good way to do this to avoid polluting the scenery folder with repeated objects?

Let’s say I’m making a regional library which extends the default library with airplanes with local liveries, as in https://forums.x-plane.org/index.php?/files/file/35116-static-plane-mapping-tool/ so I can take the hard work already done on the FAIB and FruitStand libraries and map the planes to a new library that exposes them with the correct airline codes, along with some new objects. Any ideas? Is there any way to specify inter-library dependencies?

]]>