Please give version 1.2.1 a try.
OK, I'll have another look at it, but it won't be until May earliest, as we have a UK General Election in progress here, and I'm heavily involved in getting a great MP re-elected!
Yes, thanks. Our LibDem got back in by a whisker.
(b) User interface. I'm not very impressed with the pakbuild Windows UI, it seems rather clunky and not very intuitive. Do you need a full .fpk file editor where you can add and remove assets files individually, or is a simple "Pack this folder to create a set of .fpk files" interface all that's required?
Please give Macapaka version 1.3.1 a try. I've added a File menu option - "New FPK File..." that lets you select a folder full of files. You can then select any subset of that folder as content to be Packed into a FPK file.
I have tested it by unpacking the Assets0.fpk file, then Packing the resulting files. I then used the new file to replace the standard Assets0.fpk file, and I was able to start up Civ4 with the new file. PakBuild unpacks the new file OK as well. However, the acid test is whether it will do what you need to build mods.
Please let me know whether it works for you.
01/06/10 1:35:32 PM Macapaka[3739] *** -[NSCFArray objectAtIndex:]: index (4) beyond bounds (0)
01/06/10 1:51:52 PM Macapaka[3808] -[AHNode setParameters:location:param1:param2:]: unrecognized selector sent to instance 0x200960
01/06/10 1:51:52 PM Macapaka[3808] -[AHNode setParameters:location:param1:param2:]: unrecognized selector sent to instance 0x200960
01/06/10 1:51:52 PM Macapaka[3808] -[AHNode setParameters:location:param1:param2:]: unrecognized selector sent to instance 0x16d000
01/06/10 1:51:52 PM Macapaka[3808] -[AHNode setParameters:location:param1:param2:]: unrecognized selector sent to instance 0x16d000
That is only a cosmetic problem. The subfolders are all selected, they are just not highlighted. You should not have to select the subfolders explicitly. The window behaves the same as when it is displaying the contents of a FPK file (it's running the same code).Unfortunately I can't get it to work. The main issue seems related to subfolders. Firstly, when the window comes up that lets you choose which contents you want to include, selecting a folder in that window doesn't automatically select all the contents of that folder as well.
You need to rotate the little arrow and select them all manually.
I noticed the following messages in the Console while browsing in this window:
Code:01/06/10 1:35:32 PM Macapaka[3739] *** -[NSCFArray objectAtIndex:]: index (4) beyond bounds (0)
The index number would change depending on what I was selecting. I also noticed that the file and byte count in the New FPK window would not always update properly. The count would increase if I selected a folder or file at the 'root' but the byte count would not increase appropriate to content size of any selected folder. Manually selecting a file in a folder would not increase the file or byte count.
Actually I just noticed that no matter what you select in the root directory the byte count only ever increases by exactly 6148 per item.
I then tried to make an FPK that contained no folders. This worked but the resulting FPK was too small (528 KB) compared to a folder of 26 items (3.7 MB). Trying to open this FPK in Macapaka failed with the console message:
Code:01/06/10 1:51:52 PM Macapaka[3808] -[AHNode setParameters:location:param1:param2:]: unrecognized selector sent to instance 0x200960 01/06/10 1:51:52 PM Macapaka[3808] -[AHNode setParameters:location:param1:param2:]: unrecognized selector sent to instance 0x200960 01/06/10 1:51:52 PM Macapaka[3808] -[AHNode setParameters:location:param1:param2:]: unrecognized selector sent to instance 0x16d000 01/06/10 1:51:52 PM Macapaka[3808] -[AHNode setParameters:location:param1:param2:]: unrecognized selector sent to instance 0x16d000
Hope this helps :/
EDIT: Just tried to unpack and repack Assets0.fpk like you did. The new FPK was only 8.6 MB compared to the original 104.9 MB. What could be different on my system from yours? I'm using OSX 10.6.3.
That is only a cosmetic problem. The subfolders are all selected, they are just not highlighted. You should not have to select the subfolders explicitly. The window behaves the same as when it is displaying the contents of a FPK file (it's running the same code). Were you running Macapaka from the disk image, or did you copy it to your hard drive? I can get it to crash and do some other strange things if I run it from the disk image, though I'm not sure why. I''ll investigate that further this evening.
I have found one issue with subsets of files/folders. The packed file contains the wrong file count. I've fixed that, and issued version 1.3.2, linked in the first post.
What does "modular loading of art" look like, and how does it misbehave when it breaks?
I've had a look at the file/folder selection logic in Macapaka, and I think I might have resolved a couple of bugs that may have been causing problems.
Please can you have a look at version 1.3.3 and see if it is any better. I can't promise that it has solved all the issues, but I think some of them may have gone.
Apologies for subjecting you to this trial and error sequence, but I don't have any good test cases that I can use here. If there are still problems, and you have a test case I can use to investigate, please give me the details. You can email sample files to alanh <at> civfanatics <dot> net.