Page 1 of 1

MakeZFS/MakeZIX (updated 2012-07-03)

Posted: Sun Mar 20, 2011 5:09 am
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.

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

Posted: Mon Nov 19, 2012 3:18 pm
by General BlackDragon
The link is broken? :(

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

Posted: Sun Dec 02, 2012 4:36 am
by Ultraken
Fixed. It was pointing to the old location hosted on my NAS instead of videoventure.org.

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

Posted: Mon Feb 16, 2015 6:39 am
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?

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

Posted: Mon Feb 16, 2015 4:11 pm
by General BlackDragon
Yes, the game can read ZFS's from addon. :)

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

Posted: Thu Feb 19, 2015 1:43 am
by Cliffhangr13
cool that p[lus the scripting upgrades mean any kind of surprises are possible!

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

Posted: Sun Mar 01, 2015 1:37 pm
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.)

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

Posted: Sun Mar 01, 2015 6:00 pm
by Ded10c
.7z files can be opened with 7-Zip.

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

Posted: Mon Mar 02, 2015 5:39 pm
by General BlackDragon