You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
3.3 KiB

Half-Life: PAK0.PAK generator
Legal Disclaimer:
The resulting pak0.pak is still under copyright by Valve Corporation.
It is for your own personal use, for use with Half-Life.
Do not distribute it under any circumstances!
This repository contains scripts to generate a pak0.pak of
Half-Life that is identical to the one that ships on all original disc
pressings, when it still talked to the World Opponent Network
online service.
The Steam releases got rid of .pak files altogether, because they
(at one point) switched to .gcf archives.
The goal of this repository is to re-create the original pak0.pak
as was first present on the Half-Life CD-ROM.
These scripts within are stripping the content straight from installers
of demos and other official, free downloads.
This will not grant you a complete install of Half-Life.
This will not allow you to play Half-Life on Steam or by itself.
We will still have to improvise where other loose files come from.
I've found some good substitutes. If you want it to be truly authentic,
please find a or Game of the Year disc pressing of Half-Life
and rip the data yourself.
- approximately 4 GB of disk space
- working C compiler
- GNU make (probably)
- wget
- magick/convert (as part of ImageMagick)
Getting started:
Run `./` and wait a few minutes. Make yourself some tea/coffee.
If you want to speed up the process, get these files off your NFS/NAS:
...and place them alongside this README file.
If you want to use your local Steam Half-Life installation,
pass the HL_STEAM_INSTALL environment variable like so:
`HL_STEAM_INSTALL="/path/to/Half-Life" ./start`
The end result is placed into ./_build for you to copy wherever.
Script explanation:
./ builds bmpfix, {hl,pak}extract, qfiles, rewise and
places them into ./_bin
./ (no args) downloads and sha512 checks the install
./ (no args) extracts the files, and does trickery to
make 2 bad-CRC files work
./ [gamedir] will read games/[gamedir]-pak0.sha256 and
assemble the pak0.pak
./ [gamedir] will read games[gamedir].sha256 and finds
other desired loose files
./ fixes case sensitivity issues
All the directories prefixed with '_' can be removed, as they're
created by the scripts.
Xylemon - for being the top dog that kept motivating me and for
delivering pizza onto my desk
Theuaredead` - for lots of research and pointers on where we can
acquire data sets and files
CYBERDEViL - for blessing us with REWise, a sane wise installer
HeteroChromia420 - for bothering me for years in regards to the
content purity mess
Valve - I know you don't love HL1 anymore, but thanks for bringing
it into this world
Shell scripts in the root dir are CC0 was distributed by various Linux game ports, unknown author
tools/bmpfix/bmpfix.c is CC0
tools/gpl-quake/* contains GNU GPL V2 code.
Dependency licenses:
hllib is GNU LGPL 2.1
hlextract is GNU GPL V2
pakextract its own permissive (ISC-styled) license
REWise is GNU GPL V3
No warranties:
None of this comes with support, warranty or whatever.
Don't bother any individual, company etc. about this.
This is for your own personal use. Nothing more.