Eziocin

P3D V4 Addon Organizer randomly changing sceneries priority

Recommended Posts

Hi,

I have recently installed this excellent tool, but I am finding out that it randomly reshuffles the sceneries priority. Am I missing something in the set up or in the way it works ?

Thanks

 

Ezio

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,

sorry, never heard of this before - can you give me a specific example where you are seeing what - and what you are doing inbetween? Are you using any other tools or simulator dialogs that may influence addon organization?

Best regards

Share this post


Link to post
Share on other sites

Hi Oliver, having the same issue. Started in version 1.04, but has continued in 1,05, but more severe. Now putting new additions right to the bottom ie below Prepare 3D scenery. Sometimes new additions are hard to find. Currently at 352 layers.

 

If I try to edit to change layer number, I get an unhandled exception and I have close the app.

Edit: Now puts airports at Layer=0

  • Upvote 1

Share this post


Link to post
Share on other sites
6 hours ago, Travelling_Wilbury said:

Hi Oliver, having the same issue. Started in version 1.04, but has continued in 1,05, but more severe. Now putting new additions right to the bottom ie below Prepare 3D scenery. Sometimes new additions are hard to find. Currently at 352 layers.

 

If I try to edit to change layer number, I get an unhandled exception and I have close the app.

Edit: Now puts airports at Layer=0

Hello,

I am a total newbie so please bear with me.  I was also having added scenery placed at the bottom after the inactive Prepar3D Scenery.  When I selected edit I got the following unhandled exception:

 

************** Exception Text **************
System.ArgumentOutOfRangeException: Value of '0' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
   at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
   at P3DV4AddonOrganizer.EditScenery.Initialize()
   at P3DV4AddonOrganizer.MainDialog.bEditScenery_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

However, I can move the entry to the top by manually clicking the up button repeatedly and once the entry is at the top I can then successfully edit like normal.  

 

 

Share this post


Link to post
Share on other sites

Hello @ll,

From what you are writing I can see two different issues:
 
1. New scenery is added with layer number 0. This is an error on the "Add scenery" dialog. Sorry about that, I don't know how this happened. The new element is added to the list at the wrong end. The result is that the new scenery is below the root tag, and that you cannot edit it (there is no layer 0, hence the exception which should never happen)
-> Corrected with 1.06 which is available for download now
 
2. Scenery elements "randomly shuffeling": I still don't understand this issue - what do I have to do to see it and what am I looking for?
 
Best regards

Share this post


Link to post
Share on other sites
1 hour ago, Lorby_SI said:

2. Scenery elements "randomly shuffeling": I still don't understand this issue - what do I have to do to see it and what am I looking for?

Instead of going to the top, the new addon may appear half way down the list. I have found new addons in between my freemesh, and have had to shuffle things around. Not sure if this related to my post above, I am not sure.

Edit: all seems to be good now. Thanks for 1.06.

Share this post


Link to post
Share on other sites

hello

have the same problem

i need to have my airport above the city, but into the program i place like it should be, and save. i close the program, but when i start the airport is below the city and it s not good

how to do?.

plus, when i expand all the scenery place in addon.xml, they have all the same layer 158, maybe it s my problem

Share this post


Link to post
Share on other sites
10 minutes ago, grandfred29 said:

plus, when i expand all the scenery place in addon.xml, they have all the same layer 158, maybe it s my problem

In this case, the sceneries will appear in the order that they are read from the xml files.Try to use the Up/Down buttons to rearrange the XML sceneries so that they have a sequential layer order.

I wonder how this happend though. Normally a new XML scenery entry should get the next highest layer number - at least with the new 1.06 that is the case now... (there was a bug inbetween versions).

Best regards

Share this post


Link to post
Share on other sites
Just now, Lorby_SI said:

In this case, the sceneries will appear in the order that they are read from the xml files.Try to use the Up/Down buttons to rearrange the XML sceneries so that they have a sequential layer order.

i ve tried it but when i save all appear like before save

 

Share this post


Link to post
Share on other sites
24 minutes ago, grandfred29 said:

339627Capture2.png835732Capture1.png

I see, you are layering the XML inside the scenery.cfg.

What you are seeing in these pictures is normal in the current state of things. XML definitions have to have the same layer number that the scenery.cfg entry directly above them has. The XML sceneries with the same layer number are read in the order that they appear in the XML file, and the XML themselves are in the order that they have in the corresponding cfg.

I will have to think about it for a while, I am not sure if something can be done about this at all - the P3D specification doesn't cover this situation.

Currently the only way would be to relocate the scenery.cfg entries to XMLs too, then you can layer them correctly - or the other way round. In your case I would move Madeira X and PortoSanto to XML files too, and move the whole lot above the last entry of the scenry.cfg. Then the layering will be sequential.

Which, btw is what I do. My scenery.cfg contains only the default scenery and ORBX - everything else I put into XML files, no matter where it was installed. That way I avoid these issues that you are experiencing.

Best regards

Share this post


Link to post
Share on other sites

1.06 appears to have fixed the issue with addon scenery getting put at the bottom.. however.. if you click edit scenery, change the scenery layer from say 127 to 130.. click save.. go back in, the 127 is still there.. if you just click the up / down arrows.. click save.. it does save the new layer.. 

Any reason why direct editing of the layer value is not working?

Also.. the sode error i was getting (.net compiler error due to insufficient rights not running as admin).. is now gone, provided i uninstall sode and install on the other drive instead.

 

 

Share this post


Link to post
Share on other sites
8 hours ago, theskyisthelimit said:

1.06 appears to have fixed the issue with addon scenery getting put at the bottom.. however.. if you click edit scenery, change the scenery layer from say 127 to 130.. click save.. go back in, the 127 is still there.. if you just click the up / down arrows.. click save.. it does save the new layer.. 

Any reason why direct editing of the layer value is not working?

Fixed with version 1.07 which is ready for download

Best regards

Share this post


Link to post
Share on other sites
5 hours ago, Lorby_SI said:

Fixed with version 1.07 which is ready for download

Best regards

Awesome, thanks and thanks for the great tool

Share this post


Link to post
Share on other sites

Version 1.15 is doing it now. I try to change the order of the add on scenery, but when I hit Save the scenery returns to it's previous position. Sane as noted above.

Share this post


Link to post
Share on other sites
1 hour ago, Grand_Pubah said:

Version 1.15 is doing it now. I try to change the order of the add on scenery, but when I hit Save the scenery returns to it's previous position. Sane as noted above.

Hello Keith,

P4AO is stateless, it doesn't "remember" and it is not changing anything either randomly or automatically. Whne starting and when saving, it is showing what is in your config files, following a fixed set of rules that never changes.

If the result after saving is different from before saving, then the change either wasn't saved at all (file access/security?) or it is not possible to do what you want to do. There are instances where you can't change the scenery ordering, at least not in a defined manner. For example if you have several external definitions layered inside the scenery.cfg range in the same spot, it may be impossible to change their sequence. But this has to be analyzed on a case-to-case basis.

Be aware though, that other things can influence scenery ordering too. There was a thread much like this one recently, where ORBX was interfering with what P4AO does.

Best regards

 

Share this post


Link to post
Share on other sites

Hey Oliver,

 

I am trying to add my FS Global 2010 scenery configuration via this app instead of using scenery.cfg.  I am able to add sceneries via the app but when I move the layers, lets say layer 99 and then I add other directories they all say layer 99.

In Prepar3d v4, I do see the libraries are listed but if I click on okay, then Prepar3d ask there are not non-squential entries, would you like to fix it.  I click on fix it, and everything goes away.  But when I check the files xmls and in the addon organizer app - all my custom entries still say layer 99.

 

I chose layer 99 but then all the original enteries in scenery.cfg should move down? shouldn't it.

 

Or is everything fine as all the items are lined up in the scenery library in P3Dv4.  Just wondering why the non-sequential notification comes?

 

 

Share this post


Link to post
Share on other sites
12 hours ago, Skywolf said:

Hey Oliver,

 

I am trying to add my FS Global 2010 scenery configuration via this app instead of using scenery.cfg.  I am able to add sceneries via the app but when I move the layers, lets say layer 99 and then I add other directories they all say layer 99.

In Prepar3d v4, I do see the libraries are listed but if I click on okay, then Prepar3d ask there are not non-squential entries, would you like to fix it.  I click on fix it, and everything goes away.  But when I check the files xmls and in the addon organizer app - all my custom entries still say layer 99.

 

I chose layer 99 but then all the original enteries in scenery.cfg should move down? shouldn't it.

 

Or is everything fine as all the items are lined up in the scenery library in P3Dv4.  Just wondering why the non-sequential notification comes?

 

 

Hi,

this is a well known issue. That your xml entries all have the same layer number when you push them between two items of the scenery.cfg is just how it is.
But that the Scenery Library dialog is complaining, is a remnant of the old days, when there only was one scenery.cfg file. I have posted this issue in the Prepar3D development forums, and they said that they will check it out.

Best regards

Share this post


Link to post
Share on other sites
1 hour ago, Lorby_SI said:

Hi,

this is a well known issue. That your xml entries all have the same layer number when you push them between two items of the scenery.cfg is just how it is.
But that the Scenery Library dialog is complaining, is a remnant of the old days, when there only was one scenery.cfg file. I have posted this issue in the Prepar3D development forums, and they said that they will check it out.

Best regards

Thank you for letting me know.

Share this post


Link to post
Share on other sites
On 9/14/2017 at 10:56 AM, Lorby_SI said:

Hi,

this is a well known issue. That your xml entries all have the same layer number when you push them between two items of the scenery.cfg is just how it is.
But that the Scenery Library dialog is complaining, is a remnant of the old days, when there only was one scenery.cfg file. I have posted this issue in the Prepar3D development forums, and they said that they will check it out.

Best regards

Oliver,

I have experienced the problem above of seemingly random changes to scenery order after changing order with Addon Organizer. It appears to me, though, that Addon Organizer is introducing the problem when it assigns the same layer number to all .xml layers that fall between two .cfg layers. It would appear there is no facility in Addon Organizer to intelligently relate contents of .xml and .cfg, other than as a complete, contiguous reading of those files. In other words, all of the .cfg layers can be at the top of the scenery order, or all the .xml layers can be at the top of the scenery order, but not mixed...but this is not necessarily a problem with P3D, it is a problem caused by Addon Organizer. P3D is simply reading layer order (can't change layer order of .xml addons in P3D).

I did a quick test with Addon Organizer:

All .xml sceneries at the top of list - each entry has a unique layer order

Move one or more .xml entries between two .cfg entries - even without clicking save, Addon Organizer assigns the layer number of the .cfg entry just above the first .xml entry to ALL .xml that are immediately contiguous.

Interestingly, .cfg entries can be placed between .xml entries and the .cfg entries get consecutive layer numbers, not the same number. How can .cfg layers be numbered consecutively between .xml, but not vice-versa.

I think you are overlooking an issue CAUSED by Addon Organizer, thinking it is caused by P3D.

I am not trying to place blame, as I don't care who's fault it is, I just want things to work. The reason I need to be able to mix .xml and .cfg is that my fsaerodata entries need to be top-ordered, with all addon airports below. Unfortunately, fsaerodata is a .cfg install who's data changes monthly, or I would just change it to .xml in Addon Organizer.

Edited by somiller
clarification

Share this post


Link to post
Share on other sites

I did another test, where I manually edited layer numbers for the 3 fsaerodata listings in scenery.cfg to make them highest order (specifically 215, 216, 217). I also manually edited layer numbers for the 16 sceneries in add-on.xml that I want immediately below layer 215 (specifically 199 - 214) but before layer 198 which is a scenery.cfg entry. I opened Addon organizer, and all sceneries were in proper order, each with a unique layer number. I started P3D and went to scenery library, and all sceneries were ordered exactly as I had edited.

However, I then closed P3D, opened Addon Organizer (to see all sceneries ordered correctly with unique layer numbers) and without making any changes I simply clicked save, and it immediately changed the scenery order, moving the fsaerodata layers below the .xml sceneries.

What I think is happening, is that Addon Organizer is reading "[Area.XXX]" of the scenery.cfg and using that for layer order, rather than "Layer=XXX", or it's not able to write Area.XXX to be different than Layer=XXX.

In any case, in the scenery.cfg I edited, 3 fsaerodata listings [Area.199] / Layer=199; [Area.200] / Layer=200; [Area.201] / Layer=201; my edit changed them to [Area.199] / Layer=215, [Area.200] / Layer=216, [Area.201] / Layer=217. With this configuration, all is well with P3D, I get the layering order I want, and it allows mixing of .cfg and .xml sceneries all with unique layer numbers. In scenery.cfg the [Area.XXX] values remain consecutive from 001 to 201, but the Layer values become Layer=1 to 198, 215, 216, 217.

Oliver, is it possible for you to make Addon Organizer read and write what I've described above?

 

Edited by somiller
clarification

Share this post


Link to post
Share on other sites
On 9/11/2017 at 2:00 AM, Lorby_SI said:

Hello Keith,

P4AO is stateless, it doesn't "remember" and it is not changing anything either randomly or automatically. Whne starting and when saving, it is showing what is in your config files, following a fixed set of rules that never changes

 

Oliver, I beg to differ. Based on my experience above, in the instance of mixed .xml and .cfg layering, I believe AO is actively changing scenery order, but I think it's because of AO's rules of how scenery.cfg is supposed to be organized. When I edit as above, AO indeed reads the config files correctly, however, without making any changes in AO, simply clicking "save", AO changes what it clearly had just, correctly read. So it appears AO's rules for reading config files are different than it's rules for saving config files.

Share this post


Link to post
Share on other sites
4 hours ago, somiller said:

that Addon Organizer is introducing the problem when it assigns the same layer number to all .xml layers that fall between two .cfg layers

Unfortunately this is the only way to do it. P3D does not allow it to leave a "gap" in the scenery.cfg layers, you can not "insert" an XML layer number "between" two scenery.cfg entries.

[102] cfg
[101] xml
[100] cfg

will lead to a "non sequential layer order" error message.

So the only way left open to an external app is to emulate the reading sequence like the sim does it. Unfortunately P3D seems to change the contents of the add-ons.cfg from time to time (which manages the autodiscovery folders), and that will throw off P4AO.

The sequence that you are seeing in the P3D dialog is the "reading priority" of the sim, not the layer number. 

All of this may change when LM changes/fixes that "non-sequential" issue, as per my bug report in the P3D forum.

Best regards

Share this post


Link to post
Share on other sites
3 hours ago, somiller said:

Oliver, I beg to differ. Based on my experience above, in the instance of mixed .xml and .cfg layering, I believe AO is actively changing scenery order, but I think it's because of AO's rules of how scenery.cfg is supposed to be organized. When I edit as above, AO indeed reads the config files correctly, however, without making any changes in AO, simply clicking "save", AO changes what it clearly had just, correctly read. So it appears AO's rules for reading config files are different than it's rules for saving config files.

It is still stateless though, it has no "database". And yes, it changes what it reads, it aligns the sceneries according to the rules derived from the P3D specification.

What counts in the end is what the simulator reads - and that priority used to be correct.

We will see if any of this matters after 4.1...

Best regards

Share this post


Link to post
Share on other sites

Oliver,

Thanks for your reply. I don't know of this "non sequential layer order" message of which you speak. After making the manual layer edits indicated in my post above, I opened P3D...all scenery listings in P3D "Scenery Library" were exactly as I ordered them, P3D gave me no error message, and all was good with the world.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now