the Phrozen Forums
  General Mod Making
  Deleting files in mpq???

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Deleting files in mpq???
KenJi
Serf

Posts: 19
From:
Registered: Jan 2002

posted 20 February 2002 05:55     Click Here to See the Profile for KenJi   Click Here to Email KenJi        Reply w/Quote   
is it possible for me to delete files in mpq using mpq2k without replacing that file??? coz i want to delete a file that always give an error and i dont wanna replace it because of its size.... and i dont wanna repeat in repacking those bunch of files that i have editted...if it is possible, then how??? and what are the commands???

tnx in advance and have a good day....

------------------
"It is time that the shadow should be afraid"

IP Logged

BMW
Lord

Posts: 148
From: Singapore
Registered: Feb 2001

posted 20 February 2002 07:31     Click Here to See the Profile for BMW   Click Here to Email BMW        Reply w/Quote   Visit BMW's Homepage!
You can delete files in an MPQ with MPQ2k. This is how it should be done.

------------------------------------
4.7 Deleting Files - the D Command
One of the other useful commands in MPQ2K’s arsenal is the delete file command. The general syntax for which is:

MPQ2K d <MPQFile> <FileToDelete> [/r]

The parameters in <> are required, ones in [] are optional. FileToDelete is just that, the file(s) to delete; and, as usual, /r tells MPQ2K to recurse through subdirectories.
The first time you use the delete command, you might be rather surprised to find that a deleted file rarely takes up less space in a MoPaQ than a file that hasn’t been deleted! This is due to the fact that the delete command only marks a file as deleted; it doesn’t actually remove the file from the archive (to preempt the next question, no, you can’t undelete a deleted file). To actually remove the file from the MoPaQ, you must use the flush command.

4.8 Flushing Out an Archive - the F Command
As mentioned above, the delete command does not actually remove a file, rather it only marks a file as deleted. Obviously, there must be some way to remove files from an archive, or else the delete command would be utterly useless. As a matter of fact, there is a way, and that is the flush command, using the following general syntax:

MPQ2K f <MPQFile>

All parameters are optional. MPQFile is the file to flush.
The flush command searches through a MoPaQ and purges the space deleted files occupy, shrinking the MoPaQ’s size if there are any deleted files in it.

------------------------------------

The above was taken from the MPQ2k manual.

BTW, putting files into MPQs is a thing of the past and outdated. Its also a pain in the @rse to pack files into MPQs. -direct -txt rulz nowadays.

[This message has been edited by BMW (edited 20 February 2002).]

IP Logged

Myhrginoc
Honorary Warlord

Posts: 1326
From: Percussion U
Registered: Dec 2001

posted 20 February 2002 18:46     Click Here to See the Profile for Myhrginoc   Click Here to Email Myhrginoc        Reply w/Quote   
That manual was written for v2 of mpq2k. Anybody using v1.10 (the Keep version) has the delete switch, but can't use wildcards...and flush came later. No loss on flush though, the mpq won't get smaller but your next adds will try to fill out that unused space.

IP Logged

All times are Central Standard Time

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | The PhrozenKeep

© PhrozenKeep.com . all buttons made by the Evilenglishman . swords and shields by DigiBO.


Ultimate Bulletin Board 5.47c