March 26, 20215 yr 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.
March 26, 20215 yr On a unix system it would be easy - a simple shell script using sed. Never tried it on Windows to be frank, but apparently with PowerShell you can do something similar: get-content somefile.txt | %{$_ -replace "expression","replace"} Source: windows - Is there any sed like utility for cmd.exe? - Stack Overflow
March 26, 20215 yr 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! Edited March 26, 20215 yr by Truthan typo "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
March 26, 20215 yr The level of help and support for people on these forums never ceases to amaze me! Rob (but call me Bob or Rob, I don't mind). 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.
March 26, 20215 yr Delete - Duplicate post. Edited March 26, 20215 yr by bobcat999 Rob (but call me Bob or Rob, I don't mind). 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.
March 26, 20215 yr 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 RTX5080 - 32 Gig DDR4 RAM, 1TB & 2 TB NVME drives - Windows 11 64 bit MSFS 2024 Premium Deluxe Edition Resolution 2560 x 1440 (32 inch curved monitor)
March 27, 20215 yr Author 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! I will try it, thank you very much.
Archived
This topic is now archived and is closed to further replies.