MakeZFS/MakeZIX (updated 2012-07-03)

Moderators: GSH, Ultraken

Post Reply
User avatar
Ultraken
Patch Creator
Posts: 373
Joined: Fri Feb 18, 2011 6:06 pm
Contact:

MakeZFS/MakeZIX (updated 2012-07-03)

Post by Ultraken »

Using existing functionality in the Battlezone codebase, I reconstructed the old MakeZFS and MakeZIX tools. They aren't as full-featured as the originals, and have a completely different command-line interface, but should do enough to be useful.

Update 2011-07-31: Fixed a memory leak and a potential crash in MakeZFS while extracting files from a ZFS.
Update 2011-08-08: Fixed a bunch of problems and added support for the ZFS encryption feature. It only takes effect when creating a new ZFS file using a password (for example, makezfs -p ultraken a addon.zfs addon\*). The contents of the ZFS file will be encrypted and all operations on it will require the correct password.
Update 2012-07-03: Add and update work correctly with filename wildcards (e.g. *.ini). Add, update, and extract now preserve file modification dates.

Download:
MakeZFS/MakeZIX

Using MakeZFS:
MakeZFS works like a command-line archival program such as 7-zip. It takes a single-character command, the name of a ZFS file, and a (sometimes optional) list of file names. File names in the list can include wildcard characters such as ? (match any one character) and * (match any group of characters).
  • The a command compresses and adds files. The file names can be relative or full paths, or even the names of directories.
  • The d command deletes files. It actually just marks them as deleted, but doesn't actually remove the data from the ZFS or compact it.
  • The x command extracts and decompresses files to the current directory. If no file names are listed, it extracts everything.
  • The l command lists files. If no file names are listed, it lists everything in the ZFS.
  • The u command updates files. It works just like a except it ignores any file not already in the ZFS.
Using MakeZIX:
MakeZIX builds a ZIX file from a descriptor file. The descriptor is the part of the ZIX file between the six-digit file count and the giant list of files. It typically looks like this:

Code: Select all

0 D:\bzone BZONE 'Battlezone CD
---
DIR: bzhw16l.zfs
DIR: bzhw16.zfs
DIR: bzhw.zfs
DIR: bzsw.zfs
DIR: bzone.zfs
---
The first line specifies the path, name, and label of the CD. Don't mess with that.
The DIR: lines specify ZFS files to read files from. Earlier entries take precedence over later entries.
The --- lines can contain any number of - as long as it's at least one.
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: MakeZFS/MakeZIX (updated 2012-07-03)

Post by General BlackDragon »

The link is broken? :(
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Ultraken
Patch Creator
Posts: 373
Joined: Fri Feb 18, 2011 6:06 pm
Contact:

Re: MakeZFS/MakeZIX (updated 2012-07-03)

Post by Ultraken »

Fixed. It was pointing to the old location hosted on my NAS instead of videoventure.org.
User avatar
Cliffhangr13
Drunken Constructor
Posts: 34
Joined: Tue Oct 02, 2012 11:27 pm
Location: http://tinyurl.com/VTXgamers
Contact:

Re: MakeZFS/MakeZIX (updated 2012-07-03)

Post by Cliffhangr13 »

I guess I could maybe use this for any completed level series I make? So players can just take the zfs and have all the equipment they need to play the levels without extracting a bunch of files and accessing the files needed for any custom units and this might slow down any cheaters from making small alterations that could get past check files?
hmm mayb you need more...inspiration...
http://tinyurl.com/vtxfanpage
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: MakeZFS/MakeZIX (updated 2012-07-03)

Post by General BlackDragon »

Yes, the game can read ZFS's from addon. :)
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Cliffhangr13
Drunken Constructor
Posts: 34
Joined: Tue Oct 02, 2012 11:27 pm
Location: http://tinyurl.com/VTXgamers
Contact:

Re: MakeZFS/MakeZIX (updated 2012-07-03)

Post by Cliffhangr13 »

cool that p[lus the scripting upgrades mean any kind of surprises are possible!
hmm mayb you need more...inspiration...
http://tinyurl.com/vtxfanpage
User avatar
Cliffhangr13
Drunken Constructor
Posts: 34
Joined: Tue Oct 02, 2012 11:27 pm
Location: http://tinyurl.com/VTXgamers
Contact:

Re: MakeZFS/MakeZIX (updated 2012-07-03)

Post by Cliffhangr13 »

Any idea why the original unzfs app would extract .odfs in a garbled mostly unreadable format? Also, I downloaded makezfs and it a .7z file..should i be renaming it to .exe or something? how do i install it? lastly: and if anyone cares to, could they pm me switcher,swarmer odfs, and a svcnst.vdf (see "oldies" thread.)
hmm mayb you need more...inspiration...
http://tinyurl.com/vtxfanpage
User avatar
Ded10c
Recycler
Posts: 3815
Joined: Sun Feb 20, 2011 11:05 am
Location: Stoke-on-Trent
Contact:

Re: MakeZFS/MakeZIX (updated 2012-07-03)

Post by Ded10c »

.7z files can be opened with 7-Zip.
battlezone.wikia.com needs your help!
Post Reply