]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
20 years agoserver no longer responds to any netquake control packets (must use netchan-style...
havoc [Thu, 10 Jul 2003 04:21:51 +0000 (04:21 +0000)]
server no longer responds to any netquake control packets (must use netchan-style commands to connect)
connection process now uses getchallenge-connect approach to prevent join floods (who knows maybe I fixed NAT by doing this too, somehow)
improved some of the command packet handling

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

20 years agoadded decals to effects options menu
havoc [Thu, 10 Jul 2003 04:19:22 +0000 (04:19 +0000)]
added decals to effects options menu

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

20 years agoadded a tip to runaway loop error (suggesting use of the profile command)
havoc [Thu, 10 Jul 2003 04:15:39 +0000 (04:15 +0000)]
added a tip to runaway loop error (suggesting use of the profile command)
made all possible exit paths of the execution update profile counts properly before exiting

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

20 years agoadded 'readable' version of a particular line of code in shadow volume building
havoc [Thu, 10 Jul 2003 04:12:34 +0000 (04:12 +0000)]
added 'readable' version of a particular line of code in shadow volume building

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

20 years agocheck svc_setview against MAX_EDICTS
havoc [Tue, 8 Jul 2003 10:06:53 +0000 (10:06 +0000)]
check svc_setview against MAX_EDICTS

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

20 years agofixed a buffer overflow in SV_BroadcastPrintf
havoc [Tue, 8 Jul 2003 10:04:59 +0000 (10:04 +0000)]
fixed a buffer overflow in SV_BroadcastPrintf

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

20 years agomore of the fixes to clients joining and properly setting up edicts (forgot to commit...
havoc [Tue, 8 Jul 2003 10:03:46 +0000 (10:03 +0000)]
more of the fixes to clients joining and properly setting up edicts (forgot to commit this with sv_main.c and pr_edict.c)

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

20 years agofixed a lot of problems with filling out client edicts properly (or rather, not filli...
havoc [Tue, 8 Jul 2003 10:00:47 +0000 (10:00 +0000)]
fixed a lot of problems with filling out client edicts properly (or rather, not filling them out properly) which mostly appeared when doing changelevel or restart
fixed nameless player joins/exits (finally!)
code cleanups
other little things stomped
took another stab at fixing bogus entities being linked into areagrid (presumably caused by SV_IncreaseEdicts), hopefully fixing it this time (as if that wasn't the hope with all the previous attempts)

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

20 years agosome enhancements to timeout handling inspired by ProQuake fixes - net_connecttimeout...
havoc [Tue, 8 Jul 2003 09:54:27 +0000 (09:54 +0000)]
some enhancements to timeout handling inspired by ProQuake fixes - net_connecttimeout cvar (a short timeout until first packet in connection), net_messagerejointimeout cvar (only kicks off old client matching peeraddress if the client has reached this message timeout)

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

20 years agoredesigned much of PF_VarString to clean it up (shorter, faster, etc)
havoc [Tue, 8 Jul 2003 09:51:12 +0000 (09:51 +0000)]
redesigned much of PF_VarString to clean it up (shorter, faster, etc)

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

20 years agofixed model shadows going through walls (by making everything use a constant project...
havoc [Tue, 8 Jul 2003 09:50:21 +0000 (09:50 +0000)]
fixed model shadows going through walls (by making everything use a constant project distance - clearly there are other solutions to the problem of a model using too low a project distance, but this works...)
some code shuffling (mostly to match up with a previous version I was comparing against)

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

20 years agorenamed GAME_GOODVSBAD2 executable to gvb2
havoc [Sun, 6 Jul 2003 07:50:07 +0000 (07:50 +0000)]
renamed GAME_GOODVSBAD2 executable to gvb2

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

20 years agoreverted RunParticleEffect appearance in non-GOODVSBAD2 mode because they were far...
havoc [Sun, 6 Jul 2003 07:49:39 +0000 (07:49 +0000)]
reverted RunParticleEffect appearance in non-GOODVSBAD2 mode because they were far too different looking

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

20 years agoallow traceline to take unusual values for nomonsters parameter again (like original...
havoc [Sun, 6 Jul 2003 07:48:57 +0000 (07:48 +0000)]
allow traceline to take unusual values for nomonsters parameter again (like original quake traceline)

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

20 years agobecause gethostbyname("0.0.0.0") fails in windows, the fallback was being called...
havoc [Fri, 4 Jul 2003 01:36:14 +0000 (01:36 +0000)]
because gethostbyname("0.0.0.0") fails in windows, the fallback was being called and it was broken, replaced it with a working one based on sscanf

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

20 years agofix htons warnings in MSVC (thanks to Tomaz for reporting this, apparently MSVC warns...
havoc [Thu, 3 Jul 2003 23:56:12 +0000 (23:56 +0000)]
fix htons warnings in MSVC (thanks to Tomaz for reporting this, apparently MSVC warns about passing int to functions taking unsigned short)

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

20 years agofixed numerous bugs with explosion hull shape (now looks consistently correct for...
havoc [Thu, 3 Jul 2003 23:40:07 +0000 (23:40 +0000)]
fixed numerous bugs with explosion hull shape (now looks consistently correct for the first time ever)

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

20 years agoTomaz updated the darkplaces project file (thanks!)
havoc [Thu, 3 Jul 2003 21:23:09 +0000 (21:23 +0000)]
Tomaz updated the darkplaces project file (thanks!)

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

20 years agoambients should be forced to loop as well
havoc [Thu, 3 Jul 2003 07:01:34 +0000 (07:01 +0000)]
ambients should be forced to loop as well

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

20 years agosounds now follow their owner (so riding a lift doesn't leave the sound at the start...
havoc [Thu, 3 Jul 2003 06:59:54 +0000 (06:59 +0000)]
sounds now follow their owner (so riding a lift doesn't leave the sound at the start position, for example)
static sounds now automatically loop even if they have no cue list

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

20 years agogot rid of sv_predict because it caused too many problems with mods trying to have...
havoc [Thu, 3 Jul 2003 00:45:48 +0000 (00:45 +0000)]
got rid of sv_predict because it caused too many problems with mods trying to have multiple entities attached to eachother

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

20 years agoadded snd_staticvolume to snd_null.c
havoc [Wed, 2 Jul 2003 05:58:28 +0000 (05:58 +0000)]
added snd_staticvolume to snd_null.c
fixed prototype of SND_Spatialize in sound.h

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

20 years agoadded support for GAME_GOODVSBAD2
havoc [Wed, 2 Jul 2003 05:48:36 +0000 (05:48 +0000)]
added support for GAME_GOODVSBAD2
moved Hostname option from Player Setup to server setup menu, and renamed it "Server name"
added snd_staticvolume cvar to control volume of static sounds

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

20 years agoadded GAME_GOODVSBAD2 and GAME_TEU
havoc [Wed, 2 Jul 2003 05:44:34 +0000 (05:44 +0000)]
added GAME_GOODVSBAD2 and GAME_TEU

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

20 years agoredesigned menuplyr handling again - now allocates memory for it instead of using...
havoc [Wed, 2 Jul 2003 03:50:33 +0000 (03:50 +0000)]
redesigned menuplyr handling again - now allocates memory for it instead of using a static buffer
merged together some menuplyr code

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

20 years agochanged brush model API - now uses function pointers for some of the brush model...
havoc [Wed, 2 Jul 2003 02:26:26 +0000 (02:26 +0000)]
changed brush model API - now uses function pointers for some of the brush model functions (intent to transition over to this completely)

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

20 years agoredesigned how the renderer handles much of it's state (R_Mesh_State turned into...
havoc [Tue, 1 Jul 2003 18:43:42 +0000 (18:43 +0000)]
redesigned how the renderer handles much of it's state (R_Mesh_State turned into R_Mesh_State_Textures - no longer handles blendfunc and depthmask and depthtest and vertex pointers and so on)
batching is gone
VAR support is gone (but may make a return someday)
dynamic shadow volumes are now more optimized (removal of unused verts)
added a glossary of terminology to the start of r_shadow.c
added gl_mesh_testarrayelement and gl_mesh_testmanualfeeding cvars for testing/debugging purposes in the backend (incase vertex array state is a mess)
added gl_paranoid cvar (enables CHECKGLERROR and verifies geometry before rendering it)
added gl_printcheckerror cvar (prints location of every CHECKGLERROR statement as it executes, for tracking code flow)

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

20 years agoextremely minor optimization to linking edicts into area grid
havoc [Tue, 1 Jul 2003 18:32:11 +0000 (18:32 +0000)]
extremely minor optimization to linking edicts into area grid

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

20 years agoDisable singleplayer menu in Nexuiz (just like Transfusion does)
havoc [Tue, 1 Jul 2003 02:59:36 +0000 (02:59 +0000)]
Disable singleplayer menu in Nexuiz (just like Transfusion does)

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

20 years agoreverted SV_Physics_Step to exactly match quake (shorter though)
havoc [Sat, 28 Jun 2003 23:09:08 +0000 (23:09 +0000)]
reverted SV_Physics_Step to exactly match quake (shorter though)
removed a clear velocity statement in SV_Physics_Toss
some whitespace cleanup

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

20 years agofix timedemos (it was not starting the timer because it was misjudging what the next...
havoc [Fri, 27 Jun 2003 20:25:54 +0000 (20:25 +0000)]
fix timedemos (it was not starting the timer because it was misjudging what the next frame number is)

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

20 years agoa prototype for the long dead function S_Alloc removed (thanks to Vic for mentioning...
havoc [Thu, 26 Jun 2003 16:51:35 +0000 (16:51 +0000)]
a prototype for the long dead function S_Alloc removed (thanks to Vic for mentioning this)

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

20 years agofix a bug in non-monster interpolation code (it was checking RENDER_STEP and doing...
havoc [Thu, 26 Jun 2003 16:21:20 +0000 (16:21 +0000)]
fix a bug in non-monster interpolation code (it was checking RENDER_STEP and doing a really bad job of it too, thanks to Vic for reporting this bug)

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

20 years agoReceivedMessage now sets lastMessageTime when a valid message or ack is received...
havoc [Tue, 24 Jun 2003 15:10:58 +0000 (15:10 +0000)]
ReceivedMessage now sets lastMessageTime when a valid message or ack is received, this fixes the timeout problems (yes, all of them)

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

20 years agoinitialize the various server properties when parsing an infoResponse incase some...
havoc [Sun, 22 Jun 2003 10:31:36 +0000 (10:31 +0000)]
initialize the various server properties when parsing an infoResponse incase some are not set

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

20 years agoForgot to include lhnet in the previous commit and tried to abort the commit but...
havoc [Sun, 22 Jun 2003 10:07:16 +0000 (10:07 +0000)]
Forgot to include lhnet in the previous commit and tried to abort the commit but apparently it was nearly done (which messed up netconn.[ch] such that I could not add or delete netconn.[ch], so I deleted that from cvs and added it again)

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

20 years agoThis is the network rewrite I've been working on for over a week; multiplayer should...
havoc [Sun, 22 Jun 2003 09:58:55 +0000 (09:58 +0000)]
This is the network rewrite I've been working on for over a week; multiplayer should work through NAT routers now.
A few other commits (a new clientcolors extension for example) have snuck their way into this commit because they were waiting while the cvs was down.

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

20 years agoreport invalid edicts when attempting to link them
havoc [Sun, 22 Jun 2003 09:55:02 +0000 (09:55 +0000)]
report invalid edicts when attempting to link them

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

20 years agoadded developer_memorydebug cvar (does CheckSentinelsGlobal on all Mem_Alloc calls)
havoc [Sat, 21 Jun 2003 11:05:32 +0000 (11:05 +0000)]
added developer_memorydebug cvar (does CheckSentinelsGlobal on all Mem_Alloc calls)

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

20 years agoSbar_UpdateScoreboard was totally unused in quake, it's history (as are the arrays...
havoc [Mon, 9 Jun 2003 04:19:09 +0000 (04:19 +0000)]
Sbar_UpdateScoreboard was totally unused in quake, it's history (as are the arrays it used)

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

20 years agofix a couple EDICT_NUM errors that often happened when loading savegames with more...
havoc [Sun, 8 Jun 2003 05:47:20 +0000 (05:47 +0000)]
fix a couple EDICT_NUM errors that often happened when loading savegames with more than 256 entities

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

20 years agocleaned up Host_Error a bit
havoc [Sun, 8 Jun 2003 05:43:44 +0000 (05:43 +0000)]
cleaned up Host_Error a bit

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

20 years agofix SOLID_BSP with non-BSP model error that can occur after a Host_Error (fixed by...
havoc [Sun, 8 Jun 2003 05:42:58 +0000 (05:42 +0000)]
fix SOLID_BSP with non-BSP model error that can occur after a Host_Error (fixed by using Mod_CheckLoaded)

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

20 years agoKRIMZON_SV_PARSECLIENTCOMMAND extension (untested currently!)
havoc [Sat, 7 Jun 2003 19:21:07 +0000 (19:21 +0000)]
KRIMZON_SV_PARSECLIENTCOMMAND extension (untested currently!)

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

20 years agono longer uses -Werror on exe builds
havoc [Sat, 7 Jun 2003 19:20:06 +0000 (19:20 +0000)]
no longer uses -Werror on exe builds

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

20 years agofix an uninitialized variable warning in win32
havoc [Sat, 7 Jun 2003 19:19:16 +0000 (19:19 +0000)]
fix an uninitialized variable warning in win32

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

20 years agofixed forged packet identification to only care about address (not port) and do so...
havoc [Wed, 4 Jun 2003 19:26:35 +0000 (19:26 +0000)]
fixed forged packet identification to only care about address (not port) and do so in a cleaner way than before

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

20 years agoadded support for gl_mesh_copyarrays 0 mode in most shaders
havoc [Wed, 4 Jun 2003 19:24:41 +0000 (19:24 +0000)]
added support for gl_mesh_copyarrays 0 mode in most shaders

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

20 years agofixed a bunch of signed/unsigned mismatch warnings in newer gcc versions (mostly...
havoc [Wed, 4 Jun 2003 19:22:31 +0000 (19:22 +0000)]
fixed a bunch of signed/unsigned mismatch warnings in newer gcc versions (mostly related to size_t being unsigned)

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

20 years agofixed bug that used bmodel collision geometry on non-SOLID_BSP entities (thanks to...
havoc [Tue, 3 Jun 2003 05:18:04 +0000 (05:18 +0000)]
fixed bug that used bmodel collision geometry on non-SOLID_BSP entities (thanks to FrikaC for reporting this bug)

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

20 years agogot rid of my attempts to delay sending the ServerInfo packet until the first message...
havoc [Wed, 28 May 2003 13:57:47 +0000 (13:57 +0000)]
got rid of my attempts to delay sending the ServerInfo packet until the first message from the client, because the ServerInfo packet is already handled by the quake reliable message system and thus will be re-sent multiple times...  back to the drawing board on my attempts to fix quake through NAT routers

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

20 years agoapparently -Werr isn't valid in gcc3.2, so switch to -Werror
havoc [Wed, 28 May 2003 02:00:46 +0000 (02:00 +0000)]
apparently -Werr isn't valid in gcc3.2, so switch to -Werror

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

20 years ago2D art can now be drawn using vertex pointers
havoc [Mon, 26 May 2003 18:58:16 +0000 (18:58 +0000)]
2D art can now be drawn using vertex pointers

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

20 years agoadded back -Werr so warnings are errors
havoc [Mon, 26 May 2003 18:57:25 +0000 (18:57 +0000)]
added back -Werr so warnings are errors

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

20 years agofix some warnings I kept forgetting
havoc [Mon, 26 May 2003 18:52:04 +0000 (18:52 +0000)]
fix some warnings I kept forgetting

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

20 years agoremoved directional shading on explosions because it was a nuisance to maintain ...
havoc [Mon, 26 May 2003 18:20:52 +0000 (18:20 +0000)]
removed directional shading on explosions because it was a nuisance to maintain (and strangely they seem to look better now)
explosion rendering now supports gl_mesh_copyarrays 0

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

20 years agofix a warning caused by the fact vertex pointers are now const
havoc [Mon, 26 May 2003 18:18:59 +0000 (18:18 +0000)]
fix a warning caused by the fact vertex pointers are now const

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

20 years agovertex pointers are now const
havoc [Mon, 26 May 2003 18:17:48 +0000 (18:17 +0000)]
vertex pointers are now const

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

20 years agoadded R_ScrollTexCoord2f (copies while texture coordinates with an offset)
havoc [Mon, 26 May 2003 16:35:14 +0000 (16:35 +0000)]
added R_ScrollTexCoord2f (copies while texture coordinates with an offset)
added multitexture path to skysphere rendering (10% speed gain) and modified combine setup in gl_backend to support GL_INTERPOLATE_ARB behaving like GL_DECAL
added support for gl_mesh_copyarrays 0 mode in skysphere rendering (1% speed gain)

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

20 years agofixed realtime lighting bugs with gl_mesh_batching 1 (... by not using batching while...
havoc [Mon, 26 May 2003 13:25:59 +0000 (13:25 +0000)]
fixed realtime lighting bugs with gl_mesh_batching 1 (... by not using batching while rendering realtime lighting - I was unable to figure out what was causing the problem)
some cleanups to realtime lighting code (mostly fixing some bugs with incorrect counting of meshes/triangles (for r_speeds reports), and optimized out unnecessary vertex copying in the final lighting application pass)

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

20 years agono longer uses R_Shadow_VertexBuffer, instead uses aliasvert_vertex3f
havoc [Mon, 26 May 2003 13:23:27 +0000 (13:23 +0000)]
no longer uses R_Shadow_VertexBuffer, instead uses aliasvert_vertex3f

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

20 years agofixed connection process again
havoc [Mon, 26 May 2003 01:01:36 +0000 (01:01 +0000)]
fixed connection process again
added developer prints for changes to sendserverinfo

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

20 years agofix an unused variable warning
havoc [Sun, 25 May 2003 22:47:36 +0000 (22:47 +0000)]
fix an unused variable warning

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

20 years agosome cleanups to hostcache (got rid of driver/address stuff and expanded the strings...
havoc [Sun, 25 May 2003 22:46:31 +0000 (22:46 +0000)]
some cleanups to hostcache (got rid of driver/address stuff and expanded the strings, also increased number of cache slots)
connecting to a server is now much more direct (does not use hostcache)
now ignores the address string received in server info packets because it's often bogus in dp (sorry...  but not really avoidable)
slist reports now include the address of the server (useful!!) and are much wider (79 characters) to give more room for info
the NOROUTINGFIX option has been kind of merged away, whether the server uses it or not is still optional (search for routing fix)

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

20 years agono longer needed (makefile does it all now)
havoc [Sun, 25 May 2003 22:38:29 +0000 (22:38 +0000)]
no longer needed (makefile does it all now)

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

20 years agomerged makefile, makefile.mingw (outdated) and makefile.mingwcross into one makefile
havoc [Sun, 25 May 2003 22:37:49 +0000 (22:37 +0000)]
merged makefile, makefile.mingw (outdated) and makefile.mingwcross into one makefile

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

20 years agoremoved rick.cube-sol.net from master server list because it's not resolving and...
havoc [Sun, 25 May 2003 22:35:07 +0000 (22:35 +0000)]
removed rick.cube-sol.net from master server list because it's not resolving and was really delaying server lists

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

20 years agomerged dll handling code into sys_shared.c because the code in sys_linux.c was for...
havoc [Sun, 25 May 2003 22:33:03 +0000 (22:33 +0000)]
merged dll handling code into sys_shared.c because the code in sys_linux.c was for both windows and linux, no real point in separating them

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

20 years agofix darkplaces-dedicated.exe building to open a console
havoc [Sun, 25 May 2003 16:26:02 +0000 (16:26 +0000)]
fix darkplaces-dedicated.exe building to open a console

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

20 years agoSys_Print added to handle the output of text to the terminal (since this varies from...
havoc [Sun, 25 May 2003 16:17:37 +0000 (16:17 +0000)]
Sys_Print added to handle the output of text to the terminal (since this varies from platform to platform and may depend on whether it is dedicated)

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

20 years agodarkplaces-dedicated.exe now builds
havoc [Sun, 25 May 2003 15:48:00 +0000 (15:48 +0000)]
darkplaces-dedicated.exe now builds
sys_linux.c (needs new name badly!) modified to support windows for purposes of darkplaces-dedicated.exe
Sys_Printf probably no longer works properly with darkplaces.exe (but we'll see)
darkplaces.exe should now be a proper windows app again (how I got --mwindows in there I don't know), so -dedicated may work

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

20 years agoalias model fake shadows can now be cached
havoc [Sun, 25 May 2003 11:59:58 +0000 (11:59 +0000)]
alias model fake shadows can now be cached

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

20 years agofixed a severe bug with pointer_color state tracking (no longer checks .colorarray...
havoc [Sun, 25 May 2003 11:44:31 +0000 (11:44 +0000)]
fixed a severe bug with pointer_color state tracking (no longer checks .colorarray, so you don't have to do the GL_Color/GL_UseColorArray call before R_Mesh_State anymore), this fixes explosion coloring when using pointer_color for other stuff rendered immediately before it
fixed a crash when entire sequentialchain is emptied while trying to get space for a new cache item (this happened!  I can't guess why though)

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

20 years agosimplified explosion rendering a little (probably a very minor slowdown, but more...
havoc [Sun, 25 May 2003 11:40:34 +0000 (11:40 +0000)]
simplified explosion rendering a little (probably a very minor slowdown, but more maintainable)

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

20 years agoalias model (q1/q2/q3) rendering now supports gl_mesh_copyarrays 0 (even caches light...
havoc [Sat, 24 May 2003 14:53:30 +0000 (14:53 +0000)]
alias model (q1/q2/q3) rendering now supports gl_mesh_copyarrays 0 (even caches lighting!) for a speed boost (enough to compensate for the current loss on world rendering), note that only normal rendering uses this so far (more rendering functions to upgrade)

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

20 years agomade id_pointer fields of rcachearrayrequest_t const (because they'll never be used...
havoc [Sat, 24 May 2003 14:48:33 +0000 (14:48 +0000)]
made id_pointer fields of rcachearrayrequest_t const (because they'll never be used as pointers anyway)

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

20 years agodisabled various testing code in R_Mesh_CacheArray
havoc [Sat, 24 May 2003 14:47:32 +0000 (14:47 +0000)]
disabled various testing code in R_Mesh_CacheArray
fixed a bug with pointer_color if gl_mesh_floatcolors is false (it was incorrectly comparing p to varray_buf_color4f, it should have compared it to NULL)

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

20 years agopossible stability improvement in VID_Shutdown - moved ChangeDisplaySettings call...
havoc [Sat, 24 May 2003 07:18:47 +0000 (07:18 +0000)]
possible stability improvement in VID_Shutdown - moved ChangeDisplaySettings call after DestroyWindow

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

20 years agoaliasvertex_t no longer exists, models are now stored as arrays of vertex3f, svector3...
havoc [Fri, 23 May 2003 18:38:34 +0000 (18:38 +0000)]
aliasvertex_t no longer exists, models are now stored as arrays of vertex3f, svector3f, tvector3f, normal3f
cleaned up loaders somewhat (they're still nasty as always)
now validates elements in mdl model files

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

20 years agoadded R_Mesh_CacheArray (not yet used by anything, but has been tested with some...
havoc [Fri, 23 May 2003 18:36:28 +0000 (18:36 +0000)]
added R_Mesh_CacheArray (not yet used by anything, but has been tested with some code in gl_rsurf.c), a generic dynamic data caching system intended for vertex arrays

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

20 years agoadded gl_mesh_batching (default on) which merges several meshes in a row to reduce...
havoc [Fri, 23 May 2003 07:43:26 +0000 (07:43 +0000)]
added gl_mesh_batching (default on) which merges several meshes in a row to reduce overhead of array locking and drawing
added MESH_VAR and MESH_BATCH defines to allow relevant code to be disabled (MESH_VAR is currently disabled because it's somewhat broken last I checked)
added custom array pointer support in R_Mesh_State (MainState and TextureState), this is experimental but works fine
added gl_mesh_copyarrays (default off) which tells renderer code that it should use custom array pointer support instead of copying (currently testable on surface rendering - not a good use, too many Pointer calls for very little geometry)
some other cleanups

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

20 years agoconsole logging (-condebug) now starts earlier in the startup process (just after...
havoc [Fri, 23 May 2003 07:38:25 +0000 (07:38 +0000)]
console logging (-condebug) now starts earlier in the startup process (just after the filesystem)

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

20 years agomore preparation for quake2 bsp support
havoc [Fri, 23 May 2003 06:58:34 +0000 (06:58 +0000)]
more preparation for quake2 bsp support

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

20 years agomerged SV_Physics_Client into SV_Physics (not difficult)
havoc [Fri, 23 May 2003 06:30:36 +0000 (06:30 +0000)]
merged SV_Physics_Client into SV_Physics (not difficult)

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

20 years agocleaned up/simplified Sys_Error, now should never get in a recursive crash loop,...
havoc [Fri, 23 May 2003 06:28:05 +0000 (06:28 +0000)]
cleaned up/simplified Sys_Error, now should never get in a recursive crash loop, but also lost the timeout on dedicated server errors as a result (if engine crashes, the server will leave up a dialog eternally until someone closes it)

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

20 years agorenamed "precache" cvar to "snd_precache" because it's name was very confusing
havoc [Wed, 21 May 2003 12:15:06 +0000 (12:15 +0000)]
renamed "precache" cvar to "snd_precache" because it's name was very confusing

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

20 years agoadded support for q2 .wal images (not yet tested but suspected as working)
havoc [Wed, 21 May 2003 11:24:20 +0000 (11:24 +0000)]
added support for q2 .wal images (not yet tested but suspected as working)
cleaned up multiple format loader hub, now parses a list of formats things to try
cleaned up invalid image size detection (now all format loaders check for >4096 and <=0 in each axis)

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

20 years agobeginning to add Q2 bsp support (Q3 bsp support coming later)
havoc [Wed, 21 May 2003 09:08:15 +0000 (09:08 +0000)]
beginning to add Q2 bsp support (Q3 bsp support coming later)

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

20 years agoadded a note about an id bug with triggers and ignoring .owner (the fact they don't)
havoc [Wed, 21 May 2003 09:05:15 +0000 (09:05 +0000)]
added a note about an id bug with triggers and ignoring .owner (the fact they don't)

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

20 years agoFix Transfusion bug 030429-01 (If you go to the console from the options menu, then...
molivier [Mon, 19 May 2003 07:11:22 +0000 (07:11 +0000)]
Fix Transfusion bug 030429-01 (If you go to the console from the options menu, then exit the console, you can't get back to the menu)

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

20 years agofixed a bug with Host_Startdemos_f that caused it to never shorten the list of demos...
havoc [Sat, 17 May 2003 10:29:35 +0000 (10:29 +0000)]
fixed a bug with Host_Startdemos_f that caused it to never shorten the list of demos (it forgot to clear the remaining slots)

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

20 years agocorrected call to Image_HasAlpha to be Image_CheckAlpha
havoc [Fri, 16 May 2003 11:34:56 +0000 (11:34 +0000)]
corrected call to Image_HasAlpha to be Image_CheckAlpha

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

20 years agoreplaced a loop that checked for alpha pixels with a call to Image_HasAlpha
havoc [Fri, 16 May 2003 11:10:32 +0000 (11:10 +0000)]
replaced a loop that checked for alpha pixels with a call to Image_HasAlpha
fixed a memory leak on s->maskpixels (due to memory pools this leak was probably not too bad)

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

20 years agoadded DP_GFX_SKYBOX and DP_CL_LOADSKY extensions
havoc [Fri, 16 May 2003 11:09:23 +0000 (11:09 +0000)]
added DP_GFX_SKYBOX and DP_CL_LOADSKY extensions

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

20 years agonew entity protocol has been canceled due to a fatal design flaw only detected today...
havoc [Tue, 29 Apr 2003 16:04:40 +0000 (16:04 +0000)]
new entity protocol has been canceled due to a fatal design flaw only detected today (insufficient data on history of entities)
added explanation of old entity protocol and how it will be revised to use partial entity updates (without breaking compatibility with old clients!)

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

20 years agoreverted dynamic allocation of sv.edicts because there are FAR too many broken pointe...
havoc [Sat, 26 Apr 2003 10:21:02 +0000 (10:21 +0000)]
reverted dynamic allocation of sv.edicts because there are FAR too many broken pointer cases, however shrinking the edict_t to just a couple pointers and dynamically allocating the data they point to, keeps memory usage way down

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

20 years agoincreased default gl_mesh_maxverts to 65536, and also increased the limit to that
havoc [Sat, 26 Apr 2003 10:19:21 +0000 (10:19 +0000)]
increased default gl_mesh_maxverts to 65536, and also increased the limit to that

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

20 years agocleaned up UDP_Init a bit
havoc [Sat, 26 Apr 2003 10:03:42 +0000 (10:03 +0000)]
cleaned up UDP_Init a bit

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

20 years agosv.edicts (and related things) are now dynamically reallocated as more edicts are...
havoc [Fri, 25 Apr 2003 14:43:10 +0000 (14:43 +0000)]
sv.edicts (and related things) are now dynamically reallocated as more edicts are used
no edict_t *'s exist in any persistent structures anymore, using edict numbers in all such cases (as it turns out the only such structs were client_t in server.h and link_t in progs.h)
edicts are unlinked before reallocation and relinked after reallocation to keep the link_t pointers valid

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

20 years agoUDP_Init now tries to bind to INADDR_ANY and various others in sequence
havoc [Fri, 25 Apr 2003 14:39:22 +0000 (14:39 +0000)]
UDP_Init now tries to bind to INADDR_ANY and various others in sequence

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