plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

Kl791 avatar image
Kl791 asked virtuali answered

AI simobjects textures picked randomly after SU5

After SU5 textures seems to be picked sometimes at random from other folders containing AI simobjects - it can be from simobjects in the same package or across packages placed in the community folder. I can only confirm it to take place with models based on mdl files and only between boats, but users reported that there was also interchange of textures between boats and airplanes.

The same add-ons worked before SU5 with the same file structure. The problem also appears for some users when they have addons referencing the AI objects using them as static objects. The object might display correctly during one flight and during the next have the wrong texture.

mess.jpg

Example of simobject with texture from another simobject

Did anything in the file structure or package compilation have to be changed to avoid this after SU5 or is this a bug?



bughelptexturing
mess.jpg (237.7 KiB)
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

rhumbaflappy avatar image
rhumbaflappy answered rhumbaflappy edited

Packages compiled via SU4 seem to be fine. Packages compiled with SU5 are wacky. It's not the core that is the problem , but the current compilation of the BGL, I believe. Very hard to compare the results as the compiler is updated with the sim, and we lose the ability to build BGLs with the old compiler.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Kaiii3 avatar image
Kaiii3 answered Kaiii3 commented

We at AIG had this problem with airplanes that we could fix by using a unique value for the icao_manufacturer value in the general section of the aircraft.cfg. If two SimObjects used the same value the second will always us the model from the first injected stuff. I have forwared this bug via Jörg and made a ZenDesk Report with detailed steps to reproduce.



2 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Kl791 avatar image Kl791 commented ·

The boats don't have an ICAO manufacturer - at least not as standard in the very simple sim.cfg used for AI boats, so I don't know if that would be read. But I will test if that could help as the change to the sim.cfg is relatively straight forward, but good to hear I am not alone in this boat and you already reported it :D

0 Likes 0 ·
Kaiii3 avatar image Kaiii3 Kl791 commented ·
might be some defaul value they use or some other calue specific for sim.cfg values. the icao_-key took me around 4 days to find....
0 Likes 0 ·
FlyingsCool avatar image
FlyingsCool answered FlyingsCool edited

This sounds like a bug that Sylvain or Rockyraccoon discovered through the thread on Pink Textures.

The bug in question is that textures are not restrained to their own space (I forget the terminology). It only applies to textures.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

FlyingRaccoon avatar image
FlyingRaccoon answered Kaiii3 commented

Hello

We just found and fixed an issue with textures having the same name being picked across packages.
The fix will probably be available with SU6.

Regards,
Sylvain

2 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Kl791 avatar image Kl791 commented ·
The textures do not have the same names - I can clearly identify some of the textures used and they do not have generic names but unique names according to the name of each ship model - however, at least some of the folders might not have an individual name like texture.queen_mary_II but just be named texture. Could that be a reason? I can try to dig more down to the folders as I have quite a few screenshots with the issue.
0 Likes 0 ·
Kaiii3 avatar image Kaiii3 commented ·

can you confirm that Zendesk 114752 is fixed with this as well?


0 Likes 0 ·
N6722C avatar image
N6722C answered FlyingRaccoon commented

As a temporary solution, I believe that the Community manager program "MSFS Addon Linker" has a built in tool, that will detect & rename duplicate Model Libs AND Material Libs names.
Even if you do not want to use the tool, it is a convenient way to read and detect dupliacte names, with the option to rename to make them all unique.


Because this tool has been in the Manager program for many months, it would suggest that this issue has been present before SU#5. ??

1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

FlyingRaccoon avatar image FlyingRaccoon ♦♦ commented ·
The issue is not with ModelLib or MaterialLib but with textures themselves.
1 Like 1 ·
Kl791 avatar image
Kl791 answered rhumbaflappy commented

A small example to illustrate - this morning flying near Rio approx 50% of the ships appear normal, but some models which were okay yesterday are now messed up - a ship appears okay in one flight just to be messed up in the next.

On the screenshots is a ship which has the mdl file of the tanker AI_Caravelas but the texture of the supply ship AI_Maersk_Helper - it appears in little nav map as Maersk Helper, but clearly the mdl is from the tanker.


texture-issue-3.jpg


The texture map of AI_Caravelas does not have a unique name - just texture. The one of AI_Maersk_Helper however does have a unique name texture.maersk.

The files are stored in each their folder inside the simobjects folder of the Global AI Ship Traffic. I have no other AI projects installed at the moment after SU5, so I can't check between projects.




texture-issue-3.jpg (296.2 KiB)
1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

rhumbaflappy avatar image rhumbaflappy commented ·

The sim shows the correct model with the wrong texture, and LittleNavMap indicates the wrong model?

0 Likes 0 ·
Kl791 avatar image
Kl791 answered

The editor only allowed one screendump, so here comes another with the file structure and names

texture-issue-4.jpg


texture-issue-4.jpg (232.7 KiB)
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

virtuali avatar image
virtuali answered

Could be the same issue I reported in the old ( now Archived ) 3dp forum in October 2020 ?

https://forums.flightsimulator.com/t/possible-bug-in-jetway-repaints/300887

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.