Black Hawk Down Team Sabre Mapping and Mod Resource Site.
 
PortalPortal  HomeHome  FAQFAQ  SearchSearch  RegisterRegister  Log in  
Welcome to our Forums.
You must be a member to post in Forum.
So take a minute and register to get full access to forum.
Help keep BHD Alive.
Thank's for visiting our Forum's.
Navigation
FAQ






Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Who is online?
In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests :: 1 Bot

None

Most users ever online was 19 on Fri Jan 20, 2017 10:08 pm
Local Time

Misc. Links
Official Nova Squad


Share | 
 

 Need help with packing .pff file

Go down 
AuthorMessage
Blaze
Member
Member
avatar

Posts : 363
Join date : 2015-01-08
Age : 23
Location : Directus, Republic of Ustio

PostSubject: Need help with packing .pff file   Mon Feb 08, 2016 8:27 am

I'm in the process of preparing the mod for release.  Mod is 2.55GB, but the PFF utility I am using by FwO-Raven fails to create a .pff bigger than 2.00GB. Other utilities are not good enough, I have to select each file to add, and I have over 1,900 files to select, way too time consuming.

Any suggestions?


Last edited by Blaze on Tue Feb 09, 2016 8:32 am; edited 1 time in total
Back to top Go down
View user profile
Blaze
Member
Member
avatar

Posts : 363
Join date : 2015-01-08
Age : 23
Location : Directus, Republic of Ustio

PostSubject: Re: Need help with packing .pff file   Mon Feb 08, 2016 1:19 pm

I am unable to create such a big PFF with the utilities I currently have. I am afraid that the mod will be released unpacked if a solution is not found in the following days.
Back to top Go down
View user profile
tedsmelly
Super Moderator
Super Moderator
avatar

Posts : 81
Join date : 2012-12-02
Location : Qld Australia

PostSubject: Re: Need help with packing .pff file   Mon Feb 08, 2016 2:04 pm

I am having the same problem. I have not tried the other PFF utilities as yet.

Does your Install batch file have all the extensions it needs to pack your files.

I understand why our Mod is so big but I don't know how you filled your Mod so big. I have just under 2 gig and that is about 7200 files. Time to tidy up your "Items Def" or remove some items, maybe remove a 100 to 200 meg of terrains.


Back to top Go down
View user profile http://www.tiocoop.com
Blaze
Member
Member
avatar

Posts : 363
Join date : 2015-01-08
Age : 23
Location : Directus, Republic of Ustio

PostSubject: Re: Need help with packing .pff file   Mon Feb 08, 2016 2:13 pm

The only thing I can do to gain much space is to remove the terrain conversions, and it's something I do not like that much, especially considering that 2DNED contributed so much for it. Time to find an alternative way to make the .pff.
Moreover, I am starting to guess that my mod is the only one that is over 2GB, it seems all other mods are smaller, due to the fact that in my mod there are really so many terrains.

Rest of the mod is just some new skins and a few items, they are not even more than 200MB.
Back to top Go down
View user profile
Blaze
Member
Member
avatar

Posts : 363
Join date : 2015-01-08
Age : 23
Location : Directus, Republic of Ustio

PostSubject: Re: Need help with packing .pff file   Mon Feb 08, 2016 2:32 pm

IIRC the AW2 mod for Joint Ops is over 2GB.

Anyway, I don't know what to do. Most likely I'll remove some terrains since I dislike the idea of releasing an unpacked mod. But the terrains were a feature of the mod, what a pity...
If you guys have suggestions, I'd appreciate.
Back to top Go down
View user profile
Baldo_the_Don
Administrator
Administrator
avatar

Posts : 73
Join date : 2012-07-27
Location : Germany

PostSubject: Re: Need help with packing .pff file   Mon Feb 08, 2016 4:34 pm

Create a new folder in the game folder. Name it NewMod. Move all the files you want in the .pff into this folder, and ONLY the files you want in the .pff. Then press Windows Key and R to open the Run dialog. Search through to the game folder and select the pack.exe. The Run dialog will have something like this in the "Open:" text line:

Code:
"C:\Program Files (x86)\Novalogic\Delta Force Black Hawk Down\PACK.EXE"

Add the following commands:

Code:
"C:\Program Files (x86)\Novalogic\Delta Force Black Hawk Down\PACK.EXE" BlazeMod.pff +NewMod\*.*

When that's ready, click "OK". A run.exe window will open to display the packing progress and will close when it's finished.

The run command tells the pack.exe to take all the files in NewMod folder (regardless of file name or extension. that's what the *.* means) and pack them into a .pff named BlazeMod. You'll find the new .pff in the main game folder. Drag and drop it into the mod folder to prepare it for play.

As long as all the files comply with the 11.3 naming format (example: ElevenChars.txt), there should be no problems. If there is a file with too long of a name, the run.exe window will stop and tell you that. Note the file's name, then press ENTER to continue packing without that file. Try adding the file manually with a .pff tool, or rename the file and edit the mod assets using that file to reflect the change, then repack the .pff.

That's how I pack .pffs.
Back to top Go down
View user profile https://www.youtube.com/BaldotheDon
Blaze
Member
Member
avatar

Posts : 363
Join date : 2015-01-08
Age : 23
Location : Directus, Republic of Ustio

PostSubject: Re: Need help with packing .pff file   Mon Feb 08, 2016 5:29 pm

Same error, it says something like error 131, and mentions offsets, then the window automatically closes.

It seems we are unable to create .pff files which are bigger than 2.097.215 KB, 2.00 GB so to speak.

Damn, later Nova games like Joint Ops have better mod support, a mod can use more than a single .pff, but it's not the case in the old DFBHD.

I really appreciated your help, Baldo. Sadly it seems that most likely I'll have to abandon the idea of having so many terrains in the mod, each terrain takes much space due to the needed colormaps and .cpt files

EDIT: Moreover, the "incomplete" 2.00 GB pff file that I obtained using both Baldo's method and other utilities turned out to be totally corrupt, no files can be seen correctly using the pff extractors.
Back to top Go down
View user profile
LoneWolf
Super Admin
Super Admin
avatar

Posts : 430
Join date : 2012-07-19
Location : Kentucky.USA

PostSubject: Re: Need help with packing .pff file   Mon Feb 08, 2016 11:34 pm

Blaze could you take some terrains out like you said and then do an update for the mod and add the rest of them in the update something like a expansion for the mod?
I don't know if ya can do it like that or not,I don't know anything about modding.


Back to top Go down
View user profile http://lonewolfs.forumotion.net/
Blaze
Member
Member
avatar

Posts : 363
Join date : 2015-01-08
Age : 23
Location : Directus, Republic of Ustio

PostSubject: Re: Need help with packing .pff file   Tue Feb 09, 2016 4:15 am

Unfortunately I can't do it that way. All files must be in the same .pff file, unlike in Joint Ops, where each mod gets a folder and can have multiple .pff files.
Back to top Go down
View user profile
tedsmelly
Super Moderator
Super Moderator
avatar

Posts : 81
Join date : 2012-12-02
Location : Qld Australia

PostSubject: Re: Need help with packing .pff file   Tue Feb 09, 2016 4:34 am

Hey Modsters, home early but wounded. getting old.

Baldo's method should have worked, however I sent Blaze a PM with a link. Hopefully I made it easier with simple steps to create a PFF.


Back to top Go down
View user profile http://www.tiocoop.com
Blaze
Member
Member
avatar

Posts : 363
Join date : 2015-01-08
Age : 23
Location : Directus, Republic of Ustio

PostSubject: Re: Need help with packing .pff file   Tue Feb 09, 2016 4:36 am

Good news and bad news. 
TedSmelly sent me a different batch file and it did include almost everything, it left out what appears to be 572 MB of files which are not needed in the .pff, these files are .bik video files from the DFBHD CD, which I intend to include in the mod, and thankfully they are not needed in the .pff

Bad news is that the mod is already 2.00 GB, and that means that I may not be able to include the much wanted items in the future. But for now, what I wanted is here. I just need to create an installer and upload it, I'll take my time. Thanks for the support, if I encounter any problems I'll tell you, you guys are a great team!


Last edited by Blaze on Tue Feb 09, 2016 4:38 am; edited 1 time in total
Back to top Go down
View user profile
Blaze
Member
Member
avatar

Posts : 363
Join date : 2015-01-08
Age : 23
Location : Directus, Republic of Ustio

PostSubject: Re: Need help with packing .pff file   Tue Feb 09, 2016 4:37 am

Haha, it did, Ted, 'cause your batch, unlike mine one, excluded unuseful .bik files. Those can be included in the installer which can install them in the main game folder.

PS: BTW I saw EE post at a thread at DFReload, I wonder if you can get in touch with him for that thing about .3di item conversions from JO to DFBHD (like that Chinook he converted)
Back to top Go down
View user profile
tedsmelly
Super Moderator
Super Moderator
avatar

Posts : 81
Join date : 2012-12-02
Location : Qld Australia

PostSubject: Re: Need help with packing .pff file   Tue Feb 09, 2016 4:44 am

Sweet, I am glad you are on you way. Let me know if you have any problems making an installer.


I will try and track EE down.


Back to top Go down
View user profile http://www.tiocoop.com
Blaze
Member
Member
avatar

Posts : 363
Join date : 2015-01-08
Age : 23
Location : Directus, Republic of Ustio

PostSubject: Re: Need help with packing .pff file   Tue Feb 09, 2016 3:56 pm

I had no problems making the installer, but I experienced some bugs and issues due to the fact that I had to convert a lot of .tga skins into the compressed .dds format.  I think I got rid of most of the issues, now I'm remaking the installer with the new .pff.  When mod will be released, be on the lookout for visual oddities and bugs; I did my best to keep it as bug free as possible.
Back to top Go down
View user profile
tedsmelly
Super Moderator
Super Moderator
avatar

Posts : 81
Join date : 2012-12-02
Location : Qld Australia

PostSubject: Re: Need help with packing .pff file   Tue Feb 09, 2016 6:05 pm

Do you mean you changed a lot of TGA's to DDS's., or did you actually compress the DDS's to a smaller size.

Blaze, this is a link to another PFF Editor DOWNLOAD HERE

I have had this PFF3 Utility for ages but never used it. I always used FwO_PFF_7. There is another PFF Utility I know about and I will source it if we need too.


Back to top Go down
View user profile http://www.tiocoop.com
Blaze
Member
Member
avatar

Posts : 363
Join date : 2015-01-08
Age : 23
Location : Directus, Republic of Ustio

PostSubject: Re: Need help with packing .pff file   Wed Feb 10, 2016 4:43 am

I mean I changed a lot of .tga files to .dds, and the .dds file format is just a sort of compressed .tga, in fact image quality is worse and it takes less space (it's like passing from .bmp to .jpg)

Thanks for the link, I had it already
Back to top Go down
View user profile
Drunk
Member
Member
avatar

Posts : 28
Join date : 2015-09-16
Location : Bathurst, New-Brunswick Canada

PostSubject: Re: Need help with packing .pff file   Tue May 31, 2016 9:17 am

How about trying this.....

@echo off
if not exist pack.exe goto nopackfile
for %%f in ( *.3di) do .\pack .\yourmod.pff %%f /FORCE
for %%f in ( *.pcx) do .\pack .\yourmod.pff %%f /FORCE
for %%f in ( *.tga) do .\pack .\yourmod.pff %%f /FORCE
for %%f in ( *.dds) do .\pack .\yourmod.pff %%f /FORCE
for %%f in ( *.def) do .\pack .\yourmod.pff %%f /FORCE
for %%f in ( *.bin) do .\pack .\yourmod.pff %%f /FORCE
goto complete
:nopackfile
echo This program cannot be run without the pack.exe file
echo Please make sure that you put a copy in the same directory
echo as this batch file..there's a copy in your BHD Folder..
pause
goto end
:complete
cls
echo All files have been succesfully packed - installation Complete.
pause 
:end

Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Need help with packing .pff file   

Back to top Go down
 
Need help with packing .pff file
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Black Hawk Down Team Sabre Mapping and Mod Site :: Black Hawk Down Mod Discussion :: BHD Mod Forum-
Jump to: