Author Topic: Duplicate TITLES in the Addon Manager directory  (Read 4589 times)

CaptainDuke

  • Newbie
  • *
  • Posts: 11
Duplicate TITLES in the Addon Manager directory
« on: November 19, 2019, 10:05:09 pm »
Hi,

When starting the P3Dv4 SIMDIRECTOR I have error messages about duplicate titles in the directory:
C: \ Program Files (x86) \ Addon Manager \ Simobjects \ Legacy \ FSDT_SODE_jetway_static \ sim.cfg
and
C: \ Program Files (x86) \ Addon Manager \ Simobjects \ PBR \ FSDT_SODE_jetway_static \ sim.cfg

An example: Simobjects \ PBR \ FSDT_SODE_jetway_static:

[Fltsim.705]
title = FSDT_SODE_JW_TNL_20_16_WHITE_static
[Fltsim.706]
title = FSDT_SODE_JW_TNL_20_16_GREEN_static
[Fltsim.707]
title = FSDT_SODE_JW_TNL_20_16_RED_static
[Fltsim.708]
title = FSDT_SODE_JW_TNL_20_16_BLUE_static
[Fltsim.709]
title = FSDT_SODE_JW_TNL_20_16_CYAN_static
[Fltsim.710]
title = FSDT_SODE_JW_TNL_20_16_COOL_GREY_static
[Fltsim.711]
title = FSDT_SODE_JW_TNL_20_16_BROWN_static
[Fltsim.712]
title = FSDT_SODE_JW_TNL_20_16_static

When LiveUpdate these erroneous sim.cfg are written again.

Please check your data!

Greetings, Captain Duke

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 51439
    • VIRTUALI Sagl
Re: Duplicate TITLES in the Addon Manager directory
« Reply #1 on: November 20, 2019, 11:24:19 pm »
There's are no duplicates and the files we distribute are correct. Those supposedly duplicated files are coming from the "Legacy" folder, and the Legacy folder is NOT active at the same time as the PBR folder, they simulator won't use it.

- If the simulator doesn't support PBR ( FSX, P3D3 and up to 4.3 ), the following folders are active:

C:\Program Files (x86)\Addon Manager\Simobjects\Misc
C:\Program Files (x86)\Addon Manager\Simobjects\Legacy

- If the simulator supports PBR ( P3D 4.4+ ), the following folders are active:

C:\Program Files (x86)\Addon Manager\Simobjects\Misc
C:\Program Files (x86)\Addon Manager\Simobjects\PBR

There are no cases in which both the Legacy folder and the PBR folder would be active at the same time so no, there aren't any duplicate files in the sim. It's likely a bug of the Simdirector, which scans for all Simobjects whenever they are, without checking if their folder is really active in the sim.

RRVyper

  • Newbie
  • *
  • Posts: 15
Re: Duplicate TITLES in the Addon Manager directory
« Reply #2 on: January 07, 2020, 10:43:54 pm »
Umberto, SimDirector is showing quite a few duplicate Titles. Here is one example:

from \Addon Manager\Simobjects\PBR\FSDT_SODE_jetway_static\sim.cfg

[fltsim.711]
title = FSDT_SODE_JW_TNL_20_16_BROWN_static
texture = BROWN
model = FSDT_SODE_JW_TNL_20_16_static
.
.
.
[fltsim.719]
title = FSDT_SODE_JW_TNL_20_16_BROWN_static
texture = BROWN
model = FSDT_SODE_JW_TNL_20_16_static

Please run SimDirector and it will show all other duplicate entries. Although it does not appear to affect the sim, it causes SimDirector to CTD.

http://www.prepar3d.com/forum/viewtopic.php?f=6322&t=135822

Randy

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 51439
    • VIRTUALI Sagl
Re: Duplicate TITLES in the Addon Manager directory
« Reply #3 on: January 08, 2020, 03:29:17 pm »
This post from November reported a problem of supposed duplicate names across the Legacy folder and the PBR folder, and in that regard, my reply back then was correct, because at no time these two folders are both active in P3D4, and even if one of them is there, and empty, is NOT added and NOT seen by simulator, since the Legacy folder path is NOT included to the add-on.xml that is active in P3D4. Only the add-on.xml for P3D 3 or the FSX.CFG in FSX will use it.

The OP reported SimDirector flagged as duplicates two objects with the same name, one in the PBR folder and another one in the Legacy folder, and this is NOT a case of duplicate files, and if SimDirectory was really reporting *that* (I had no reasons to doubt that user report), it's clearly a mistake, because the Legacy folder is not registered to P3D4.

However, this was in November, and you are now reporting a totally different thing, which is duplicate names inside the same main folder, so I checked, and yes, there are some, and it will be obviously fixed in the next Live Update, since ( as usual ), each and every problem reported is always fixed, when it's our to fix.
« Last Edit: January 08, 2020, 03:51:00 pm by virtuali »

RRVyper

  • Newbie
  • *
  • Posts: 15
Re: Duplicate TITLES in the Addon Manager directory
« Reply #4 on: January 08, 2020, 07:40:12 pm »
The OP also posted that there were duplicates within the same sim.cfg file, as per his example. SimDirector will not complain about Titles which are not referenced in any add-on.xml files which are active in add-ons.cfg. The only way both the Legacy and PBR folders would be active at the same time would be in a corrupted installation.

At any rate, thanks for the quick fix.  :)

Randy

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 51439
    • VIRTUALI Sagl
Re: Duplicate TITLES in the Addon Manager directory
« Reply #5 on: January 08, 2020, 09:42:07 pm »
The OP also posted that there were duplicates within the same sim.cfg file, as per his example

No, he never said that, and there are no duplicate names in his example. Maybe he meant to say that in *addition* to the section he posted, there were *other* copies of these names, in other sections he didn't post, but this was far from being clear. To me, the main issue reported was those names appeared in both the PBR and the Legacy section, which is not an error, hence my reply.

Quote
The only way both the Legacy and PBR folders would be active at the same time would be in a corrupted installation.

A corrupted installation can only happen if a user ( or another utility ) manually alters our add-on.xml file, because we surely don't create an add-on.xml for P3D4 that contains both the Legacy and the PBR lines.
« Last Edit: January 08, 2020, 09:56:58 pm by virtuali »

RRVyper

  • Newbie
  • *
  • Posts: 15
Re: Duplicate TITLES in the Addon Manager directory
« Reply #6 on: January 08, 2020, 11:30:42 pm »
No, he never said that, and there are no duplicate names in his example. Maybe he meant to say that in *addition* to the section he posted, there were *other* copies of these names, in other sections he didn't post, but this was far from being clear.

Umberto, you are just being stubborn.  ::)

A corrupted installation can only happen if a user ( or another utility ) manually alters our add-on.xml file, because we surely don't create an add-on.xml for P3D4 that contains both the Legacy and the PBR lines.

Agreed.  ;)

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 51439
    • VIRTUALI Sagl
Re: Duplicate TITLES in the Addon Manager directory
« Reply #7 on: January 09, 2020, 10:00:17 am »
Umberto, you are just being stubborn. 

No, I'm not. Unless we agree we both are...I only tried to explain the first post wasn't so clear, and the most noticeable part was the PBR/Legacy issue.

RRVyper

  • Newbie
  • *
  • Posts: 15
Re: Duplicate TITLES in the Addon Manager directory
« Reply #8 on: January 09, 2020, 03:51:08 pm »
No, I'm not. Unless we agree we both are...
Ha ha. Ok. Agreed.  ;D