| View previous topic :: View next topic |
| Author |
Message |
jlangsdo

Cutthroat 
Posts: 398 

 
11012 Gold -

|
Posted: Sat Dec 01, 2012 12:06 pm Post subject: Mod tool suite for mac |
|
|
Here's a tool suite for Mac.
The Assets folder is found at:
/Applications/Sid Meier\'s\ Pirates\!/PiratesData/Assets
The files to mod are combined together into the FPK files. It appears that the FPK format can be used to compress files, but that they are not compressed; there is just a table of contents listing the file names and locations, and then the files just appear one after another. Based on that insight, I wrote a simple script to dump out the contents of all of the FPK files into an Assets_UNPACKED directory:
smp_fpk_unpack.pl
The game will use a file if it appears in the Assets folder (or any of its subfolders) in preference to the one in the FPK file. This is how most of the mods on this site work, you just put the .dds file into the Assets folder and the game picks it up. This also means you never need to repack the FPK files.
These are some free tools I have downloaded which work for reading and editing files:
Gimp: http://www.gimp.org/downloads/
can edit most graphics formats: bmp, jpg, png
Aorta: http://sourceforge.net/projects/aorta/
converts dds files (used for character clothing, faces, etc) to png (for editing in Gimp) and back
Emacs: http://aquamacs.org/
is a text editor that can read and edit the .txt files (they aren't quite in plain text, perhaps uuencoded). If you are trying to edit text, remember that U.S. english names are in "*_enu.txt" not "*_eng.txt" versions.
HexEdit: http://hexedit.en.softonic.com/mac
for editing binary files
I haven't found an editor for nif files yet, which are the three dimensional shapes onto which the dds files are painted.
There are all sorts of neat files in here that no one has ever posted mods to before..... |
|
| Back to top |
|
 |
dogcigar

Swabbie 
Posts: 82 

 
542 Gold -

|
Posted: Thu Aug 15, 2013 4:46 pm Post subject: |
|
|
jlangsdo, I`m working on a new mod and want to unpack the fpks but I keep getting `permission denied` on the script. It`s funny as the patch script works perfectly. Any tips? I`m on snow leopard if it helps any |
|
| Back to top |
|
 |
dogcigar

Swabbie 
Posts: 82 

 
542 Gold -

|
Posted: Thu Aug 15, 2013 4:48 pm Post subject: |
|
|
double post
Last edited by dogcigar on Thu Aug 15, 2013 4:56 pm; edited 1 time in total |
|
| Back to top |
|
 |
dogcigar

Swabbie 
Posts: 82 

 
542 Gold -

|
Posted: Thu Aug 15, 2013 4:48 pm Post subject: |
|
|
double post
Last edited by dogcigar on Thu Aug 15, 2013 4:55 pm; edited 1 time in total |
|
| Back to top |
|
 |
dogcigar

Swabbie 
Posts: 82 

 
542 Gold -

|
Posted: Thu Aug 15, 2013 6:22 pm Post subject: |
|
|
Ah.. got it solved. Just needs to have the exact directory name Sid Meirs Pirates! .Sorry about the multiple posts everyone. system was in debug mode or sg and I was banging away at the submit key |
|
| Back to top |
|
 |
|