In my testing it takes about 38 seconds to get to the main menu when starting WTP. A big chunk of this time the UI has no feedback. I think that big pause in the UI makes it seem a lot longer than it actually is.
Using PakBuild to package the Art folder reduced this time to ~8 seconds for me. The load progress UI displays immediately, so there is no big pause and it feels a lot better.
The most difficult thing about using PakBuild is that all the instructions I found involved copying the Art folder around to isolate it. I am too lazy for that and worked out how to use a link.
I did this in the git checkout, it can probably be done in the installed mod as well, but my instructions are for the git checkout.
Here is how to do it.
If there are updates to the
You can run the command from anywhere but make sure to adjust the paths for the
If you want to use the PakBuild UI, for testing or such, it's pretty easy.
Enjoy!
Using PakBuild to package the Art folder reduced this time to ~8 seconds for me. The load progress UI displays immediately, so there is no big pause and it feels a lot better.
The most difficult thing about using PakBuild is that all the instructions I found involved copying the Art folder around to isolate it. I am too lazy for that and worked out how to use a link.
I did this in the git checkout, it can probably be done in the installed mod as well, but my instructions are for the git checkout.
Here is how to do it.
- Download PakBuild https://forums.civfanatics.com/threads/civ4-pakbuild.136023/
- Make directory for PakBuild in mod source directory
-
Code:
cd WTP-mod mkdir PakBuild\Assets
-
- Unzip PakBuild.exe in to the new PakBuild directory, so you have
PakBuild\PakBuild.exe
- Create a link from the real Art directory to use with PakBuild. You need to do this step in a command line run as administrator. You also need to `cd` in to the sub-directory or the link won't work properly.
Code:cd PakBuild\Assets mklink /d Art ..\..\Assets\Art
- From the mod's root directory you can now run PakBuild
PakBuild\PakBuild.exe /F /I=PakBuild\Assets /O=PakBuild /R=Art
this will generatePakBuild\Art0.FPK
- Delete Art folder from the mod's install directory and copy FPK file there
If there are updates to the
Assests\Art
directory in git then you need to git pull
and rerun PakBuild to generate an updated FPK file.You can run the command from anywhere but make sure to adjust the paths for the
/I
and /O
arguments.If you want to use the PakBuild UI, for testing or such, it's pretty easy.
- Run
PakBuild.exe
- Select menu File->New
- Select the new Assets directory
[I].\PakBuild\Assets[/I]
(Not the Art link inside it) - Click Store full paths
- Select menu PAK->Build
- Wait until the right hand list shows all files
- Close PakBuild, do not save
- Replace `Art` folder in install directory with Pak0.FPK file
Enjoy!