Lantarh
CivFanatic
- Joined
- Jul 23, 2012
- Messages
- 166
Hello, I did some tests.
I played a Huge Earth game on RI 3.72 until 1723AD, when I got the first crash. Save size is 5661KB and load time is around 45 seconds on my system.
Without any action, that's the memory situation immediately after loading the save:
I then created a PowerShell script that unpack the RI FPK and moves all the assets to the BtS folder (after backuping the Assets, both in the BtS and RI folders).
After running the script, I launched again the save. Load times are the same, but the memory situation is drastically improved:
I'll play it further and will update you.
I played a Huge Earth game on RI 3.72 until 1723AD, when I got the first crash. Save size is 5661KB and load time is around 45 seconds on my system.
Without any action, that's the memory situation immediately after loading the save:
I then created a PowerShell script that unpack the RI FPK and moves all the assets to the BtS folder (after backuping the Assets, both in the BtS and RI folders).
Spoiler Script :
Code:
# Personalize these
# You have to place PakBuild.exe from http://www.civfanatics.net/downloads/civ4/utility/PakBuild.zip inside the $PakBuilder_Path folder
$BtS_Path = 'C:\Program Files (x86)\Steam\steamapps\common\Sid Meier''s Civilization IV Beyond the Sword\Beyond the Sword'
$RI_Path = 'C:\Program Files (x86)\Steam\steamapps\common\Sid Meier''s Civilization IV Beyond the Sword\Beyond the Sword\Mods\Realism Invictus'
$PakBuilder_Path = 'C:\Users\User\Desktop\tests'
# Don't touch these
$BtS_Assets_Path = $BtS_Path + '\Assets'
$BtS_Assets_Path_Backup = $BtS_Path + "\Assets_Backup"
$RI_Assets_Path = $RI_Path + '\Assets'
$RI_Assets_Path_Backup = $RI_Path + '\Assets_Backup'
$RI_Assets_Path_Unpacked = 'C:\Assets_Unpacked'
$RI_Assets_Path_Unpacked_Art = 'C:\Assets_Unpacked\art'
$PakBuilder_Exe = 'C:\Users\User\Desktop\tests' + '\PakBuild.exe'
$PakBuilder_Input = '/I="' + $RI_Assets_Path + '"'
$PakBuilder_Output = '/O="' + $RI_Assets_Path_Unpacked + '"'
$PakBuilder_Options = '/U'
# Backup Asset folders in BtS and RI
Copy-Item -Path $BtS_Assets_Path -Destination $BtS_Assets_Path_Backup -Recurse
Copy-Item -Path $RI_Assets_Path -Destination $RI_Assets_Path_Backup -Recurse
# Unpack RI FPK file
Start-Process -FilePath $PakBuilder_Exe -ArgumentList $PakBuilder_Input, $PakBuilder_Output, $PakBuilder_Options -NoNewWindow -Wait
# Move all assets to BtS folder and cleanup the rest
Get-ChildItem -Path $RI_Assets_Path *.FPK | foreach { Remove-Item -Path $_.FullName }
Copy-Item -Path $RI_Assets_Path_Unpacked_Art -Destination $RI_Assets_Path -Recurse -Force
Remove-Item $RI_Assets_Path_Unpacked -Recurse -Force
Copy-Item -Path $RI_Assets_Path -Destination $BtS_Path -Recurse -Force
Remove-Item $RI_Assets_Path -Recurse -Force
After running the script, I launched again the save. Load times are the same, but the memory situation is drastically improved:
I'll play it further and will update you.
Attachments
Last edited: