shithub: qk1

ref: 0b9b33f9b960cd9c56b4d7d7030b8d4676610d4f
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 $home/lib/quake/id1
	- to install an expansion or compatible mod (zB rogue):
		. mkdir $home/lib/quake/rogue
		. cp /n/quakecd/rogue/*.pak $home/lib/quake/rogue
	- 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
	-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, -nostdout: 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 → invalid write/reads → crash
	- unrelated(?): after about 5 hours, sound dies
	- 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, mouse movement not very smooth
	- net_9p.c
	- cd_9.c,net_udp.c,net_dgrm.c: actuallyport
	- manpages
	- 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.