2023-05-06 13:37:28 -07:00
|
|
|
Half-Life: PAK0.PAK generator
|
2023-05-04 12:38:03 -07:00
|
|
|
|
2023-05-06 14:18:39 -07:00
|
|
|
|
|
|
|
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!
|
|
|
|
|
|
|
|
|
|
|
|
Overview:
|
|
|
|
|
2023-05-06 13:37:28 -07:00
|
|
|
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
|
2023-05-06 14:18:39 -07:00
|
|
|
(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 1.0.0.5 CD-ROM.
|
2023-05-06 13:37:28 -07:00
|
|
|
|
|
|
|
These scripts within are stripping the content straight from installers
|
|
|
|
of demos and other official, free downloads.
|
|
|
|
|
2023-05-06 14:18:39 -07:00
|
|
|
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.
|
2023-05-06 13:37:28 -07:00
|
|
|
|
|
|
|
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,
|
2023-05-06 13:51:27 -07:00
|
|
|
please find a 1.0.0.5 or Game of the Year disc pressing of Half-Life
|
2023-05-06 13:37:28 -07:00
|
|
|
and rip the data yourself.
|
|
|
|
|
|
|
|
|
|
|
|
Requirements:
|
|
|
|
|
|
|
|
- approximately 4 GB of disk space
|
|
|
|
- working C compiler
|
|
|
|
- GNU make (probably)
|
|
|
|
- wget
|
2023-05-06 16:37:44 -07:00
|
|
|
- magick/convert (as part of ImageMagick)
|
2023-05-06 13:37:28 -07:00
|
|
|
|
|
|
|
|
|
|
|
Getting started:
|
|
|
|
|
|
|
|
Run `./start.sh` 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:
|
|
|
|
|
|
|
|
hl1110.exe
|
|
|
|
hl_sdk_v23.exe
|
|
|
|
hluplink.exe
|
2023-05-06 14:18:39 -07:00
|
|
|
opfordemofull.exe
|
2023-05-06 13:37:28 -07:00
|
|
|
steaminstall_halflife.exe
|
|
|
|
|
|
|
|
...and place them alongside this README file.
|
|
|
|
|
2023-05-06 16:37:44 -07:00
|
|
|
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`
|
|
|
|
|
2023-05-06 14:18:39 -07:00
|
|
|
The end result is placed into ./_build for you to copy wherever.
|
|
|
|
|
2023-05-06 13:37:28 -07:00
|
|
|
|
|
|
|
Script explanation:
|
|
|
|
|
|
|
|
./build_tools.sh builds bmpfix, {hl,pak}extract, qfiles, rewise and
|
|
|
|
places them into ./_bin
|
|
|
|
|
|
|
|
./dl_sources.sh (no args) downloads and sha512 checks the install
|
|
|
|
files.
|
|
|
|
|
|
|
|
./rip_sources.sh (no args) extracts the files, and does trickery to
|
|
|
|
make 2 bad-CRC files work
|
|
|
|
|
|
|
|
./build_pak0.sh [gamedir] will read games/[gamedir]-pak0.sha256 and
|
|
|
|
assemble the pak0.pak
|
|
|
|
|
|
|
|
./build_loose.sh [gamedir] will read games[gamedir.sha256 and finds
|
|
|
|
other desired loose files
|
|
|
|
|
|
|
|
./ccase.sh fixes case sensitivity issues
|
|
|
|
|
|
|
|
All the directories prefixed with '_' can be removed, as they're
|
|
|
|
created by the scripts.
|
|
|
|
|
|
|
|
|
|
|
|
Thanks:
|
|
|
|
|
|
|
|
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
|
|
|
|
extractor
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
License:
|
|
|
|
|
2023-05-06 14:18:39 -07:00
|
|
|
Shell scripts in the root dir are CC0
|
2023-05-06 13:37:28 -07:00
|
|
|
ccase.sh was distributed by various Linux game ports, unknown author
|
2023-05-06 14:18:39 -07:00
|
|
|
tools/bmpfix/bmpfix.c is CC0
|
|
|
|
tools/gpl-quake/* contains GNU GPL V2 code.
|
2023-05-06 13:37:28 -07:00
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2023-05-06 14:18:39 -07:00
|
|
|
No warranties:
|
2023-05-06 13:37:28 -07:00
|
|
|
|
2023-05-06 14:18:39 -07:00
|
|
|
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.
|