Jump to content

Recommended Posts

Posted

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!

 

  • Like 1
Posted
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 Hook

Sent from my FP4 using Tapatalk

  • Like 1
Posted
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?

Posted
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. 

  • Like 1
  • Thanks 1
Posted
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

Yeah, 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

Posted

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 ---------------

  • Like 1
  • Thanks 1
Posted

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 ---------------

 

  • Like 1
Posted (edited)
$whitelistedZipNames = @("*cockpit*.zip", "*terrain*.zip")


Aren't all the cockpit zips named differently, and terrains textures vfstextures ? 
Edited by Quekel
Posted

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.

 

Снимок экрана 2024-10-18 101228.png

Posted

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

  • Like 1
Posted
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. 😊 

Posted
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.

Снимок экрана 2024-10-18 102540.png

Posted

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

Posted
1 minute ago, Hip Hind said:

It's a PS 7.

Снимок экрана 2024-10-18 102540.png

 

True, but not as Administrator. Don't think it matters, but you're on an older version too.

image.png

 

Right click and choose Administrator.

image.png

Posted
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.

Posted (edited)
2 минуты назад, Zyll сказал:

You ran the Set-ExecutionPolicy Unrestricted command I assume?

Zyll @ TAW
 

Yes. I do everything strictly by the tutorial.

Edited by Hip Hind
Posted

Repeated the tutorial completely, after executing the Set-ExecutionPolicy Unrestricted command, rebooted the computer, started PS7 from admin.... The result is on the screen

 

 

Снимок экрана 2024-10-18 105905.png

Posted
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=SWTNF1
Sent from my SM-A536B using Tapatalk



  • Thanks 1
Posted
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.

Posted (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.

 

Снимок экрана 2024-10-18 113133.png

Edited by Hip Hind
  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...