xonotic/darkplaces.git
11 years agoopen client sockets before video starts, so that the Windows Firewall
havoc [Mon, 29 Dec 2008 00:20:33 +0000 (00:20 +0000)]
open client sockets before video starts, so that the Windows Firewall
prompt will occur before video starts (it tends to screw up graphics
contexts otherwise)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8608 d7cf8633-e32d-0410-b094-e92efae38249

11 years agobring back the static tokenize string buffer, because PRVM_SetTempString might mess...
divverent [Sun, 28 Dec 2008 19:20:49 +0000 (19:20 +0000)]
bring back the static tokenize string buffer, because PRVM_SetTempString might mess up the PRVM_G_STRING returned char*

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8607 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix whitespace handling:
divverent [Sun, 28 Dec 2008 18:47:42 +0000 (18:47 +0000)]
fix whitespace handling:
treat ONLY the following characters as whitespace:
NUL, TAB, LF, CR, SPC
Alternatively, there is commented out macro code in quakedef.h to accept any chars in 0..32 as whitespace.
Previously: 0..32 and 128..255 (due to signed char)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8606 d7cf8633-e32d-0410-b094-e92efae38249

11 years agonew tokenizer tokenize_console that matches the console tokenizing
divverent [Sat, 27 Dec 2008 14:35:13 +0000 (14:35 +0000)]
new tokenizer tokenize_console that matches the console tokenizing
new builtins argv_start_index and argv_end_index
support negative indexes to argv* as indexes from the end of the argument list (similar to perl)
--> extension: DP_QC_TOKENIZE_CONSOLE

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8605 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix interpretation of text brightness/contrast cvars when a color multiplier is set
divverent [Fri, 26 Dec 2008 16:55:09 +0000 (16:55 +0000)]
fix interpretation of text brightness/contrast cvars when a color multiplier is set

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8604 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoremove a redundant check fixing a gcc warning
divverent [Thu, 25 Dec 2008 22:16:19 +0000 (22:16 +0000)]
remove a redundant check fixing a gcc warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8603 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoterrencehill's color codes patch. Please test thoroughly! Syntax: ^xF00 = red
divverent [Thu, 25 Dec 2008 18:03:49 +0000 (18:03 +0000)]
terrencehill's color codes patch. Please test thoroughly! Syntax: ^xF00 = red

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8602 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoRemove disabling of stdin for the text console. Helps with interfacing scripts with...
divverent [Thu, 25 Dec 2008 14:40:08 +0000 (14:40 +0000)]
Remove disabling of stdin for the text console. Helps with interfacing scripts with the DarkPlaces client.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8601 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofixed a bug with "time" command in effectinfo.txt to use float parsing
havoc [Thu, 18 Dec 2008 05:18:21 +0000 (05:18 +0000)]
fixed a bug with "time" command in effectinfo.txt to use float parsing
instead of int parsing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8600 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoforgot to commit this file in the DP_EF_NOSELFSHADOW extension patch
havoc [Thu, 18 Dec 2008 04:35:42 +0000 (04:35 +0000)]
forgot to commit this file in the DP_EF_NOSELFSHADOW extension patch

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8599 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoadded DP_EF_NOSELFSHADOW extension
havoc [Thu, 18 Dec 2008 04:34:35 +0000 (04:34 +0000)]
added DP_EF_NOSELFSHADOW extension

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8598 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix crash
divverent [Wed, 17 Dec 2008 20:47:14 +0000 (20:47 +0000)]
fix crash

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8597 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix warnings
divverent [Wed, 17 Dec 2008 14:14:27 +0000 (14:14 +0000)]
fix warnings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8596 d7cf8633-e32d-0410-b094-e92efae38249

11 years agomore space for client numbers
divverent [Wed, 17 Dec 2008 07:16:16 +0000 (07:16 +0000)]
more space for client numbers

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8595 d7cf8633-e32d-0410-b094-e92efae38249

11 years agonew command by terrencehill: "status 1" and "status 2" as alternate, more readable...
divverent [Wed, 17 Dec 2008 07:10:27 +0000 (07:10 +0000)]
new command by terrencehill: "status 1" and "status 2" as alternate, more readable status displays. "status" unchanged.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8594 d7cf8633-e32d-0410-b094-e92efae38249

11 years agocurl: longer URLs
divverent [Tue, 16 Dec 2008 14:23:46 +0000 (14:23 +0000)]
curl: longer URLs

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8593 d7cf8633-e32d-0410-b094-e92efae38249

11 years agowhen loading a game, free "text" later
divverent [Tue, 16 Dec 2008 13:30:47 +0000 (13:30 +0000)]
when loading a game, free "text" later

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8592 d7cf8633-e32d-0410-b094-e92efae38249

11 years agosave game loading: abort when a token is NULL (might happen if the last line ends...
divverent [Tue, 16 Dec 2008 12:54:38 +0000 (12:54 +0000)]
save game loading: abort when a token is NULL (might happen if the last line ends without newline)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8591 d7cf8633-e32d-0410-b094-e92efae38249

11 years ago- add debug prints for saving/loading games for prvm_entityparsing
divverent [Tue, 16 Dec 2008 07:01:36 +0000 (07:01 +0000)]
- add debug prints for saving/loading games for prvm_entityparsing
- make PRVM_UglyValueString escape " to \" (note that loading does not match that, as parsebackslash is off in the call to COM_ParseToken_Simple - why?)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8590 d7cf8633-e32d-0410-b094-e92efae38249

11 years ago1. also play sounds outside cdtracks/ as CD tracks
divverent [Mon, 15 Dec 2008 09:31:55 +0000 (09:31 +0000)]
1. also play sounds outside cdtracks/ as CD tracks
2. "cdaudio 4": play a random CD track for named tracks

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8589 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoadd new cvar "cdaudio" to select priorities of CD and fake tracks;
divverent [Mon, 15 Dec 2008 09:15:32 +0000 (09:15 +0000)]
add new cvar "cdaudio" to select priorities of CD and fake tracks;
turn off "Playing fake CD track" messages if only fake tracks could be used anyway

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8588 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoFix alpha transparent textures (used by HLBSP maps) in HL/Q1 BSP maps
divverent [Sun, 14 Dec 2008 21:57:52 +0000 (21:57 +0000)]
Fix alpha transparent textures (used by HLBSP maps) in HL/Q1 BSP maps

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8587 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix color averaging of palette images from quake
divverent [Tue, 9 Dec 2008 20:52:00 +0000 (20:52 +0000)]
fix color averaging of palette images from quake

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8586 d7cf8633-e32d-0410-b094-e92efae38249

11 years agomake color averaging use 64bit integers, instead of 32bit ones, as they wrap on 512x5...
divverent [Tue, 9 Dec 2008 11:39:06 +0000 (11:39 +0000)]
make color averaging use 64bit integers, instead of 32bit ones, as they wrap on 512x512 images

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8585 d7cf8633-e32d-0410-b094-e92efae38249

11 years agono idea why, but ambient needed halving in showsurfaces 3
divverent [Mon, 8 Dec 2008 06:43:07 +0000 (06:43 +0000)]
no idea why, but ambient needed halving in showsurfaces 3

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8584 d7cf8633-e32d-0410-b094-e92efae38249

11 years agor_showsurfaces 3 (needs a better cvar name, by the way): support r_fullbright correctly
divverent [Mon, 8 Dec 2008 06:33:36 +0000 (06:33 +0000)]
r_showsurfaces 3 (needs a better cvar name, by the way): support r_fullbright correctly

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8583 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix color averaging
divverent [Sun, 7 Dec 2008 19:37:24 +0000 (19:37 +0000)]
fix color averaging

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8582 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix overbrightness :(
divverent [Sun, 7 Dec 2008 18:32:33 +0000 (18:32 +0000)]
fix overbrightness :(

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8581 d7cf8633-e32d-0410-b094-e92efae38249

11 years agono, this way of colormapping looks best after all... sorry
divverent [Sun, 7 Dec 2008 18:28:33 +0000 (18:28 +0000)]
no, this way of colormapping looks best after all... sorry

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8580 d7cf8633-e32d-0410-b094-e92efae38249

11 years agobetter handling of color tints by colormap
divverent [Sun, 7 Dec 2008 18:23:15 +0000 (18:23 +0000)]
better handling of color tints by colormap

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8579 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofactor out the pixel averaging code
divverent [Sun, 7 Dec 2008 18:09:09 +0000 (18:09 +0000)]
factor out the pixel averaging code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8578 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix showsurfaces 3 bugs on augenkrebs
divverent [Sun, 7 Dec 2008 11:51:23 +0000 (11:51 +0000)]
fix showsurfaces 3 bugs on augenkrebs

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8577 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix rendering of fullbright stuff in showsurfaces 3
divverent [Sun, 7 Dec 2008 11:32:52 +0000 (11:32 +0000)]
fix rendering of fullbright stuff in showsurfaces 3

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8576 d7cf8633-e32d-0410-b094-e92efae38249

11 years agonow support fog in the eeepc path
divverent [Sun, 7 Dec 2008 11:17:28 +0000 (11:17 +0000)]
now support fog in the eeepc path

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8575 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoshowsurfaces 3: allow depth sorting
divverent [Sun, 7 Dec 2008 10:48:48 +0000 (10:48 +0000)]
showsurfaces 3: allow depth sorting

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8574 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoshowsurfaces 3: refactor it a bit; disable r_water in this mode
divverent [Sun, 7 Dec 2008 08:06:38 +0000 (08:06 +0000)]
showsurfaces 3: refactor it a bit; disable r_water in this mode

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8573 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoundo the last fix, and instead make a new fix that does not make dark stuff bright.
divverent [Sat, 6 Dec 2008 21:08:15 +0000 (21:08 +0000)]
undo the last fix, and instead make a new fix that does not make dark stuff bright.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8572 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix typo
divverent [Sat, 6 Dec 2008 20:59:33 +0000 (20:59 +0000)]
fix typo

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8571 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix a NULL
divverent [Sat, 6 Dec 2008 20:54:56 +0000 (20:54 +0000)]
fix a NULL

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8570 d7cf8633-e32d-0410-b094-e92efae38249

11 years agobrighten up the averaged texture value by factor 2 to make it look right
divverent [Sat, 6 Dec 2008 20:17:40 +0000 (20:17 +0000)]
brighten up the averaged texture value by factor 2 to make it look right

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8569 d7cf8633-e32d-0410-b094-e92efae38249

11 years agosupport r_ambient in "eeepc mode"
divverent [Sat, 6 Dec 2008 20:12:41 +0000 (20:12 +0000)]
support r_ambient in "eeepc mode"

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8568 d7cf8633-e32d-0410-b094-e92efae38249

11 years agor_showsurfaces 3 "eeepc mode": support blend funcs
divverent [Sat, 6 Dec 2008 20:06:53 +0000 (20:06 +0000)]
r_showsurfaces 3 "eeepc mode": support blend funcs

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8567 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoimproved r_showsurfaces 3. Should be PLAYABLE!!!1 now.
divverent [Sat, 6 Dec 2008 13:58:48 +0000 (13:58 +0000)]
improved r_showsurfaces 3. Should be PLAYABLE!!!1 now.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8566 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoexperimental new mode "r_showsurfaces 3": shows faces in average texture color
divverent [Sat, 6 Dec 2008 13:02:02 +0000 (13:02 +0000)]
experimental new mode "r_showsurfaces 3": shows faces in average texture color

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8565 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoQ3BSP: only generate the shadow mesh if on a client. Skip that part on the dedicated...
divverent [Wed, 3 Dec 2008 13:12:31 +0000 (13:12 +0000)]
Q3BSP: only generate the shadow mesh if on a client. Skip that part on the dedicated server. Reduces load time of redstarrepublic4.bsp from 21.6s to 12.3s on a dedicated server.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8564 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix a signedness warning
havoc [Wed, 3 Dec 2008 00:38:24 +0000 (00:38 +0000)]
fix a signedness warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8563 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix for a crash in certain q1bsp maps with very large polygons when
havoc [Wed, 3 Dec 2008 00:34:17 +0000 (00:34 +0000)]
fix for a crash in certain q1bsp maps with very large polygons when
cl_stainmaps is on, thanks to Andreas Dehmel for this fix

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8562 d7cf8633-e32d-0410-b094-e92efae38249

11 years agomove texture compression disabling and picmip into LookupQ3Shader, based on the defau...
divverent [Fri, 28 Nov 2008 16:48:36 +0000 (16:48 +0000)]
move texture compression disabling and picmip into LookupQ3Shader, based on the default flags that are used for shaderless textures. Reason: playermodels by leileilol used Q3 shaders, which made them exempt from picmip if r_picmipworld is used.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8561 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoeffectinfo: add "stretchfactor"
divverent [Fri, 28 Nov 2008 15:15:53 +0000 (15:15 +0000)]
effectinfo: add "stretchfactor"

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8560 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoUGLY HACK: intercept curl commands when playing back demos to immediately load all...
divverent [Thu, 27 Nov 2008 16:30:44 +0000 (16:30 +0000)]
UGLY HACK: intercept curl commands when playing back demos to immediately load all required pk3 files

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8559 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoadded some flag clearing in csqc render entity setup to make sure that
havoc [Thu, 20 Nov 2008 08:09:29 +0000 (08:09 +0000)]
added some flag clearing in csqc render entity setup to make sure that
the shadow/light/noselfshadow flags are set correctly

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8557 d7cf8633-e32d-0410-b094-e92efae38249

11 years agograb mouse when in controls menu, so that mouse clicks can be captured
havoc [Tue, 11 Nov 2008 20:40:57 +0000 (20:40 +0000)]
grab mouse when in controls menu, so that mouse clicks can be captured

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8556 d7cf8633-e32d-0410-b094-e92efae38249

11 years agor_shadows 2: cast shadows always DOWN, ignore level lighting
divverent [Mon, 10 Nov 2008 14:02:19 +0000 (14:02 +0000)]
r_shadows 2: cast shadows always DOWN, ignore level lighting

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8555 d7cf8633-e32d-0410-b094-e92efae38249

11 years agor_shadows: use the parent entity's light direction for shadowing attached entities...
divverent [Mon, 10 Nov 2008 13:58:11 +0000 (13:58 +0000)]
r_shadows: use the parent entity's light direction for shadowing attached entities. Prevents tearing apart the weapon from its holder.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8554 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoglx: support vid_stick_mouse (to always warp to the center, as opposed to only warp...
divverent [Mon, 10 Nov 2008 11:18:36 +0000 (11:18 +0000)]
glx: support vid_stick_mouse (to always warp to the center, as opposed to only warp if half the screen size is crossed)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8553 d7cf8633-e32d-0410-b094-e92efae38249

11 years agosorry for this debug print
divverent [Sun, 9 Nov 2008 19:05:57 +0000 (19:05 +0000)]
sorry for this debug print

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8552 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoadd code to vid_glx to turn off mouse acceleration; also support vid_wgl's option...
divverent [Sun, 9 Nov 2008 11:50:44 +0000 (11:50 +0000)]
add code to vid_glx to turn off mouse acceleration; also support vid_wgl's option -noforcemparms in X11 to turn off that new code
makes vid_dgamouse 0 a viable workaround for the ubuntu evdev problems

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8551 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoget rid of skinframe loading spam on dedicated servers
divverent [Sat, 8 Nov 2008 16:33:20 +0000 (16:33 +0000)]
get rid of skinframe loading spam on dedicated servers

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8550 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix bug in cs_*project with v_flipped
divverent [Thu, 6 Nov 2008 14:20:01 +0000 (14:20 +0000)]
fix bug in cs_*project with v_flipped

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8549 d7cf8633-e32d-0410-b094-e92efae38249

11 years agochanged default edgefriction to 1 to match QW physics, so you don't lose
havoc [Thu, 6 Nov 2008 12:55:19 +0000 (12:55 +0000)]
changed default edgefriction to 1 to match QW physics, so you don't lose
speed when running off a ledge

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8548 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoremove warning about signed/unsigned
divverent [Wed, 5 Nov 2008 16:35:24 +0000 (16:35 +0000)]
remove warning about signed/unsigned

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8547 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix some format string errors, and return value of read() ignored warnings
divverent [Tue, 4 Nov 2008 19:16:07 +0000 (19:16 +0000)]
fix some format string errors, and return value of read() ignored warnings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8546 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoALSA: check return values to be < 0, not != 0. Fixes problem with pulseaudio (ALSA...
divverent [Tue, 4 Nov 2008 10:45:10 +0000 (10:45 +0000)]
ALSA: check return values to be < 0, not != 0. Fixes problem with pulseaudio (ALSA apparently decided to start returning, here, +1 for success). See https://bugs.helixcommunity.org/show_bug.cgi?id=7375&link=0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8545 d7cf8633-e32d-0410-b094-e92efae38249

11 years agocsqc packet log code (for entityframedatabase 5 only, i.e. DP5 and higher)
divverent [Sat, 1 Nov 2008 17:44:32 +0000 (17:44 +0000)]
csqc packet log code (for entityframedatabase 5 only, i.e. DP5 and higher)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8544 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoadd a note to the makefile that -ffast-math and -funsafe-math-optimizations must...
divverent [Sat, 1 Nov 2008 17:07:24 +0000 (17:07 +0000)]
add a note to the makefile that -ffast-math and -funsafe-math-optimizations must not be used with darkplaces (until further notice)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8543 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix broken demos with csqc code
divverent [Sat, 1 Nov 2008 15:57:49 +0000 (15:57 +0000)]
fix broken demos with csqc code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8542 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoif in menu, make con_closeontoggleconsole.integer also enable the toggleconsole key
divverent [Fri, 31 Oct 2008 10:07:43 +0000 (10:07 +0000)]
if in menu, make con_closeontoggleconsole.integer also enable the toggleconsole key

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8541 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix two warnings with statically linked-in libmodplug
divverent [Sun, 26 Oct 2008 16:10:40 +0000 (16:10 +0000)]
fix two warnings with statically linked-in libmodplug

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8540 d7cf8633-e32d-0410-b094-e92efae38249

11 years agomod_q3bsp_nolightmaps: do not load lightmaps, use the bad q3map2-written vertex light...
divverent [Sat, 25 Oct 2008 10:37:40 +0000 (10:37 +0000)]
mod_q3bsp_nolightmaps: do not load lightmaps, use the bad q3map2-written vertex lighting instead (you have been warned). Mostly useful for maps with HUUUUGE lightmaps on low-end systems.
modplug: turn up the volume, if the installed libmodplug allows it.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8539 d7cf8633-e32d-0410-b094-e92efae38249

11 years agocheck texnum > 0 rather than >= 0
havoc [Thu, 23 Oct 2008 10:49:39 +0000 (10:49 +0000)]
check texnum > 0 rather than >= 0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8538 d7cf8633-e32d-0410-b094-e92efae38249

11 years agocheck GLTEXF_UPLOAD flag before deleting a texnum that may never have
havoc [Thu, 23 Oct 2008 10:47:59 +0000 (10:47 +0000)]
check GLTEXF_UPLOAD flag before deleting a texnum that may never have
been allocated

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8537 d7cf8633-e32d-0410-b094-e92efae38249

11 years agochanged default texnum value from -1 to 0 in rtexture_t, this is only a
havoc [Thu, 23 Oct 2008 10:44:31 +0000 (10:44 +0000)]
changed default texnum value from -1 to 0 in rtexture_t, this is only a
safety measure against any possible feeding of -1 to drivers that crash
when given an invalid texnum

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8536 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoq3map2 is too stupid to calculate proper surface normals when q3map_nonplanar is...
divverent [Mon, 20 Oct 2008 13:20:06 +0000 (13:20 +0000)]
q3map2 is too stupid to calculate proper surface normals when q3map_nonplanar is used (the lightmap and deluxemap coords correspond to virtually random coordinates on that luxel, and NOT to its center, because recursive triangle subdivision is used to map the luxels to coordinates on the draw surfaces), which also causes deluxemaps to be wrong because light contributions from the wrong side of the surface are added up. To prevent divisions by zero or strong exaggerations, a max() nudge is done here at expense of some additional fps. This is ONLY needed for deluxemaps, tangentspace deluxemap avoid this problem by design.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8535 d7cf8633-e32d-0410-b094-e92efae38249

11 years agodon't pass a texnum of -1 to glDeleteTextures during shutdown, this has
havoc [Mon, 20 Oct 2008 02:07:00 +0000 (02:07 +0000)]
don't pass a texnum of -1 to glDeleteTextures during shutdown, this has
been crashing ATI drivers

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8534 d7cf8633-e32d-0410-b094-e92efae38249

11 years agocvar mod_alias_supporttagscale to be able to turn off scaling of attached entities...
divverent [Sat, 18 Oct 2008 15:48:43 +0000 (15:48 +0000)]
cvar mod_alias_supporttagscale to be able to turn off scaling of attached entities by the attachment tag matrix (fixes problems with zmodel generated zyms)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8532 d7cf8633-e32d-0410-b094-e92efae38249

11 years agominor correction to some WriteByte calls that should be WriteChar in
havoc [Thu, 16 Oct 2008 02:40:43 +0000 (02:40 +0000)]
minor correction to some WriteByte calls that should be WriteChar in
te_spark and te_blood builtins - these worked fine already, but were not
the correct function to use

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8531 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix an obvious crash in PNG loading
divverent [Wed, 15 Oct 2008 14:49:20 +0000 (14:49 +0000)]
fix an obvious crash in PNG loading

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8530 d7cf8633-e32d-0410-b094-e92efae38249

11 years agomodified lhrandom (and hence the QC random builtin) to never return the
havoc [Tue, 14 Oct 2008 19:30:02 +0000 (19:30 +0000)]
modified lhrandom (and hence the QC random builtin) to never return the
max value, reducing crashes in some mods and being more consistent

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8529 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoadd DRAWFLAG_SCREEN (which basically is like invert-modulate-invert, equivalent to...
divverent [Sat, 11 Oct 2008 15:06:28 +0000 (15:06 +0000)]
add DRAWFLAG_SCREEN (which basically is like invert-modulate-invert, equivalent to GIMP's "screen" layer operation, no idea how photoshop calls it)
Just like modulate always darkens, screen always brightens.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8528 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix map loading causing faces to not be rendered
divverent [Thu, 9 Oct 2008 11:47:54 +0000 (11:47 +0000)]
fix map loading causing faces to not be rendered

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8527 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix warnings in my last change
divverent [Mon, 6 Oct 2008 17:26:35 +0000 (17:26 +0000)]
fix warnings in my last change

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8526 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoadd entity size profiling (currently spams the console with sizes of entity updates...
divverent [Mon, 6 Oct 2008 16:09:34 +0000 (16:09 +0000)]
add entity size profiling (currently spams the console with sizes of entity updates if developer_networkentities is >= 2, may later change it to collect statistics based on classname)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8525 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoresend csqc entities COMPLETELY if they became inactive and later active again
divverent [Mon, 6 Oct 2008 06:43:35 +0000 (06:43 +0000)]
resend csqc entities COMPLETELY if they became inactive and later active again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8524 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix engine crash when a polygon was left over and had a texture reference when switch...
divverent [Sun, 5 Oct 2008 20:08:16 +0000 (20:08 +0000)]
fix engine crash when a polygon was left over and had a texture reference when switching maps

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8523 d7cf8633-e32d-0410-b094-e92efae38249

11 years agodisabled GL_ARB_texture_non_power_of_two on Mac OS X because all the
havoc [Sat, 4 Oct 2008 17:42:22 +0000 (17:42 +0000)]
disabled GL_ARB_texture_non_power_of_two on Mac OS X because all the
drivers claim to support it, but it's often unaccelerated or crashes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8522 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoimplemented Quake-compatible savegame saving (writes 64 or more styles)
havoc [Sat, 4 Oct 2008 17:38:02 +0000 (17:38 +0000)]
implemented Quake-compatible savegame saving (writes 64 or more styles)
enhanced savegame format with a large comment block at the end
containing the true lightstyle data (not padded with m lines), and model
and sound precaches, this should fix the famous Quake bug of reloading a
savegame with a different version of a mod, or a mod that randomly
precaches different monsters or similar

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8521 d7cf8633-e32d-0410-b094-e92efae38249

11 years agouse skinframes for R_BeginPolygon; helps with csqc 3D polygon rendering (e.g. mipmapp...
divverent [Sat, 4 Oct 2008 14:01:05 +0000 (14:01 +0000)]
use skinframes for R_BeginPolygon; helps with csqc 3D polygon rendering (e.g. mipmapping becomes possible, and no longer conflicts in the GL_CLAMP state between different kinds to draw stuff)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8520 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoadded width and height parameters to CSQC_UpdateView (a feature from
havoc [Thu, 2 Oct 2008 09:48:23 +0000 (09:48 +0000)]
added width and height parameters to CSQC_UpdateView (a feature from
EXT_CSQC_1 in FTEQW)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8519 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix setview VF_VIEWPORT and variants to use screen coords rather than
havoc [Thu, 2 Oct 2008 09:43:52 +0000 (09:43 +0000)]
fix setview VF_VIEWPORT and variants to use screen coords rather than
draw coords, this matches FTEQW

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8518 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix cs_project and cs_unproject builtins, they were completely ignoring
havoc [Thu, 2 Oct 2008 09:14:53 +0000 (09:14 +0000)]
fix cs_project and cs_unproject builtins, they were completely ignoring
the view rectangle and not centered

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8517 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoundo q3map2's directional light attenuation before deluxemapping. Now deluxemapping...
divverent [Tue, 30 Sep 2008 14:05:01 +0000 (14:05 +0000)]
undo q3map2's directional light attenuation before deluxemapping. Now deluxemapping and non-deluxemapping have the same perceived brightness. May reduce fps in deluxemapping mode.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8516 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix a tiny leak
divverent [Sat, 27 Sep 2008 10:06:54 +0000 (10:06 +0000)]
fix a tiny leak

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8515 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoprefer INTERNAL lightmaps
divverent [Sat, 27 Sep 2008 09:17:19 +0000 (09:17 +0000)]
prefer INTERNAL lightmaps

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8511 d7cf8633-e32d-0410-b094-e92efae38249

11 years agonew menu QC builtin string netaddress_resolve(string ip, float port). Not sure if...
divverent [Mon, 22 Sep 2008 05:50:55 +0000 (05:50 +0000)]
new menu QC builtin string netaddress_resolve(string ip, float port). Not sure if the others QCs should get it too.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8509 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoseta net_slist_favorites
divverent [Sun, 21 Sep 2008 10:54:57 +0000 (10:54 +0000)]
seta net_slist_favorites

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8508 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoremove some unneeded code
havoc [Sat, 20 Sep 2008 12:10:26 +0000 (12:10 +0000)]
remove some unneeded code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8507 d7cf8633-e32d-0410-b094-e92efae38249

11 years agopatch from esteel making the findkeysforcommand builtin available in
havoc [Tue, 16 Sep 2008 13:36:21 +0000 (13:36 +0000)]
patch from esteel making the findkeysforcommand builtin available in
csqc (formerly only available in menu qc)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8506 d7cf8633-e32d-0410-b094-e92efae38249

11 years agofix lightmap loading from TGAs; fix display of QC-initiated downloads
divverent [Sat, 13 Sep 2008 09:15:36 +0000 (09:15 +0000)]
fix lightmap loading from TGAs; fix display of QC-initiated downloads

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8505 d7cf8633-e32d-0410-b094-e92efae38249

11 years agoexperimental (not yet tested) support for q3map2 -lightmapsize written external highe...
divverent [Sat, 13 Sep 2008 06:50:30 +0000 (06:50 +0000)]
experimental (not yet tested) support for q3map2 -lightmapsize written external higher-resolution lightmaps

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8504 d7cf8633-e32d-0410-b094-e92efae38249

11 years agocurl: reject file:// URLs
divverent [Fri, 12 Sep 2008 08:18:19 +0000 (08:18 +0000)]
curl: reject file:// URLs

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8503 d7cf8633-e32d-0410-b094-e92efae38249