]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
15 months ago(fix #378) use fs_offset_t for fsize NaitLee/378-exec-file-eof-no-newline
NaitLee [Mon, 31 Jul 2023 09:17:49 +0000 (17:17 +0800)]
(fix #378) use fs_offset_t for fsize

Signed-off-by: NaitLee <naitli@foxmail.com>
16 months ago(fix #378) Implement `FS_LoadFileExtraBuffer` in `fs.c` to avoid reallocation
NaitLee [Sun, 16 Jul 2023 08:53:05 +0000 (16:53 +0800)]
(fix #378) Implement `FS_LoadFileExtraBuffer` in `fs.c` to avoid reallocation

Signed-off-by: NaitLee <naitli@foxmail.com>
16 months agofix cmd exec a file without ending newline by adding one after read
NaitLee [Tue, 11 Jul 2023 01:17:57 +0000 (09:17 +0800)]
fix cmd exec a file without ending newline by adding one after read

Signed-off-by: NaitLee <naitli@foxmail.com>
17 months agoDisambiguate WriteDest warning
terencehill [Sun, 4 Jun 2023 08:40:49 +0000 (10:40 +0200)]
Disambiguate WriteDest warning

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
17 months agoClarify behaviour of random() builtin
bones_was_here [Sun, 21 May 2023 01:29:48 +0000 (11:29 +1000)]
Clarify behaviour of random() builtin

17 months agoDeclare DP_QC_WHICHPACK in menudefs.qc and csprogsdefs.qc
bones_was_here [Fri, 19 May 2023 10:07:14 +0000 (20:07 +1000)]
Declare DP_QC_WHICHPACK in menudefs.qc and csprogsdefs.qc

It was only declared in dpextensions.qc

18 months agoREADME.md: add badge for #darkplaces:matrix.org chat link
bones_was_here [Tue, 9 May 2023 17:21:27 +0000 (03:21 +1000)]
README.md: add badge for #darkplaces:matrix.org chat link

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
18 months agoImprove x86 detection to fix compiler errors on other architectures
bones_was_here [Sun, 30 Apr 2023 09:16:03 +0000 (19:16 +1000)]
Improve x86 detection to fix compiler errors on other architectures

Also some related minor makefile cleanup.

Closes https://gitlab.com/xonotic/darkplaces/-/issues/382

See also: 1244b3ab0853e8738c8f5e5b617e8d8f25d4eca4

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
18 months agoMerge branch 'kiwixz/macos_compile' into 'master'
bones_was_here [Sat, 29 Apr 2023 08:17:57 +0000 (08:17 +0000)]
Merge branch 'kiwixz/macos_compile' into 'master'

Fix compilation on macOS

See merge request xonotic/darkplaces!140

Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/79

19 months agoFix compilation on macOS
kiwixz [Tue, 11 Apr 2023 18:07:46 +0000 (20:07 +0200)]
Fix compilation on macOS

It has been broken since 2a97ec851bd607510e33148335fc61d51e7138cf.

Signed-off-by: kiwixz <kiwixz@outlook.com>
19 months agoUpdate compiler options, fixing obscure bug
bones_was_here [Sun, 2 Apr 2023 16:18:40 +0000 (02:18 +1000)]
Update compiler options, fixing obscure bug

Added -mno-avx to avoid QC bugs on (at least) haswell and skylake targets.

Removed -fno-signaling-nans as clang doesn't support it and spams warns,
and in GCC it's the default.

Removed -fno-rounding-math as this is also the default.

19 months agofs: Use unsigned short for filename size
Cloudwalk [Fri, 24 Mar 2023 13:54:31 +0000 (09:54 -0400)]
fs: Use unsigned short for filename size

Also remove namesize < 0 check as this is no longer possible

19 months agofs: Use unsigned short for extra field and file comment lengths
Cloudwalk [Fri, 24 Mar 2023 12:43:00 +0000 (08:43 -0400)]
fs: Use unsigned short for extra field and file comment lengths

20 months agoFix DP_QC_FINDCHAIN_TOFIELD errors
bones_was_here [Fri, 24 Feb 2023 19:04:43 +0000 (05:04 +1000)]
Fix DP_QC_FINDCHAIN_TOFIELD errors

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
20 months agoImplement extension DP_QC_FINDBOX
bones_was_here [Fri, 24 Feb 2023 18:53:08 +0000 (04:53 +1000)]
Implement extension DP_QC_FINDBOX

Returns a chain of entities that are touching a box (a simpler findradius);
supports DP_QC_FINDCHAIN_TOFIELD

Implements https://gitlab.com/xonotic/darkplaces/-/issues/373

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
20 months agoFix COLLISIONPARANOID build errors and warns
bones_was_here [Thu, 23 Feb 2023 10:59:16 +0000 (20:59 +1000)]
Fix COLLISIONPARANOID build errors and warns

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
20 months agoAdd cvars that disable linking of SOLID_NOT entities: [cl|sv]_areagrid_link_SOLID_NOT
bones_was_here [Tue, 21 Feb 2023 16:22:37 +0000 (02:22 +1000)]
Add cvars that disable linking of SOLID_NOT entities: [cl|sv]_areagrid_link_SOLID_NOT

This also removes the partial solution added in b1d6f1dfb96bedba50fbe394ca3f0c710f99381b https://gitlab.com/xonotic/darkplaces/-/merge_requests/78

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoOptimise bindable unicode codepoint range
bones_was_here [Sun, 5 Feb 2023 11:12:46 +0000 (21:12 +1000)]
Optimise bindable unicode codepoint range

This improves FPS on (specifically) the Xonotic key bindings menu
screen.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoMerge PR 'Fixed two keyboard bugs'
bones_was_here [Sun, 5 Feb 2023 11:05:52 +0000 (21:05 +1000)]
Merge PR 'Fixed two keyboard bugs'

See https://github.com/DarkPlacesEngine/darkplaces/pull/68

Commits:
5ca6703d5f57ebe18c1fc1a97c646ba468c49442
871cfdae9e48274eacb720e2423b9d8b3818bee9

Fixes https://gitlab.com/xonotic/darkplaces/-/issues/46
Fixes https://gitlab.com/xonotic/darkplaces/-/issues/51
Fixes https://gitlab.com/xonotic/darkplaces/-/issues/60
Fixes https://gitlab.com/xonotic/darkplaces/-/issues/147

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoAdd cvar sv_legacy_bbox_expand for disabling Quake entity bbox expansion
bones_was_here [Fri, 3 Feb 2023 04:51:14 +0000 (14:51 +1000)]
Add cvar sv_legacy_bbox_expand for disabling Quake entity bbox expansion

This avoids obscure bugs and awkward workarounds especially with CSQC player prediction.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoFix GCC 12 warns: comparison will always evaluate as true
bones_was_here [Mon, 30 Jan 2023 21:21:25 +0000 (07:21 +1000)]
Fix GCC 12 warns: comparison will always evaluate as true

Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/55

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoSimplify VID_SetMouse() calling logic
bones_was_here [Mon, 30 Jan 2023 20:01:16 +0000 (06:01 +1000)]
Simplify VID_SetMouse() calling logic

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agorefine edge cases handling to keynums/keystrings,
NaitLee [Mon, 30 Jan 2023 18:14:58 +0000 (02:14 +0800)]
refine edge cases handling to keynums/keystrings,
use the new constant `TINYSTR_LEN` in place of `sizeof(tinystr)` leftovers

Signed-off-by: NaitLee <naitli@foxmail.com>
21 months agoFixed two keyboard bugs:
NaitLee [Sun, 29 Jan 2023 14:09:37 +0000 (22:09 +0800)]
Fixed two keyboard bugs:
Fixed inability to bind non-ascii keys;
Fixed only the first character being input when using an Input Method

Signed-off-by: NaitLee <naitli@foxmail.com>
21 months agoRelease the mouse during loading screen
kiwixz [Sat, 28 Jan 2023 14:34:38 +0000 (15:34 +0100)]
Release the mouse during loading screen

Signed-off-by: kiwixz <kiwixz@outlook.com>
21 months agoMerge MR 'Reinstate the ability to override engine commands with QC commands'
bones_was_here [Tue, 24 Jan 2023 14:49:33 +0000 (00:49 +1000)]
Merge MR 'Reinstate the ability to override engine commands with QC commands'

See https://gitlab.com/xonotic/darkplaces/-/merge_requests/136

Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/64

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoCombine NetConn_UpdateSockets_Client() and NetConn_cl_netport_Callback()
bones_was_here [Tue, 24 Jan 2023 01:45:32 +0000 (11:45 +1000)]
Combine NetConn_UpdateSockets_Client() and NetConn_cl_netport_Callback()

These blocks must run together to avoid bug https://gitlab.com/xonotic/darkplaces/-/issues/376
Also, after a057e4757b55a90cbcdc287b3fdf54ccc2682315 the only
NetConn_UpdateSockets_Client() call site was in NetConn_cl_netport_Callback().

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoRemove the Xonotic +showscores kludge
bones_was_here [Tue, 24 Jan 2023 00:11:55 +0000 (10:11 +1000)]
Remove the Xonotic +showscores kludge

Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/64

See also: https://gitlab.com/xonotic/xonotic-data.pk3dir/-/merge_requests/1128
and 3912e78a6047f2c45b3ff4967df7a68ad4e1b994

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoReimplement the ability to override engine commands with QC commands
bones_was_here [Tue, 24 Jan 2023 00:11:40 +0000 (10:11 +1000)]
Reimplement the ability to override engine commands with QC commands

This was working in div0-stable and was removed in 46acef5491629d06eddb8e78ed01e50b175d2bd8

Due to previous improvements by LH & Cloudwalk, the behaviour is now better:
the new QC command appears in the console in addition to the engine one,
the new command takes priority and what's going on is clearer.
When the CSQC VM shuts down, the registered command is removed.

Also this time we can has documentation.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoKeep sockets opened after first disconnect
kiwixz [Mon, 23 Jan 2023 21:01:37 +0000 (22:01 +0100)]
Keep sockets opened after first disconnect

Signed-off-by: kiwixz <kiwixz@outlook.com>
21 months agoImprove client/listen curl transfer speed at low FPS
bones_was_here [Sat, 21 Jan 2023 01:49:27 +0000 (11:49 +1000)]
Improve client/listen curl transfer speed at low FPS

This is a huge boost for some libcurl versions, eg 7.74 in Debian 11

Fixes https://gitlab.com/xonotic/darkplaces/-/issues/375

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoAdd cvar scr_conheight and make loading progress visible under fullscreen console
bones_was_here [Fri, 20 Jan 2023 06:56:42 +0000 (16:56 +1000)]
Add cvar scr_conheight and make loading progress visible under fullscreen console

Also updates related cvar descriptions and increases default
scr_loadingscreen_maxfps to 20, 10 just looked too janky.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoMerge MR 'Refactor loading screen and fix it'
bones_was_here [Fri, 20 Jan 2023 03:08:50 +0000 (03:08 +0000)]
Merge MR 'Refactor loading screen and fix it'

See https://gitlab.com/xonotic/darkplaces/-/merge_requests/135

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
21 months agoRefactor loading screen and fix it
kiwixz [Wed, 18 Jan 2023 22:05:24 +0000 (23:05 +0100)]
Refactor loading screen and fix it

Signed-off-by: kiwixz <kiwixz@outlook.com>
21 months agoUse correct droptofloor distance for each Quake map format
bones_was_here [Tue, 17 Jan 2023 05:09:04 +0000 (15:09 +1000)]
Use correct droptofloor distance for each Quake map format

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
22 months agoRemove code duplication in messagemodes and commandmode
bones_was_here [Sat, 14 Jan 2023 08:40:37 +0000 (18:40 +1000)]
Remove code duplication in messagemodes and commandmode

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
22 months agoDisable messagemode and messagemode2 during demo playback
bones_was_here [Sat, 14 Jan 2023 07:49:43 +0000 (17:49 +1000)]
Disable messagemode and messagemode2 during demo playback

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
22 months agoUnload dlcache packs when changing map or disconnecting
bones_was_here [Thu, 12 Jan 2023 23:39:44 +0000 (09:39 +1000)]
Unload dlcache packs when changing map or disconnecting

Prevents content from the previous server and/or map from interfering with the next

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
2 years agoMinor sv_cullentities refactoring
bones_was_here [Mon, 7 Nov 2022 09:39:13 +0000 (19:39 +1000)]
Minor sv_cullentities refactoring

2 years agoImprove reliability and documentation of portal camera eyes
bones_was_here [Mon, 7 Nov 2022 09:23:16 +0000 (19:23 +1000)]
Improve reliability and documentation of portal camera eyes

Not all traces will succeed so we need to add the eye if a trace
succeeded within some recent time period, instead of only adding it when
a trace succeeded in the current frame.

Fixes https://gitlab.com/xonotic/darkplaces/-/issues/207
Fixes https://gitlab.com/xonotic/xonotic-data.pk3dir/-/issues/1596

2 years agoMerge MR 'Adding the natural curve mouse acceleration'
bones_was_here [Sat, 24 Sep 2022 08:00:59 +0000 (08:00 +0000)]
Merge MR 'Adding the natural curve mouse acceleration'
https://gitlab.com/xonotic/darkplaces/-/merge_requests/122

branch 'natural_acceleration'

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
2 years agoAdding the natural curve mouse acceleration
Francisco Parra PĂ©rez [Sat, 24 Sep 2022 08:00:57 +0000 (08:00 +0000)]
Adding the natural curve mouse acceleration

Signed-off-by: Draena <franparpe@disroot.org>
2 years agoREADME.md: add links to CREDITS.md and CONTRIBUTING.md
bones_was_here [Fri, 23 Sep 2022 16:31:25 +0000 (02:31 +1000)]
README.md: add links to CREDITS.md and CONTRIBUTING.md

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
2 years agoFix DEBUGGL warns & checking logic in R_Mesh_CreateFramebufferObject
bones_was_here [Fri, 22 Jul 2022 02:58:17 +0000 (12:58 +1000)]
Fix DEBUGGL warns & checking logic in R_Mesh_CreateFramebufferObject

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoImprove DEBUGGL
bones_was_here [Thu, 21 Jul 2022 23:49:16 +0000 (09:49 +1000)]
Improve DEBUGGL

glGetError() must be called in a loop to retrieve and reset
multiple error flags.

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoglquake.h: fix wrapper #ifndef
bones_was_here [Thu, 21 Jul 2022 20:27:58 +0000 (06:27 +1000)]
glquake.h: fix wrapper #ifndef

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoFix GCC 11 warns: r_shadow.c misleading indentation, also remove duplicated code
bones_was_here [Sat, 11 Jun 2022 06:41:40 +0000 (16:41 +1000)]
Fix GCC 11 warns: r_shadow.c misleading indentation, also remove duplicated code

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoFix GCC 11 warns: use uninitialized in R_CanSeeBox
bones_was_here [Sat, 11 Jun 2022 05:16:30 +0000 (15:16 +1000)]
Fix GCC 11 warns: use uninitialized in R_CanSeeBox

Introduced in 8ab339588b127e88e27bfa08f6eccbf9400b51f9

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoFix GCC 11 warns: Mod_INTERQUAKEMODEL_Load misleading indentation
bones_was_here [Fri, 10 Jun 2022 23:21:35 +0000 (09:21 +1000)]
Fix GCC 11 warns: Mod_INTERQUAKEMODEL_Load misleading indentation

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoFix GCC 11 warns: Con_Shutdown misleading indentation
bones_was_here [Fri, 10 Jun 2022 23:11:29 +0000 (09:11 +1000)]
Fix GCC 11 warns: Con_Shutdown misleading indentation

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoFix GCC 11 warns: Matrix4x4_FromArrayFloatGL overread
bones_was_here [Fri, 10 Jun 2022 22:33:57 +0000 (08:33 +1000)]
Fix GCC 11 warns: Matrix4x4_FromArrayFloatGL overread

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoFix GCC 11 warns: Matrix4x4_ToArray12FloatGL overflow
bones_was_here [Fri, 10 Jun 2022 03:48:46 +0000 (13:48 +1000)]
Fix GCC 11 warns: Matrix4x4_ToArray12FloatGL overflow

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoFix GCC 11 warns: Matrix4x4_FromArrayDoubleD3D overread
bones_was_here [Fri, 10 Jun 2022 03:24:09 +0000 (13:24 +1000)]
Fix GCC 11 warns: Matrix4x4_FromArrayDoubleD3D overread

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoFix GCC 11 warns: mismatched prototype args
bones_was_here [Mon, 6 Jun 2022 00:48:51 +0000 (10:48 +1000)]
Fix GCC 11 warns: mismatched prototype args

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoCheck macOS version < 12 to use old function name
Cloudwalk [Tue, 23 Aug 2022 19:05:08 +0000 (15:05 -0400)]
Check macOS version < 12 to use old function name

Fixes building on macOS < 12

2 years agoOptimize VectorNormalize macros by not doing the sqrt on 0 length, this also means...
Ashley 'LadyHavoc' Hale [Tue, 10 May 2022 20:31:29 +0000 (13:31 -0700)]
Optimize VectorNormalize macros by not doing the sqrt on 0 length, this also means it should be more friendly to the CPU intrinsics for 1/sqrt in a single instruction

2 years agoResolved .gitignore conflict
Ashley 'LadyHavoc' Hale [Mon, 2 May 2022 07:09:15 +0000 (00:09 -0700)]
Resolved .gitignore conflict

2 years agoUpdate SDL2.nuget package to 2.0.22, add some more things to .gitignore.
Ashley 'LadyHavoc' Hale [Mon, 2 May 2022 07:07:14 +0000 (00:07 -0700)]
Update SDL2.nuget package to 2.0.22, add some more things to .gitignore.

2 years agoAdded convex.[ch] to compute brush shapes from point clouds for use in experimental...
Ashley 'LadyHavoc' Hale [Mon, 2 May 2022 07:05:28 +0000 (00:05 -0700)]
Added convex.[ch] to compute brush shapes from point clouds for use in experimental visibility code I'm tinkering with

2 years agoAdd CONTRIBUTING.md for contributing guidelines
Cloudwalk [Fri, 22 Apr 2022 23:43:39 +0000 (19:43 -0400)]
Add CONTRIBUTING.md for contributing guidelines

Signed-off-by: Cloudwalk <cloudwalk@icculus.org>
2 years agoMerge PR 'Curl improvements'
bones_was_here [Sun, 27 Mar 2022 16:17:00 +0000 (02:17 +1000)]
Merge PR 'Curl improvements'

Curl versions older than 7.57.0 (found on Debian Stretch and older) do
not implicitly initialize openssl, which leads https requests to fail.

In the course of debugging this issue verbose curl requests were needed,
so that has also been added as a cvar.

https://github.com/DarkPlacesEngine/darkplaces/pull/36

commits: ceaa16c78a1f43165206566d4f9c872664f7e680
1a711173535d4b5f4364b66177745aab165330d8

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoMerge PR 'Add a third masterextra and default it to dpm.dpmaster.org'
bones_was_here [Sun, 27 Mar 2022 15:46:28 +0000 (01:46 +1000)]
Merge PR 'Add a third masterextra and default it to dpm.dpmaster.org'

dpm.dpmaster.org has been serving as a xonotic master (as
dpm4.xonotic.xyz and dpm6.xonotic.xyz) for three months now, and I offer
it here in hopes it's of use.

https://github.com/DarkPlacesEngine/darkplaces/pull/33

commits: 8289ce6a72d06635b6667d7e6e80ee0890ea7c09

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoExplicitly initialize openssl for older curl versions
Gary Moon [Sat, 26 Mar 2022 21:15:31 +0000 (17:15 -0400)]
Explicitly initialize openssl for older curl versions

Signed-off-by: Gary Moon <gary@garymoon.net>
2 years agoAdding developer_curl to print verbose curl output
Gary Moon [Sat, 26 Mar 2022 21:14:46 +0000 (17:14 -0400)]
Adding developer_curl to print verbose curl output

Signed-off-by: Gary Moon <gary@garymoon.net>
2 years agoAdd a third masterextra and default it to dpm.dpmaster.org
Gary Moon [Sun, 20 Mar 2022 18:49:32 +0000 (14:49 -0400)]
Add a third masterextra and default it to dpm.dpmaster.org

dpm.dpmaster.org has been serving as a xonotic master (as
dpm4.xonotic.xyz and dpm6.xonotic.xyz) for three months now, and I offer
it here in hopes it's of use.

Signed-off-by: Gary Moon <gary@garymoon.net>
2 years agoAdd cvar snd_cdautopause: optional CD track pause during game pause
bones_was_here [Fri, 18 Mar 2022 07:28:57 +0000 (17:28 +1000)]
Add cvar snd_cdautopause: optional CD track pause during game pause

Previously it was mandatory and if not desired, had to be hacked around
with stuffcmd.

Also fixes:
- the CD track always being resumed when resuming from game pause,
even when muted, Ref: CDAudio_SetVolume()
- bgmvolume < 0 not pausing the CD track

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoStart render module CL_MeshEntities immediately prior to Models
bones_was_here [Mon, 28 Feb 2022 18:16:58 +0000 (04:16 +1000)]
Start render module CL_MeshEntities immediately prior to Models

Fixes https://gitlab.com/xonotic/darkplaces/-/issues/366

Starting CL_MeshEntities any later can cause the bug during r_restart.

ca03733fba98709e25d9a02882ac947f4144af6a effectively added dependency
of the Models module on the CL_MeshEntities module,
at least in certain situations where starting the Models module
results in calls to Draw_CachePic() and DrawQ_*()
which trigger the bug when they call Mod_Mesh_GetTexture().

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoImprove debug logging for render modules
bones_was_here [Mon, 28 Feb 2022 18:00:19 +0000 (04:00 +1000)]
Improve debug logging for render modules

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoREADME, sdl, sys, makefile: Bring up macOS support
Cloudwalk [Mon, 21 Feb 2022 02:30:56 +0000 (21:30 -0500)]
README, sdl, sys, makefile: Bring up macOS support

* Fixed up the makefile to support modern macOS builds
* Fixed up sys.h to detect macOS properly
* Added macOS build instructions. Dependencies are now fetched using Homebrew.
* Remove now-unneeded SDLMain.h and .m files

Signed-off-by: Cloudwalk <cloudwalk@icculus.org>
2 years agoREADME: Add link to Matrix space
bones_was_here [Fri, 11 Feb 2022 07:36:57 +0000 (17:36 +1000)]
README: Add link to Matrix space

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years ago README: Remove Discord invite link. The Discord server is now deprecated
Cloudwalk [Fri, 4 Feb 2022 04:07:56 +0000 (23:07 -0500)]
 README: Remove Discord invite link. The Discord server is now deprecated

I'm unable to sustain the DarkPlaces engine community on Discord. They have
falsely disabled my main account and now my second account, this time
without an email explaining the reason. I have a 3rd account that is still
active. They have not responded to my emails asking for them to review
the ban of my main account and they have the gall to nuke my second
account as well.

They are flooded with support tickets likely because it is incredibly easier
to hijack a Discord account than any other account due to the simple fact
that Discord does NOT require email verification to change passwords. God
only knows what other horrors lie beneath that Eldritch abomination of
duct-taped JavaScript.

I was not banned from Discord as I was able to create the third account using
the same IP address. They ban IPs if you're banned from Discord. I can no
longer, in good conscience, give this shit, incompetent, bullshit company
a single neuron of mindshare going forward. Other arrangements for a community
hangout are to be determined but are not available at this time. The IRC,
obviously, remains available.

Until they get their shit together (if they do), FUCK Discord and FUCK
everything they stand for.

Signed-off-by: Cloudwalk <cloudwalk@icculus.org>
2 years agoMerge PR 'sv_gameplayfix_stepmultipletimes 1: Prevent players moving too far/fast...
bones_was_here [Sun, 16 Jan 2022 20:54:53 +0000 (06:54 +1000)]
Merge PR 'sv_gameplayfix_stepmultipletimes 1: Prevent players moving too far/fast when stepping up a staircase'

After the player made some horizontal progress, and before stepping up, it's necessary to recalculate the remaining time and distance for the move. Previously the step up made the player travel (up to) nearly the move's full distance, again.

https://github.com/DarkPlacesEngine/darkplaces/pull/10

branch: bones_was_here/stepup_distance
commits: 365e221966b15c24c6e2f4cbb6e619b0db443ebf

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoMerge PR 'sv_gameplayfix_stepmultipletimes 1: Make stepping up while jumping reliable'
bones_was_here [Sun, 16 Jan 2022 20:52:00 +0000 (06:52 +1000)]
Merge PR 'sv_gameplayfix_stepmultipletimes 1: Make stepping up while jumping reliable'

When the player is hard up against a solid surface trying to climb up, they are blocked from gaining any significant speed by the solid, so the distance they could potentially move into the solid at that speed can be well under 0.03125 units, causing the step up to fail.

The same can happen when the player is stepping up with less than 0.03125 units of distance left on their move, causing them to stop dead when climbing stairs at speed with sv_gameplayfix_stepmultipletimes 1.

https://github.com/DarkPlacesEngine/darkplaces/pull/11

branch: bones_was_here/stepup_reliability
commits: 4c6cb7882855468365644ac65b6eb86a3e82a812

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoMerge MR 'Set groundentity when sv_gameplayfix_downtracesupportsongroundflag detects...
bones_was_here [Sun, 16 Jan 2022 20:45:18 +0000 (06:45 +1000)]
Merge MR 'Set groundentity when sv_gameplayfix_downtracesupportsongroundflag detects a floor'

Fixes movers not carrying players who walk onto them with no z
velocity, when sv_gameplayfix_nogravityonground is enabled

https://github.com/DarkPlacesEngine/darkplaces/pull/23

branch: bones_was_here/walking_groundentity_fix
commits: 7ea07939bef0cbe85c54d9f68cb924198b0b1f64

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoMerge MR 'Make trace entity culling optional for spectators'
bones_was_here [Thu, 13 Jan 2022 04:29:57 +0000 (14:29 +1000)]
Merge MR 'Make trace entity culling optional for spectators'

https://gitlab.com/xonotic/darkplaces/-/merge_requests/115
https://github.com/DarkPlacesEngine/darkplaces/pull/13

branch: bones_was_here/trace
commits: 2c1140a494598d75a12c01f82d7c9accff974fbb

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoDoxygen: more tweaks
bones_was_here [Wed, 12 Jan 2022 17:35:20 +0000 (03:35 +1000)]
Doxygen: more tweaks

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoDoxygen: disable CALL_GRAPH and CALLER_GRAPH
bones_was_here [Wed, 12 Jan 2022 15:26:38 +0000 (01:26 +1000)]
Doxygen: disable CALL_GRAPH and CALLER_GRAPH

Many of these graphs are too huge and complex to be readable,
and they use > 8GiB on disk and a lot of CPU time to generate.
They can be enabled for specific funcs if required.

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years ago.gitignore: add kdevelop files
bones_was_here [Wed, 12 Jan 2022 15:02:52 +0000 (01:02 +1000)]
.gitignore: add kdevelop files

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoCOPYING: Remove formfeed characters that don't serve any purpose but make vscode...
Cloudwalk [Sun, 9 Jan 2022 15:55:09 +0000 (10:55 -0500)]
COPYING: Remove formfeed characters that don't serve any purpose but make vscode annoyed

2 years agoSet groundentity when sv_gameplayfix_downtracesupportsongroundflag detects a floor
bones_was_here [Sun, 9 Jan 2022 11:31:12 +0000 (21:31 +1000)]
Set groundentity when sv_gameplayfix_downtracesupportsongroundflag detects a floor

Fixes movers not carrying players who walk onto them with no z
velocity, when sv_gameplayfix_nogravityonground is enabled

Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/22
sv_gameplayfix_nogravityonground 1 prevents movers from detecting players #22

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoPrevent players moving too far when stepping up
bones_was_here [Mon, 27 Sep 2021 23:50:35 +0000 (09:50 +1000)]
Prevent players moving too far when stepping up

After the player made some horizontal progress, and before stepping up, it's necessary to recalculate the remaining time and distance for the move. Previously the step up made the player travel (up to) nearly the move's full distance, again.

Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/9
sv_gameplayfix_stepmultipletimes 1: players travel further than their velocity should allow #9

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoMake stepping up while jumping reliable
bones_was_here [Mon, 27 Sep 2021 23:31:48 +0000 (09:31 +1000)]
Make stepping up while jumping reliable

When the player is hard up against a solid surface trying to climb up, they are blocked from gaining any significant speed by the solid, so the distance they could potentially move into the solid at that speed can be well under 0.03125 units, causing the step up to fail.

The same can happen when the player is stepping up with less than 0.03125 units of distance left on their move, causing them to stop dead when climbing stairs at speed with sv_gameplayfix_stepmultipletimes 1.

Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/8
Stepping up is unreliable #8

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
2 years agoDoxygen: Set DOT_NUM_THREADS to 0, being automatic, disable side bar because its...
LegendGuard [Tue, 28 Dec 2021 22:13:31 +0000 (23:13 +0100)]
Doxygen: Set DOT_NUM_THREADS to 0, being automatic, disable side bar because its visualization is messy (#21)

* Upgrade doxygen version, add better implementations, sidebar added

More updates from Doxygen enhancing document visualization

* Set DOT_NUM_THREADS to 0, being automatic, disable side bar because its visualization is messy

Set DOT_NUM_THREADS to 0, being automatic, disable side bar because its visualization is messy

2 years agoDoxygen: configure logo and add link to README
bones_was_here [Tue, 28 Dec 2021 21:07:33 +0000 (07:07 +1000)]
Doxygen: configure logo and add link to README

2 years agoUpgrade doxygen version, add better implementations, sidebar added (#20)
LegendGuard [Tue, 28 Dec 2021 21:00:56 +0000 (22:00 +0100)]
Upgrade doxygen version, add better implementations, sidebar added (#20)

More updates from Doxygen enhancing document visualization

2 years agoMerge pull request #19 from LegendaryGuard/patch-1: Improving Doxyfile
bones_was_here [Tue, 28 Dec 2021 02:15:10 +0000 (12:15 +1000)]
Merge pull request #19 from LegendaryGuard/patch-1: Improving Doxyfile

Improving Doxyfile, adding GENERATE_TREEVIEW and SEARCHENGINE variable features

2 years agoImproving Doxyfile, adding GENERATE_TREEVIEW and SEARCHENGINE variable features
LegendGuard [Mon, 27 Dec 2021 23:44:25 +0000 (00:44 +0100)]
Improving Doxyfile, adding GENERATE_TREEVIEW and SEARCHENGINE variable features

I would like to propose that there's a Doxygen page in https://xonotic.org/doxygen/darkplaces/, and needs to show a navigation bar and a search engine. Documentation tools need to be improved.

2 years ago.gitignore: Update to ignore .cache directory created by clangd and build directory...
Cloudwalk [Fri, 24 Dec 2021 14:28:42 +0000 (09:28 -0500)]
.gitignore: Update to ignore .cache directory created by clangd and build directory for future cmake system

3 years agoprotocol: Fix off-by-one when appending space in Protocol_Names
Cloudwalk [Mon, 4 Oct 2021 12:25:25 +0000 (08:25 -0400)]
protocol: Fix off-by-one when appending space in Protocol_Names

3 years agocmd: Check for empty cbuf when inserting too
Cloudwalk [Sun, 19 Sep 2021 03:42:58 +0000 (23:42 -0400)]
cmd: Check for empty cbuf when inserting too

3 years agoFix an IO exception on exit when using -condebug because FS_Close was trying to log...
Ashley 'LadyHavoc' Hale [Sat, 18 Sep 2021 21:50:14 +0000 (14:50 -0700)]
Fix an IO exception on exit when using -condebug because FS_Close was trying to log something but the logfile is already closed, now tracks logfile in a local variable so logfile can be set to NULL sooner.

3 years agoFix a bug in Cvar_RegisterVirtual which was corrupting memory when adding a second...
Ashley 'LadyHavoc' Hale [Sat, 18 Sep 2021 21:32:53 +0000 (14:32 -0700)]
Fix a bug in Cvar_RegisterVirtual which was corrupting memory when adding a second alias to a cvar.

3 years agoAdd packages.config to make nuget work for vs2019
Ashley 'LadyHavoc' Hale [Sat, 18 Sep 2021 19:38:22 +0000 (12:38 -0700)]
Add packages.config to make nuget work for vs2019

3 years agocom_list: Require type explicitly. Remove Q_typeof as typeof and decltype are unavail...
Cloudwalk [Fri, 17 Sep 2021 16:02:00 +0000 (12:02 -0400)]
com_list: Require type explicitly. Remove Q_typeof as typeof and decltype are unavailable in MSVC

3 years agoqdefs: Change ALWAYSINLINE -> ALWAYS_INLINE
Cloudwalk [Fri, 17 Sep 2021 14:45:32 +0000 (10:45 -0400)]
qdefs: Change ALWAYSINLINE -> ALWAYS_INLINE

3 years agoqdefs: Check _MSC_VER instead of incorrect MSVC
Cloudwalk [Fri, 17 Sep 2021 14:42:40 +0000 (10:42 -0400)]
qdefs: Check _MSC_VER instead of incorrect MSVC

3 years agosv_main: Add campaign cvar. Set 1 if not coop or deathmatch (Quake rerelease compatib...
Cloudwalk [Fri, 20 Aug 2021 14:22:20 +0000 (10:22 -0400)]
sv_main: Add campaign cvar. Set 1 if not coop or deathmatch (Quake rerelease compatibility)

3 years agocommon: Move com_game headers to new com_game.h
Cloudwalk [Sat, 31 Jul 2021 16:55:59 +0000 (12:55 -0400)]
common: Move com_game headers to new com_game.h

3 years agocommon: Move filematch headers to new filematch.h
Cloudwalk [Sat, 31 Jul 2021 16:45:42 +0000 (12:45 -0400)]
common: Move filematch headers to new filematch.h

3 years agocommon: Move infostring functions to new com_infostring.c
Cloudwalk [Sat, 31 Jul 2021 16:41:58 +0000 (12:41 -0400)]
common: Move infostring functions to new com_infostring.c