The unpacked files are contained inside a packs/data/ui/blablabla folder right?
Put xpak.exe and the pack.bat files inside your packs folder.
Create a text file (let's call it
ui_1.txt) inside your packs folder.
The first line should be the name of the pak file you want to create, which means
ui_1.pak.
Then, in each line below the first you list one by one all the files included in your pack, together with their respective paths relative to the packs/ folder.
So your ui_1.txt should look like this:
Code:
ui_1.pak
data\ui\roman\portraits\portraits\young\generals\000.tga
data\ui\roman\portraits\portraits\young\generals\001.tga
[etc etc]
data\ui\roman\portraits\cards\old\generals\000.tga
[and so on and so forth, until all files have been listed]
Now edit pack.bat to read:
Code:
xpak.exe -v -pf ui_1.txt
Then just run the xpak.exe and a new ui-1.pak should be created. Just to be safe, keep the old ui_1.pak somewhere safe until you make sure the new one works.