shithub: qk1

ref: e58330cb5be8f7bde57f1eacfca0c03467e21e0d
dir: /README/

View raw version
qk1 - (9) quake
===============
	- setup:
		. mk install
	- to install quake (shareware or registered):
		. mkdir $home/lib/quake/id1
		. cp /n/quakecd/id1/*.pak id1/
	- to install an expansion or compatible mod (zB rogue):
		. mkdir $home/lib/quake/rogue
		. cp /n/quakecd/rogue/*.pak $home/lib/quake/rogue
	- sound is glitchy with higher resolutions (see snd_9.c)
	- cdaudio, networking: PORTME
	- high resolutions work up to 4096x4096 (arbitrary limit in r_shared.h)
		. by default, quake uses a 8MB heap, which will be insufficient for higher
		resolutions → exits with a related error message (not a note)
			→ use [-mem MB], e.g.:
			; quake -mem 16
		. resolutions under around 328x160 don't work, possibly because
		menu text isn't scaled down, or something
	- mouse is grabbed using m_windowed cvar
		. open console (~)
		. type m_windowed 1 (can autocomplete w/ tab)
		. setting saved on exit in id1/config.cfg
	- tested on 386 and amd64 only (works ok on a pentium 4)


some params useful for workarounds
----------------------------------
	-nosound
	-nostdout
	-mem MB
	(-noudp)


port notes
----------
	- based on linux/x11 code from original release
	- pr_strings: assumed 32bit pointer arithmetic: use PR_GetStr() instead of
	  dealing with it directly; may be ass
	- global cppdefotomy, removing code seen as useless for plan9
	- vid_9.c: shitty, can probably improve performance a bit without screwing code
	- *printf -> *print was (mostly) stupid
	- removed some of the command line parameters
		. -winsize, -width, -height: just set the window dimensions with rio/rc
		. -condebug: can just redirect with rc to same effect


todo/issues
-----------
	- compiling with PARANOID reveals several points of failure that are otherwise
          ignored, resulting in abnormal exit (also on linux)
	- leave running for a couple of hours -> sound dies and eventually, invalid
	  write/reads -> crash
	- compile with BAN_TEST -> net_dgrm build fails (struct sockaddr_in)
	- sprites/particles not scaled correctly on high resolutions (also in quake2)
	- m_windowed 1: can still look around in frozen world when paused
	- m_windowed 1: mouse can still escape, causing glitchy mouse look
	- net_9p.c
	- cd_9.c,net_udp.c,net_dgrm.c: actuallyport
	- manpages
	- cleanse *_9.c from linux legacy
	- fix potential fp exceptions in code rather than ignoring them?
	- g '/\* FIXME'
	- port quakeworld and utilities +/- merge common code and mkmany


legal
-----
Quake, hence qk1, is licensed under the GPLv2. See COPYING for details.