Biggus Posted January 31 Posted January 31 Anyone had issues with the Mirage F1 using this? I've had a lot of missing textures.
Biggus Posted April 16 Posted April 16 On 10/17/2024 at 5:10 PM, zbysiek said: All except cockpit and terrain: # --------------- CUSTOMIZE HERE --------------- # Textures below or at this size do not get compressed $minTexSize = CHANGE-ME # 2 means divided by 2 on the X and Y axis, so 1/4 of the original resolution $compressionRatio = 2 # Zip names that get searched recursively in the main directory $whitelistedZipNames = @("*") # What to exclude from the above search $blacklistedZipNames = @("*cockpit*.zip", "*terrain*.zip") # All .zip files inside those folders get searched, even if they aren't in the whitelist above. This is a bypass in case the zip is not called like usual. Not connected to the function above. $whitelistedFolders = @("*") # What to exclude from the above search $blacklistedFolders = @("*cockpit*", "*terrain*") # Files inside .zips from above searches cointaining these filters get compressed. $whitelistedFilesInZips = @( "*" ) # What to exclude from the above search $blacklistedFilesInZips = @("*refl*") # Loose file names cointaining these filters get compressed, they are searched recursively in the main directory. Simillary to $Folders, this is in case the files are not in a .zip like usual. $whitelistedFiles = @( "*" ) # What to exclude from the above search $blacklistedFiles = @( "*refl*", "*cockpit*", "*terrain*", "*pilot*" ) # --------------- CUSTOMIZE HERE --------------- After having used the original script for awhile, I've been really happy with it. I was hoping to exclude the terrains and cockpits using this set of parameters but I've been getting an error when I attempt to use what's in the quote above. Any idea of how to fix it? dcs-texture-optimizer.ps1
zbysiek Posted April 17 Author Posted April 17 16 hours ago, Biggus said: After having used the original script for awhile, I've been really happy with it. I was hoping to exclude the terrains and cockpits using this set of parameters but I've been getting an error when I attempt to use what's in the quote above. Any idea of how to fix it? dcs-texture-optimizer.ps1 8.76 kB · 1 download Looks like you deleted too much stuff when copy pasting, the lines don't match the original script.
Biggus Posted April 17 Posted April 17 (edited) 3 hours ago, zbysiek said: Looks like you deleted too much stuff when copy pasting, the lines don't match the original script. Thank you for getting back to me. After checking with a script comparison tool, the only differences I can see are the ones that are cut and paste from the original one to the modified one you shared a couple of pages ago and the CHANGE-ME value to 2048. The lines change because the lines are changed in your example I quoted yesterday. I'm quite stumped. Edited April 17 by Biggus
tomeye Posted April 17 Posted April 17 Do you receive the error for a specific texture or every time? An idea that comes to my mind is that it could be an issue that it cannot read the texture size or name of a specific file.
Biggus Posted April 17 Posted April 17 9 hours ago, tomeye said: Do you receive the error for a specific texture or every time? An idea that comes to my mind is that it could be an issue that it cannot read the texture size or name of a specific file. I don't think it's a specific file or texture as it will compress everything with the original parameters. I'll see if I can find a specific parameter that is triggering the error though.
theropod Posted June 13 Posted June 13 (edited) I couldnt make this powershell script to work, sorry I am not a computer expert guy thats why this is too challenging for me. all I need reduced textures for performance. is there any video which shows correct installation and following process? Thanks! Edited June 13 by theropod 1
ST0RM Posted June 25 Posted June 25 Just a question. When the files are reduced from 4k to 2k, mine are all blurry. Is there a way to add the mip maps to make them clear? Or is it a cockpit resolution thing?
Mizuri Posted July 1 Posted July 1 (edited) On 6/12/2025 at 7:03 PM, theropod said: I couldnt make this powershell script to work, sorry I am not a computer expert guy thats why this is too challenging for me. all I need reduced textures for performance. is there any video which shows correct installation and following process? Thanks! Beginner-Friendly Instructions – DCS Optimized Textures PowerShell Script Original thread: https://forum.dcs.world/topic/357233-dcs-optimized-textures-powershell-script/ Works on Windows 10/11 64-bit. What You Need Create a folder on your Desktop Suggested name: DCS Optimized Textures Download and place the following files into that folder: a) Script Go to: https://gist.github.com/zbysiek/8df79276f659674b3926a0a757050f2f Click Download ZIP (top-right) Extract the file dcs-texture-optimizer.ps1 into the folder Delete the ZIP file if you want b) TexConv Go to: https://github.com/microsoft/DirectXTex/releases Scroll to Assets under the latest release Find texconv.exe, right-click > Save link as… Save into the same folder c) PowerShell 7 Go to: https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows Download PowerShell-7.5.1-win-x64.msi Run the installer and complete setup Cleanup Before Running Go to your main DCS installation folder Delete these folders if they exist: _backup _downloads This helps avoid processing unnecessary files. How to Run the Script Open PowerShell as Administrator Press Windows key, type powershell, Right-click > Run as Administrator In the window, type: Set-ExecutionPolicy Unrestricted Press Enter Then close the window Go to your DCS Optimized Textures folder Right-click inside the folder (not on a file) Choose Open with PowerShell 7 Do NOT run as admin Make sure the console path is correct. If needed, type: cd "$env:USERPROFILE\Desktop\DCS Optimized Textures" and press Enter Start the script by typing: .\dcs-texture-optimizer.ps1 and press Enter A window will pop up – choose your main DCS install folder Wait for the script to finish. This may take some time. Restore PowerShell Security (Recommended) When done: Open PowerShell as Administrator again Type: Set-ExecutionPolicy Restricted Press Enter That’s it. Now you have to install it into DCS. HOW-TO: Install DCS Optimized Textures using OvGME This guide explains how to install the DCS Optimized Textures using OvGME, a simple mod manager. Step 1: Download and Install OvGME Go to: https://github.com/jweisner/ovgme On the left side of the page, click "Releases" – latest is version 1.7.4 From the list, download this file: https://github.com/jweisner/ovgme/releases/download/v1.7.4/ovgme_1_7_4_setup_64.exe Run the downloaded file: ovgme_1_7_4_setup_64.exe Complete the installation Step 2: Prepare the Mods Folder Go to your main DCS installation folder Example: C:\Program Files\Eagle Dynamics\DCS World Create a new folder named "_MODS" (if it doesn't already exist) Inside "_MODS", create a new folder called "Optimized Textures" Go to the folder on your Desktop where you ran the DCS Optimized Textures script Copy the entire "Mod" folder from there into the "Optimized Textures" folder Final result should look like: C:\Program Files\Eagle Dynamics\DCS World\_MODS\Optimized Textures\Mod\Bazar... Step 3: Configure OvGME Open OvGME Click the "New" button to create a new configuration You can name it "DCS Core" or anything you like Set the paths: Mods folder: point to the "_MODS" folder Example: C:\Program Files\Eagle Dynamics\DCS World\_MODS Root folder: point to your DCS main folder Example: C:\Program Files\Eagle Dynamics\DCS World Click OK You should now see the "Optimized Textures" mod listed Step 4: Enable the Mod Select the mod from the list (click it) Click "Enable selected" You can enable more than one mod at a time To disable a mod, select it and click "Disable selected" Notes: You only need to enable the mod once. It stays active until you disable it. If you move your mods folder later, update the configuration paths in OvGME. This guide uses the _MODS folder inside your DCS install. Saved Games folder is not needed here. If you have any questions or run into problems, feel free to ask in this thread. Edited July 1 by Mizuri 3 3
MAXsenna Posted July 7 Posted July 7 I assume this does not pass IC?Correct! Sent from my SM-A536B using Tapatalk
Recommended Posts