Jump to content
Sign in to follow this  
bosflo

There Has To Be An Easier Way

Recommended Posts

Hi guys, I am working on my ai and I have downloaded the megapack 12 with many liveries. The trouble is that to have them as an ai  I have to change the 0 to a 1 under "is aircraft for ai". There are over 300 liveries that have to be changed and that's a heck of a lot of work. I am not computer savy, so I am wondering if there is an easier way to change everything at once. Possibly a cut and paste for the ai entry or some sort of grouping, I don't really know, so if anyone knows a better way I would be very thankful. Thank you.

Share this post


Link to post
Share on other sites

If your talking about changing the line "isAirTraffic=0" to "isAirTraffic=1" in each of your desired AI livery "aircraft.cfg" file, this can easily be accomplished using Notepad++, the indispensable "go to" advanced text editor for most techies for years. It can quickly find and replace a single word, phrase, or line of code in multiple files (even thousands) in just a few seconds. And it's totally FREE.

You can download it here: https://notepad-plus-plus.org/downloads/

Just Install Notepad++, then just temporarily move all the livery folders you want to use for AI into a single folder for bulk processing. I used "C:\Liveries-For-AI"  in the image example below.

Then start Notepad++ and choose the Search>Find in Files tab, and set your fields as shown in the image below, (with the Directory: field pointing to wherever you temporarily moved the livery folders). Make sure that "In all sub-folders" is checked, and then hit the "Replace in Files" button. It'll process hundreds in just a matter of seconds. Then move the livery folders back into the MSFS Community folder and your good to go. Done!

NPlus-Find-Replace.jpg

Edited by Truthan
typo
  • Like 12
  • Upvote 1

"We shall not cease from exploration...

and the end of all our exploring...

will be to arrive where we started...

and know the place for the first time."

 

- T. S. Eliot

Share this post


Link to post
Share on other sites

The level of help and support for people on these forums never ceases to amaze me! 


Call me Bob or Rob, I don't mind, but I prefer Rob.

I like to trick airline passengers into thinking I have my own swimming pool in my back yard by painting a large blue rectangle on my patio.

Intel 14900K in a Z790 motherboard with water cooling, RTX 4080, 32 GB 6000 CL30 DDR5 RAM, W11 and MSFS on Samsung 980 Pro NVME SSD's.  Core Isolation Off, Game Mode Off.

Share this post


Link to post
Share on other sites

Delete - Duplicate post.

Edited by bobcat999

Call me Bob or Rob, I don't mind, but I prefer Rob.

I like to trick airline passengers into thinking I have my own swimming pool in my back yard by painting a large blue rectangle on my patio.

Intel 14900K in a Z790 motherboard with water cooling, RTX 4080, 32 GB 6000 CL30 DDR5 RAM, W11 and MSFS on Samsung 980 Pro NVME SSD's.  Core Isolation Off, Game Mode Off.

Share this post


Link to post
Share on other sites

I'm sure someone could write a BAT file or something to do this automatically, make backups and remove any risk of error.

Not easy for most of us mere mortals, but a 5 minute job for a techie I would think.


Ryzen 5800X3D, Nvidia 3080 - 32 Gig DDR4 RAM, 1TB & 2 TB NVME drives - Windows 11 64 bit MSFS 2020 Premium Deluxe Edition Resolution 2560 x 1440 (32 inch curved monitor)

Share this post


Link to post
Share on other sites
19 hours ago, Truthan said:

If your talking about changing the line "isAirTraffic=0" to "isAirTraffic=1" in each of your desired AI livery "aircraft.cfg" file, this can easily be accomplished using Notepad++, the indispensable "go to" advanced text editor for most techies for years. It can quickly find and replace a single word, phrase, or line of code in multiple files (even thousands) in just a few seconds. And it's totally FREE.

You can download it here: https://notepad-plus-plus.org/downloads/

Just Install Notepad++, then just temporarily move all the livery folders you want to use for AI into a single folder for bulk processing. I used "C:\Liveries-For-AI"  in the image example below.

Then start Notepad++ and choose the Search>Find in Files tab, and set your fields as shown in the image below, (with the Directory: field pointing to wherever you temporarily moved the livery folders). Make sure that "In all sub-folders" is checked, and then hit the "Replace in Files" button. It'll process hundreds in just a matter of seconds. Then move the livery folders back into the MSFS Community folder and your good to go. Done!

NPlus-Find-Replace.jpg

I will try it, thank you very much.

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.
×
×
  • Create New...