• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

No more subdirs?

Messages
16
Country
netherlands
Hi,

I've downloaded 1.58(c) yesterday. Did some own flightplans, which didn't work. So, it turned out there were FS9 flightplans. I managed to convert them to FSX.

After that, I still can't make a good flightplan; if I compile the plan in \scenery\world\scenery als traffic_123.bgl (or whatever), FSX stops when loading aircraft/other traffic. After deleting the BGL, it runs fine.

Furthermore I can't access the subdirs to check for more FS9 files. I can go to Flightplans-Find FS9 Traffic Files and choose the FSX dir UNTIL \scenery\world.
I CANNOT choose the subdir scenery under \scenery\world. When I click on the + in the tree, no subdir shows up. After checking \scenery\world and press Find Files, I get an error:
Unhandled exception has occurred in your application....~
.... Access to the patch C:\Program Files\..\..\Scenery\World is denied.
After that error, when clicked on Details:

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Microsoft Games\Microsoft Flight Simulator X\Scenery\World' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.FileInfo.OpenRead()
at AI_Flight_Planner.Compiler.IsTrafficFile(String sPath, Boolean bFS9Only)
at AI_Flight_Planner.TrafficFiles.SaveCheckedPath(TreeNode& tvn)
at AI_Flight_Planner.TreeViewProcs.GetCheckedNodes(TreeNode& tvn, ProcessCheckedNode& callCheckNodeProcess)

And that last sentence is repeated approx. >1000 times....

Im running XP Pro, Framework.net 2.0. Installed AI FP again: no results...
 
Gyedema

Don will help with the Exception Error. I am away from my FSX and email computer until the weekend.

Seems like your Scenery/world/scenery folder is a bit of a mess. If you have both FS9 and FSX bgls in there, only the FS9 ones will work, and might cause the error. As an experiment, try compiling an FS9 plan and see if that works.

Bob
 
Bob,

That IS the problem. I already filtered out all the FS9 bgl's with AIFP and converted them to FSX. After that, I deleted ALL the remaining FS9 bgl.

As of now, I can't access that dir anymore with AIFP. So I can't convert any more files in that directory...
In the viewwindow, only \scenery\world is visible. There is a + sign in front of the dir, but if I click it....: NO subdir (\scenery) anymore...(and it DOES excist, I DO get AI traffic without any errors...)
 
While I was not able to duplicate your problem, I can explain what was happening.

AI Flight Planner will not display a folder in the treeview that you are not authorized to access. For whatever reason, (perhaps FSX was running?) Windows was not allowing you access to the subfolders in FSX\Scenery\World. Consequently, the sub-folder would not display in the treeview. When you checked the Scenery\World folder and clicked continue, AIFP attempted to access those folders and triggered the exception.

AIFP needs to check that it has access to lower level folders. Version 1./6 will be out this weekend and will have that fix.

Don
 
Don, thanks for your quick answer (isn't it night over there on your side... ;))

But no, FSX was nót running. I restarted my pc and tried AIFP again, but without succes. I will wait for this weekend and install the new version (of a great piece of work, by the way...)

And then... I can start again to try to find out why my traffic files won't show....

Edit: the weird thing is: When I choose Flightplans - open Traffic.bgl, I am able to enter the scenery\world\scenery dir and I'm able to open and edit the files. Only checking for FS9 files in that subdir gives the error...
 
Last edited:
Thanks for the kudos, gyedema.

the weird thing is: When I choose Flightplans - open Traffic.bgl, I am able to enter the scenery\world\scenery dir and I'm able to open and edit the files. Only checking for FS9 files in that subdir gives the error...

They are two quite different operations in AIFP. open Traffic.bgl uses a standard Windows Open File Dialog whereas Find FS9 files uses a custom treeview (that relies on Windows for folder expansion information).

You stated that you generated a traffic file that caused FSX not to complete loading. If you still have that traffic file, would you send it to me please along with the text or FS9 traffic file from which it was derived. You can e-mail them to the address shown in the user manual.

Since you found other FS9 files in Scenery\World\Scenery, presumably you weren't always denied access to the folder (or were they in a different folder?). An unauthorized access exception can be caused by an IO error as well, which is why I suspected that FSX may have locked the folder. Have you tried restarting your machine. Windows may have locked that folder during the failed load process. If so, that lock would persist (except for FSX's use) until you restarted Windows.

If you have not restarted your system since the problem occured, please do so, check if you then have access to that folder and let me know.

I have now (in 1.6) "trapped" the unauthored access exception when checking for FS9 traffic file such that you would now get an error message explaining why the folder can't expand and the "+" would not be displayed. But, if Windows denies access, you still won't get past that folder. So, I really would like to know what caused this difficulty in the first place.

Don
 
Don: I will try to make the .bgl again; I deleted everything I made just to be sure.

And yes, I DID restarted my PC; I also checked with Unlocker and there were no processes locking the dir.

So I:
- reinstalled AIFPC
- restarted windows, several times,
- removed all the non-fsx bgl files from the directory

Still no result; dir is locked. Also weird thing: Another traffic dir, made by Just Flight military traffic, is also inaccessible (ergo: leads to the described error).

Again, I will search for the bgl or make a new one.

Grtz,
Gerben
 
Gerben, I'd like you to try an advance copy of version 1.6 to see if the problem still exists. (The treeview processing has changed significantly from 1.58)

Please send me your e-mail address (to my e-mail address set out in the user manual or readme.)

Don
 
Back
Top