tomeye Posted October 16, 2024 Posted October 16, 2024 Comparing size of textures zip indicates the problem. After running the script we have: Mods\aircraft\AH-64D\Cockpit\Textures\AH-64D-CPT-TEXTURES.zip 490Mbytes Mods\aircraft\CH-47F\Cockpit\Textures\Cockpit_CH-47F_Textures.zip 1.6Gbytes Chinook is 3x times larger! 1
MagicSlave Posted October 16, 2024 Posted October 16, 2024 Comparing size of textures zip indicates the problem. After running the script we have: Mods\aircraft\AH-64D\Cockpit\Textures\AH-64D-CPT-TEXTURES.zip 490Mbytes Mods\aircraft\CH-47F\Cockpit\Textures\Cockpit_CH-47F_Textures.zip 1.6Gbytes Chinook is 3x times larger! I customized the script and went down to 600 MB for Chinook cockpit textures and still the performance didn't improve. So there is something more than just the textures wrong with the HookSent from my FP4 using Tapatalk 1
tomeye Posted October 16, 2024 Posted October 16, 2024 6 minutes ago, MagicSlave said: I customized the script and went down to 600 MB for Chinook cockpit textures and still the performance didn't improve. So there is something more than just the textures wrong with the Hook Sent from my FP4 using Tapatalk do you mind sharing the customization?
MagicSlave Posted October 16, 2024 Posted October 16, 2024 7 minutes ago, tomeye said: do you mind sharing the customization? Sorry, I don't think it is useful. I just brute forced it to compress every .dds file in the cockpit textures zip and it looks like carbage. I just did it to test if it increased performance. it didn't so I did not tinker with it any further. 1 1
MAXsenna Posted October 16, 2024 Posted October 16, 2024 I customized the script and went down to 600 MB for Chinook cockpit textures and still the performance didn't improve. So there is something more than just the textures wrong with the HookSent from my FP4 using TapatalkYeah, after last patch, I seem to be back at scratch one. It did help pre-patch. At least for me. Sent from my SM-A536B using Tapatalk
zbysiek Posted October 17, 2024 Author Posted October 17, 2024 ED changed how textures are streamed to VRAM, i guess they decided to optimize it backwards. 2 1
Quekel Posted October 17, 2024 Posted October 17, 2024 I did it in 3 steps now and seems to work best for me currently 1. I convert all files with a minimum of 512. ( il post custom below ) 2. Then I delete the Mods/Aircraft & Mods/Terrain folders from the newly converted items. 3. Then I use SLAM to install the converted items This way I reduce textures from 140GB to 40GB with keeping cockpit's and terrains textures untouched, giving me good stable FPS in VR. This gives me time to figure out what the best way is to convert cockpit's and terrains. # --------------- CUSTOMIZE HERE --------------- # Textures below or at this size do not get compressed $minTexSize = 512 # 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 $whitelistedZipNames = @("*.zip") # What to exclude from the above search $blacklistedZipNames = @() # All zips in these folders get checked, even if they aren't in the whitelist above $whitelistedFolders = @("*") # What to exclude from the above search $blacklistedFolders = @() # File names cointaining these filters get compressed inside those zips, loose textures are searched recursively in the main directory $whitelistedFiles = @( "*.dds", "*.tga", "*.jpg", "*.png", "*.bmp" ) # What to exclude from the above search $blacklistedFiles = @("*refl*") # --------------- CUSTOMIZE HERE --------------- 1 1
MAXsenna Posted October 17, 2024 Posted October 17, 2024 1 hour ago, zbysiek said: ED changed how textures are streamed to VRAM, i guess they decided to optimize it backwards. 1
zbysiek Posted October 17, 2024 Author Posted October 17, 2024 UPDATE 05.09.2024 (V0.2.4) 1. Fixed filed inside zips not respecting the blacklist (this time for real (forgot to copy paste one line)) 2. Changed customizaion comments to make it more clear what the functions do 3. Separated white/black lists for files inside zips and loose files 2 hours ago, Quekel said: I did it in 3 steps now and seems to work best for me currently 1. I convert all files with a minimum of 512. ( il post custom below ) 2. Then I delete the Mods/Aircraft & Mods/Terrain folders from the newly converted items. 3. Then I use SLAM to install the converted items This way I reduce textures from 140GB to 40GB with keeping cockpit's and terrains textures untouched, giving me good stable FPS in VR. This gives me time to figure out what the best way is to convert cockpit's and terrains. # --------------- CUSTOMIZE HERE --------------- # Textures below or at this size do not get compressed $minTexSize = 512 # 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 $whitelistedZipNames = @("*.zip") # What to exclude from the above search $blacklistedZipNames = @() # All zips in these folders get checked, even if they aren't in the whitelist above $whitelistedFolders = @("*") # What to exclude from the above search $blacklistedFolders = @() # File names cointaining these filters get compressed inside those zips, loose textures are searched recursively in the main directory $whitelistedFiles = @( "*.dds", "*.tga", "*.jpg", "*.png", "*.bmp" ) # What to exclude from the above search $blacklistedFiles = @("*refl*") # --------------- CUSTOMIZE HERE --------------- Cockpit / 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 = @("*cockpit*.zip", "*terrain*.zip") # What to exclude from the above search $blacklistedZipNames = @() # 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 = @("*cockpit*", "*terrain*") # What to exclude from the above search $blacklistedFolders = @() # 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 = @( "*cockpit*.dds", "*terrain*.dds", "*pilot*.dds", "*cockpit*.tga", "*terrain*.tga", "*pilot*.tga", "*cockpit*.jpg", "*terrain*.jpg", "*pilot*.jpg", "*cockpit*.png", "*terrain*.png", "*pilot*.png", "*cockpit*.bmp", "*terrain*.bmp", "*pilot*.bmp" ) # What to exclude from the above search $blacklistedFiles = @("*refl*") # --------------- CUSTOMIZE HERE --------------- 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 --------------- 1
Quekel Posted October 17, 2024 Posted October 17, 2024 (edited) $whitelistedZipNames = @("*cockpit*.zip", "*terrain*.zip") Aren't all the cockpit zips named differently, and terrains textures vfstextures ? Edited October 17, 2024 by Quekel
Hip Hind Posted October 18, 2024 Posted October 18, 2024 I do everything exactly as instructed, but the script fails to execute due to lack of signature. Both files (ps1 & texconv) are in the same folder, PS is run as admin, the command Set-ExecutionPolicy Unrestricted is executed, PS7 is run in the folder not as admin, the path to the script is specified, but the script fails to run. Win 11 23H2.
Zyll Posted October 18, 2024 Posted October 18, 2024 Ps7 is a different executable. You can tell from the "PS" prompt in your screenshot that you are still running the old PS, even though you installed PS7. It's really dumb, and an easy mistake to make.Zyll @ TAW 1
MAXsenna Posted October 18, 2024 Posted October 18, 2024 1 minute ago, Zyll said: Ps7 is a different executable. You can tell from the "PS" prompt in your screenshot that you are still running the old PS, even though you installed PS7. It's really dumb, and an easy mistake to make. Zyll @ TAW Did it myself the first time.
Hip Hind Posted October 18, 2024 Posted October 18, 2024 3 минуты назад, Zyll сказал: Ps7 is a different executable. You can tell from the "PS" prompt in your screenshot that you are still running the old PS, even though you installed PS7. It's really dumb, and an easy mistake to make. Zyll @ TAW It's a PS 7.
Zyll Posted October 18, 2024 Posted October 18, 2024 Apologies, I was going off memory and apparently remembered wrong, I thought the PS prompt was different in 7. I'm not sure what the issue is that you are having.Zyll @ TAW
MAXsenna Posted October 18, 2024 Posted October 18, 2024 1 minute ago, Hip Hind said: It's a PS 7. True, but not as Administrator. Don't think it matters, but you're on an older version too. Right click and choose Administrator.
Hip Hind Posted October 18, 2024 Posted October 18, 2024 10 минут назад, MAXsenna сказал: True, but not as Administrator. Don't think it matters, but you're on an older version too. Right click and choose Administrator. The manual says to run PS7 as a non-administrator. That's fine. I updated PS to version 7.4.5, same result. I also ran it as administrator and again the same result - it is impossible to execute the script.
Zyll Posted October 18, 2024 Posted October 18, 2024 You ran the Set-ExecutionPolicy Unrestricted command I assume?Zyll @ TAW
Hip Hind Posted October 18, 2024 Posted October 18, 2024 (edited) 2 минуты назад, Zyll сказал: You ran the Set-ExecutionPolicy Unrestricted command I assume? Zyll @ TAW Yes. I do everything strictly by the tutorial. Edited October 18, 2024 by Hip Hind
Hip Hind Posted October 18, 2024 Posted October 18, 2024 Repeated the tutorial completely, after executing the Set-ExecutionPolicy Unrestricted command, rebooted the computer, started PS7 from admin.... The result is on the screen
MAXsenna Posted October 18, 2024 Posted October 18, 2024 The manual says to run PS7 as a non-administrator. That's fine. I updated PS to version 7.4.5, same result. I also ran it as administrator and again the same result - it is impossible to execute the script.My bad. You don't need to. Only when changing the execution policy. EDIT: Reading the error again, it really seems it complains about the execution policy.You might wanna double check it's correcttly set. https://www.bing.com/search?q=how+to+check+the+powershell+execution+policy&dsform=sk&FORM=SWTNF1Sent from my SM-A536B using Tapatalk 1
Hip Hind Posted October 18, 2024 Posted October 18, 2024 1 минуту назад, MAXsenna сказал: My bad. You don't need to. Only when changing the execution policy. Sent from my SM-A536B using Tapatalk And it doesn't affect the result in any way. It makes no difference whether you run it as administrator or not. It's always the same error.
Hip Hind Posted October 18, 2024 Posted October 18, 2024 10 минут назад, MAXsenna сказал: EDIT: Reading the error again, it really seems it complains about the execution policy. You might wanna double check it's correcttly set. https://www.bing.com/search?q=how+to+check+the+powershell+execution+policy&dsform=sk&FORM=SWTNF1 PS C:\Windows\system32> Get-ExecutionPolicy Unrestricted
tomeye Posted October 18, 2024 Posted October 18, 2024 Default policy is RemoteSigned which could explain your error 1
Hip Hind Posted October 18, 2024 Posted October 18, 2024 (edited) 9 минут назад, tomeye сказал: Default policy is RemoteSigned which could explain your error Yes, but not necessarily. You need an admin command in PS (not PS7) Unblock-File. In my case: 1. Set-ExecutionPolicy Unrestricted 2. Unblock-File -Patch (patch to folder) In this case the process started. @zbysiek add these points to the tutorial as optional but necessary, as my case shows. Edited October 18, 2024 by Hip Hind 1
Recommended Posts