Jump to content
Sign in to follow this  
HiFlyer

Can Addons Linker Fix CTD's? - Possibly!

Recommended Posts

Something I tried today with some nice results that I'm hoping are not Imaginary.

Within Addon Linker, under the TOOLS dropdown, you will find 2 options relevant to this thread. The options are:

  • ModelLib Changer
  • MaterialLibs Changer

These Options were created based on findings from a thread at the MSFS Forums, that can be found here

Synopsis Of The Problem From the Original Thread

Quote

 

I was trying to troubleshoot some scenery conflicts that were causing CTDs yesterday when I noticed something concerning. It seems that a lot of scenery creators are not changing the location of the modelLib.BGL that is output by default for an ArtProj. I wrote a quick python script to scan every layout.json in my airport folder, and out of 170-some add-on airports that I have almost 40 are shipping a file named scenery/global/scenery/modelLib.BGL. This is less than ideal.

For those who don’t understand how the MSFS VFS works, the short version is that when the sim starts it loads all its own files first, then it reads the layout.json of everything in the Community folder in alphabetical order and “stacks” those layouts on top of each other. If ever two packages have files with exactly the same name in exactly the same path whichever one was loaded first does not get its own copy – it gets the other package’s copy.

This is the output from my script just for the path scenery/global/scenery/modelLib.BGL. Each line represents an airport that is trying to put something in that location. There are 38 of these. That means if everything is enabled, 37 of those airports are not going to have that file contain what they want it to contain. Needless to say, that can cause problems.

 

The poster has created a standalone tool attempting to correct the issue, and functionality building off of that idea was added to Addon Linker

USAGE

  1. On the MSFS Addons Linker main screen, load all of your addons into the community folder
  2. You may wish to backup Your community folder before making any changes, just in case!
  3. Once the previous step is complete, move to the tools dropdown, and choose the MaterialLibs Changer or the ModelLib Changer
  4. Click on "Step 1" of the chosen option, and you will be given a list of files with ModelLib.bgl or MaterialLibs conflicts
  5. Click "Step 2" of the chosen option, and the conflicting files will be renamed!

Congtatz! Hopefully this may help some of you experiencing CTD's possibly caused by this issue!

BTiktp.png

 

Edited by HiFlyer
  • Like 9
  • Upvote 1

Just Flight Beta Tester
 
We are all connected..... To each other, biologically...... To the Earth, chemically...... To the rest of the Universe atomically.
 
Devons rig
Intel Core i7 8700K @ 5.0GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ZOTAC GAMING GeForce® RTX 2080 Ti Triple Fan / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / 1x Samsung SSD 860 EVO 1000GB / 5 other regular hd's with up to 10 terabyte capacity each / Windows 10 Pro 64-bit / Gigabyte Z370 AORUS Gaming 5 Motherboard

Share this post


Link to post
Share on other sites

That's true, but i also use linker to avoid CTDs by enabling just what i need for every flight. It was a moment when having everything enabled rose up the rate of CTDs for me.

  • Like 3

__________________________________________________________________________________________
Elias Stassinos - Author of PTTBuddy - Automatic volume control while you fly / play /stream
My FS Photos - My MSFS Settings - i7-8700K / 32GB RAM / Gigabyte 3070 8GB OC / 1440p

image.png

 

Share this post


Link to post
Share on other sites

Hi,

Thanks HiFlyer!

I did it and I found a lot of possible scenery conflicts.

The tool has corrected them.

Best regards.

 

  • Like 1

Share this post


Link to post
Share on other sites

I really love this little piece of software, very well done.  


CPU: Core i5-6600K 4 core (3.5GHz) - overclock to 4.3 | RAM: (1066 MHz) 16GB
MOBO: ASUS Z170 Pro |  GeForce GTX 1070 8GB | MONITOR: 2560 X 1440 2K

Share this post


Link to post
Share on other sites

Thanks for the tip, I found a lot of possible scenery conflicts that are now resolved.


| Intel I9 10900K | Corsair 32Gb 3200MHz | Asus Rog Strix OC 2080Ti | Samsung 970 EVO Plus 1TB |

Share this post


Link to post
Share on other sites

Does the modellib.bgl thing still cause issues? I know the MaterialLibs issue will definitely cause CTDs but I don't think I've ever encountered an issue stemming from the modellib.bgl being the same. Any thoughts? 


Former Child, Current Adult

Share this post


Link to post
Share on other sites
2 hours ago, liamp51 said:

Does the modellib.bgl thing still cause issues? I know the MaterialLibs issue will definitely cause CTDs but I don't think I've ever encountered an issue stemming from the modellib.bgl being the same. Any thoughts? 

I have no Idea. But using this does not apparently hurt anything, and it just might help, sooooo.......


Just Flight Beta Tester
 
We are all connected..... To each other, biologically...... To the Earth, chemically...... To the rest of the Universe atomically.
 
Devons rig
Intel Core i7 8700K @ 5.0GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ZOTAC GAMING GeForce® RTX 2080 Ti Triple Fan / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / 1x Samsung SSD 860 EVO 1000GB / 5 other regular hd's with up to 10 terabyte capacity each / Windows 10 Pro 64-bit / Gigabyte Z370 AORUS Gaming 5 Motherboard

Share this post


Link to post
Share on other sites

Of course scenery developers should know by now that this is bad practise…

When coming across this, you should drop them ( the dev) a note asking them politely to fix this. The comments sections at flightsim.to have many such requests and devs usually comply quickly.


GregH

System Spec: Core i7 6700K @ 4,7GHz; GTX980Ti, 32GB DDR4 3200; WD Black NVMe; Samsung EVO850 SSD; CH Products Yoke, Pedals & Quad; Airbus Side Stick, TrackIR; 1440p

Share this post


Link to post
Share on other sites

This is very very interesting, thanks for sharing. I just got the AOL and so Im a n00b but already I can see just how impressive it is. 

I like every mod activated all the time and over time AOL will have to deal with hundreds of them. I have 86 mods now and so far so good no issues. 


i7 920 @ 3.8Ghz // GTX 1060 6GB // 12GB DDR3 // Win10 Pro

Share this post


Link to post
Share on other sites

So renaming the conflicting files won't ruin any of the scenery? And should we do this for both Materiallibs and Modellib?


R9 5900X | RTX 3090 | 64 GB 3600 | 3440x1440 G-Sync | Logitech Pro Throttles Rudder Yoke Panels | Thrustmaster T.16000M FCS | TrackIR 5 | Oculus Rift S
Experience with Flight Simulator since early 1990s

Share this post


Link to post
Share on other sites
22 minutes ago, Republic3D said:

So renaming the conflicting files won't ruin any of the scenery? And should we do this for both Materiallibs and Modellib?

The original poster over at the MSFS forum, and creator of the tool that was eventually incorporated into Addons Linker is Kaosfere from Working Title, so I kind of trust him on this.

His original tool was for the ModelLib, so that one is relevant to his post. The MaterialsLib is optional, depending on if you find conflicts.

  • Like 1

Just Flight Beta Tester
 
We are all connected..... To each other, biologically...... To the Earth, chemically...... To the rest of the Universe atomically.
 
Devons rig
Intel Core i7 8700K @ 5.0GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ZOTAC GAMING GeForce® RTX 2080 Ti Triple Fan / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / 1x Samsung SSD 860 EVO 1000GB / 5 other regular hd's with up to 10 terabyte capacity each / Windows 10 Pro 64-bit / Gigabyte Z370 AORUS Gaming 5 Motherboard

Share this post


Link to post
Share on other sites

I only run a small set of add-ons so no conflicts, but it is nice to know that I do not have any at this point. Will scan after adding new add-ons. Great tool. 


i9 10850K@5.1 GHz Water-cooled | 32GB 3200 RAM | RTX 3080 | 1TB M.2 SSD | 1440p LG 27GL850 G-Sync | Win10 x64 Home

Share this post


Link to post
Share on other sites
3 minutes ago, HiFlyer said:

The original poster over at the MSFS forum, and creator of the tool that was eventually incorporated into Addons Linker is Kaosfere from Working Title, so I kind of trust him on this.

His original tool was for the ModelLib, so that one is relevant to his post. The MaterialsLib is optional, depending on if you find conflicts.

Thank you! This could be really useful.


R9 5900X | RTX 3090 | 64 GB 3600 | 3440x1440 G-Sync | Logitech Pro Throttles Rudder Yoke Panels | Thrustmaster T.16000M FCS | TrackIR 5 | Oculus Rift S
Experience with Flight Simulator since early 1990s

Share this post


Link to post
Share on other sites
On 9/27/2021 at 3:57 AM, HiFlyer said:

Something I tried today with some nice results that I'm hoping are not Imaginary.

Within Addon Linker, under the TOOLS dropdown, you will find 2 options relevant to this thread. The options are:

  • ModelLib Changer
  • MaterialLibs Changer

These Options were created based on findings from a thread at the MSFS Forums, that can be found here

Synopsis Of The Problem From the Original Thread

The poster has created a standalone tool attempting to correct the issue, and functionality building off of that idea was added to Addon Linker

USAGE

  1. On the MSFS Addons Linker main screen, load all of your addons into the community folder
  2. You may wish to backup Your community folder before making any changes, just in case!
  3. Once the previous step is complete, move to the tools dropdown, and choose the MaterialLibs Changer or the ModelLib Changer
  4. Click on "Step 1" of the chosen option, and you will be given a list of files with ModelLib.bgl or MaterialLibs conflicts
  5. Click "Step 2" of the chosen option, and the conflicting files will be renamed!

Congtatz! Hopefully this may help some of you experiencing CTD's possibly caused by this issue!

BTiktp.png

 

I think this a must for the tips & tricks subforum. You may shorten it a bit but it should be pinned overthere.


- Harry 

i7-7820X (@4.7 GHz), 64GB RAM (@3600, CL16) RTX 3090, 3.5 TB SSD (3x NVME M.2). MSFS 2020: Freeware & some Payware scenery add-ons, no larger airports so far. P3Dv5.2: FSGlobalNG (mesh), ORBX (Global+OLC, all FTX Regions, all TE products, many Airports), DDscenery (NYC, Chicago, SEA), Airports (FT, FB, FSDT, AS); PMDG (737, 747, 777), MJC DQ400, RA Piston Duke, A2A C172. Weather ASP5. RXP GTN 750, AI Traffic: AIG OCI.

 

 

 

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
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    53%
    $13,405.00 of $25,000.00 Donate Now
×
×
  • Create New...