]> de.git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
3 years ago(WIP) cmd: Remove now-unused variables from cmd_state_t Cloudwalk/cbuf-overhaul
Cloudwalk [Sat, 8 Aug 2020 21:01:39 +0000 (17:01 -0400)]
(WIP) cmd: Remove now-unused variables from cmd_state_t

3 years ago(WIP) cmd: Port the defer command to the new cbuf system
Cloudwalk [Sat, 8 Aug 2020 21:00:11 +0000 (17:00 -0400)]
(WIP) cmd: Port the defer command to the new cbuf system

3 years ago(WIP) cmd: Unlock the correct cbuf mutex when quitting
Cloudwalk [Sat, 8 Aug 2020 20:59:18 +0000 (16:59 -0400)]
(WIP) cmd: Unlock the correct cbuf mutex when quitting

3 years ago(WIP) cmd: Refactor duplicate code into a few functions
Cloudwalk [Sat, 8 Aug 2020 13:20:01 +0000 (09:20 -0400)]
(WIP) cmd: Refactor duplicate code into a few functions

3 years ago(WIP) cmd: Second major refactor of new cbuf system. Fixed alias expansion bugs
Cloudwalk [Fri, 7 Aug 2020 20:13:50 +0000 (16:13 -0400)]
(WIP) cmd: Second major refactor of new cbuf system. Fixed alias expansion bugs

3 years ago(WIP) cmd: Keep writing to the same node if not terminated by \n, \r or ;
Cloudwalk [Fri, 7 Aug 2020 15:35:54 +0000 (11:35 -0400)]
(WIP) cmd: Keep writing to the same node if not terminated by \n, \r or ;

Major refactor as well.

All that's left to do now is to merge defer support into the same system

3 years ago(WIP) cmd: Don't use strlcpy return for size since it's the size of the whole string
Cloudwalk [Thu, 6 Aug 2020 13:33:51 +0000 (09:33 -0400)]
(WIP) cmd: Don't use strlcpy return for size since it's the size of the whole string

3 years ago(WIP) cmd: Refactor link insert into separate functions since they're reusable
Cloudwalk [Thu, 6 Aug 2020 13:31:57 +0000 (09:31 -0400)]
(WIP) cmd: Refactor link insert into separate functions since they're reusable

3 years ago(WIP) cmd: Re-reimplement the cbuf system using a cyclic doubly linked list
Cloudwalk [Thu, 6 Aug 2020 03:48:19 +0000 (23:48 -0400)]
(WIP) cmd: Re-reimplement the cbuf system using a cyclic doubly linked list

This has several advantages, namely cleaner code and not needing
a separate end pointer.

Also created a separate linked list buffer for recycling memory.
This is needed to avoid having to allocate and free every time the
player sends input of any kind. It will grow in size depending on
how big the biggest console input is, but this is okay because the
console input has its own limit, and each node uses a (relatively)
negligible amount of memory.

3 years ago(WIP) cmd: Reimplement console buffer system as a linked list
Cloudwalk [Mon, 3 Aug 2020 19:26:06 +0000 (15:26 -0400)]
(WIP) cmd: Reimplement console buffer system as a linked list

This has several advantages, namely, multiple command interpreters
may share the same console buffer on the same thread, and each
command can be executed in order, eliminating any potential bugs
related to that.

Things left to do:

* Merge deferred commands into the same system and reenable
  the defer command.
* Use a cyclic doubly linked list instead of the garbage I
  wrote.

3 years agosv_ents: Move shared function to com_ents
cloudwalk [Mon, 3 Aug 2020 19:25:45 +0000 (19:25 +0000)]
sv_ents: Move shared function to com_ents

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

3 years agocom_game: Add missing copyright header
cloudwalk [Mon, 3 Aug 2020 19:25:44 +0000 (19:25 +0000)]
com_game: Add missing copyright header

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

3 years agocommon: Split off the gameinfo stuff to com_game.c
cloudwalk [Mon, 27 Jul 2020 14:52:03 +0000 (14:52 +0000)]
common: Split off the gameinfo stuff to com_game.c

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

3 years agocl_screen: Fix compile warning
cloudwalk [Sun, 26 Jul 2020 16:01:31 +0000 (16:01 +0000)]
cl_screen: Fix compile warning

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

3 years agoImplement "ent_remove" command. Removes entity where you're aiming or by edict
cloudwalk [Sun, 26 Jul 2020 16:00:13 +0000 (16:00 +0000)]
Implement "ent_remove" command. Removes entity where you're aiming or by edict

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

3 years agosv_ccmds: Partially rewrite ent_create command to be entirely serverside
cloudwalk [Sun, 26 Jul 2020 16:00:12 +0000 (16:00 +0000)]
sv_ccmds: Partially rewrite ent_create command to be entirely serverside

It will now use serverside functionality to generate the view matrix
used to trace a line. Client involvement is no longer necessary.

Also removed CL_TraceLine_FromViewOrigin

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

3 years agocl_screen: Fix logic error preventing unpause if jumping to local MP from SP
cloudwalk [Sun, 26 Jul 2020 16:00:11 +0000 (16:00 +0000)]
cl_screen: Fix logic error preventing unpause if jumping to local MP from SP

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

3 years agoImplement "ent_remove_all" command. Removes all entities of classname in map
cloudwalk [Sat, 25 Jul 2020 15:09:56 +0000 (15:09 +0000)]
Implement "ent_remove_all" command. Removes all entities of classname in map

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

3 years agoent_create: Fix potential memory leaks. Misc improvements
cloudwalk [Fri, 24 Jul 2020 16:13:08 +0000 (16:13 +0000)]
ent_create: Fix potential memory leaks. Misc improvements

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

3 years agoImplement "ent_create" command. Creates an entity where you're aiming.
cloudwalk [Fri, 24 Jul 2020 16:00:54 +0000 (16:00 +0000)]
Implement "ent_create" command. Creates an entity where you're aiming.

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

3 years agoprvm_edict: Refactor PRVM_ED_LoadFromFile. Split up spawn code into functions
cloudwalk [Fri, 24 Jul 2020 16:00:54 +0000 (16:00 +0000)]
prvm_edict: Refactor PRVM_ED_LoadFromFile. Split up spawn code into functions

Also use PRVM_ED_FindGlobalEval

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

3 years agoprvm_edict: Implement PRVM_ED_FindGlobalEval
cloudwalk [Fri, 24 Jul 2020 16:00:53 +0000 (16:00 +0000)]
prvm_edict: Implement PRVM_ED_FindGlobalEval

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

3 years agocl_collision: Implement CL_TraceLine_FromViewOrigin
cloudwalk [Fri, 24 Jul 2020 16:00:53 +0000 (16:00 +0000)]
cl_collision: Implement CL_TraceLine_FromViewOrigin

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

3 years agocmd: Improve automatic assignment of command functions
cloudwalk [Fri, 24 Jul 2020 16:00:52 +0000 (16:00 +0000)]
cmd: Improve automatic assignment of command functions

See the new comment in cmd.h

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

3 years agoimage_png: Fix library load order. Fixes broken external textures in some games
cloudwalk [Fri, 24 Jul 2020 16:00:52 +0000 (16:00 +0000)]
image_png: Fix library load order. Fixes broken external textures in some games

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

3 years agosv_main: Minor formatting and commenting improvement/refactor of SV_Frame
cloudwalk [Thu, 23 Jul 2020 04:17:11 +0000 (04:17 +0000)]
sv_main: Minor formatting and commenting improvement/refactor of SV_Frame

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

3 years agosv_main: Receive packets even if we're gonna sleep, matching old behavior
cloudwalk [Thu, 23 Jul 2020 03:20:15 +0000 (03:20 +0000)]
sv_main: Receive packets even if we're gonna sleep, matching old behavior

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

3 years agohost: Maintain sleep delta by making variable static, matching old behavior
cloudwalk [Thu, 23 Jul 2020 03:20:14 +0000 (03:20 +0000)]
host: Maintain sleep delta by making variable static, matching old behavior

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

3 years agosv_main: Do perf calculations even if we're gonna sleep. Restores old behavior
cloudwalk [Wed, 22 Jul 2020 18:36:01 +0000 (18:36 +0000)]
sv_main: Do perf calculations even if we're gonna sleep. Restores old behavior

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

3 years agogl_rmain: Nerf bloom intensity. It won't burn your retinas as badly now.
cloudwalk [Wed, 22 Jul 2020 18:36:00 +0000 (18:36 +0000)]
gl_rmain: Nerf bloom intensity. It won't burn your retinas as badly now.

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

3 years agoMisc console print improvements. Increase verbosity
cloudwalk [Wed, 22 Jul 2020 18:35:59 +0000 (18:35 +0000)]
Misc console print improvements. Increase verbosity

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

3 years agocl_cmd: Make _cl_color not read-only. That was annoying.
cloudwalk [Wed, 22 Jul 2020 13:59:58 +0000 (13:59 +0000)]
cl_cmd: Make _cl_color not read-only. That was annoying.

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

3 years agoFix OpenSolaris build. Add platform ID for a few other platforms
cloudwalk [Wed, 22 Jul 2020 13:58:22 +0000 (13:58 +0000)]
Fix OpenSolaris build. Add platform ID for a few other platforms

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

3 years agoExperimental restoration of GLES2 support. It *might* compile.
cloudwalk [Wed, 22 Jul 2020 13:58:22 +0000 (13:58 +0000)]
Experimental restoration of GLES2 support. It *might* compile.

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

3 years agogl_draw: Silence a spammy print
cloudwalk [Tue, 21 Jul 2020 19:19:23 +0000 (19:19 +0000)]
gl_draw: Silence a spammy print

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

3 years agoIncrease console verbosity so it feels like the engine is actually doing things
cloudwalk [Tue, 21 Jul 2020 19:11:44 +0000 (19:11 +0000)]
Increase console verbosity so it feels like the engine is actually doing things

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

3 years agocl_screen: Rename shownetgraph to net_graph. Keep shownetgraph as nickname
cloudwalk [Tue, 21 Jul 2020 16:39:14 +0000 (16:39 +0000)]
cl_screen: Rename shownetgraph to net_graph. Keep shownetgraph as nickname

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

3 years agogl_rmain: Get the notexture texture from a single source
cloudwalk [Tue, 21 Jul 2020 16:39:13 +0000 (16:39 +0000)]
gl_rmain: Get the notexture texture from a single source

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

3 years agoprvm_execprogram.h: Tuck a loose DISPATCH_OPCODE() under its opcode
cloudwalk [Tue, 21 Jul 2020 16:39:13 +0000 (16:39 +0000)]
prvm_execprogram.h: Tuck a loose DISPATCH_OPCODE() under its opcode

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

3 years agohost: Stray whitespace
cloudwalk [Tue, 21 Jul 2020 16:39:12 +0000 (16:39 +0000)]
host: Stray whitespace

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

3 years agohost: Minor comment improvements
cloudwalk [Mon, 20 Jul 2020 17:35:03 +0000 (17:35 +0000)]
host: Minor comment improvements

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

3 years agovid_sdl: Set host.state = host_shutdown to exit by breaking the main loop
cloudwalk [Mon, 20 Jul 2020 17:35:02 +0000 (17:35 +0000)]
vid_sdl: Set host.state = host_shutdown to exit by breaking the main loop

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

3 years agohost: Return to main() if the loop breaks and Sys_Quit from there
cloudwalk [Mon, 20 Jul 2020 17:35:02 +0000 (17:35 +0000)]
host: Return to main() if the loop breaks and Sys_Quit from there

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

3 years agohost: Check !host.restless instead of !cls.demoplayback for rand() call
cloudwalk [Mon, 20 Jul 2020 17:35:01 +0000 (17:35 +0000)]
host: Check !host.restless instead of !cls.demoplayback for rand() call

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

3 years agohost: Implement callback for host_framerate instead of checking it every frame
cloudwalk [Mon, 20 Jul 2020 17:35:01 +0000 (17:35 +0000)]
host: Implement callback for host_framerate instead of checking it every frame

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

3 years agocl_main: Get new input events even if we're supposed to sleep
cloudwalk [Mon, 20 Jul 2020 17:35:01 +0000 (17:35 +0000)]
cl_main: Get new input events even if we're supposed to sleep

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

3 years agomakefile: Add -Wwrite-strings. This is also a -Wall warning under g++
cloudwalk [Mon, 20 Jul 2020 14:56:37 +0000 (14:56 +0000)]
makefile: Add -Wwrite-strings. This is also a -Wall warning under g++

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

3 years agoRevert "makefile: Add -Wc++11-compat-reserved-user-defined-literal"
cloudwalk [Mon, 20 Jul 2020 14:56:37 +0000 (14:56 +0000)]
Revert "makefile: Add -Wc++11-compat-reserved-user-defined-literal"

This reverts commit 8cca05ca8d1e9b28c00afd25ec7d80b0ffe4f68f.

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

3 years agomakefile: Add -Wc++11-compat-reserved-user-defined-literal
cloudwalk [Mon, 20 Jul 2020 14:39:55 +0000 (14:39 +0000)]
makefile: Add -Wc++11-compat-reserved-user-defined-literal

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

3 years agoFix compile warnings from gcc and g++
cloudwalk [Mon, 20 Jul 2020 14:38:18 +0000 (14:38 +0000)]
Fix compile warnings from gcc and g++

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

3 years agohost: Major refactor
cloudwalk [Mon, 20 Jul 2020 14:27:33 +0000 (14:27 +0000)]
host: Major refactor

* Split up Host_Main. Implemented Host_Frame (which is now most of what
  Host_Main was), and moved timekeeping and sleep code to the new
  Host_Main.
* Moved all server frame code to the new SV_Frame.
* Fixed sleep behavior. A dedicated server should sleep again.
* General cleanup. New functions to split things up and keep things
  readable.

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

3 years agohost: Remove sv_fixedframeratesingleplayer
cloudwalk [Mon, 20 Jul 2020 14:27:33 +0000 (14:27 +0000)]
host: Remove sv_fixedframeratesingleplayer

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

3 years agosv_main: Rename sv_ratelimitlocalplayer to host_limitlocal. Old name still works
cloudwalk [Mon, 20 Jul 2020 14:27:32 +0000 (14:27 +0000)]
sv_main: Rename sv_ratelimitlocalplayer to host_limitlocal. Old name still works

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

3 years agosv_ccmds: In status cmd, re-add Con_Printf code so dedicated can see it again
cloudwalk [Sun, 19 Jul 2020 12:26:40 +0000 (12:26 +0000)]
sv_ccmds: In status cmd, re-add Con_Printf code so dedicated can see it again

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

3 years agoprvm_edict: Minor edit to string
cloudwalk [Sat, 18 Jul 2020 19:45:09 +0000 (19:45 +0000)]
prvm_edict: Minor edit to string

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

3 years agocmd: Use reentrant mutex for cbufs. Fixes deadlock when expanding aliases in some...
cloudwalk [Sat, 18 Jul 2020 19:45:09 +0000 (19:45 +0000)]
cmd: Use reentrant mutex for cbufs. Fixes deadlock when expanding aliases in some situations

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

3 years agoAdd .ccls-cache to .gitignore
cloudwalk [Sat, 18 Jul 2020 19:45:08 +0000 (19:45 +0000)]
Add .ccls-cache to .gitignore

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

3 years agoclient: Implement CL_Frame. Move client cvars out of host to cl_main
cloudwalk [Sat, 18 Jul 2020 19:45:08 +0000 (19:45 +0000)]
client: Implement CL_Frame. Move client cvars out of host to cl_main

The client now performs its frame in its own side of the engine. This
will make client/server separation easier later on.

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

3 years agomenu: Don't abort the frame if the menu crashes during init, so video can start
cloudwalk [Fri, 17 Jul 2020 23:38:51 +0000 (23:38 +0000)]
menu: Don't abort the frame if the menu crashes during init, so video can start

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

3 years agogl_rmain: Disable water (and warpzones) when r_lockvisibility or r_lockpvs are 1
cloudwalk [Fri, 17 Jul 2020 13:59:34 +0000 (13:59 +0000)]
gl_rmain: Disable water (and warpzones) when r_lockvisibility or r_lockpvs are 1

Fixes an issue where it would render the reflection of water, or the
opposite side of the warpzone, instead of where the actual frustum is.

There's probably a better solution but this should be fine for now.

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

3 years agogl_rmain: Don't set frustum when r_lockvisibility or r_lockpvs are 1
cloudwalk [Fri, 17 Jul 2020 13:59:34 +0000 (13:59 +0000)]
gl_rmain: Don't set frustum when r_lockvisibility or r_lockpvs are 1

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

3 years agogl_rsurf: Check r_lockvisibility only once
cloudwalk [Fri, 17 Jul 2020 05:50:50 +0000 (05:50 +0000)]
gl_rsurf: Check r_lockvisibility only once

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

3 years agogl_rsurf: Don't cull geometry that leaves the view frustum with r_lockvisibility
cloudwalk [Fri, 17 Jul 2020 05:25:23 +0000 (05:25 +0000)]
gl_rsurf: Don't cull geometry that leaves the view frustum with r_lockvisibility

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

3 years agogl_rsurf: Set default of r_useportalculling to 1
cloudwalk [Fri, 17 Jul 2020 04:44:58 +0000 (04:44 +0000)]
gl_rsurf: Set default of r_useportalculling to 1

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

3 years agoFix search_packfile_begin builtin number in the menu VM, also fix checkextension...
cloudwalk [Thu, 16 Jul 2020 14:45:10 +0000 (14:45 +0000)]
Fix search_packfile_begin builtin number in the menu VM, also fix checkextension not working in the menu

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

3 years agoFix some duplicate and missing builtin entries in csprogsdefs.qc
cloudwalk [Thu, 16 Jul 2020 14:45:08 +0000 (14:45 +0000)]
Fix some duplicate and missing builtin entries in csprogsdefs.qc

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

3 years agodpdefs: Don't declare __fullspawndata. Avoids allocation if a mod doesn't use it
cloudwalk [Thu, 16 Jul 2020 10:48:23 +0000 (10:48 +0000)]
dpdefs: Don't declare __fullspawndata. Avoids allocation if a mod doesn't use it

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

3 years agoprvm_edict: For __fullspawndata, set the "start" pointer before '{' is parsed
cloudwalk [Thu, 16 Jul 2020 10:48:22 +0000 (10:48 +0000)]
prvm_edict: For __fullspawndata, set the "start" pointer before '{' is parsed

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

3 years agoprogs: Implement new extension DP_QC_FS_SEARCH_PACKFILE
cloudwalk [Wed, 15 Jul 2020 14:59:11 +0000 (14:59 +0000)]
progs: Implement new extension DP_QC_FS_SEARCH_PACKFILE

Adds an optional parameter to the search_begin builtin function that
allows specifying a package file to look in, skipping any results that
aren't inside the package. Useful for mods aiming to provide
compatibility with Quake 3's .arena files, as they don't match the .bsp
filename.

Patch from Mario: https://gitlab.com/xonotic/darkplaces/-/merge_requests/100

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

3 years agoDon't save scr_loadingscreen_picture to config (matches other loading screen cvars...
cloudwalk [Wed, 15 Jul 2020 14:59:10 +0000 (14:59 +0000)]
Don't save scr_loadingscreen_picture to config (matches other loading screen cvars), as per wrath-darkplaces

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

3 years agoSome minor tweaks to CACHEPICFLAG_LINEAR and the nasty -game name rejection message...
cloudwalk [Wed, 15 Jul 2020 14:59:09 +0000 (14:59 +0000)]
Some minor tweaks to CACHEPICFLAG_LINEAR and the nasty -game name rejection message to ease the processes of backporting and modernization

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

3 years agoDon't show beam list overflow spam warnings normally
cloudwalk [Wed, 15 Jul 2020 14:59:09 +0000 (14:59 +0000)]
Don't show beam list overflow spam warnings normally

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

3 years agoFix a potential memory leak with wavefront sounds
cloudwalk [Wed, 15 Jul 2020 14:59:09 +0000 (14:59 +0000)]
Fix a potential memory leak with wavefront sounds

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

3 years agoImplement pausesound command, ported from wrath-darkplaces
cloudwalk [Wed, 15 Jul 2020 14:59:08 +0000 (14:59 +0000)]
Implement pausesound command, ported from wrath-darkplaces

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

3 years agoIncrease MAX_CACHED_PICS to 2048, as per wrath-darkplaces
cloudwalk [Wed, 15 Jul 2020 14:59:08 +0000 (14:59 +0000)]
Increase MAX_CACHED_PICS to 2048, as per wrath-darkplaces

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

3 years agoSave cl_maxfps_alwayssleep changes to config
cloudwalk [Wed, 15 Jul 2020 14:59:07 +0000 (14:59 +0000)]
Save cl_maxfps_alwayssleep changes to config

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

3 years agoDon't crash the game if a "nasty" -game name is rejected, matches behavior of missing...
cloudwalk [Wed, 15 Jul 2020 14:59:07 +0000 (14:59 +0000)]
Don't crash the game if a "nasty" -game name is rejected, matches behavior of missing -game name

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

3 years agoAdd support for CACHEPICFLAG_LINEAR (currently unused), ported from wrath-darkplaces
cloudwalk [Wed, 15 Jul 2020 14:59:06 +0000 (14:59 +0000)]
Add support for CACHEPICFLAG_LINEAR (currently unused), ported from wrath-darkplaces

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

3 years agolibxmp: Misc improvements (nico)
cloudwalk [Wed, 15 Jul 2020 13:55:21 +0000 (13:55 +0000)]
libxmp: Misc improvements (nico)

* Don't use global CFLAGS for libxmp in makefile
* Add S_GetSoundWidth() function, currently not used (yet)
* Clamp samplerate to engine min/max
* Lower the excessive stereo separation

https://gitlab.com/xonotic/darkplaces/-/merge_requests/94

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

3 years agozone: Fix backed file alloc for BSD. Check for -1 in addition to NULL on mmap data...
cloudwalk [Wed, 15 Jul 2020 13:55:20 +0000 (13:55 +0000)]
zone: Fix backed file alloc for BSD. Check for -1 in addition to NULL on mmap data (David CARLIER)

https://gitlab.com/xonotic/darkplaces/-/merge_requests/55

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

3 years agoprogs: Correct drawline and sound builtin parameters (terencehill)
cloudwalk [Wed, 15 Jul 2020 13:55:19 +0000 (13:55 +0000)]
progs: Correct drawline and sound builtin parameters (terencehill)

https://gitlab.com/xonotic/darkplaces/-/merge_requests/99

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

3 years agoprvm_edict: Implement __fullspawndata. Testing only; don't use in production yet
cloudwalk [Wed, 15 Jul 2020 02:44:19 +0000 (02:44 +0000)]
prvm_edict: Implement __fullspawndata. Testing only; don't use in production yet

http://icculus.org/finger/marco?date=2019-01-25&time=05-38-02

The idea of exposing these key/value pairs to QC is great but perhaps a
a better, cleaner method could be used down the road. But this has to be
kept for FTE compatibility.

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

3 years agohost: Shutdown client-only subsystems in CL_Shutdown.
cloudwalk [Wed, 15 Jul 2020 02:44:18 +0000 (02:44 +0000)]
host: Shutdown client-only subsystems in CL_Shutdown.

This fixes an issue where darkplaces_history.txt was being generated on
dedicated servers but wasn't actually being used.

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

3 years agosv_ccmds: In status cmd, print IPs to loopback client
cloudwalk [Wed, 15 Jul 2020 02:44:18 +0000 (02:44 +0000)]
sv_ccmds: In status cmd, print IPs to loopback client

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

3 years agohost: Remove redundant check
cloudwalk [Wed, 15 Jul 2020 02:44:17 +0000 (02:44 +0000)]
host: Remove redundant check

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

3 years agohost: Sleep at the end of the frame. Receive packets during server frame.
cloudwalk [Wed, 15 Jul 2020 02:44:16 +0000 (02:44 +0000)]
host: Sleep at the end of the frame. Receive packets during server frame.

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

3 years agohost: Remove redundant check. Only the bigger of these are going to be picked
cloudwalk [Wed, 15 Jul 2020 02:44:16 +0000 (02:44 +0000)]
host: Remove redundant check. Only the bigger of these are going to be picked

cl_timer shouldn't move at all under a dedicated server and sv_timer
shouldn't move if not hosting a server.

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

3 years agohost: Adjust timers at the end of each client or server frame, and other tweaks
cloudwalk [Wed, 15 Jul 2020 02:44:15 +0000 (02:44 +0000)]
host: Adjust timers at the end of each client or server frame, and other tweaks

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

3 years agosys_shared: Remove #ifdef for VERY old and obsolete compiler...
cloudwalk [Wed, 15 Jul 2020 02:44:15 +0000 (02:44 +0000)]
sys_shared: Remove #ifdef for VERY old and obsolete compiler...

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

3 years agoprvm: Fix multiple int opcode issues reported by Spoike
cloudwalk [Wed, 15 Jul 2020 02:44:14 +0000 (02:44 +0000)]
prvm: Fix multiple int opcode issues reported by Spoike

A lot of these are boolean opcodes and should return a bool (int).

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

3 years agohost: Move server perf code to server frame code
cloudwalk [Mon, 13 Jul 2020 16:00:13 +0000 (16:00 +0000)]
host: Move server perf code to server frame code

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

3 years agohost: Move timer resets to client/server code
cloudwalk [Mon, 13 Jul 2020 16:00:13 +0000 (16:00 +0000)]
host: Move timer resets to client/server code

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

3 years agohost: Move server/client-specific frametime limiting code outside of common code
cloudwalk [Mon, 13 Jul 2020 16:00:12 +0000 (16:00 +0000)]
host: Move server/client-specific frametime limiting code outside of common code

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

3 years agohost: Use new global host.sleeptime instead of svs variable outside server code
cloudwalk [Mon, 13 Jul 2020 16:00:11 +0000 (16:00 +0000)]
host: Use new global host.sleeptime instead of svs variable outside server code

This, again, moves server code out of common code.

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

3 years agohost, csqc: Remove cl.csqc_paused. Use new global host.paused instead.
cloudwalk [Mon, 13 Jul 2020 16:00:11 +0000 (16:00 +0000)]
host, csqc: Remove cl.csqc_paused. Use new global host.paused instead.

This removes some client/server-only code in the client/server frames.
This also cleans up the cl struct a bit by only having one source of
knowing if we should pause for both CSQC and opening the console or menu

These changes will help eventually move the client and server frame code
to their own functions (CL_Frame and SV_Frame respectively).

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

3 years agocsqc: Minor refactor of a few functions
cloudwalk [Mon, 13 Jul 2020 16:00:10 +0000 (16:00 +0000)]
csqc: Minor refactor of a few functions

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

3 years agohost: Add "restless" variable to host_t. True means don't sleep (timedemo, etc)
cloudwalk [Mon, 13 Jul 2020 16:00:10 +0000 (16:00 +0000)]
host: Add "restless" variable to host_t. True means don't sleep (timedemo, etc)

This is meant to reduce client code in the common Host_Main.

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

3 years agobsp: Merge Q1/Q2 LoadSubmodels into one func. The differences were negligible
cloudwalk [Mon, 13 Jul 2020 16:00:09 +0000 (16:00 +0000)]
bsp: Merge Q1/Q2 LoadSubmodels into one func. The differences were negligible

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

3 years agobsp: Rename a few more functions that are used by more than one BSP format
cloudwalk [Mon, 13 Jul 2020 16:00:09 +0000 (16:00 +0000)]
bsp: Rename a few more functions that are used by more than one BSP format

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

3 years agoImprove clang support. Add tcc support. Clang builds now perform as good as gcc
cloudwalk [Sat, 11 Jul 2020 01:51:42 +0000 (01:51 +0000)]
Improve clang support. Add tcc support. Clang builds now perform as good as gcc

tcc builds perform like crap, but it's nice to support a fourth
compiler. There is an issue on Linux with a Pulseaudio library not
linking correctly, however.

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