Alibek Omarov
46add4784b
ref: gl: extract studio draw mesh branch into it's own function, refactoring
2026-08-05 04:17:40 +05:00
Alibek Omarov
fe62e61aa4
3rdparty: nanogl: update, again
2026-08-05 01:00:12 +05:00
Alibek Omarov
de74ce9767
ref: add r_studio_builtin_renderer cvar to use engine's StudioModelRenderer. It gives no benefit other than for debugging purposes
2026-08-05 00:15:23 +05:00
Alibek Omarov
8c89579c35
3rdparty: nanogl: update
2026-08-04 21:58:54 +05:00
Alibek Omarov
18dddaf1a5
3rdparty: nanogl: update
2026-08-03 23:44:48 +05:00
Alibek Omarov
d3bcdc6c06
engine: imagelib: Image_SaveWAD refactoring
2026-08-03 21:55:03 +05:00
Andrey Akhmichin
c0a40f6e03
Documentation: opensource-mods.md: add Zombie Panic.
2026-08-03 18:43:59 +08:00
Andrey Akhmichin
e3e459bb67
Documentation: supported-mod-list.md: add Half-Life: Sum.
2026-08-02 18:12:30 +05:00
Andrey Akhmichin
badda6c585
Documentation: opensource-mods.md: add Half-Life: Sum.
2026-08-02 18:05:46 +05:00
Andrey Akhmichin
db68b7c6e7
Documentation: supported-mod-list.md: update.
2026-08-01 19:20:22 +05:00
Andrey Akhmichin
841b2bcf5a
Documentation: opensource-mods.md: update.
2026-08-01 19:19:50 +05:00
Alibek Omarov
a5fb74eb8f
engine: use XASH_OSX macro
2026-08-01 16:12:04 +05:00
Alibek Omarov
31d44f85a7
engine: implement reading hardware serial ID on Mac, implement reading MAC addresses on *BSDs, refactoring
2026-08-01 16:12:04 +05:00
Alibek Omarov
24f8525fad
engine: server: refactoring.
2026-08-01 16:12:04 +05:00
SLB8910
04fbe1a356
CONTRIBUTING.md: fixed horrible grammer
...
made contributing.md actually readable
2026-07-30 20:55:09 +05:00
Andrey Akhmichin
ecda80fb9a
Documentation: supported-mod-list.md: update.
2026-07-29 02:43:00 +05:00
Владислав Сухов
9f14c48787
3rdparty: mainui: update
2026-07-27 18:47:53 +04:00
Владислав Сухов
8b15bc9a96
3rdparty: mainui: update
2026-07-26 18:08:54 +05:00
Andrey Akhmichin
e6913c9ce2
Documentation: opensource-mods.md: update.
2026-07-26 08:24:34 +05:00
lewa_j
b4495238d9
3rdparty: gl4es: update from upstream, with msvc build fix
2026-07-25 17:33:13 +03:00
lewa_j
635b382c1d
gl4es: msvc: suppress warning spam from CHECK_SHADER: warning C4098: 'void' function returning a value
...
Same flag is used in gl4es's CMakeLists
2026-07-25 15:26:25 +03:00
Terence Noone
7fbd461f83
engine: Format code
...
Ran uncrustify on each file
2026-07-24 14:23:39 +05:00
Terence Noone
eb0ff8e631
engine: Implement SDL3 resizing/mode switching
...
Adds the ability to switch to fullscreen, windowed, and borderless, as
well as changing fullscreen mode.
2026-07-24 14:23:39 +05:00
Terence Noone
f50e61403f
engine: Fix SDL3 support
...
Gets SDL3 building again on macOS. The game is able to boot to the main
menu and play with hlsdk-portable and HL assets. Some bugs when changing
video modes.
2026-07-24 14:23:39 +05:00
Alibek Omarov
2cf8c63631
engine: server: fix a typo, we should set pmove frametime before calling server pmove, instead of server global pmove, like GoldSrc
...
Thanks to @dkenw for drawing attention to this issue.
2026-07-22 17:36:32 +05:00
Alibek Omarov
e09773c912
engine: server: add challenge to A2S_GOLDSRC_RULES and A2S_GOLDSRC_PLAYERS
2026-07-22 10:03:59 +05:00
Alibek Omarov
3a15357dc8
engine: server: drop A2A_NETINFO
2026-07-22 10:03:59 +05:00
Sergey Degtyar
2127735456
engine: implement GoldSrc A2S query for NetAPI
...
As Xash also supports GoldSrc like queries, it's netinfo is dropped.
2026-07-22 10:03:59 +05:00
Alibek Omarov
e0ab44213a
Documentation: protocol: connectionless: add GoldSrc A2S queries
2026-07-22 10:03:59 +05:00
Buggem's Fedora PC
f2166a2c9d
ref: soft: Try to stop decal->pnext loops from recursing infinitely
...
Doesn't fix the root cause of the problem, which is the mysterious setting of decal->pnext to decal which doesn't happen in GL, but does act as a blockade and a temporary fix
2026-07-21 15:16:32 +05:00
Alibek Omarov
009855c193
scripts: waifulib: clang_format: don't abort configure when clang-format is too old, just disable the format command
2026-07-19 07:37:01 +05:00
ksagameng
f0ea3a194a
platform: ios: Remake launch dialog using UIAlertController
2026-07-15 15:16:14 +05:00
Alibek Omarov
9f2b8954e9
utils: add new tool xash-clang-format, a wrapper around clang-format that adds our formatting extensions
2026-07-01 22:53:52 +05:00
Alibek Omarov
2166dbde66
3rdparty: mainui: update
2026-06-30 23:25:50 +05:00
Alibek Omarov
4c109a0c6c
engine: propagate challenge to client connect message
2026-06-30 23:24:16 +05:00
Alibek Omarov
36c71c2610
engine: fixes found by fuzzing sprite loader: mostly float-to-int conversions and overflows
2026-06-30 22:12:01 +05:00
Alibek Omarov
e2d6b7ab28
ref: gl: do not deadname LadyHavoc
2026-06-30 22:12:01 +05:00
Alibek Omarov
8ccb9dea3f
engine: add sprite model loading fuzzing, decouple fuzzing from tests
2026-06-30 22:12:01 +05:00
Alibek Omarov
34467bfe9a
ref: gl: make R_AddDynamicLights only iterate through actually lit box
2026-06-30 22:12:01 +05:00
Владислав Сухов
b1d9eef896
Documentation: donate: refine contribution info and add PayPal link
2026-06-24 23:48:39 +05:00
Alibek Omarov
c2ac632446
engine: client: s/cls.legacymode/cls.net_protocol/g
2026-06-22 18:42:56 +05:00
Alibek Omarov
365c126de6
engine: client: fix uninitlaized variable, treat legacy info response servers as 48 even though it's incorrect
2026-06-22 18:34:55 +05:00
Alibek Omarov
44313e624c
engine: client: fix parsing of legacy goldsrc A2S_INFO response format
2026-06-22 17:39:42 +05:00
Alibek Omarov
2f776a6173
engine: add overflow checks to sprite loader
2026-06-22 17:39:42 +05:00
Владислав Сухов
190fa1bab8
3rdparty: mainui: update
2026-06-22 09:54:57 +05:00
Alibek Omarov
3366ad06d0
wscript: add yy-thunks library to help support the holy cow of windows users
2026-06-21 11:16:03 +05:00
Alibek Omarov
57206b3651
client: parse: fix svc_spawnbaseline entity type delta table determine order
2026-06-21 10:34:33 +05:00
Alibek Omarov
d9ecd03b4a
client: parse: fix default attenuation value for goldsrc sound packet
2026-06-21 10:12:56 +05:00
Alibek Omarov
2de4d0d364
common: fix usercmd_t::msec type in q_client.h
2026-06-21 09:45:50 +05:00
auewe
cc3889146c
3rdparty: mainui: update
2026-06-20 08:14:04 +05:00
Alibek Omarov
09f5886751
readme: add note about third party builds
2026-06-17 20:09:15 +05:00
Alibek Omarov
fb5b4fed6e
filesystem: VFileSystem009: fix DeleteFile
2026-06-16 15:13:30 +05:00
Alibek Omarov
1e31fbcd51
ref: shut up DecalShoot about decals must hit mod_brush
...
This is an annoying message that's caused by the game code. Decals, without
custom renderer, cannot be rendered on non-brush entities, and everybody knows
that anyway.
2026-06-14 07:22:30 +05:00
Alibek Omarov
b2a5f0db5a
engine: masterlist: fix addmaster command not allowing third optional argument
2026-06-09 21:47:08 +05:00
Alibek Omarov
abd7b5ccdd
engine: masterlist: change parsing static server list from by token to by line
2026-06-08 22:17:21 +05:00
Alibek Omarov
8c9cd59c71
engine: http: fix the bug where maxconnections wasn't followed when many files were queued at once, bump it back to 5 concurrent connections
2026-06-07 17:29:41 +05:00
Alibek Omarov
c79b29687c
engine: http: cache resolve result in httpserver_t
2026-06-07 17:18:28 +05:00
Alibek Omarov
1eb922a0f1
engine: http: also lazy allocate buffer for query/response
2026-06-07 17:17:54 +05:00
Alibek Omarov
f6e36994be
engine: http: lazy open download files, to avoid wasting too much file descriptors
2026-06-07 17:09:59 +05:00
Alibek Omarov
e83ba6509e
3rdparty: mbedtls: make common compat.c for all platforms we want to support
2026-06-07 07:08:24 +05:00
Alibek Omarov
5cfb67940b
3rdparty: mbedtls: add psvita support
2026-06-07 06:39:50 +05:00
Alibek Omarov
e31c893852
wscript: enable bcrypt on Windows, add entropy generator that avoids usage of bcrypt for our 32-bit builds, allowing them to run on Windows XP
2026-06-07 06:39:50 +05:00
Alibek Omarov
85e5f032d8
scripts: gha: remove bundled mbedTLS on Switch
2026-06-07 06:39:50 +05:00
Alibek Omarov
92fd51ad99
engine: http: don't allow CRLF in URLs, fix memory leaks
2026-06-07 06:11:39 +05:00
Alibek Omarov
5480055997
engine: http: use thin TLS backend in HTTP client
2026-06-07 05:56:54 +05:00
Alibek Omarov
d634c6aad5
engine: http: use separate mempool for HTTP client
2026-06-07 05:56:54 +05:00
Alibek Omarov
034efb3b31
engine: http: add TLS backend using mbedTLS
2026-06-07 05:56:54 +05:00
Alibek Omarov
eae45b2e81
engine: wscript: link in mbedtls
2026-06-07 05:56:54 +05:00
Alibek Omarov
567d279007
engine: wscript: drop unfinished work on curl
2026-06-07 05:56:54 +05:00
Alibek Omarov
27f8385bb1
wscript: wire up mbedtls
2026-06-07 05:56:54 +05:00
Alibek Omarov
1cfabd5ec9
3rdparty: mbedtls: initial add
2026-06-07 05:56:54 +05:00
Alibek Omarov
ab6672fb8a
3rdparty: xash-extras: update in preparation for TLS integration
2026-06-07 03:46:11 +05:00
Alibek Omarov
2d39a7fa24
engine: fix skewed ping calculation, drop --debug-all-servers
2026-06-07 03:17:45 +05:00
Alibek Omarov
7db12ade3a
3rdparty: mainui: update
2026-06-07 03:16:57 +05:00
Alibek Omarov
61a84f6953
engine: cache negative master server DNS failures longer, remove dead UDP master server addresses
2026-06-07 02:24:30 +05:00
Alibek Omarov
75ffba64c5
engine: http: add support for redirects
2026-06-06 22:55:47 +05:00
Alibek Omarov
c134840148
engine: masterlist: add UDP master server deprecation notice, fix static master list address
2026-06-06 19:53:37 +05:00
Alibek Omarov
51d1bfbe08
3rdparty: mainui :update
2026-06-06 03:30:26 +05:00
Alibek Omarov
79ff8332ac
3rdparty: mainui: update
2026-06-06 02:51:41 +05:00
Alibek Omarov
f155005bb1
engine: move out MAX_CLIENTS definition
2026-06-06 02:50:30 +05:00
Alibek Omarov
a8de8cf5e6
Documentation: protocol: document new static master protocol
2026-06-06 02:47:39 +05:00
Alibek Omarov
74fcab9bfb
engine: implement new static master server protocol
2026-06-06 02:47:39 +05:00
Alibek Omarov
efad71bcc9
engine: in-memory HTTP downloader
2026-06-06 02:47:39 +05:00
Alibek Omarov
c444ab882a
engine: client: drop key ms protocol extension
2026-06-06 02:47:39 +05:00
🗣🗣: "ùồầỳ hợp lý quãi chất thế nhờ"🤫🗿🔥🔥
8fad3bbad6
public: wrap macro arguments in parentheses
2026-06-05 21:55:59 +05:00
Alibek Omarov
4cd6d25ee6
engine: common: account for header size when sending first file fragment (which contains filename + compressor on goldsrc)
2026-06-05 08:42:46 +05:00
Alibek Omarov
33e47ef5a9
engine: fix engine.log output
2026-06-02 06:44:39 +05:00
Alibek Omarov
d19e9606e9
3rdparty: mainui: update
2026-06-02 06:25:52 +05:00
Alibek Omarov
fe1827f5e4
engine: common: don't let executing @ prefixed commands and cvars for unprivileged mode
2026-06-02 06:13:59 +05:00
Alibek Omarov
918323fcea
engine: upload logo on connect always, add @cl_logoupdate cvar to clearly signal logo changes from DLL side
2026-06-02 06:10:24 +05:00
Alibek Omarov
e75256ec9d
3rdparty: mainui: update
2026-06-02 05:59:09 +05:00
Alibek Omarov
47582182e6
engine: server: set flag that we are expecting resource list to come from the client to not apply resource list rate limit
2026-06-02 02:56:19 +05:00
Alibek Omarov
4a2c218cfc
engine: common: xrcon: oops, fix build, forgot to stage the change
2026-06-01 21:32:45 +05:00
Alibek Omarov
376817478d
engine: platform: sdl2: add expiremntal flag -nosteaminput that would remove set by Steam SDL environment variables and let us use gamepad directly
2026-06-01 18:55:38 +05:00
Alibek Omarov
b96dc61e31
engine: common: xrcon: do not print misleading "client disconnected" message on engine shutdown
2026-06-01 18:49:50 +05:00
Alibek Omarov
b997d5657b
engine: common: xrcon: refactor macros and magic numbers
2026-06-01 18:49:50 +05:00
Alibek Omarov
e9f5bca5c4
engine: common: make single shared print buffer with stripped colorcodes
...
- in xrcon, make delay and timeout macros into cvars
2026-06-01 18:49:50 +05:00
Alibek Omarov
b36f107a2e
engine: common: xrcon: use uint32_t for message types instead of null terminated small strings
2026-06-01 18:49:50 +05:00
Alibek Omarov
a305ffb33f
engine: common: xrcon: replace XRCON_STATE with XRCON_PARSER for parser state machine types
2026-06-01 18:49:50 +05:00
Alibek Omarov
1cc1b60b10
engine: common: xrcon: add NUL at the end of print message
2026-06-01 18:49:50 +05:00
Alibek Omarov
648db4a2b3
engine: common: xrcon: fix potential overflow and another recursion case
2026-06-01 18:49:50 +05:00
SNMetamorph
2c0c20dfe6
Documentation: added XRCON protocol description
2026-06-01 18:49:50 +05:00
SNMetamorph
17e167432a
engine: common: xrcon: various code fixes
2026-06-01 18:49:50 +05:00
SNMetamorph
97b8ca6b38
engine: common: xrcon: strip color codes before sending message to client
2026-06-01 18:49:50 +05:00
SNMetamorph
6dabc6f2c5
engine: common: initial implementation of XRCON server
2026-06-01 18:49:50 +05:00
SNMetamorph
e808038fee
engine: common: add function NET_MakeSocketReuseAddr
2026-06-01 18:49:50 +05:00
Владислав Сухов
a60d0d142d
engine: add support for legacy 'm' query responses
2026-05-31 03:11:01 +05:00
Alibek Omarov
bf5d88d9a4
engine: net_chan: reset file fragment buffers early, right after they are consumed
2026-05-30 03:57:12 +05:00
Alibek Omarov
adca77672a
engine: client: fix crash when loading a save that references non-existing word
2026-05-30 03:53:16 +05:00
Alibek Omarov
ef5295c5ab
engine: workaround the misalignment issue when reading textures in BSP
2026-05-30 03:53:16 +05:00
Alibek Omarov
37da317133
filesystem: tests: fix build on Windows
2026-05-27 15:17:20 +05:00
Alibek Omarov
c93cb49a9e
engine: client: fix typo in COM_RandomLong
2026-05-27 01:06:27 +05:00
Alibek Omarov
4f342fb19a
filesystem: tests: reduce boilerplate, add filecopy test
2026-05-27 00:39:07 +05:00
Alibek Omarov
8ee3544507
filesystem: use sendfile for faster FS_FileCopy on Linux
2026-05-27 00:34:49 +05:00
Alibek Omarov
d44e6d5db7
android: drop 64-bit x86 build, as no known 64-bit only (i.e. with no 32-bit support) x86 deployments of Android are known
2026-05-26 23:11:23 +05:00
Alibek Omarov
21cc9feca7
engine: client: don't require cookie echo when server didn't negotiate NET_EXT_NETCHAN_COOKIE
2026-05-26 03:10:31 +05:00
Alibek Omarov
e87b14468d
ref: when entity model is NULL, the entity is player and we're drawing in menu, skip this entity silently
...
The menu relies on the fact that model is set from player's userinfo, and if it has bogus model, it will
trip on the nullptr model assert
2026-05-26 02:57:47 +05:00
Alibek Omarov
e01921dd10
engine: server: bump datagram overflow messages to -dev 2
2026-05-26 02:57:47 +05:00
Alibek Omarov
e5c4e49782
engine: client: introduce cookie protocol extension, when client connects to the server, it provides randomized 64-bit value to be prefixed into netchan messages
...
* Prevent clientuseragent from leaking data.
* Process qport in netchan, cleaning up code
2026-05-26 02:14:58 +05:00
Alibek Omarov
d61983a5d2
engine: randomize outgoing_sequence on server side
2026-05-26 02:14:58 +05:00
Alibek Omarov
c3f4eb026b
engine: only allow net_sequence_window packets, prevent sudden, usually impossible, jumps
2026-05-26 02:14:58 +05:00
SNMetamorph
fe9b8bcaca
engine: enable warning when client or server tries to access non-existent cvar
2026-05-25 13:44:26 +05:00
Czarintax
33cd20b21b
engine: server: fix SV_ProcessFile crash from short malformed filename ( #2606 )
2026-05-25 13:42:03 +05:00
SNMetamorph
78a3b958dd
engine: client: disable saving testing cvars that potentially could break game
2026-05-24 15:14:15 +04:00
SNMetamorph
0e56fa10f9
engine: client: make cvar cl_ticket_generator privileged
2026-05-24 15:14:15 +04:00
SNMetamorph
b6a67b56b0
engine: client: make cvar cl_steam_broker_addr privileged
...
(cherry picked from commit e97442f1b04c81ee406779963bd7d58cd586aecf)
2026-05-24 15:14:15 +04:00
Alibek Omarov
eb9de1cac8
engine: fix NET_IsReservedAdr checks for IPv6, treat IPv4-mapped-as-IPv6 as IPv4
2026-05-23 21:23:10 +05:00
Alibek Omarov
24abd2deb2
engine: host: improve missing game libraries message so it's easier to understand
2026-05-23 21:23:10 +05:00
Alibek Omarov
996dcc637d
engine: tighten file fragment msg by the (possibly) trunctated frag_message
2026-05-23 21:23:10 +05:00
Alibek Omarov
8b89bdca6f
engine: validate size of the message before passing it to COM_UnMunge2
2026-05-23 21:23:10 +05:00
Alibek Omarov
3a6e3ba3ca
engine: change Xash split packet id to unsigned short, as it never should be negative
2026-05-23 21:23:10 +05:00
Alibek Omarov
42ab099a07
engine: check server address if client received split packet
2026-05-23 21:23:10 +05:00
Alibek Omarov
09f15042fe
engine: add target buffer size argument to MSG_ReadBits and MSG_ReadBytes
2026-05-23 21:23:10 +05:00
SNMetamorph
344712b990
3rdparty: update extras
2026-05-23 21:09:31 +05:00
SNMetamorph
2904c3e88b
scripts: gha: set default touch configuration file for PS Vita platform
2026-05-23 21:09:31 +05:00
Alibek Omarov
25ca2ecb12
engine: fix Netchan_Validate units bug allowing oversized fragments
2026-05-23 03:12:23 +05:00
Alibek Omarov
f6b28e32e2
engine: fix use-after-free in Netchan_CopyNormalFragments on decompression failure; reject oversized fragmented messages.
2026-05-23 02:53:26 +05:00
Alibek Omarov
e118376735
engine: take total size to decompressors in Netchan_CopyNormalFragments, fix underflow when decompressing bzip2 stream
2026-05-23 02:42:28 +05:00
Alibek Omarov
5ef6123f03
engine: append log to the crash log on Android
2026-05-22 18:47:31 +05:00
Владислав Сухов
e4600b5fe0
engine: input: fix PS Vita gyro axis mapping and add gyro debug visualization
2026-05-22 00:53:11 +05:00
Xav101
074bd8b2b3
public: add unaligned access handlers for new big endian port
2026-05-21 14:25:33 +05:00
Alibek Omarov
fca347dd00
engine: platform: psvita: add Atlas_AllocBlock to the vrtld export list temporarily
2026-05-21 03:07:15 +05:00
SNMetamorph
2a284090ef
engine: common: add console command "fs_find"
2026-05-21 02:45:27 +05:00
SNMetamorph
ecd74a0a7f
filesystem: add implementation of "fs_find" console command
2026-05-21 02:45:27 +05:00
Alibek Omarov
853a67b0c5
scripts: gha: lock PSVita SDL2 fork to last known good revision
2026-05-21 01:04:43 +05:00
Alibek Omarov
80ec1c83f1
engine: platform: psvita: add dummy Atlas_AllocBlock call
2026-05-21 01:04:12 +05:00
Alibek Omarov
41681229f9
3rdparty: gl4es: update from upstream, add patch for fixing pixelated textures on Adreno
2026-05-21 00:53:51 +05:00
Alibek Omarov
7fce99481f
ref: gl: fix crash in gl2_shim caused by MapBufferRange returning NULL
2026-05-21 00:03:36 +05:00
Alibek Omarov
142dc7b87a
ref: use vector initializer macros
2026-05-20 23:24:36 +05:00
Alibek Omarov
3e24d5a347
engine: use vector initializer macros
2026-05-20 23:24:36 +05:00
Alibek Omarov
64b1b54f5b
ref: use designated initializers where possible
2026-05-20 23:24:36 +05:00
Alibek Omarov
1fed340330
filesystem: use designated initializers where possible
2026-05-20 23:24:36 +05:00
Alibek Omarov
64be4251c8
engine: use designated initializers where possible
2026-05-20 23:24:36 +05:00
Alibek Omarov
c5a8160c32
public: add Vec2, Vec3 and Vec4 macros used for initializers
2026-05-20 23:24:36 +05:00
Alibek Omarov
3c1cf81c2d
engine: platform: refactor variable declarations
2026-05-20 23:24:36 +05:00
Alibek Omarov
c6c1163aa0
engine: common: refactor variable declarations
2026-05-20 23:24:36 +05:00
Alibek Omarov
e8845fc404
engine: client: refactor variable declarations
2026-05-20 23:24:36 +05:00
Alibek Omarov
d49178d5b6
engine: server: refactor variable declarations
2026-05-20 23:24:36 +05:00
Alibek Omarov
e2cf580818
ref: gl: refactor variable declarations
2026-05-20 23:24:36 +05:00
Alibek Omarov
d0a98447c4
ref: soft: refactor variable declarations
2026-05-20 23:24:36 +05:00
Alibek Omarov
29a9fcf76c
ref: common: refactor variable declarations
2026-05-20 23:24:36 +05:00
Alibek Omarov
37d9791f00
filesystem: refactor variable declarations
2026-05-20 23:24:36 +05:00
Alibek Omarov
c5fbc98d16
public: refactor variable declarations
2026-05-20 23:24:36 +05:00
a1batross
4c2302ec6c
engine: pass customization file fragments into IsSafeFileToDownload
...
This function already validates customization filenames.
2026-05-20 01:03:03 +05:00
Владислав Сухов
de585f80fb
3rdparty: mainui: update
2026-05-19 19:38:12 +05:00
Владислав Сухов
af58ef4a2a
engine: menu_int: add flags for mipmaps and alpha channel support in image handling
2026-05-19 19:38:12 +05:00
Владислав Сухов
dbe3f42485
engine: update player logo color to RGB format
2026-05-19 19:38:12 +05:00
Alibek Omarov
0053edbe7b
scripts: gha: drop signing step from build_android.sh, as it's done on gradle level now
2026-05-18 13:01:22 +05:00
Alibek Omarov
61f3369957
filesystem: refactor large filesystem.c into smaller files
2026-05-18 12:50:08 +05:00
Alibek Omarov
334bebb1fb
engine: use memcpy when reading sprite model to avoid unaligned access
2026-05-17 12:34:21 +05:00
Alibek Omarov
463ed05340
android: add auto-updater to the launcher
2026-05-17 12:12:40 +05:00
Alibek Omarov
92bad81d9a
engine: client: fix off-by-one
2026-05-17 11:48:20 +05:00
Alibek Omarov
4c667d9d8c
engine: client: bound current_position with HISTORY_MASK, in case of something passes invalid values
2026-05-17 11:45:22 +05:00
Alibek Omarov
cb04e9cbd5
engine: server: also use constant time string comparison for sv_password
2026-05-17 11:26:53 +05:00
Alibek Omarov
c2c781f039
engine: server: harden rcon, use constant time comparison, do not output untrusted data to log
2026-05-17 11:23:55 +05:00
Alibek Omarov
dbe1a2742e
public: add Q_strcmp_constant_time
2026-05-17 11:23:08 +05:00
Alibek Omarov
fe2019ee06
engine: common: add more cases to COM_IsSafeToDownload
2026-05-17 11:20:00 +05:00
Alibek Omarov
e5c091c303
engine: client: fix off-by-one error in CL_ParseResource
2026-05-17 11:17:42 +05:00
Alibek Omarov
9d050e7ed3
engine: limit decompressed buffer alloc size to 64MiB
2026-05-17 11:17:23 +05:00
Alibek Omarov
be35b3503e
engine: limit maximum amount of pending fragbufs
2026-05-17 10:54:51 +05:00
Alibek Omarov
5fad4ae6ca
engine: client: mark rcon and connect commands privileged
2026-05-17 10:51:44 +05:00
Alibek Omarov
2290ae0239
public: disable Amiga's double-slash check in CheckNastyPath
2026-05-17 10:42:22 +05:00
Alibek Omarov
9082a47348
engine: validate paths before downloading
2026-05-17 10:41:59 +05:00
Alibek Omarov
5d7ed9d8a7
public: add CheckNastyPath from Darkplaces's VFS so it can be used in engine for path traversal checks
2026-05-16 21:28:51 +05:00
Alibek Omarov
8120669e5b
engine: restore bounds check in Delta_FindStructByIndex, as it gets passed arbitrary numbers too
2026-05-16 21:27:51 +05:00
Alibek Omarov
fb6c4a224c
engine: check for overflow in split packet reassembly
2026-05-16 21:13:47 +05:00
Alibek Omarov
166763a887
engine: common: limit amount of delta encoded fields by 64 in GoldSrc protocol (because this is the maximum it allows anyway)
2026-05-16 21:12:49 +05:00
Alibek Omarov
e56cf4e1da
engine: client: validate player index and max players
2026-05-16 21:00:50 +05:00
Alibek Omarov
fc4b982ecc
engine: client: correctly skip message that would overflow temp entity buffer
2026-05-16 20:59:57 +05:00
Alibek Omarov
d305292340
engine: zone: in CheckAlloc walk through over both allocation chains, so that we don't read out of bounds if passed pointer is not allocated by zone allocator
2026-05-16 12:56:49 +05:00
Alibek Omarov
9ee6be87d7
engine: host: try to avoid recursive Host_Error
2026-05-16 12:37:08 +05:00
Alibek Omarov
4e4a54ab68
engine: despite byte-swapping code is no-op on little endian, it still fires and can read out of bounds on some models, leading to crash
2026-05-16 12:21:46 +05:00
Alibek Omarov
516554b704
public: update miniz to latest version
2026-05-15 12:36:56 +05:00
Alibek Omarov
7be955c493
gitignore: do not even try adding slop generators garbage
2026-05-15 11:39:45 +05:00
Владислав Сухов
c6fb702fb1
engine: add MenuFactory native object
2026-05-15 08:48:58 +05:00
Alibek Omarov
cae1d32c66
3rdparty: gl-wes-v2: update
2026-05-13 11:14:32 +05:00
Alibek Omarov
5e70995989
ref: gl: more maybe unused stuff
2026-05-13 11:13:46 +05:00
Alibek Omarov
50f7f3bb87
engine: server: mark str64 as maybe unused
2026-05-13 11:12:19 +05:00
Alibek Omarov
7c3da8c381
3rdparty: gl-wes-v2: update
2026-05-13 11:11:41 +05:00
Alibek Omarov
e38d3511b5
3rdparty: nanogl: update
2026-05-13 11:11:32 +05:00
Alibek Omarov
d4fcebb377
3rdparty: MultiEmulator: update
2026-05-13 11:11:22 +05:00
Alibek Omarov
996f0e906b
engine: client: drop double free check from dbghulls
2026-05-13 10:53:21 +05:00
Alibek Omarov
0f490a2f16
engine: client: fix warnings, cleanup unused or maybe-uninitialized variables
2026-05-13 10:48:37 +05:00
Alibek Omarov
cef6cb58bb
ref: gl: fix maybe-uninitialized
2026-05-13 10:47:15 +05:00
Alibek Omarov
47aad1b3a3
ref: soft: cleanup unused variables
2026-05-13 10:46:59 +05:00
Alibek Omarov
ff8efebba2
engine: fix more warnings
2026-05-13 10:46:44 +05:00
Alibek Omarov
be6571a6a2
3rdparty: library_suffix: update
2026-05-13 10:45:50 +05:00
Alibek Omarov
1d67585df4
3rdparty: mainui: update
2026-05-13 10:45:39 +05:00
Alibek Omarov
10d441f825
public: fix warnings, add guards around some of the macros, remove unused variable
2026-05-13 10:30:35 +05:00
Alibek Omarov
2dc132f817
engine: common: fix up warnings, clean up unused variables
2026-05-13 10:13:52 +05:00
Alibek Omarov
e9bdbf2f33
ref: gl: mark maybe unused globals
2026-05-13 10:11:47 +05:00
Alibek Omarov
b630a84447
common: xash3d_types: add macro MAYBE_UNUSED
2026-05-13 10:11:21 +05:00
Alibek Omarov
dccd076b92
engine: platform: sdl2: cleanup unused variables
2026-05-13 10:09:49 +05:00
Alibek Omarov
cb7ea5729a
engine: server: cleanup unused variables
2026-05-13 10:09:37 +05:00
Alibek Omarov
9bad17505e
filesystem: cleanup unused variables
2026-05-13 10:09:19 +05:00
Alibek Omarov
bf990d1040
ref: gl: cleanup unused variables
2026-05-13 10:09:09 +05:00
Alibek Omarov
63e112bf4c
engine: client: soundlib: add more broken null files
2026-05-13 09:32:50 +05:00
Alibek Omarov
0aac2e4d32
engine: zone: add small allocation optimization, reducing the size of <255 bytes allocations at the cost of less debug info
...
Keep it opt-in through a flag at pool alloc time.
Opt-in console related allocations, they are usually small enough strings.
2026-05-13 09:32:50 +05:00
Alibek Omarov
33b3cdb0f5
engine: client: soundlib: catch broken null.wav and replace it with silence
2026-05-10 03:02:24 +05:00
Alibek Omarov
9c4edaed21
engine: client: sound: switch to single-pass mixing, now channels gets upscaled directly to DMA speed, fixing the issue with s_lerping
2026-05-10 02:48:23 +05:00
Alibek Omarov
d4205867dd
public: simplify COM_Strip and COM_DefaultExtension by reusing extension extraction function. Add moar tests for them
2026-05-10 00:56:44 +05:00
Alibek Omarov
3c07680263
android: pack crash log to ZIP file, put system and intent info alongside it. Properly handle if multple email clients are installed on device (tested with gmail, outlook and k-9).
2026-05-10 00:32:29 +05:00
Alibek Omarov
e5d6f66f61
filesystem: strip exec flag and add nowrite flag to archives
...
pk3dir now disallows executables, which shouldn't be a problem for anybody.
Revised FS_Path command output.
2026-05-09 19:22:10 +05:00
Alibek Omarov
a106924c7f
filesystem: avoid scanning game directory as executable in FS_FindLibrary on Android, generic refactoring
2026-05-09 16:57:21 +05:00
Alibek Omarov
11ee883c84
android: show build info for mod's downloaded libraries
2026-05-09 16:57:21 +05:00
Alibek Omarov
881f0c5ca7
engine: show the missing library warning message on Android, but only if APK doesn't try to override it, skip client for now
2026-05-09 16:57:21 +05:00
Alibek Omarov
ac0c8a2210
android: implement game library downloading
2026-05-09 16:57:21 +05:00
Alibek Omarov
dba090e0da
android: bundle Let's Encrypt's ISRG Root X1 certificate for EOL devices
2026-05-09 16:57:21 +05:00
Alibek Omarov
262f32b002
engine: platform: android: implement library loading from VFS paths on Android
2026-05-09 16:57:21 +05:00
Zane van Iperen
843f6297ed
engine: net_ws: fix NET_QueuePacket indentation after previous change
2026-05-09 13:15:17 +05:00
Zane van Iperen
d1510345f1
engine: net_ws: round-robin IPv4/IPv6 reads
...
Previously, it would always return on the first one that had activity.
In practice, this meant that if IPv4 starts getting slammed, IPv6 reads
wouldn't happen.
2026-05-09 13:15:17 +05:00
Alibek Omarov
36307bb386
android: handle crash logs created by the engine, keep them for 30 days for current version
2026-05-07 17:58:25 +05:00
Alibek Omarov
52953a7647
engine: platform: posix: drop crash info into crash.log on Android
2026-05-07 15:48:34 +05:00
Alibek Omarov
ebeff144f9
Merge remote-tracking branch 'origin/master'
2026-05-07 13:50:55 +05:00
Alibek Omarov
c8cc953d48
engine: platform: posix: make crash message a global because the stack could be limited when we hit crash handler
2026-05-07 13:45:39 +05:00
Alibek Omarov
d6bf06e997
engine: common: check XASH3D_BASEDIR when opening log file, fixes engine.log creation on Android
2026-05-07 12:23:56 +05:00
Alibek Omarov
568b7abc5f
scripts: waifulib: xcompile: set max-page-size to 64k on PSVita to workaround latest toolchain issue
2026-05-07 12:07:25 +05:00
Alibek Omarov
1b7f50d3c6
scripts: waifulib: xcompile: fix build error with newer NDKs caused by incompatibility of legacy STL and Clang
2026-05-07 12:05:26 +05:00
Alibek Omarov
c8e1c2673f
engine: client: sound: revert singleplayer check for local sounds
2026-05-07 11:57:09 +05:00
Alibek Omarov
c2df265de7
engine: operate on a local copy of dspriteframe_t to avoid unaligned access on ARMv7
2026-05-07 11:56:08 +05:00
Alibek Omarov
e9e885534a
filesystem: dir: hand off file existence check to the OS if path starts with .. or ../
2026-05-07 10:32:00 +05:00
Alibek Omarov
95cc6c4445
filesystem: small refactoring, remove double nullptr checks
2026-05-07 10:32:00 +05:00
Alibek Omarov
086cb6aab8
engine: move {gamedir}/downloaded directory to {gamedir}_downloads for compatibility
...
Some mods like Sven-Coop 4.8 stupidly open game files directly and need this to
load downloaded soundcache.
2026-05-07 10:32:00 +05:00
Alibek Omarov
e6a44b70e0
engine: client: always load client.dll last to crash on nullptr in mods that fetch cvar pointers early, add comment for anyone who would modify this file
2026-05-05 01:15:16 +05:00
Alibek Omarov
fdb59e990e
engine: rename Host_IsLocalGame to Host_IsSinglePlayerGame to avoid confusion
2026-05-05 01:04:57 +05:00
Alibek Omarov
eb79bc6b40
engine: use Host_IsLocalClient where it should be, as it checks for local games, not specifically singleplayer games
2026-05-05 01:03:03 +05:00
Alibek Omarov
e907e9fc95
engine: client: fix check for local game when deciding to enable netchan splitsize extension
2026-05-05 00:38:33 +05:00
SNMetamorph
fc356c88b3
engine: client: minor fixes in steam broker client side code
2026-05-02 10:50:21 +05:00
SNMetamorph
bc672e5aca
Documentation: extensions: updated description of steam broker protocol
2026-05-02 10:50:21 +05:00
SNMetamorph
2635fd9739
engine: common: make use NET_MakeSocketNonBlocking instead of direct system API functions
2026-05-02 10:50:21 +05:00
SNMetamorph
653fe51fd4
engine: client: refactor data serializing in steam broker client side logic code
2026-05-02 10:50:21 +05:00
SNMetamorph
980d9fcaab
engine: client: improve logging in steam broker client side logic code
2026-05-02 10:50:21 +05:00
SNMetamorph
72ef5cffca
engine: client: total refactoring of steam broker client side logic code
2026-05-02 10:50:21 +05:00
SNMetamorph
a707f5933d
engine: common: expose network utilities functions needed for broker
2026-05-02 10:50:21 +05:00
Alibek Omarov
b9b0ff5769
3rdparty: mainui: update
2026-05-01 20:10:06 +05:00
Marc-Antoine Lortie
982a216df4
Fix hlsdk-xash3d references where applicable.
2026-05-01 19:02:13 +05:00
Alibek Omarov
7d87d65a3f
engine: server: lift down Host_Error on NULL name in PrecacheModel
2026-04-28 20:05:09 +05:00
Alibek Omarov
6e4e048ef8
ci: thanks for your service, cirrus. F.
2026-04-28 11:25:25 +05:00
Alibek Omarov
5b6b372cfe
ref: gl: drop broken minlight/scale cvars for litwater. Keep them for mods. Fix post-merge issues
2026-04-28 11:21:56 +05:00
Alibek Omarov
2f31cf315c
ref: gl: add litwater support
2026-04-28 11:12:44 +05:00
Alibek Omarov
910cce56ca
Documentation: extensions: document lightmapped water extension
2026-04-28 11:12:11 +05:00
Alibek Omarov
68dba8b4e0
engine: add litwater support
2026-04-28 11:12:11 +05:00
Alibek Omarov
dbfeacfecc
3rdparty: vgui_support: update
2026-04-28 09:50:50 +05:00
Alibek Omarov
0bdd4648bc
utils: mdldec: explicitly cast chars to bytes in ctype functions
2026-04-28 09:50:33 +05:00
Alibek Omarov
ec8059173d
public: explicitly cast chars to bytes in ctype functions
2026-04-28 09:50:33 +05:00
Alibek Omarov
f91e5a7647
engine: explicitly cast chars to bytes in ctype functions
2026-04-28 09:50:33 +05:00
Alibek Omarov
7942d9b1bc
engine: mod_bmodel: refactor unified bmodel loader
...
* Use offsets into dbspmodel_t struct, get rid of srcmodel global variable.
* Allocate dbspmodel_t when it's required
* Make srclumps const, move Blue-Shift hack into lump loader's flag.
2026-04-26 06:29:04 +05:00
Alibek Omarov
7abf0c819f
3rdparty: update xash-extras and mainui
2026-04-26 05:52:30 +05:00
Alibek Omarov
85eb82a370
Revert "engine: client: show difference between demo time and real time in timedemo result"
...
This reverts commit 90e25cc623 .
2026-04-26 04:26:50 +05:00
Alibek Omarov
90e25cc623
engine: client: show difference between demo time and real time in timedemo result
2026-04-26 04:15:15 +05:00
Alibek Omarov
fca4152d5a
ref: gl: fix typo in gl_drawrangeelements
2026-04-26 04:13:50 +05:00
Alibek Omarov
2ccef63754
engine: ref_api: change RefGetParm return type to intptr_t, bump RefAPI version
2026-04-26 04:12:52 +05:00
Alibek Omarov
87615784b9
engine: client: fix server list response parsing on BE
2026-04-26 04:12:52 +05:00
Alibek Omarov
d3b01d313b
ref: gl: do not limit texture units by broken report of shaders extension
2026-04-26 04:12:52 +05:00
Alibek Omarov
a3897f402a
3rdparty: mainui: update
2026-04-26 04:12:52 +05:00
Alibek Omarov
21d84ee692
ref: gl: add -glnoerr flag that enables no error context, for possible performance gains
2026-04-26 04:12:52 +05:00
Alibek Omarov
e30ce9c150
engine: fix palette and builtin textures on BE
2026-04-26 04:12:52 +05:00
Alibek Omarov
22391eba1b
engine: handle swapping sequence files in LoadCacheFile for games with external StudioModelRenderer
2026-04-26 04:12:52 +05:00
Alibek Omarov
800725453a
engine: soundlib: pass XASH_BIG_ENDIAN to ov_read in vorbis loader
2026-04-26 04:12:52 +05:00
Alibek Omarov
22ecec095e
engine: platform: sdl: request AUDIO_S16SYS to make sound output in native endian
2026-04-26 04:12:52 +05:00
Alibek Omarov
8545ed5ccb
engine: mod_studio: implement loading sequence files on BE
2026-04-26 04:12:52 +05:00
Alibek Omarov
a4fdf19ad8
engine: client: Fix font loading on BE
2026-04-26 04:12:52 +05:00
Alibek Omarov
75e4a21d7a
engine: mod_studio: more studio model swapping
2026-04-26 04:12:52 +05:00
Alibek Omarov
1099344a7d
engine: soundlib: swap WAV data
2026-04-26 04:12:52 +05:00
Alibek Omarov
ab1eaed0a5
engine: platform: posix: remove Sys_Crash and Sys_CrashDetailsLibbacktrace from the output by matching function name only once
2026-04-26 04:12:52 +05:00
Alibek Omarov
76a01d0855
engine: platform: posix: remove extra newline from libbacktrace output
2026-04-26 04:12:52 +05:00
Alibek Omarov
b00679ee30
engine: make Sys_LogFileNo return -1 when log file isn't opened
2026-04-26 04:12:52 +05:00
Alibek Omarov
b3bb2fc16f
engine: imagelib: add IL_HOST_ENDIAN flag to mark on-disk data that's already in host endianness
2026-04-26 04:12:52 +05:00
Alibek Omarov
86a2ea29e4
wscript: define libbacktrace as libbacktrace_custom, fix DL_ITERATE_PHDR not defined due to failing fallback check
...
* Changed to libbacktrace_custom to not collide with libbacktrace built as part of compiler's runtime
2026-04-26 04:12:52 +05:00
Alibek Omarov
d4f8543556
engine: platform: posix: better libbacktrace error output
2026-04-26 04:12:52 +05:00
Alibek Omarov
e850728016
engine: soundlib: fixes for BE
2026-04-26 04:12:52 +05:00
Alibek Omarov
11877f4c96
engine: imagelib: fixes for BE
2026-04-26 04:12:52 +05:00
Denis Drakhnia
2ba5030b62
engine: server: fix no response to goldsrc info query
2026-04-24 21:56:22 +05:00
Alibek Omarov
06b14800e1
engine: mod_bmodel: fix bspx swap definition
2026-04-24 08:00:49 +05:00
Alibek Omarov
bb7c85fd22
wscript: turn on progress bar by default
2026-04-24 07:31:36 +05:00
Alibek Omarov
37ce62fa6a
waf: update to latest wafsrc + progress-bar-enhacnement
2026-04-24 07:31:11 +05:00
Alibek Omarov
e1b29e2da3
engine: temporarily disable swapping extended header
2026-04-24 06:58:53 +05:00
Alibek Omarov
b60afd73e9
public: swaplib: add comments
2026-04-24 06:58:53 +05:00
Alibek Omarov
84447a5292
public: crclib: add fix for md5 from q3
2026-04-24 06:58:53 +05:00
Alibek Omarov
fe4ea4aabf
engine: server: fix pfnMessageEnd on BE
2026-04-24 06:58:53 +05:00
Alibek Omarov
878822290c
public: crclib: fix CRC32_BlockSequence on BE
2026-04-24 06:58:53 +05:00
Alibek Omarov
04ca5d7cb0
engine: common: use FloatAsUint and UintAsFloat to write and read floats to/from sizebuf_t
2026-04-24 06:58:53 +05:00
Alibek Omarov
d46ed40f33
engine: pre-swap studio model before loading on BE
2026-04-24 06:58:53 +05:00
Alibek Omarov
82e031205c
engine: pre-swap sprite before loading on BE
2026-04-24 06:58:53 +05:00
Alibek Omarov
6f5f04a29d
engine: server: fix testpacket on BE server
2026-04-24 06:58:53 +05:00
Alibek Omarov
f9ed578bf1
engine: move CRC32_MapFIle to mod_bmodel, as it's a common function. Use le_struct_swap
2026-04-24 06:58:53 +05:00
Alibek Omarov
86c84c7de7
engine: common: add struct swapping for BSP models
...
With support for Quake BSP, HL BSP, extended HL BSP and BSPX.
2026-04-24 06:58:53 +05:00
Alibek Omarov
489c1c9dd5
public: add swaplib
2026-04-24 06:58:53 +05:00
Alibek Omarov
1df6a040ec
engine: common: fix WriteBits/ReadBits
2026-04-24 06:58:53 +05:00
Alibek Omarov
82c2ca53fb
engine: common: fix WriteUBitLong/ReadUBitLong
2026-04-24 06:58:53 +05:00
Alibek Omarov
3ddd1e2448
engine: common: fix LZSS on big endian
2026-04-24 06:58:53 +05:00
Alibek Omarov
371d619685
engine: platform: posix: remove dead ucontext.h include
2026-04-24 06:58:53 +05:00
Владислав Сухов
480f29e96e
engine: common: mod_studio: fix model traversal and crash in Mod_StudioComputeBounds
...
Mod_StudioComputeBounds incorrectly assumed that all models across all body parts were laid out contiguously in memory. This caused out-of-bounds reads or reading garbage data when loading complex models, leading to crashes.
2026-04-24 01:13:46 +05:00
Zane van Iperen
95548053eb
engine: common: set cmd_args to "" when tokenising, if we've no arguments
...
Fixes metamod-fwgs[1] breaking when CMD_ARGS() returns NULL.
[1]: eedede40e8/metamod/src/commands_meta.cpp (L63)
2026-04-22 21:27:27 +05:00
Владислав Сухов
0daf2c2b4d
engine: client: add cvar to enable/disable gamepad gyro
2026-04-22 21:26:34 +05:00
Alibek Omarov
e2d5bea327
ref: cleanup unused functions
2026-04-21 23:10:32 +05:00
Alibek Omarov
306a5812a9
engine: server: fix svc_setpause usage in spawn command, fix minor protocol issue when spawnnig particle from pmove
2026-04-20 01:33:54 +05:00
Alibek Omarov
a3dba64513
public: move atlas packing code from renderer, add tests
2026-04-20 01:33:54 +05:00
Alibek Omarov
491ba9bc7d
3rdparty: mainui: update
2026-04-19 23:12:55 +05:00
Alibek Omarov
1c462df8a2
common: q_client: include stdint.h and xash3d_types.h
2026-04-19 23:12:44 +05:00
Alibek Omarov
ed975976f8
engine: client: add feature to reupload logo if any of logo related cvars were changed
2026-04-19 22:46:51 +05:00
Alibek Omarov
bbf8ab378d
engine: server: add rate limiting for updating client's resources data too often
2026-04-19 22:30:04 +05:00
Alibek Omarov
5383e36af5
engine: net_chan: fix off-by-one error when trying to decompress packet
2026-04-19 20:50:42 +05:00
Alibek Omarov
897fb98b93
engine: net_chan: fix Netchan_AddBufferToList leaking pointer
2026-04-19 20:43:32 +05:00
Alibek Omarov
96e88adfcd
engine: client: try to make R_Blood more accurate
2026-04-19 17:05:26 +05:00
Alibek Omarov
4dde4047f1
engine: make particle texture white, shift 1 pixel down and to the right
2026-04-19 17:04:40 +05:00
Alibek Omarov
905161529f
engine: client: ref_common: reorganize R_CreateBuiltinTextures, but also fix a typo without assigned alpha to particle texture
2026-04-19 01:32:40 +05:00
Alibek Omarov
044523434d
ref: add R_EntityDynamicLight that calculates lighting for studio and alias models, and also located in libref_common
2026-04-19 01:17:28 +05:00
Alibek Omarov
da4c4bb76a
ref: remove unused sprite_radius global variable
2026-04-19 00:32:45 +05:00
Alibek Omarov
95b3271d68
engine: client: move input stuff to input subfolder
2026-04-18 22:18:50 +05:00
Alibek Omarov
3361a5d760
engine: client: split OSK into it's own file
2026-04-18 22:18:50 +05:00
Alibek Omarov
b725d2ece0
engine: client: moving beds
2026-04-18 22:18:50 +05:00
Alibek Omarov
66bee8b468
engine: client: fix trimmed autocomplete output for keys
2026-04-18 22:18:50 +05:00
Alibek Omarov
5e664dc3e9
engine: client: check for upper bound limit in Key_StringToKeynum
2026-04-18 22:18:50 +05:00
Alibek Omarov
bfdfeb3dc0
engine: client: fix Joy_GetHatValueForAxis threshold for forward axis, fix bindings limit
2026-04-18 22:18:50 +05:00
Alibek Omarov
49248f5e14
engine: client: touch fixes, fix division-by-zero in Touch_AspectRatio, GRID_COUNT, fix Touch_RemoveButtonFromList
2026-04-18 22:18:50 +05:00
Владислав Сухов
d03ea4c10a
engine: client: in_gyro: fix inverted yaw axis
2026-04-18 00:41:46 +05:00
ksagameng
780dbd6183
scripts: gha: fix ios ci builds not including game libs
2026-04-17 19:41:30 +05:00
GLoOoccK
50da79f1e0
Update cl_parse_gs.c
2026-04-17 19:40:58 +05:00
Alibek Omarov
62201900cf
ref: null: remove unused function
2026-04-16 23:25:32 +05:00
Alibek Omarov
ae233ac491
Merge branch 'refapi-15'
2026-04-16 23:19:06 +05:00
Владислав Сухов
dd1cb04cb7
engine: client: sdl: add support for built-in device gyroscope using SDL2 Sensor API (Android/iOS)
2026-04-16 00:15:35 +05:00
Alibek Omarov
74869c8f5d
ref: make R_GatherPlayerLight shared between renderers
2026-04-14 22:36:15 +05:00
Alibek Omarov
dd712a0df9
engine: update Mod_PointInLeaf signature for RefAPI
2026-04-14 22:36:15 +05:00
Alibek Omarov
bfdb62d31e
engine: ref_api: complete the RefAPI 15 changelog
2026-04-14 22:36:15 +05:00
Alibek Omarov
ae7b9eb28d
engine: move creation of default textures to the engnie
2026-04-14 22:36:15 +05:00
Alibek Omarov
c63e13c8f4
engine: move handling of AVI textures into the engine
2026-04-14 22:36:15 +05:00
Alibek Omarov
d3e1407675
engine: remove unused R_Flush and VGUI_UploadTextureBlock from RefAPI
2026-04-14 22:36:15 +05:00
Alibek Omarov
e2e4728c7c
engine: remove R_BeamCull from RefAPI
2026-04-14 22:36:15 +05:00
Alibek Omarov
dd3583d11a
engine: move details textures parser to the engine
2026-04-14 21:18:57 +05:00
Alibek Omarov
e6924844da
engine: move FillRenderAPI and FillTriAPI to renderers to reduce amount of exports
2026-04-14 21:18:56 +05:00
Alibek Omarov
a49db03561
engine: move StudioAPI negotiation to the engine
2026-04-14 21:18:03 +05:00
Alibek Omarov
84b7b5803b
ref: soft: remove mistakingly put const on RI.rvp
2026-04-13 23:13:49 +05:00
Alibek Omarov
c224d39ba7
ref: soft: replace RI.onlyClientDraw with RF_ONLY_CLIENTDRAW flag in viewpass
2026-04-13 23:13:49 +05:00
Alibek Omarov
9b24b08df1
ref: gl: remove onlyClientDraw, drawOrtho, RI.params with viewpass flag check. RF_DRAW_OVERVIEW and RF_DRAW_CUBEMAP are cannot be set at the same time, so drawOrtho check replaced by RF_DRAW_CUBEMAP only
2026-04-13 23:13:49 +05:00
Alibek Omarov
a37b0e58f1
ref: soft: get rid of RI.drawOrtho, it's a debugging/development tool, not suited for software renderer use
2026-04-13 23:13:49 +05:00
Alibek Omarov
afca422e35
ref: soft: read ref_viewpass_t flags instead of cached RI.drawWorld
2026-04-13 23:13:49 +05:00
Alibek Omarov
3440ddf443
ref: gl: read ref_viewpass_t flags instead of cached RI.drawWorld
2026-04-13 23:13:49 +05:00
Alibek Omarov
6730ed9555
ref: soft: remove unused isSkyVisible
2026-04-13 23:13:49 +05:00
Alibek Omarov
fdd3a44fa0
ref: gl: remove unused isSkyVisible
2026-04-13 23:13:49 +05:00
Alibek Omarov
241c926076
ref: soft: replace RI.{vieworg,viewangles,pvsorigin} by ref_viewpass_t fields
2026-04-13 23:13:49 +05:00
Alibek Omarov
148a9a5a8c
ref: gl: replace RI.{vieworg,viewangles,pvsorigin} by ref_viewpass_t fields
2026-04-13 23:13:49 +05:00
Alibek Omarov
513984d7fd
ref: soft: save original viewpass and access viewport and fov through it
2026-04-13 23:13:49 +05:00
Alibek Omarov
1009795d5c
ref: gl: save original viewpass and access viewport and fov through it
2026-04-13 23:13:49 +05:00
Alibek Omarov
e3d2da74db
engine: move underwater fov effect handling to the engine
2026-04-13 23:13:49 +05:00
Alibek Omarov
ff3a57ae8a
ref: gl: drop legacy mirror viewpass code
2026-04-13 23:13:49 +05:00
Alibek Omarov
271a6e2210
ref: soft: drop broken code for all non-viewer viewpasses
2026-04-13 23:13:49 +05:00
Alibek Omarov
0d40357b93
ref: common: wscript: fix psvita build
2026-04-13 13:01:18 +05:00
Alibek Omarov
a9dcdd034c
ref: soft: fix build
2026-04-13 13:01:18 +05:00
Alibek Omarov
7324ff43fc
ref: add GL_ResampleTexture to libref_common
2026-04-13 13:01:18 +05:00
Alibek Omarov
d85e7fc2b1
ref: move remaining light functions to libref_common
2026-04-13 13:01:18 +05:00
Alibek Omarov
d91ecfa3df
ref: gl: refactor R_LightVec
2026-04-13 13:01:18 +05:00
Alibek Omarov
b7a3a02aad
ref: common: add R_PushDlightsForBmodel
2026-04-13 13:01:18 +05:00
Alibek Omarov
5aca78951c
ref: move R_PushDlights and R_MarkLights to ref_common
2026-04-13 13:01:18 +05:00
Alibek Omarov
81abae65b5
ref: move RunLightstyles to ref_common
2026-04-13 13:01:18 +05:00
Alibek Omarov
f5f6d9bbe4
engine: move sprite texture loading back to engine, only leave rendering for renderer
2026-04-13 13:01:18 +05:00
Alibek Omarov
ef73b55413
ref: common: move malloc and GL_InitRandomTable
2026-04-13 13:01:18 +05:00
Alibek Omarov
8334695522
ref: common: draft new static library, containing shared code for ref_gl and ref_soft
2026-04-13 13:01:18 +05:00
Alibek Omarov
d7f416d659
engine: draft new RefAPI 14: remove reserved functions from render api, remove CL_AddCustomBeam
2026-04-13 13:01:18 +05:00
a1batross
5f6577df2e
engine: client: don't allow con_fontscale lower than 1
...
Prevents possible division by zero
2026-04-12 14:50:58 +05:00
Sergey Degtyar
e87f307ac1
engine: image: fix blue halo around sprays
2026-04-10 15:00:02 +05:00
Владислав Сухов
7e015a268b
engine: client: in_joy: implement per-axis gyroscope deadzone support
2026-04-10 14:59:30 +05:00
TheEVolk
a679c53111
engine: client: add cvar sv_voice_singleplayer flag FCVAR_SERVER
2026-04-10 14:58:46 +05:00
TheEVolk
9e8d248044
engine: client: voice api
2026-04-10 14:58:46 +05:00
Alibek Omarov
055d646225
ref: gl: merge refactoring changes from litwater branch
2026-04-09 11:43:47 +05:00
ksagameng
a2514b6916
platform: ios: Remove FTP server as latest apple clang broke it
2026-04-09 10:25:18 +05:00
ksagameng
0ac5e78040
scripts: ios: Modify script to work with dylib loading changes
2026-04-09 10:25:18 +05:00
ksagameng
a82221e3df
engine: platform: No more lib_ios, use FS_FindLibaray to load dylibs instead
2026-04-09 10:25:18 +05:00
Alibek Omarov
bb734456f6
engine: client: avi: use typeof() to declare function pointers to ffmpeg API
2026-04-09 09:52:52 +05:00
Alibek Omarov
a219ca7371
ci: upgrade ffmpeg binary to 8.1
2026-04-09 09:20:25 +05:00
Oleg
c3b5e43a7a
engine: client: avi: bump FFMPEG symbols
2026-04-09 09:14:04 +05:00
Alibek Omarov
e7597d2e84
Merge branch 'theevolk-feature-soundapi' of github.com:ShadowOfEVolk/xash3d-fwgs
2026-04-08 17:18:03 +05:00
TheEVolk
386ca1b9bb
engine: client: make sound api const
2026-04-08 14:27:24 +03:00
TheEVolk
da3960c4f0
engine: client: move bitflag definitions to sound_api
2026-04-08 14:15:16 +03:00
TheEVolk
cd85762b09
engine: client: fix arm builds
2026-04-08 14:11:44 +03:00
TheEVolk
d92b3a730c
engine: client: adapt sound api to snd globals
2026-04-08 14:02:10 +03:00
Alibek Omarov
ffa53f14e5
engine: platform: sdl2: implement continuous background recalibration for gyroscope
2026-04-08 11:31:01 +05:00
Alibek Omarov
b8bd906832
engine: menu_int: fix a typo
2026-04-08 11:19:13 +05:00
Alibek Omarov
1c73d8d6f4
engine: client: add joy_debug, tool that visualizes gamepad input
2026-04-08 11:13:07 +05:00
Alibek Omarov
2c3fdb5eee
engine: client: in_joy: clear gyro data after each FinalizeMove, only take data when calibration status is set to calibrated
2026-04-08 10:30:32 +05:00
Alibek Omarov
4bbe52e3b4
engine: client: in_joy: fix engine-level axis rebinding
2026-04-08 10:22:12 +05:00
Alibek Omarov
2d241ed96b
engine: platform: sdl2: fix calibraion never ending if it was failed, lower sample count requirements to 50%, fix gyro when using PS5 controller over Bluetooth
2026-04-08 10:22:12 +05:00
Alibek Omarov
ba4bce06b1
engine: platform: sdl2: swap pitch and yaw gamepads axis, following the fix in 626a7eb9108376a68c2fd140e1b5942c64ea1e66
2026-04-08 10:22:12 +05:00
Владислав Сухов
f7e933aea1
engine: client: add gyroscope aiming support
...
refactor: standardize input functions to use (pitch, yaw) parameter order
2026-04-08 10:22:12 +05:00
Alibek Omarov
dbcf77c9a9
engine: cleanup, disallow exec for multiplayer non-TFC games
2026-04-08 08:22:01 +05:00
w_sh1t
8a9aa2da6c
engine: common: add wildcard support for exec command, add amount of frames to wait in wait command
2026-04-08 08:05:42 +05:00
Alibek Omarov
0e8143aefc
ref: gl: remove duplicate line from if-else branches in R_MarkLeaves
2026-04-08 08:05:00 +05:00
TheEVolk
4345e9e6a6
Merge remote-tracking branch 'upstream/master' into theevolk-feature-soundapi
2026-04-07 18:35:39 +03:00
Alibek Omarov
e7fa45d5ca
ref: gl: fix masked textures with VBO
2026-04-06 11:12:09 +05:00
Alibek Omarov
abda0a07c2
ref: gl: cache worldmodel pointer instead of accessing it through gp_cl pointer
2026-04-06 11:07:08 +05:00
Alibek Omarov
9d22827395
ref: gl: reorganize checks in R_CullSurface
2026-04-06 11:04:33 +05:00
Alibek Omarov
7b665b3763
ref: gl: track max height of a dynamic lightmap
2026-04-06 10:04:15 +05:00
Alibek Omarov
58692f397a
ref: gl: reorganize R_CheckLightMap to exit early for dlighted surfaces
2026-04-06 09:40:19 +05:00
Alibek Omarov
2253fcc955
ref: gl: skip redundant positions in LM_AllocBlock
2026-04-06 09:05:47 +05:00
Alibek Omarov
cbbae0c9bf
ref: gl: simplify backface culling checks in frustum class
2026-04-06 08:25:45 +05:00
Alibek Omarov
ef513f27ac
engine: simplify node recursion functions, do not fetch both children at once if only one is used
2026-04-06 08:16:51 +05:00
Alibek Omarov
e8ae48fd3d
ref: simplify node recursion functions, do not fetch both children at once if only one is used
2026-04-06 08:16:20 +05:00
Alibek Omarov
434e508186
engine: client: reserve some free space in channel_t and rawchan_t
2026-04-06 07:27:50 +05:00
Alibek Omarov
4a2b3e89b4
engine: client: disable NET_EXT_SPLITSIZE in local game, for slightly better performance
2026-04-06 07:14:06 +05:00
Alibek Omarov
6c3f8c7ec5
engine: mod_bmodel: allow nearest on quake skybox
2026-04-06 06:55:52 +05:00
Alibek Omarov
3fffe061d5
engine: client: switch to dynamically allocating vox words, freeing up 320 Kb of memory
2026-04-06 06:55:27 +05:00
Alibek Omarov
729c985eaf
engine: client: consolidate dma, s_listener and bunch of separate sound globals into one snd global struct. Replace bit fields with bit flags in preparation for SoundAPI
...
Remove s_combine_sounds, it never worked great and was disabled by default.
2026-04-06 06:00:48 +05:00
Alibek Omarov
75fb6c5f34
engine: add Mem_Free2 that takes a pointer to pointer and then sets it to NULL
2026-04-06 05:14:33 +05:00
Alibek Omarov
8bc9b1865a
engine: client: allow custom paths in cdaudio.txt
2026-04-05 07:03:46 +05:00
Alibek Omarov
d6993c47d6
engine: mod_bmodel: do not try to load visibility if there is none, like for external bmodels
2026-04-05 07:03:46 +05:00
Alibek Omarov
b8792e4084
filesystem: set qwrap as falldir for Quake games
2026-04-05 07:03:46 +05:00
Alibek Omarov
2234dd48bc
engine: client: soundlib: use unsigned int in GetLittleLong to fix ubsan error
2026-04-05 07:03:46 +05:00
Alibek Omarov
c8693e1e89
engine: common: fix char array underflow, on Q_strlen() - 1
2026-04-05 07:03:46 +05:00
Alibek Omarov
3ace4a61d2
ref: gl: fix harmless NULL pointer dereference in alias model loading code
2026-04-05 07:03:46 +05:00
Alibek Omarov
bd3f865cf7
engine: mod_bmodel: only look for BSPX lumps if BSPX header was found
2026-04-05 07:03:46 +05:00
Alibek Omarov
b68e71abfd
engine: net_chan: explicitly convert qboolean to uint before right shift to 31 bits
2026-04-05 07:03:46 +05:00
Alibek Omarov
6179bef160
engine: fix possible buffer overflow when looking for BSPX header
2026-04-05 07:03:46 +05:00
Alibek Omarov
983427ebb3
engine: client: allow coloring fixed font text
2026-04-05 07:03:46 +05:00
Alibek Omarov
1b2ab34745
engine: client: keep TF_NEAREST enabled for console font, if HUD font failed to load
2026-04-05 07:03:46 +05:00
Alibek Omarov
2713f03ec2
filesystem: fix Quake gamedir check if pak0.pak is written in uppercase, omitting caseinsensitive FS emulation as is VFS is not enabled at this stage
2026-04-05 07:03:46 +05:00
Alibek Omarov
238083c174
engine: client: move common server message handlers to CL_ParseCommonMessage and only HL specific ones to CL_ParseCommonHLMessage (previously CL_ParseCommonDLLMessage)
2026-04-05 07:03:46 +05:00
Alibek Omarov
78de3ee6d9
engine: client: initialize cl_textmessage at compile-time
2026-04-05 07:03:46 +05:00
Alibek Omarov
695081e079
3rdparty: library_suffix: update
2026-04-05 07:03:46 +05:00
TheEVolk
2c5e2e1ded
engine: client: remove sound_t definition from sound.h
2026-04-04 18:30:14 +03:00
TheEVolk
d151c48d1f
engine: client: fix api issues
2026-04-04 17:47:54 +03:00
TheEVolk
35998bce81
engine: client: add sound api
2026-04-04 16:08:31 +03:00
Alibek Omarov
a10520ca9e
engine: host: add message when native game libraries weren't found but libraries for x86 windows, linux or macos were, telling that the mod probably require custom logic code
2026-04-04 17:37:48 +05:00
Alibek Omarov
cb4a03ded2
engine: platform: add Platform_LibraryExists and implement it for iOS and generally for everything else with FS_FileExists
2026-04-04 17:37:48 +05:00
Alibek Omarov
31a0d17de5
3rdparty: mainui: update
2026-04-04 17:36:21 +05:00
Alibek Omarov
5f765a35b9
ref: gl: show more detailed Host_Error instead of ASSERT in R_GetTexture
2026-04-04 17:36:05 +05:00
Alibek Omarov
5606346cc1
scripts: waifulib: xcompile: add Android NDK 30
2026-04-04 17:34:31 +05:00
Alibek Omarov
6faee8fd89
scripts: ios: call mkdir -p to not error out if the directory already exists (thanks, @ksagaming)
2026-04-04 17:34:07 +05:00
Alibek Omarov
255c9bcaed
3rdparty: mainui: update
2026-04-03 09:27:33 +05:00
Alibek Omarov
25a3fdbcec
3rdparty: mainui: update
2026-04-03 09:20:28 +05:00
Alibek Omarov
8e450d869b
engine: common: add host.default_gamedir containing gamedir passed to us from game launcher
2026-04-03 04:09:25 +05:00
Alibek Omarov
e8ef7ad60c
engine: server: throw Host_Error when game tries to call precache model with invalid argument, like GoldSrc
2026-04-03 01:43:23 +05:00
Alibek Omarov
216eedcdcd
ref: gl: better wording about backface culling goldsrc bug [skip ci]
2026-04-03 01:28:04 +05:00
Alibek Omarov
fd55716633
ref: gl: change backface culling only if it wasn't disabled by mod developer beforehand
2026-04-03 01:23:55 +05:00
Alibek Omarov
0b920be381
engine: client: delay freeing up the sound channel when it becomes inaudible
2026-04-03 00:03:52 +05:00
Alibek Omarov
e6dfccb6ba
engine: reorganize common.h header
2026-04-02 20:45:00 +05:00
Alibek Omarov
3129081050
engine: fix a typo USING_ASAN -> USE_ASAN
2026-04-02 02:16:50 +05:00
Alibek Omarov
00dac928c9
ref: replace checking PARM_QUAKE_COMPATIBLE with direct check of feature flag set
2026-04-02 02:13:27 +05:00
Alibek Omarov
3726256514
engine: simplify IsQuakeCompatible by enforcing QUAKE_COMPATIBLE feature flag when Quake demo starts
2026-04-02 02:11:40 +05:00
Alibek Omarov
5eb43505cb
engine: platform: try to fix build on 32-bit arm in debug builds (r7 is used by frame pointer, so we push it into stack before using for a syscall)
2026-04-02 02:02:59 +05:00
Alibek Omarov
f7e516b775
ci: run armhf build on arm64 runner too
2026-04-02 02:01:09 +05:00
Alibek Omarov
4edd512902
scripts: gha: enable all renderers on Linux targets
2026-04-01 20:59:48 +05:00
Alibek Omarov
acb263368a
ci: try to use github arm64 runner
2026-04-01 20:51:22 +05:00
Alibek Omarov
38b3805ad8
engine: client: gamma: fix gamma when compiled with -ffast-math
2026-04-01 20:35:04 +05:00
Alibek Omarov
2ebaa2ad8e
engine: wscript: disable engine tests on macOS temporarily
2026-04-01 09:15:09 +05:00
Alibek Omarov
018c52b998
scripts: gha: apple: add -v flag to build stage
2026-04-01 06:36:40 +05:00
Alibek Omarov
99d01e7967
engine: try to fix running tests on macOS 2
2026-04-01 06:29:22 +05:00
Alibek Omarov
e5670afc4c
common: xash3d_types: undefine ARRAYSIZE before defining our ARRAYSIZE (actually we should stop using ARRAYSIZE instead)
2026-04-01 06:19:06 +05:00
Alibek Omarov
5aba96ce14
engine: try to fix tests on macOS
2026-04-01 06:19:06 +05:00
Alibek Omarov
6b97fc1825
engine: fix tests build on Win32
2026-04-01 06:02:08 +05:00
Alibek Omarov
42cb5fe547
engine: wscript: append SDL2 library path to the client tests LD_LIBRARY_PATH (or it's platform-specific alternative)
2026-04-01 05:40:45 +05:00
Alibek Omarov
6a1718aa07
engine: get rid of --enable-engine-tests, now engine tests run as waf targets, allowing their run on CI seamlessly.
2026-04-01 05:15:31 +05:00
Alibek Omarov
f980f40f8e
engine: client: add new titles.txt parser, that avoids max messages limit
2026-04-01 04:10:41 +05:00
Alibek Omarov
5506486ed1
README: add note about running unit tests
2026-03-31 23:36:13 +05:00
Alibek Omarov
4a90d2fbe5
contributing: better wording
2026-03-31 23:35:47 +05:00
RevengeRip
8767a4d6ba
engine: client: avi: remove XASH_FFMPEG_DLOPEN
...
Is this a mistake? This define effectively forces `--enable-ffmpeg-dlopen` at all times ignoring configuration (which in turn makes build to fail with ffmpeg 8.1).
2026-03-31 16:24:32 +05:00
Xav101
34bb2665cf
wscript: removed redundant irix linkflags
2026-03-30 11:33:46 +05:00
Xav101
1a79a9488d
3rdparty: libbacktrace: wscript: add irix to the unsupported platforms list. This could probably be made to work at some point but we'll disable it just to keep things simple.
2026-03-30 11:33:46 +05:00
Alibek Omarov
c91b707b66
engine: client: ignore blank music tracks in "cd loop" command so music could carry over through changelevels
2026-03-28 19:23:59 +05:00
Alibek Omarov
a50ea929d6
engine: fix a typo in R_Blood, fix a typo in pt_4x_slowgrav
2026-03-28 18:44:50 +05:00
Alibek Omarov
d5b481ac9d
ref: gl: fix off-by-one error in GL_PopPolygonOffset
2026-03-28 04:43:14 +05:00
Marc-Antoine Lortie
8e69be0542
Documentation: opensource-mods.md: add Heart of Evil mirror.
2026-03-28 01:36:50 +05:00
Marc-Antoine Lortie
5296147c6b
android: Supplement French Translation
2026-03-28 01:36:18 +05:00
Alibek Omarov
30fa074c8c
engine: server: implement time window based challenge generation
2026-03-27 22:17:34 +05:00
Alibek Omarov
02b1d15e42
ref: gl: add gl_polyoffset_bmodels to enable poly offset for drawing brush models, avoiding zfighting
2026-03-27 03:27:20 +05:00
Alibek Omarov
82475c3b58
public: remove tgmath.h include in C++ mode
2026-03-26 15:49:33 +05:00
Alibek Omarov
c421f3136d
public: reformat BoxOnPlaneSide function
2026-03-26 02:48:13 +05:00
Alibek Omarov
641a3663f5
ref: gl: unlikely but use fast side check for frustum
2026-03-26 02:44:53 +05:00
Alibek Omarov
acaede2a0d
public: redefine mplane_t, make PlaneIntersect inline, turn BOX_ON_PLANE_SIDE into an inline function instead of a macro
2026-03-26 02:37:59 +05:00
Alibek Omarov
d8d1ebf23c
engine: cleanup unused functions
2026-03-26 02:24:30 +05:00
Alibek Omarov
926f0ae95d
engine: server: get rid of {ALLOC_,MAKE_,}STRING macros, call the underlying functions directly
2026-03-26 02:24:30 +05:00
Alibek Omarov
c5d5ce5f43
3rdparty: mainui: update
2026-03-25 23:06:27 +05:00
Alibek Omarov
2fe950b0af
engine: server: don't show scary message about missing server library on engine startup in multiplayer capable games
2026-03-25 23:06:27 +05:00
坂柳有栖
a04bb01841
android: Supplement Simplified Chinese Translation
...
android: Supplement Simplified Chinese Translation
2026-03-25 16:48:04 +05:00
坂柳有栖
2d2de9dc26
android: Supplement Simplified Chinese Translation
...
Android: values-zh-rCN/strings.xml,Supplement Simplified Chinese Translation
2026-03-25 16:48:04 +05:00
Alibek Omarov
81fc511f0a
android: add ability to disable yapb bots from our settings page
2026-03-25 00:51:21 +05:00
Alibek Omarov
d85d813d62
android: add a proper exit from storage permission dialog
2026-03-25 00:50:47 +05:00
Alibek Omarov
9f6b571d79
android: check if user tries to open known mod and redirect
2026-03-25 00:49:44 +05:00
Alibek Omarov
292f393f99
android: fix name with XML file with Simplified Chinese translation
2026-03-24 23:16:38 +05:00
Alibek Omarov
f523f04ee2
android: build mainui_cpp through CMake
2026-03-24 21:05:56 +05:00
Alibek Omarov
88d8115306
ci: update actions to newer versions
2026-03-24 04:20:11 +05:00
Alibek Omarov
9a050cb67f
scripts: gha: fix shellcheck warnings in build_* scripts
2026-03-24 04:07:21 +05:00
Alibek Omarov
cf8046ecd9
scripts: gha: fix shellcheck warnings in deps_* scripts
2026-03-24 03:51:54 +05:00
Alibek Omarov
6a292ec68c
scripts: gha: android: bump NDK, JDK and commandline tools versions
2026-03-24 03:46:58 +05:00
Alibek Omarov
4679359688
android: update gradle, agp, etc
2026-03-24 03:46:58 +05:00
Andrey Akhmichin
bca81de210
Documentation: opensource-mods.md: update.
2026-03-23 01:39:21 +05:00
Alibek Omarov
ec1a65c18f
3rdparty: mainui: update
2026-03-22 20:13:50 +05:00
Alibek Omarov
ed559d9ed7
engine: client: fix off by one error in KeynumTostring
2026-03-22 20:08:01 +05:00
Alibek Omarov
8995a584b9
engine: do not register autocompletion for commands that are not possible in dedicated build
2026-03-22 14:20:59 +05:00
Alibek Omarov
30c81c9f01
engine: use dynamic allocation for required wad list and optional debug info
2026-03-22 14:20:59 +05:00
ksagameng
11c7c1b77d
scripts: ios: enable decay build in buildallmods.sh
2026-03-19 22:36:51 +05:00
ksagameng
93cb146f39
engine: common: Disable changegame menu on iOS
2026-03-19 22:36:51 +05:00
ksagameng
59dbe1d01e
ios: Add entitlements.plist and codesign the generated ipa with said plist in createipa.sh
2026-03-19 22:36:51 +05:00
ksagameng
d6dc77d409
engine: common: Change macro for consistency
2026-03-19 22:36:51 +05:00
ksagameng
f8714a57d3
scripts: ios: Build all mods script and postfixing support in buildhlsdk script
2026-03-19 22:36:51 +05:00
ksagameng
9f71255d6f
engine: ios: Fixed code for running multiple client libraries bundled in the same ipa
2026-03-19 22:36:51 +05:00
Alibek Omarov
d8bab034c2
engine: client: extend the supported key list for international keyboards, small refactoring of old smelly code
2026-03-19 15:41:12 +05:00
Alibek Omarov
9a25768617
ref: soft: cleanup dead, commented out code and global variables
2026-03-17 00:19:27 +05:00
Alibek Omarov
e76528d929
ref: make sprite and studio global variables static
2026-03-17 00:19:27 +05:00
Alibek Omarov
00ad05c92a
ref: gl: move showtextures implementation to gl_image.c
2026-03-17 00:19:27 +05:00
Alibek Omarov
df95baa282
public: minor refactoring, mark some more functions as returns_nonnull
2026-03-17 00:19:27 +05:00
Alibek Omarov
f42e2f59b7
filesystem: mark some fs ops const
2026-03-17 00:19:27 +05:00
SNMetamorph
d8b784482e
Documentation: extensions: added description for steam broker protocol
2026-03-16 15:04:02 +05:00
SNMetamorph
b136f1e078
Documentation: updated information about GoldSrc network protocol support
2026-03-16 15:04:02 +05:00
SNMetamorph
bd73775a2f
engine: client: refactor steam broker internal logic
2026-03-13 02:54:35 +05:00
SNMetamorph
1f133ea702
engine: client: add steam broker messages for game init & shutdown events
2026-03-13 02:54:35 +05:00
SNMetamorph
8acc7e4f76
engine: client: rename steam broker message sb_terminate to sb_disconnect
2026-03-13 02:54:35 +05:00
Alibek Omarov
00e2e8e502
3rdparty: mainui: update
2026-03-12 03:50:12 +05:00
Alibek Omarov
e5013196ac
engine: client: reduce amount of glColor4ub calls when rendering text
2026-03-11 10:13:23 +05:00
Alibek Omarov
658a3b0c6a
ref: gl: minor refactoring
2026-03-11 10:11:21 +05:00
Alibek Omarov
4e9a2dace0
ref: gl: only check for GL errors if both gl_check_errors and developer mode are enabled
2026-03-11 08:39:58 +05:00
Alibek Omarov
f7b389b7cd
common: remove particledef.h
2026-03-11 08:39:33 +05:00
Alibek Omarov
dac77ec0af
engine: client: idenitification: add /etc/machine-id
2026-03-05 06:06:52 +05:00
Alibek Omarov
32d73e62f4
engine: minor refactoring, remove host.apply_game_config as it's unused
2026-03-05 06:06:04 +05:00
Alibek Omarov
b353ec463a
engine: host: move exec, userconfigd and memstats to it's respective files
2026-03-05 04:44:19 +05:00
Alibek Omarov
36be731893
engine: cmd: make all command buffers size static
2026-03-05 04:42:56 +05:00
Alibek Omarov
0389ef3b04
game_launch: simplify
2026-03-05 02:58:00 +05:00
Alibek Omarov
b2886dd2e9
engine: platform: remove support for glibc's backtrace(), as it's unused
2026-03-05 02:56:38 +05:00
Alibek Omarov
af5d190bc4
engine: common: mod_bmodel: make texture name array larger so it fits both world name and miptex name
2026-03-04 06:06:00 +05:00
Alibek Omarov
5ca31f0965
engine: client: s_mix: always mix when not in menu, as DSP effects might produce sound even if no channels are active
2026-03-02 15:39:49 +05:00
Alibek Omarov
c19a824a42
public: add Q_memfgets, replacement for COM_MemFgets rewritten using crtlib functions. Add a test
2026-03-01 03:04:33 +05:00
Alibek Omarov
53c5a33ffd
engine: only switch to console on Host_Error when developer mode is enabled
2026-02-28 20:39:34 +05:00
Alibek Omarov
711d15958c
engine: color Host_Error red to make it more visible in the console
2026-02-28 20:39:13 +05:00
Alibek Omarov
99d7c52b4e
3rdparty: mainui: update
2026-02-28 20:27:44 +05:00
Alibek Omarov
342a59a408
engine: client: idenitification: add server IP address to the MD5 hash, not to the ID bloom filter
2026-02-28 04:20:53 +05:00
Alibek Omarov
9302b8904c
engine: client: identification: fix a typo
2026-02-28 04:17:34 +05:00
Alibek Omarov
bdbf5c0ef2
engine: client: titles: add another edge case test for titles.txt parser
2026-02-28 04:17:34 +05:00
Alibek Omarov
192ed942c4
public: add new features to ParseFileSafe, such as disabling interpreting certain characters as separate tokens, or instead forcing them to be separate tokens
2026-02-28 04:17:34 +05:00
Alibek Omarov
56255f6de0
engine: client: add simple test for titles.txt parser
2026-02-28 01:49:25 +05:00
Alibek Omarov
7ce830ea33
engine: client: vox: fix defaulted word parameters
2026-02-28 00:25:19 +05:00
Alibek Omarov
9a285986c4
public: reimplement COM_TrimSpace, add it to crtlib, add tests for it
2026-02-28 00:05:37 +05:00
Alibek Omarov
62c547570a
engine: minor refactoring
2026-02-27 23:00:39 +05:00
Alibek Omarov
88e5013623
ref: gl: vgl_shim: try to fix build on PSVita
2026-02-26 17:22:47 +05:00
Alibek Omarov
ea0fed24ec
filesystem: remove unneccessary dependency on const.h
2026-02-26 10:29:09 +05:00
Alibek Omarov
f863e346f5
engine: reduce dependency on eiface.h
2026-02-26 10:29:09 +05:00
Alibek Omarov
7c527d8886
public: minor refactoring
2026-02-26 10:29:09 +05:00
Alibek Omarov
e51f93a5b4
engine: remove unused hltv.h
2026-02-26 10:29:09 +05:00
Alibek Omarov
50147a3d48
common: replace HLSDK pmtrace.h and pm_movevars.h by it's QW counterparts
2026-02-26 10:29:09 +05:00
Alibek Omarov
26acc25018
common: use Quake derived definitions for usercmd_t and dlight_t
2026-02-26 10:29:09 +05:00
Alibek Omarov
d8e1597726
common: xash3d_types: add Quake's link_t definition and offsetof macro
2026-02-26 10:29:09 +05:00
Alibek Omarov
2c004e6cb7
3rdparty: mainui: update
2026-02-25 03:20:33 +05:00
Alibek Omarov
9cf9eb91bb
common: remove unused mathlib.h
2026-02-25 00:08:17 +05:00
Alibek Omarov
fc9ab68837
public: link tests to build_vcs too
2026-02-23 23:25:24 +05:00
Alibek Omarov
be6ad74e1b
utils: mdldec: fix building with plain makefile
2026-02-23 21:50:52 +05:00
Alibek Omarov
2bdc22fbeb
public: exclude build_vcs from libpublic dependencies, add it per project
2026-02-23 21:48:23 +05:00
Alibek Omarov
382b19e458
engine: minor refactoring
2026-02-23 21:46:20 +05:00
Alibek Omarov
c63c0ba04b
ref: minor refactoring
2026-02-23 21:46:01 +05:00
Alibek Omarov
109579fa92
3rdparty: mainui: update
2026-02-23 18:14:23 +05:00
IntriguingTiles
005544d974
engine: client: always set scaling factors
2026-02-21 17:10:37 +05:00
Alibek Omarov
07937f5f6c
engine: client: consolidate two remaining functions in s_utils.c into s_main.c
2026-02-21 03:37:36 +05:00
Alibek Omarov
8bdd6bfc5e
ref: gl: add link to web archive where the ripple animation algorithm was originally described [ci skip]
2026-02-21 03:11:02 +05:00
Alibek Omarov
8b0d3557f3
game_launch: change Sys_ChangeGame to a stub
2026-02-21 02:21:09 +05:00
Alibek Omarov
436fa98f33
engine: remove the code that calls pfnChangeGame from game_launch, as we never use it anyway
2026-02-21 02:21:09 +05:00
Alibek Omarov
718fbac9be
Merge branch 'steam-broker'
2026-02-21 02:00:53 +05:00
Alibek Omarov
abaf390dfc
engine: client: introduce a new mixer
2026-02-21 01:43:14 +05:00
Alibek Omarov
9205ddc5b4
engine: client: voice: rewrite Voice_IsGoldSrcMode to make it easier to understand and also fix build with Clang
2026-02-21 01:20:34 +05:00
Alibek Omarov
6bcb98e779
public: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty. Remove legacy macros
2026-02-21 01:20:34 +05:00
Alibek Omarov
4722ad6be6
ref: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty
2026-02-21 01:20:34 +05:00
Alibek Omarov
baa005ff71
filesystem: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty
2026-02-21 01:20:34 +05:00
Alibek Omarov
76363a555c
engine: platform: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty
2026-02-21 01:20:34 +05:00
Alibek Omarov
de70e12bbe
engine: server: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty
2026-02-21 01:20:34 +05:00
Alibek Omarov
eacc35d9e1
engine: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty
2026-02-21 01:20:34 +05:00
Alibek Omarov
3040552580
engine: client: replace COM_CheckString with COM_StringEmptyOrNULL
2026-02-21 01:20:34 +05:00
Alibek Omarov
24aaeb07cb
engine: client: replace COM_CheckStringEmpty with COM_StringEmpty
2026-02-21 01:20:34 +05:00
Alibek Omarov
ae15886a14
public: add COM_StringEmpty and COM_StringEmptyOrNULL macros (that eventually replace less obvious COM_CheckString and COM_CheckStringEmpty)
2026-02-21 01:20:34 +05:00
Alibek Omarov
b2911e6d96
engine: client: add double quotes around key in bind command in config file. Thanks @TheKingFireS for fix
2026-02-20 23:14:27 +05:00
Alibek Omarov
2735add7d0
engine: drop setgl command
2026-02-20 22:08:26 +05:00
Alibek Omarov
0abb667c28
engine: drop XASH_HASHED_VARS define
2026-02-20 22:08:05 +05:00
Alibek Omarov
19dfec5f52
engine: use BaseCmd_FindAll when looking for cvars and cmds simultaneously
2026-02-20 21:56:59 +05:00
Alibek Omarov
e0f01ddae7
engine: remove unused ignore_group argument from Cvar_FindVarExt
2026-02-20 21:55:15 +05:00
Alibek Omarov
2f8a0510b8
engine: client: return NULL from LookupBinding on unknown bindings, like GoldSource
2026-02-16 23:59:28 +05:00
Alibek Omarov
dbbe75fec6
engine: mod_bmodel: minor refactoring
2026-02-13 12:33:44 +05:00
Alibek Omarov
c0b15fb186
ci: disable freebsd-16-0-snap image as it's unsupported by cirrus
2026-02-13 12:15:46 +05:00
Alibek Omarov
f802b0eed9
engine: mod_bmodel: fix build w/ MSVC
2026-02-13 12:09:01 +05:00
Alibek Omarov
cf9f9b40e7
3rdparty: mainui: update
2026-02-13 11:40:47 +05:00
Alibek Omarov
1b2c00e228
engine: add ability to scan and load BSPX lumps. As an example support RGBLIGHTING and LIGHTINGDIR extensions.
2026-02-13 11:16:12 +05:00
Alibek Omarov
587eabd829
common: bspfile: add basic BSPX definitions
2026-02-13 11:08:35 +05:00
Alibek Omarov
80e0d45c09
3rdparty: mainui: update
2026-02-12 13:30:30 +05:00
Alibek Omarov
f034276354
readme: update discord link
2026-02-10 18:19:03 +05:00
Alibek Omarov
306455280a
engine: identification: include build.h early so platform definitions are visible when including system headers
2026-02-10 16:13:56 +05:00
Alibek Omarov
d9221c8491
scripts: waifulib: remove outdated stuff
2026-02-08 10:14:28 +05:00
Alibek Omarov
249e1404c1
engine: client: identification: add client.h so compiler doesn't complain about missing prototypes for public functions
2026-02-08 06:38:05 +05:00
Alibek Omarov
dd55b77543
engine: client: identification: do not salt port as suggested by @snmetamorph
2026-02-08 06:38:05 +05:00
Alibek Omarov
c772fb98d1
engine: client: salt xashid with server address
2026-02-08 06:38:05 +05:00
Alibek Omarov
1c1e5c50a9
3rdparty: mainui: update
2026-02-07 14:38:23 +05:00
Alibek Omarov
5cc784f2fa
engine: common: fix inverted check in addmaster
2026-02-07 14:38:12 +05:00
Razcoina
983b9611ac
avi: add audio context check before sending packet
2026-02-07 07:50:57 +05:00
Alibek Omarov
a7f154d05a
engine: platform: move SDL hints from android code to main SDL code
2026-02-05 08:45:23 +05:00
Alibek Omarov
0e75428d62
engine: avi: do not playback video if codec context is NULL
2026-02-05 08:26:43 +05:00
Alibek Omarov
fa34092ba2
engine: client: make RefAPI's R_GetConfigName optional
2026-02-05 08:17:59 +05:00
Alibek Omarov
f01818a3f8
wscript: allow linking with system-wide opus 1.6.1 which has a fix for custom modes
2026-02-05 07:47:18 +05:00
Alibek Omarov
732bc50a3a
filesystem: set custom_loader flag even if loading DLLs from archives is unsupported
...
After all, it's an engine job to figure out whether it wants to load this binary or not.
2026-02-03 17:48:27 +05:00
Владислав Сухов
e9ffe12481
ref: gl: fix opacity of additive sprites and textures in fog
2026-01-31 20:49:47 +05:00
Alibek Omarov
cca6f8da2d
engine: platform: sdl2: more robust error handling when creating a window and opengl context
2026-01-31 14:13:37 +05:00
Владислав Сухов
d391ef1747
public: crtlib: make COM_FixSlashes remove duplicate slashes
2026-01-30 02:25:44 +05:00
Alibek Omarov
4804586728
engine: let movevars.zmax be encoded in 24 bits
2026-01-30 02:04:07 +05:00
Alibek Omarov
d08fd5c855
engine: directly access background state cvar
2026-01-30 00:16:19 +05:00
Alibek Omarov
9cc884dfe6
engine: add function Cvar_DirectFullSet that acts like Cvar_DirectSet and Cvar_FullSet at the same time
2026-01-30 00:16:19 +05:00
Alibek Omarov
e767770647
common: set default window mode to windowed on windows
...
Window, window, window, window!
2026-01-30 00:16:19 +05:00
Alibek Omarov
456ad17d05
engine: platform: sdl2: make fake fullscreen for windowed mode. Simplify the code by first creating window in windowed mode and then switching to fullscreen if requested
2026-01-30 00:16:19 +05:00
Alibek Omarov
5ee21ca6ab
engine: platform: sdl2: remove window_x/ypos cvars
2026-01-30 00:16:19 +05:00
Alibek Omarov
f706b51d14
3rdparty: mainui: update
2026-01-28 15:24:13 +05:00
Alibek Omarov
d8895ae497
engine: do not set actually freed models as to be freed, fixing another models leak. Improve modellist output
2026-01-28 15:23:43 +05:00
Alibek Omarov
a807168816
engine: client: send broadcast for 10 more ports forward when scanning servers in LAN
2026-01-27 14:55:08 +05:00
Alibek Omarov
a26c56629e
engine: client: deactivate menu when on escape if we are going back to game
2026-01-26 02:17:03 +05:00
Alibek Omarov
8ee997b1bc
Reapply "engine: client: allow console toggle from menu via keybind"
...
This reverts commit 27c71194ba .
2026-01-26 02:12:07 +05:00
Alibek Omarov
27c71194ba
Revert "engine: client: allow console toggle from menu via keybind"
...
This reverts commit 9ed76fbb36 .
2026-01-26 01:37:26 +05:00
Alibek Omarov
c029def67d
3rdparty: MultiEmulator: update
2026-01-24 07:36:35 +05:00
Alibek Omarov
8bb6968ab8
scripts: waifulib: sdl2: add paths support for SDL mingw dev package
2026-01-24 07:32:02 +05:00
Alibek Omarov
cc9e3a5a81
engine: misc build fixes for clang with mingw
2026-01-24 07:21:30 +05:00
Alibek Omarov
e9cd94eea6
3rdparty: mainui: update
2026-01-24 07:20:22 +05:00
Alibek Omarov
572fd063fc
common: port: do not redefine NOMINMAX and alloca if already defined
2026-01-24 07:17:53 +05:00
Alibek Omarov
1052e45928
3rdparty: libbacktrace: wscript: add support for building on Windows
2026-01-24 07:17:11 +05:00
Alibek Omarov
df561147ec
3rdparty: libbacktrace: update
2026-01-24 07:16:49 +05:00
Alibek Omarov
9ce570fe28
3rdparty: MultiEmulator: update
2026-01-24 07:16:34 +05:00
Alibek Omarov
20a20c72d4
common: do not override neither _cdecl or _stdcall
2026-01-24 07:09:36 +05:00
Alibek Omarov
7a8837bf2a
ref: do not remove permanent decals
2026-01-22 23:40:59 +05:00
Alibek Omarov
b83d763a50
3rdparty: mainui: update
2026-01-21 22:23:19 +05:00
Alibek Omarov
b2ab748fcb
engine: do not reset flNextPrimaryMove in pmove struct, as it's used by modders
2026-01-21 05:10:51 +05:00
Alibek Omarov
56e5a95cb6
engine: platform: sdl2: add command vid_info to dump current SDL window state
2026-01-21 01:58:38 +05:00
Alibek Omarov
214b133e5d
engine: fix build
2026-01-20 23:43:28 +05:00
Alibek Omarov
f9bbe2a2c4
engine: make host.argv an array of pointers to const data
2026-01-20 22:42:14 +05:00
Alibek Omarov
c5f90aabd6
engine: use Sys_GetIntFromCmdLine where possible
2026-01-20 22:30:39 +05:00
Alibek Omarov
77123f710b
3rdparty: mainui: update
2026-01-20 19:27:18 +05:00
Владислав Сухов
5c5c0ad94d
engine: common: prepare support for direct scr writing
2026-01-20 19:26:28 +05:00
Alibek Omarov
5232ccb6e3
engine: server: do not print the port in ban list, it's not used there and causes issues when exported to a config
2026-01-20 00:37:23 +05:00
Alibek Omarov
bc387477ce
engine: common: fix world submodels were not being purged correctly, leading to a "memory leak"
2026-01-20 00:34:10 +05:00
Alibek Omarov
1c6eb85a12
public: crtlib: modify format of Q_timestamp TIME_FILENAME to make it sortable
2026-01-19 22:33:49 +05:00
Alibek Omarov
ed950723cd
engine: client: add cl_autorecord cvar, to start recording demo as soon as client spawns on server
2026-01-19 22:30:20 +05:00
Alibek Omarov
e06087cb0b
engine: client: move svc_restoresound parser into svc_sound parser
2026-01-19 22:07:59 +05:00
Alibek Omarov
8cbc7819a6
engine: common: transform asserts into Host_Error calls in Mod_LoadModel
2026-01-19 22:00:33 +05:00
Alibek Omarov
7c588540d8
engine: common: http: fix incorrect parsing of URLs
2026-01-18 15:33:10 +05:00
Alibek Omarov
0e0763c820
engine: client: steam: drop broker address after terminate
2026-01-17 06:18:07 +05:00
Alibek Omarov
e5d3f180dc
engine: client: implement steam broker client side
2026-01-17 06:18:07 +05:00
Alibek Omarov
5cb5e76872
engine: add new needload flag specifically for cleaning up unused models and use unreferenced for free slots.
2026-01-17 06:17:46 +05:00
Alibek Omarov
742265c2c4
ref: remove limit on total amount of textures a studio model can contain
2026-01-17 06:17:46 +05:00
Alibek Omarov
4e49cc49f8
engine: common: http: optimistically treat https as http as a temporary hack
2026-01-17 06:17:46 +05:00
Владислав Сухов
09ca41ea36
engine: server: drop ghost fakeclients before changelevel
2026-01-16 14:27:41 +05:00
Alibek Omarov
896bbe8fc3
engine: server: add Host_Error on unknown pfnWalkMove state
...
In GoldSrc default branch interpreted as WALKMOVE_NORMAL, and there might be
some mods that expect this.
But Xash never did this, and if Xash-specific games rely on that behavior, we
better know about it.
2026-01-16 14:19:38 +05:00
Alibek Omarov
ed85d3028f
engine: client: fix division by zero in cl_showfps on first frame
2026-01-15 04:42:36 +05:00
Alibek Omarov
8e33f11dc6
engine: server: replace MAX_INFO_STRING with appropriate sizeof, remove some set but unused variables
2026-01-13 18:09:37 +05:00
Alibek Omarov
4bb547fdc7
engine: platform: sdl: revert disabled NET_WM_BYPASS_COMPOSITOR
2026-01-13 08:35:46 +05:00
Alibek Omarov
8af5ecdb06
mainui: update
2026-01-13 08:27:03 +05:00
Alibek Omarov
5a0517c1b8
engine: server: refactoring, better validation of cl_updaterate and rate values. Allow sv_min/maxupdaterate to be set to 0 for unlimited powah
2026-01-13 08:27:03 +05:00
Alibek Omarov
5ed1bca57f
engine: client: allow enabling sv_cheats during demo playback
2026-01-13 08:27:03 +05:00
Alibek Omarov
d5892f3794
engine: change sleeptime resolution from 1 microsecond to 100 microseconds, as apparently sleeping for a microsecond isn't enough to lower CPU usage
2026-01-13 08:27:03 +05:00
Alibek Omarov
32aee7ef2f
engine: add sv_hibernate_when_empty that cuts down CPU usage on empty servers, similar to the feature in Source
2026-01-13 08:27:03 +05:00
Alibek Omarov
3a5d57603f
engine: print unknown command message in dedicated mode and when not on server
2026-01-13 08:27:03 +05:00
Steven Linn
c865999302
engine: fix window position drift on X11 with window decorations
2026-01-13 06:31:29 +05:00
Steven Linn
cb69a52d65
engine: fix black fullscreen flash on startup in windowed mode
2026-01-13 06:31:29 +05:00
Steven Linn
d915ed184c
Add 'retry' command for quick reconnection to servers
2026-01-13 06:28:15 +05:00
Alibek Omarov
bdc205b994
engine: client: do not grab client updates during intermission, fixes the bug where player was seemingly moving during intermission
2026-01-13 06:26:26 +05:00
Alibek Omarov
46ccc37cae
engine: fix undefined pfnTime build error, it has been renamed to Sys_FloatTime
2026-01-13 06:03:34 +05:00
Alibek Omarov
d7b96ea8c2
engine: pass arguments on engine restart on nswitch, add forgotten -changegame parameter, simplify code for other platforms
2026-01-13 05:51:19 +05:00
Alibek Omarov
de9e28700a
engine: client: prevent a crash in case of invalid tempentity message (thanks, @Aynekko!)
2026-01-13 05:51:19 +05:00
Alibek Omarov
f5b2c4f7af
engine: client: prevent a crash in goldsrc delta entities parser
2026-01-13 05:51:19 +05:00
Alibek Omarov
79f7fba83c
engine: client: make both UI and Render API to use same implementation of GetFilesList function
2026-01-13 05:51:19 +05:00
Alibek Omarov
cb7f2ad8af
engine: replace Sys_DoubleTime with Platform_DoubleTime in internal code, only use Sys_DoubleTime in APIs
...
As Sys_DoubleTime is marked with GAME_EXPORT attribute that helps us to
maintain compatible binary interface.
2026-01-13 05:51:19 +05:00
lewa_j
5cdb58431a
engine: ref: Remove unused declarations, fix comment after rename
2026-01-13 03:41:19 +03:00
lewa_j
543d6d67e6
engine: platform: Make R_Init_Video parameter an enum
2026-01-13 03:25:29 +03:00
lewa_j
72e8a53046
engine: Fix input_completion buffer comparison
...
Fixes: 4b771701 ("engine: add con_showcompletion feature from FTEQW")
2026-01-13 03:22:19 +03:00
lewa_j
deb7b2061a
engine: platform: WINDOW_MODE_* enums for vid_fullscreen instead of magic numbers
2026-01-13 02:16:05 +03:00
lewa_j
8a75104cbc
commoon: engine: Fix not including all dependencies for headers. (Just some used in ref)
2026-01-12 13:52:04 +05:00
lewa_j
e7f758f380
engine: ref: Fix crash on invalid ref lib
2026-01-12 03:20:58 +03:00
Alibek Omarov
a4e5cf8bac
engine: client: fix up origin of MOVETYPE_FOLLOW entities immediately after entity update
...
This fixes an issue when MOVETYPE_FOLLOW entities seem to be "blinking".
Explanation of what's happening is in the comment in the code.
2026-01-09 18:50:29 +05:00
ksagameng
0976d96419
crtlib: Force use xash strchrnul implementation on ios
2026-01-05 09:37:20 +05:00
ncuxonaT
e39f8bf7c4
ref: gl: always use RGTC internal format for ATI2 textures
...
AMD убрала в новых драйверах поддержку расширения GL_ATI_texture_compression_3dc, из-за чего сломалась загрузка ATI2 текстур. Формат RGTC включен в стандарт OpenGL 3.0, а единственные видеокарты с поддержкой 3DC, но без RGTC - это серия Radeon X1000 (2005г.). Можно было бы только ради Х1000 проверять поддерживаемые расширения и переключаться на 3DC, но без явной необходимости этого делать не хочется.
2026-01-03 08:17:09 +05:00
Steven Linn
9ed76fbb36
engine: client: allow console toggle from menu via keybind
2026-01-02 10:31:44 +05:00
Alibek Omarov
4b77170136
engine: add con_showcompletion feature from FTEQW
2025-12-27 13:13:23 +05:00
Alibek Omarov
a168719905
engine: force generating vfs.cfg if it doesn't exists
2025-12-27 10:40:24 +05:00
Alibek Omarov
c950530e44
engine: common: masterlist: fix reporting wait state
2025-12-24 07:12:43 +05:00
Alibek Omarov
5584e6376c
engine: client: voice: shutdown refactoring
2025-12-24 06:51:16 +05:00
Alibek Omarov
fcd7e7dcea
engine: client: small sound refactoring, try to round volume values
2025-12-24 06:51:04 +05:00
Alibek Omarov
548a49ed93
engine: client: set a volume for VOX sentences playing from listener
2025-12-24 06:49:38 +05:00
Alibek Omarov
68a7689108
engine: client: fix incorrect usage of Mod_TestBmodelLumps return value in Cmd_ListMaps, causing it to crash
2025-12-23 14:05:36 +05:00
Nikita
58996c3d0d
ref: gl: use wireframe overlay for bmodel faces as well
2025-12-21 02:32:12 +05:00
Alibek Omarov
41925a1aa7
engine: platform: sdl3: implement audio output using streams
2025-12-18 12:06:48 +05:00
Alibek Omarov
c834f7c559
engine: platform: sdl3: add events handler
2025-12-18 11:40:52 +05:00
Alibek Omarov
a66262a787
engine: platform: sdl3: add few more vid functions, add REF_WINDOW_TYPE_SDL3 to query specifically for SDL3 window
2025-12-18 10:26:06 +05:00
Alibek Omarov
3b51708160
engine: platform: sdl3: implement window creation, fill out required stubs to make it compile
2025-12-18 10:00:46 +05:00
Alibek Omarov
ee6004a88d
engine: platform: sdl2: minor refactorings
2025-12-18 09:59:37 +05:00
Alibek Omarov
414da98c21
Documentation: add example GPL copyright header
2025-12-18 09:58:49 +05:00
Alibek Omarov
30ad3556dd
engine: small refactorings in sdl2 support, enable messagebox and timer in sdl3 backend back
2025-12-16 05:18:28 +05:00
Alibek Omarov
67a121ef8e
engine: ref_api: actually bump API version
2025-12-16 05:15:23 +05:00
Alibek Omarov
e7743587a1
mainui: update
2025-12-15 11:42:09 +05:00
Alibek Omarov
1b66367d3d
engine: server: add a warning if server DLL couldn't be loaded, refactor calling GetEntityAPI exports
2025-12-14 04:59:24 +03:00
Alibek Omarov
bc61516083
engine: client: show an error if user tries to load incompatible or outdated client.dll
2025-12-14 04:43:33 +03:00
Alibek Omarov
dae8c6cb9c
filesystem: in case of missing/incomplete liblist.gam make c0a0 default start map
2025-12-14 04:41:52 +03:00
Alibek Omarov
bed1c669aa
ci: update freebsd tasks
2025-12-14 03:52:16 +03:00
Alibek Omarov
785b2881b6
engine: client: fix crash when sound pitch is too high
2025-12-14 03:44:17 +03:00
Alibek Omarov
ce08f071b1
engine: platform: sdl2: use permonitor DPI awareness to avoid unneeded window titlebar resize
2025-12-14 02:23:07 +03:00
Alibek Omarov
e102857735
engine: platform: sdl2: prefer tga icons on Windows
2025-12-14 02:17:44 +03:00
Alibek Omarov
e973c42bfa
engine: platform: sdl2: fix stupid bug when window of the size of display gets interpreted as fullscreen window
2025-12-14 02:12:44 +03:00
Alibek Omarov
4a16ca8bc0
engine: platform: sdl2: fix fullscreen mode not fullscreening
2025-12-14 01:01:59 +03:00
Alibek Omarov
f9e82170ac
engine: platform: sdl2: set window position to undefined when coming back from fullscreen to windowed
2025-12-13 23:36:58 +03:00
Alibek Omarov
ad01be8866
engine: platform: sdl2: get maximized state in VID_SaveWindowMode
2025-12-14 00:44:05 +05:00
Alibek Omarov
40c7c5b348
engine: platform: sdl2: disable high dpi support on Windows temporarily
2025-12-14 00:17:01 +05:00
Alibek Omarov
66ea91270b
engine: make Image_ComputeSize shared between renderer and imagelib
2025-12-14 00:00:59 +05:00
Alibek Omarov
44fb4fb594
engine: common: imagelib: remove dependency on OpenGL declarations in texture formats
2025-12-13 23:59:40 +05:00
Alibek Omarov
16c849d085
engine: common: imagelib: refactoring
2025-12-13 23:11:48 +05:00
Alibek Omarov
e2835a7614
engine: common: imagelib: fix incorrect check for big endian pixel formats
2025-12-13 22:30:03 +05:00
Alibek Omarov
837bf652c5
engine: server: check that save file were successfully opened for writing, show the error otherwise
2025-12-13 00:36:33 +05:00
Alibek Omarov
ae5793f258
engine: log the error if file couldn't be opened for writing
2025-12-13 00:36:33 +05:00
ksagameng
146244f1f4
scripts: gha: Set hlsdk minimum ios version to 12.0
2025-12-10 16:56:09 +05:00
ksagameng
fa7a04f535
readme: updated instructions
2025-12-10 16:56:09 +05:00
ksagameng
db2c2e685d
scripts: ios: generate .dSYM files and make zip quiet
2025-12-10 16:56:09 +05:00
ksagameng
324b152307
Documentation: change iOS to supported in ports.md
2025-12-10 16:56:09 +05:00
Alibek Omarov
09a68bbebd
engine: platform: sdl2: allow DPI scaling on Windows
2025-12-09 19:22:40 +05:00
Alibek Omarov
2b7773d933
engine: platform: sdl2: rework picking suitable resolution when creating or modifying current window
2025-12-09 03:29:16 +05:00
Alibek Omarov
aaef9fd91c
engine: platform: sdl2: simplify checking if window fits on any display, always grab updated window size
2025-12-08 21:12:40 +05:00
Alibek Omarov
15f37a301f
engine: platform: sdl2: let system pick better window position if it doesn't fit anywhere
2025-12-08 21:01:13 +05:00
Alibek Omarov
807b5df17b
engine: platform: sdl2: use generic SDL_GetWindowSizeInPixels to get physical window size, if possible
2025-12-08 19:06:29 +05:00
Alibek Omarov
2a3dcecfae
engine: platform: sdl2: add a note about useless and broken WarpMouseInWindow on Wayland
2025-12-08 19:05:38 +05:00
Alibek Omarov
a858719a4b
engine: platform: sdl2: restore scaling mouse position for hi-dpi support
2025-12-08 19:05:13 +05:00
Alibek Omarov
c844cf7ec1
engine: platform: sdl2: refactor VID_RestoreScreenResolution to accept window_mode_t instead of reading cvar value
2025-12-08 18:57:31 +05:00
Alibek Omarov
a4431b5cfd
engine: store scaling factor between physical and logical window size
2025-12-07 15:23:35 +03:00
Alibek Omarov
7e730cf171
common: by default, use borderless fullscreen mode
2025-12-07 15:23:35 +03:00
Alibek Omarov
9569900b9c
engine: redefine cvar flags in functions arguments from plain int to uint32_t
2025-12-07 15:23:35 +03:00
Alibek Omarov
5c190567e5
engine: client: add cvars vid_width and vid_height to query physical window size
2025-12-07 15:23:35 +03:00
Max Parry
2ef374ff4a
engine: imagelib: img_bmp: support for big endian RGB format
...
Allows software rendering save screenshots
2025-12-06 19:46:25 +11:00
Max Parry
2c20734ad3
ref: soft: Fix out of bounds memory access in VID_ScreenShot
2025-12-06 19:41:46 +11:00
TheEVolk
a4f8fc2205
engine: add clc_bad log packet cmd value
2025-12-02 00:21:36 +05:00
Alibek Omarov
4ed3e539fa
engine: client: validate server info message
2025-12-01 13:03:53 +05:00
Alibek Omarov
3bc32d6e1b
engine: shift netchan flags bit to the right, as one of the flags is removed
2025-12-01 13:03:53 +05:00
Alibek Omarov
e05d6ec27c
common: net_api: add a note about reserved bit for deprecated extension
2025-12-01 13:03:53 +05:00
Alibek Omarov
cfa8e639f1
engine: drop legacy protocol support
2025-12-01 13:03:53 +05:00
ncuxonaT
bbe659ebfa
ref: gl: fix loading texture arrays
2025-11-30 18:33:57 +05:00
Steven Linn
bf5821e4ea
engine: fix vid_maximized always set to true when switching to windowed mode
2025-11-30 18:11:56 +05:00
Alibek Omarov
a1dc006488
scripts: disable software renderer on Android
2025-11-30 02:59:53 +05:00
Alibek Omarov
31c30aeb28
Documentation: move engine/game development guides to development subdirectory
2025-11-30 02:52:00 +05:00
Alibek Omarov
2516ed71d6
Documentation: add tutorial on using Qt Creator
2025-11-30 02:45:46 +05:00
Alibek Omarov
acbeb8fd30
wscript: ignore Qt Creator 18.0 config directory in clean command
2025-11-30 02:42:02 +05:00
Alibek Omarov
ab5ac3aae8
3rdparty: maintui: another build fix, this time for platforms where C chars are unsigned
2025-11-27 23:58:48 +05:00
Alibek Omarov
da133d890f
gitmodules: update to our xash3d-maintui fork
2025-11-27 23:42:32 +05:00
ncuxonaT
2736d1fd03
dds volume texture fix - gl_image.c
2025-11-27 23:17:18 +08:00
ncuxonaT
c7f18d7abe
dds volume texture fix - img_dds.c
2025-11-27 23:17:18 +08:00
Alibek Omarov
d5347a82cb
engine: platform: get rid of the mouse pos scaling hack, this is not how highdpi issues should get resolved
2025-11-27 19:34:51 +05:00
Alibek Omarov
e32470280d
engine: add file size argument to brush model loading functions
2025-11-27 19:26:36 +05:00
Alibek Omarov
ceb5cd61e4
ref: gl: enable NPOT textures on GLES3 contexts as per spec
2025-11-27 19:18:27 +05:00
Alibek Omarov
75339193d7
engine: client: remove vid_highdpi cvar, always allow high dpi mode
2025-11-25 15:06:46 +05:00
Alibek Omarov
07da038b4b
engine: platform: sdl2: move dpi awareness hint set before SDL_Init, as documentation says it needs to be set before video init
2025-11-23 14:54:15 +05:00
Alibek Omarov
a2b597577f
engine: platform: sdl2: do not hide X11 hints under any platform macro
2025-11-23 14:50:51 +05:00
Alibek Omarov
9cf2d9fa86
engine: platform: sdl2: set up DPI awawareness on Windows through SDL hint
2025-11-23 14:50:12 +05:00
Alibek Omarov
d45ced5c66
engine: platform: sdl2: when closest video mode isn't found, revert to desktop video mode
2025-11-23 12:50:54 +05:00
Alibek Omarov
6aadb4ceea
engine: initialize default video mode in refState global, as we don't support reloading engine without reinitializing globals anyway
2025-11-23 11:54:33 +05:00
Alibek Omarov
c956c65e33
ref: gl: don't misleadingly tell about enabled vsync on engine startup before configs are parsed
2025-11-23 11:45:47 +05:00
Alibek Omarov
86dfbc3e34
common: make bspfile.h use stdint types, reformat the file
2025-11-22 13:40:11 +05:00
Alibek Omarov
3fc59104f3
engine: make FS_CopyImage argument const
2025-11-22 13:11:41 +05:00
Alibek Omarov
aae59ac281
engine: client: remove unused temppaintbuffer array
2025-11-22 13:11:18 +05:00
Alibek Omarov
e8a2047d4c
engine: client: use utility function to copy an image before quantization
2025-11-22 13:11:00 +05:00
Alibek Omarov
56972a811c
readme: better wording [skip ci]
2025-11-19 14:47:47 +05:00
Alibek Omarov
27086bfb97
engine: set r_wadtextures and r_allow_wad3_luma as latched cvars, as those require reloading textures and thus the game
2025-11-18 15:38:25 +05:00
Alibek Omarov
93dfcc344b
engine: implement loading luma in half-life
2025-11-18 15:35:20 +05:00
Alibek Omarov
c2448c8881
engine: imagelib: allow specifiying index for empty pixels when processing luma texture
2025-11-18 15:35:20 +05:00
Alibek Omarov
26df99ae41
utils: xar: fix build
2025-11-18 15:35:20 +05:00
Marc-Antoine Lortie
45cff25bbc
readme: fix hlsdk-portable link
2025-11-18 08:48:27 +08:00
Alibek Omarov
5556668fc3
wscript: add option to disable rpath usage
2025-11-17 13:01:06 +05:00
Xav101
1b28d183fc
wscript: rework link flags on IRIX to handle GL and SDL linking correctly
2025-11-17 03:08:38 +08:00
Xav101
15bbe9892e
public: mathlib: add parenthesis to fix ambiguous order of operations
2025-11-17 03:08:38 +08:00
Xav101
7236094421
platform: add missing include
2025-11-17 03:08:38 +08:00
Xav101
c85c6f80e0
platform: fix type in formatter string
2025-11-17 03:08:38 +08:00
Alibek Omarov
dd7811e5bc
filesystem: wscript: do not link library_suffix on PSVita
2025-11-16 18:46:08 +05:00
veygax
28c118a4e6
engine: zone: free poolchain on every iteration of Memory_Init
...
free poolchain when calling Memory_Init multiple times.
Fixes: memory leak when running run-fuzzer-Image_LoadBMP
Signed-off-by: veygax <veyga@veygax.dev >
2025-11-16 01:17:05 +08:00
Daniyar Tussupbekov
49b0619c9a
readme: update README.md for android build instruction ( #2120 )
...
* readme: update README.md for android build instruction
* Update Android build instructions in README
Corrected instructions for running in Android Studio and added a new section for building on Android.
---------
Co-authored-by: a1batross <a1ba.omarov@gmail.com >
2025-11-15 10:06:21 +05:00
veygax
0c3c6345e9
engine: imagelib: fix pixel iteration bounds checking on 1-bit BMPs
...
move 1-bit BMP bounds checking to the beginning of a loop to prevent a second iteration
Fixes: [GHSA-3p7j-2339-g5mm](https://github.com/FWGS/xash3d-fwgs/security/advisories/GHSA-3p7j-2339-g5mm )
Signed-off-by: veygax <veyga@veygax.dev >
2025-11-15 12:50:33 +08:00
Alibek Omarov
747baa1e16
engine: client: additionally look for loading images with bmp and png extensions
2025-11-13 22:01:55 +05:00
Alibek Omarov
2e5d2c1dcc
3rdparty: library_suffix: update
2025-11-12 20:28:04 +05:00
Alibek Omarov
300edb3318
engine: remember last resolved master server address for about a minute
2025-11-12 20:04:55 +05:00
Alibek Omarov
0dfeea5213
Migrate to library-suffix library
2025-11-11 06:59:41 +05:00
Alibek Omarov
d9150734c9
3rdparty: add library_suffix subproject
2025-11-11 06:59:41 +05:00
Alibek Omarov
65514b73fd
common: render_api: explicitly include stdint.h as we use intptr_t in the API
2025-11-11 06:22:43 +05:00
Alibek Omarov
d366e04682
engine: client: voice: fix typo, sequence must be incremented after it's written to the buffer
2025-11-09 02:55:58 +05:00
ksagameng
5151f9559b
scripts: ios: Fix built hlsdk not working on older ios
2025-11-08 06:50:07 +08:00
Alibek Omarov
62c56b877f
3rdparty: mainui: update
2025-11-07 04:08:06 +05:00
Alibek Omarov
420a907776
wscript: silently ignore exception if --no-undefined is not in the linkflags list on darwin
2025-11-07 04:05:19 +05:00
Alibek Omarov
184e976c5d
engine: call appropriate model loader on big endian
2025-11-06 23:37:27 +05:00
Alibek Omarov
6154e54661
wscript: fix a typo in -Wl,-undefined,error
2025-11-06 23:36:50 +05:00
Alibek Omarov
73950e867f
filesystem: initial set of fixes for big endian
2025-11-06 23:26:12 +05:00
Alibek Omarov
822aa00bd6
wscript: replace --no-undefined with -undefined error for Darwin for compatibility with older linkers (tested on 10.4)
2025-11-06 21:51:09 +05:00
Alibek Omarov
681808ca3d
3rdparty: mainui: update
2025-11-06 20:06:52 +05:00
Alibek Omarov
a0b40fc2da
engine: common: explicitly cast function offset into size_t, even though it's signed ptrdiff, saverestore offset mistakingly used unsigned numbers
2025-11-06 20:06:51 +05:00
Alibek Omarov
955c5570d8
engine: client: voice: increment sequence before it's passed into LittleShort macro
2025-11-06 20:06:51 +05:00
Alibek Omarov
2094c72c95
engine: client: soundlib: use correct printf specifier for ptrdiff
2025-11-06 20:06:51 +05:00
Alibek Omarov
0795fe92fe
public: build: allow older __ppc__ macro defined by GCC 4.0 (even though I probably won't support GCC 4.0)
2025-11-06 20:06:51 +05:00
Alibek Omarov
9ce131e6be
engine: client: fix a typo
2025-11-06 23:06:33 +08:00
Alibek Omarov
08b718995c
engine: client: restore reduced resend time for bandwidth test
2025-11-06 23:06:33 +08:00
Alibek Omarov
4900955fc1
engine: client: set cl_dlmax to FRAGMENT_DEFAULT_SIZE when connecting to an old server or server that test disabled
2025-11-06 23:06:33 +08:00
Alibek Omarov
9d00e52c42
engine: server: require challenge for bandwidth test
2025-11-06 23:06:33 +08:00
Alibek Omarov
6c2bad610f
engine: client: request test packet only after we got challenge from server
2025-11-06 23:06:33 +08:00
Alibek Omarov
27c6004191
ci: disable freebsd-15 build due to bug with missing bzip2.pc
2025-11-05 09:13:45 +05:00
Alibek Omarov
500d385e6b
ci: use macos-15-intel for x86 engine builds
2025-11-05 09:10:12 +05:00
Alibek Omarov
5739946330
engine: server: limit bandwidth test to max 1400 bytes
2025-11-03 19:28:59 +05:00
Alibek Omarov
8a94256558
public: fix build with C++
2025-11-03 19:28:59 +05:00
ksagameng
a66774d65f
ci: ios: Minor change
2025-11-03 04:36:59 +08:00
ksagameng
a9f159bae5
ci: ios: Implement suggestions and use hlsdk mobile_hacks
2025-11-03 04:36:59 +08:00
ksagameng
a6108b7930
ci: Add iOS builds
2025-11-03 04:36:59 +08:00
Alibek Omarov
43066656bd
3rdparty: restore submodules hash after last merge
2025-11-01 18:33:42 +05:00
ksagameng2
a9bf700da4
Restore iOS build support ( #2352 )
...
* initial commit
* initial commit
* add port files
* ios: Changes to allow creating app bundle without xcode projects
* ios: Added mic perms request
* ios: Very basic app bundle creation script
* ios: Fix -log parameter
* ios: Sdk no longer hardcoded and option to compile for simulator
* general: Update gitignore
* ios: Enable game mode for the app
* ios: Compile instructions and updated ipa creation script
* ios: Code cleanup
* ios: Remove dylibs
* general: Remove extra submodules
* ios: Remove dylibs again
* ios: Implement suggested changes
* ios: Fix building as dylib instead of binary
* ios: Scripts for building mods
* ios: Move 'ios' contents to engine/platform/ios/bundle and modify scripts
* ios: Update createipa.sh to use waf install
* ios: Clean script and updated README
* general: Fix spelling mistake and outdated instructions
* ios: Clean up in xcompile.py
* ios: Fix createipa.sh generating an invalid ipa
* ios: Temporary fix for launch dialog textfield colors in dark mode
2025-11-01 18:32:00 +05:00
Sergey Degtyar
ee7dce68b8
engine: client: streamline samples handling
2025-11-01 21:24:49 +08:00
Alibek Omarov
a14cc82d46
engine: add buffer size argument to RefAPI's Mod_ProcessRenderData, bump RefAPI version
2025-10-31 15:58:05 +05:00
Alibek Omarov
b3dc772cd2
engine: add file size argument to sprite model loader
2025-10-31 15:56:31 +05:00
Alibek Omarov
9bb9575c6d
ci: update freebsd dependencies package list
2025-10-31 12:31:07 +05:00
Alibek Omarov
359cc9b1e7
security: add a security policy
2025-10-30 17:43:01 +05:00
Alibek Omarov
6a9f61e69f
engine: soundlib: ignore TXXX tags that's size exceeds 255 (sizeof( string ) - 1) bytes to account for null terminator
...
Thanks @veygax for the report!
2025-10-30 17:31:11 +05:00
Alibek Omarov
21ea83027e
engine: imagelib: fix buffer overflow when the amount of colors in palette reported by BMP header are higher than 256
...
Thanks to @veygax for report!
2025-10-30 17:30:02 +05:00
Alibek Omarov
f22a50b680
3rdparty: update maintui and mainui
2025-10-24 14:30:59 +05:00
Alibek Omarov
7217c7f1b2
engine: client: deprecate and remove all code associated with linear/cubic upsampling
2025-10-23 14:56:50 +05:00
Alibek Omarov
cfb8e0882a
Revert "engine: client: fixed blueish outline on sprays converted to WAD3"
...
This reverts commit a5f7314ec9 .
2025-10-20 07:47:58 +05:00
Alibek Omarov
f1fde32c29
Drop legacy AuroraOS code
2025-10-19 07:39:47 +05:00
Alibek Omarov
c6a5c64448
engine: client: touch: implement rotation support
2025-10-19 05:35:28 +03:00
Alibek Omarov
b8f0a89846
engine: client: validate vid_rotate cvar value and save current rotation to ref global
2025-10-19 06:27:10 +05:00
Alibek Omarov
684f7fb75e
ref: gl: implement rotation for 3D
2025-10-19 06:26:28 +05:00
Alibek Omarov
4dabb5d1f9
ref: gl: implement rotation for 2D
2025-10-19 06:25:43 +05:00
Alibek Omarov
ea2c864265
engine: server: don't pass uninitialized pointers to the server DLL in SetupVisibility function
2025-10-17 14:54:52 +05:00
Alibek Omarov
7315865d34
engine: client: include null byte in synthetised HudText messages, to match real HudText messages sent from server
2025-10-17 14:07:48 +05:00
Alibek Omarov
6d987d083e
android: delete .nomedia if it's a directory
2025-10-17 15:58:59 +08:00
Alibek Omarov
6e9edcdd50
android: try to automatically create .nomedia file in directory where games are located
2025-10-17 15:58:59 +08:00
Alibek Omarov
7a02110a42
ref: gl: fix out of bounds access
...
On GPUs where GL_ARB_shading_language_100 isn't available (i.e. all mobile GPUs
I believe) this function would return total amount of texture units available.
But ref_gl only tracks and uses MAX_TEXTURE_UNITS texture units, causing memory
corruption in functions that doesn't check the limit.
2025-10-17 09:19:23 +05:00
Alibek Omarov
9330e44817
filesystem: fix missing newline in anonymous file creation error string. Turn it into a warning, because it's not fatal
2025-10-17 09:08:50 +05:00
Alibek Omarov
5d7cb90bea
ref: gl: use our own matrix functions to create 2D projection and modelview matrices
2025-10-17 09:08:50 +05:00
Alibek Omarov
a7b466e4a9
scripts: gha: try to update vitaGL
2025-10-16 08:12:13 +08:00
Alibek Omarov
4c7e37d5fd
engine: few more cases of missing newline in Cbuf_AddText that I forgot to include in previous commit
2025-10-16 04:57:04 +05:00
Alibek Omarov
d8dcfc0ab3
engine: add \n to all Cbuf_AddText calls
2025-10-16 04:36:38 +05:00
Alibek Omarov
fb56873352
engine: client: increase lower cl_dlmax bound to 512 for goldsrc protocol
2025-10-16 01:21:30 +05:00
Alibek Omarov
8c4ef5200c
engine: client: drop unknown interpolation hack, that might've caused hiccups when prediction fails
2025-10-16 01:21:30 +05:00
SNMetamorph
a5f7314ec9
engine: client: fixed blueish outline on sprays converted to WAD3
2025-10-12 20:58:56 +08:00
Alibek Omarov
4f444ee6ea
engine: client: for goldsrc status messages, always mark them of goldsrc protocol
2025-10-12 04:14:37 +05:00
Alibek Omarov
651d6a4529
engine: client: remove useless messages in console about scanned servers
2025-10-12 04:12:43 +05:00
lewa_j
851b3d6d70
utils: mdldec: move XASH_WIN32 check after it is defined in build.h
2025-10-11 20:38:06 +03:00
lewa_j
5c0cc771bc
engine: win32: fix msvc warning "'LPSTR' differs in levels of indirection from 'string (*)'" with GetConsoleTitleA
2025-10-11 20:22:37 +03:00
lewa_j
acebb5b0cf
engine: client: fix msvc warning "incompatible types - from 'STARTUPINFO *' to 'LPSTARTUPINFOW'"
2025-10-11 20:22:34 +03:00
lewa_j
5f707e37b1
utils: xar: Fix windows build with -Werror=implicit-function-declaration
2025-10-11 20:22:29 +03:00
Alibek Omarov
af585fec08
utils: mdldec: fix build with implicit function declaration on MSVC
2025-10-11 21:23:49 +05:00
lewa_j
37e9ac453b
win32: engine: common: client: filesystem: Fix windows build with -Werror=implicit-function-declaration
2025-10-12 00:21:00 +08:00
lewa_j
7bb630db2a
wscript: -Werror=implicit-function-declaration analog for msvc
2025-10-12 00:21:00 +08:00
Alibek Omarov
0e22e8aa76
wscript: disable declaration-after-statement, we don't need it anymore
2025-10-11 20:58:48 +05:00
Alibek Omarov
492a1cda18
engine: client: treat A button on gamepad the same as Enter in On Screen Keyboard
2025-10-11 06:04:40 +05:00
Alibek Omarov
01a1c2f496
engine: client: add ability to build engine without touch input support
2025-10-11 05:58:14 +05:00
Alibek Omarov
cf23005ff2
engine: client: remove comments of touch init/shutdown function call that seem to be some indescribable legacy
2025-10-11 05:52:19 +05:00
Alibek Omarov
5ff640b142
engine: client: manually mark entity and model index validation branches are unlikely
2025-10-11 05:48:42 +05:00
Alibek Omarov
6c3ae914fa
common: add PSP platform definitions
2025-10-11 05:45:03 +05:00
Alibek Omarov
654d7013c6
public: add PSP definitions
2025-10-09 22:32:30 +05:00
Alibek Omarov
4d300e9d30
scripts: waifulib: xcompile: add PSP compiling tools
2025-10-09 22:32:30 +05:00
SNMetamorph
51a9524465
engine: client: fixed incorrect xashid generation on windows platform
2025-10-10 01:29:57 +08:00
Alibek Omarov
6817df534b
engine: console: don't try to process input while printing messages to console, this only was needed in OG Xash where it directly called Win32 APIs
2025-10-09 19:27:29 +05:00
Alibek Omarov
1c8e51c9f9
common: port: always include unistd.h for POSIX systems
2025-10-08 05:28:16 +05:00
Alibek Omarov
8d7ee70e7d
engine: platform: android: include dlfcn.h for Android's LoadLibrary implementation
2025-10-08 05:27:53 +05:00
Alibek Omarov
0c08f113ea
engine: platform: sdl2: add vrtld.h include for GL_GetProcAddress implementation
2025-10-08 05:24:59 +05:00
Alibek Omarov
8022c4826f
engine: platform: sdl2: remove legacy eglGetProcAddress hack for old SDL2 versions
2025-10-08 05:24:16 +05:00
Alibek Omarov
0efe65a5bc
utils: mdldec: define local mkdir macro
2025-10-08 05:19:19 +05:00
Alibek Omarov
ccbb3a2841
engine: fix format error when building tests on 64-bit platforms
2025-10-08 05:08:48 +05:00
Alibek Omarov
3d132e0e83
common: port: move filesystem related macros to filesystem module, try to include less globally for faster builds
2025-10-08 05:03:29 +05:00
Alibek Omarov
0a5a081a9d
engine: client: touch: forcefully disable edit mode when setclientonly was called
2025-10-08 05:02:08 +05:00
Alibek Omarov
d16ef9bf2a
common: xash3d_types: refactoring
2025-10-08 05:02:08 +05:00
Alibek Omarov
748c35d5ef
Remove _inline macro, as it's nonstandard way to define inline functions.
2025-10-08 03:53:37 +05:00
Alibek Omarov
a1d3b7d65f
Remove STDINT_H macro, use stdint.h directly. Compilers and platforms that do not have this header shall provide them on their own.
2025-10-08 03:53:37 +05:00
Alibek Omarov
1834bd6076
Documentation: protocol: fix groups, regenerate toc
2025-10-05 10:20:30 +05:00
Alibek Omarov
abde9d30c6
Documentation: protocol: add Table of Contents to connectionless protocol documentation
2025-10-05 10:09:30 +05:00
Alibek Omarov
64adb3e3d7
engine: rename MS_SCAN_REQUEST to A2M_SCAN_REQUEST
2025-10-05 10:04:18 +05:00
Alibek Omarov
b4e83ca7fd
Documentation: document connectionless messages
2025-10-05 10:03:55 +05:00
Alibek Omarov
3efbe205ac
engine: define server-to-master requests in protocol.h
2025-10-05 09:28:11 +05:00
Alibek Omarov
55a86e1df3
engine: server: tell master server if server protected with password
2025-10-05 09:26:41 +05:00
Alibek Omarov
712c1e2f95
engine: fix send state of master servers being cleared twice
2025-10-04 00:14:58 +05:00
Alibek Omarov
6d7bfc37f6
engine: allow loading xashcomm.lst from base directory
2025-10-03 22:45:50 +05:00
Alibek Omarov
8e7a2abec5
scripts: waifulib: compiler_optimizations: always lower case build type
2025-10-03 22:05:47 +05:00
Alibek Omarov
cc5f95d1ca
engine: support querying legacy goldsrc master servers
...
* General refactoring, hide out of band messages under cl_log_outofband cvar, similar to sv_log_outofband.
2025-10-03 21:54:59 +05:00
SNMetamorph
62a49d234f
engine: client: improved compatibility with GoldSrc-based clients behavior (thanks @Garey27)
2025-10-03 21:34:03 +08:00
Alibek Omarov
8b55d01f78
filesystem: fix missing const qualifier on FS_WriteGameInfo
2025-10-03 17:41:34 +08:00
Alibek Omarov
1d7690f280
engine: client: remove unused cbtrim and samplefrac fields from voxword_t
2025-10-03 00:04:04 +05:00
Alibek Omarov
4ef23543ae
filesystem: make current set GameInfo const
2025-10-02 22:42:51 +05:00
Alibek Omarov
a366f99d7d
engine: client: do not modify internal_vgui_support field as game info must be immutable once loaded
2025-10-02 22:42:20 +05:00
Alibek Omarov
8c2c920076
engine: client: fill screen with black before rendering video
2025-10-02 22:41:27 +05:00
Alibek Omarov
338636092f
3rdparty: mainui: update
2025-10-02 19:40:31 +05:00
Alibek Omarov
e8d8d90b39
engine: ref_api: fix typo in the comment (thanks @lewa_j)
2025-10-02 19:21:39 +05:00
Alibek Omarov
cb7094bb2d
engine: move setjmp for exit-in-main to the beginning of Host_Main function
2025-10-02 18:42:09 +05:00
Alibek Omarov
d9567ff3f9
engine: cleanup unused glw_state fields, as they only used in GL renderer
2025-10-02 18:07:39 +05:00
Alibek Omarov
3d0533ad84
wscript: fix a typo in -Wuninitialized (thanks @lewa_j)
2025-10-02 18:03:20 +05:00
Alibek Omarov
153b04abc3
engine: move crash handler initialization after console, so error messages could be seen in console, but move log creation before console, so log catches more messages
2025-10-02 05:40:58 +08:00
Alibek Omarov
25bfbd3a6b
3rdparty: libbacktrace: wscript: fix config defines not being set
2025-10-02 05:16:59 +08:00
Alibek Omarov
5015c90fd0
engine: platform: posix: try to be more safe in crash handler, no need to fflush stderr, no need to call Msg if we already writing to log file directly, preserve replaced signal actions
2025-10-02 03:49:31 +08:00
Alibek Omarov
e830472010
engine: move update page checks from platform-specific ShellExecute implementation to gameui call (platform_update_page isn't fully used yet, might get on Android some time later)
2025-10-02 03:16:07 +08:00
Alibek Omarov
04f807ef2f
engine: platform: android: tell JVM that we don't need these strings anymore, it wouldn't hurt
2025-10-02 03:15:19 +08:00
Alibek Omarov
55d50e2815
filesystem: explicitly tell JVM that we're done with some objects
2025-10-02 02:42:32 +08:00
Alibek Omarov
7266c5469a
ci: upgrade to latest SDL2 release
2025-10-01 17:22:06 +08:00
Alibek Omarov
47d181aa92
scripts: gha: always build tarball with engine even if AppImage port is available
2025-10-01 14:53:27 +08:00
Alibek Omarov
dce3d9d517
3rdparty: mainui: update
2025-09-29 04:38:36 +05:00
Alibek Omarov
e5a5804ff5
3rdparty: mainui: update
2025-09-29 03:19:49 +05:00
Alibek Omarov
821e5d7bd7
engine: client: avi: fix build with ffmpeg with disabled dynamic linking
2025-09-29 03:19:38 +05:00
Alibek Omarov
52978df139
engine: platform: posix: replace Sys_FindExecutable by standard library execvp
2025-09-29 00:35:28 +05:00
Alibek Omarov
9aab12fc27
engine: remove global no async resolve switch, platforms that do not support it shall add stubs to engine/platform
2025-09-29 00:12:37 +05:00
Alibek Omarov
e83ab95279
engine: gethostbyname() is deprecated, remove it and always prefer getaddrinfo
2025-09-29 00:09:56 +05:00
Alibek Omarov
7c0045a3b7
engine: show -noavi and -nointro options help everywhere, as we now have crossplatform video playback
2025-09-29 00:07:21 +05:00
Alibek Omarov
1f88e0465d
engine: make Host_ExitInMain used everywhere, as we depend on sjlj functions on all platforms anyway
2025-09-29 00:06:41 +05:00
Alibek Omarov
cee1e74872
engine: drop dllemu glue, as it won't build with current engine anyway and not supported by it's author :(
2025-09-29 00:01:59 +05:00
Alibek Omarov
1f124bad9d
engine: client: remove archive flag from cl_trace_* message that was added by mistake
2025-09-28 23:00:35 +05:00
Alibek Omarov
71cec3c069
engine: activate fakelag when both cheats and dev-mode are enabled
2025-09-28 22:50:51 +05:00
Alibek Omarov
69204aec07
engine: client: synchronize sv_cheats state with the server
2025-09-28 22:32:41 +05:00
Alibek Omarov
8b65cd73fc
engine: server: advertise sv_cheats state during connect
2025-09-28 22:15:26 +05:00
Alibek Omarov
7ba0818b83
engine: client: change r_pvs_radius default value to 0.1 for more accurate pvs culling and free performance
2025-09-28 18:32:53 +05:00
Alibek Omarov
cb81303ded
engine: replace hardcoded pvs radius value by a r_pvs_radius cvar
2025-09-28 18:31:03 +05:00
Alibek Omarov
1b1cff1cae
engine: server: allow sending logs to remote server without log on to match GoldSrc behavior
2025-09-25 16:29:32 +05:00
Alibek Omarov
53bf302868
3rdparty: mainui: update
2025-09-25 15:41:47 +05:00
Alibek Omarov
ef70530226
scripts: waifulib: compiler_optimizations: automatically enable xtheadvector extension on C910 (like T-Head TH1520)
2025-09-25 11:07:49 +08:00
lewa_j
d073218df0
3rdparty: mainui: update
2025-09-22 13:31:27 +03:00
Alibek Omarov
40ce6c0069
3rdparty: maintui: update
2025-09-22 09:25:54 +05:00
Alibek Omarov
3c4c6e5a1c
3rdparty: mainui: update
2025-09-22 09:25:33 +05:00
Alibek Omarov
2e852e4398
scripts: flatpak: better message for missing GL32 extension
2025-09-21 01:25:14 +05:00
Alibek Omarov
04dee4e94d
scripts: flatpak: add more guardrails just in case if 32-bit runtime missing
2025-09-21 00:18:43 +05:00
Alibek Omarov
96557c2ca6
engine: server: clarify sv_fps cvar usage
2025-09-19 15:56:58 +05:00
Alibek Omarov
bf32c49a39
engine: server: disable sv_fps cvar on dedicated, users shall use sys_ticrate
2025-09-19 15:56:58 +05:00
Alibek Omarov
9becba3bc0
android: automatically load default libraries for known gamedirs, supported by mobile_hacks branch
2025-09-19 09:24:08 +05:00
Alibek Omarov
c177be0dd8
engine: move our HTTP client to http subfolder, prepare for curl integration
2025-09-19 09:15:17 +05:00
Alibek Omarov
a5ff9b1c84
gha: don't forget to checkout before calling release script from the repo
2025-09-19 07:25:02 +05:00
Alibek Omarov
fe9e68ed24
scripts: flatpak: bump freedesktop sdk to 25.08
2025-09-18 10:15:33 +05:00
Alibek Omarov
2106260238
scripts: gha: set make_release.sh to be executable
2025-09-18 10:10:50 +05:00
Alibek Omarov
eed1d26191
engine: client: avi: be more verbose about incompatible ffmpeg libs versions in build-time
2025-09-17 12:47:09 +05:00
Alibek Omarov
6115ef0821
gha: move release commands into it's own script
2025-09-17 12:46:35 +05:00
Marc-Antoine Lortie
a63db5f31d
Add backslash before apostrophes.
2025-09-16 04:34:54 +05:00
Marc-Antoine Lortie
2553bd7f37
Android: Add French translation.
2025-09-16 04:34:54 +05:00
Alibek Omarov
2da0db4a31
engine: client: refactor connection to the server, always send bandwidth test and challenge from single function
2025-09-15 13:03:22 +05:00
Drive Kinght
5fc104c6a4
android: add Chinese translation
2025-09-12 16:27:24 +05:00
Alibek Omarov
39066bf82b
3rdparty: mainui: update
2025-09-11 08:06:11 +05:00
Alibek Omarov
03192be245
engine: server: actually register new cvars =/
2025-09-10 17:52:37 +05:00
Alibek Omarov
b59ba5a127
engine: server: make automatic ban of players stuck in connect loop optional and make ban time configurable
2025-09-09 14:55:22 +05:00
LekKit
c399611fc7
Merge branch 'master' into master
2025-09-09 09:45:06 +03:00
Sergey Degtyar
ccc44f3c5f
engine: voice: fix voice loopback bit
2025-09-09 01:19:27 +05:00
Alibek Omarov
b2f4d84272
engine: client: give server a bit more time to reply to bandwidth test
2025-09-08 21:19:53 +05:00
Alibek Omarov
97b8fa74a7
3rdparty: mainui: update
2025-09-07 23:29:16 +05:00
Alibek Omarov
c679037085
ref: gl: fix -Wformat error on 64-bit platforms
2025-09-07 01:56:54 +05:00
Alibek Omarov
793de9ec3e
engine: move clc_strings definition to net_buffer, alongside svc_strings
2025-09-06 04:58:34 +05:00
Alibek Omarov
ccff8191dd
engine: server: increase sv_connect_timeout to 60 by request
2025-09-06 04:50:34 +05:00
Alibek Omarov
d039a08b4e
ref: gl: fix up data types. Engine TMU type is int, rather than GLint, and texture indices are technically unsigned int only (and they aren't GLenum)
2025-09-06 01:57:36 +05:00
Alibek Omarov
c0e8827cd5
ref: gl: refactoring, use bitset macros, use static for global objects
2025-09-06 01:57:36 +05:00
Alibek Omarov
11f976d9e9
ref: gl: simplify r_speeds, get rid of R_Speeds_Printf in favor using Q_snprintf directly
2025-09-06 01:31:53 +05:00
Alibek Omarov
7c83aafbf5
ref: gl: fix incorrect usage of GL_Bind in R_ShowTextures (it accepts engine's texture id, not opengl texture name)
2025-09-06 01:26:43 +05:00
Alibek Omarov
699e178f62
ref: gl: remove excessive ASSERT macro, use Assert everywhere
2025-09-06 00:41:48 +05:00
Alibek Omarov
598d756af1
engine: platform: sdl2: hide SDL log messages under -dev 2, as they're often misleading for everybody except engine developers
2025-09-05 18:20:12 +05:00
Alibek Omarov
c2e2686b6a
engine: voice: send disabled voice status when raw chan is exhausted, also send enabled status only when we have something to play
...
And other minor refactorings.
2025-09-03 04:20:22 +05:00
Alibek Omarov
9df2b8f1fb
engine: server: refactor SV_ParseVoiceData
2025-09-03 03:52:44 +05:00
Alibek Omarov
1ba45bde13
engine: server: fix voice block inverted logic, instead of checking the player's we're sending listeners list, check current player
2025-09-03 03:51:15 +05:00
Alibek Omarov
5106ebae58
engine: voice: fix local player server ack'ed message
2025-09-03 03:40:15 +05:00
Alibek Omarov
6b6bf7e458
Revert "engine: voice: unconditionally notify client.dll about talking player if we received the data"
...
This reverts commit 9fda7a15cb .
2025-09-03 03:30:24 +05:00
Alibek Omarov
2daaa94666
engine: voice: fix voice loopback on GoldSrc proto
2025-09-03 03:07:36 +05:00
Alibek Omarov
b129ed8f76
engine: voice: fix another off-by-one error, to fix server's ack status of local player talking
2025-09-03 03:01:49 +05:00
Alibek Omarov
9fda7a15cb
engine: voice: unconditionally notify client.dll about talking player if we received the data
2025-09-03 02:23:54 +05:00
Alibek Omarov
e38dc29411
3rdparty: mainui: update
2025-09-02 22:30:57 +05:00
Alibek Omarov
7e3dc39cdd
engine: similar to other config saving functions, print when vfs.cfg is being saved
2025-09-01 01:46:27 +05:00
Alibek Omarov
9c6589fa03
engine: introduce vfs.cfg to properly control user set addon folders
...
vfs.cfg executed before game directory is mounted, this way we can know which
folders must be mounted before engine initialization.
This commit also removes buggy hot reload of the addon folders.
2025-09-01 01:42:37 +05:00
Alibek Omarov
5e53ccab55
waf: update to latest waifu
2025-08-31 12:30:25 +05:00
Alibek Omarov
42b0a9a13d
scripts: gha: copy SDL library with all symlinks to it
2025-08-30 21:46:39 +05:00
Alibek Omarov
b504876646
3rdparty: maintui: update
2025-08-30 21:24:48 +05:00
Alibek Omarov
a0a0d58be5
engine: client: unify quality options between Xash and GoldSrc protocol (lowering overall bitrate for Xash servers, which might help overcome default rate limitations)
2025-08-30 19:32:50 +05:00
Alibek Omarov
03571f831e
3rdparty: vgui_support: update
2025-08-30 19:32:50 +05:00
Alibek Omarov
83fe4d6c59
ref: gl: mark gl_frustum_t pointer as const in frustum culling functions
2025-08-30 19:32:50 +05:00
David
a83c483616
ndroid: add Spanish translation by @MBM711
2025-08-27 21:44:51 +05:00
Alibek Omarov
4c0931cc89
engine: fix loading mods on Linux that have Intel architecture suffix, like ag_i386.so
2025-08-27 16:12:21 +05:00
Alibek Omarov
e52c46ec5e
engine: imagelib: rename mips variable to mipmaps, to avoid clash with some MIPS compilers
...
While here, reduce some variables scope.
2025-08-25 11:37:14 +05:00
Alibek Omarov
dd967ffa75
3rdparty: update mainui_cpp and maintui
2025-08-25 11:32:03 +05:00
Владислав Сухов
6474e07472
android: update russian strings
2025-08-22 21:39:53 +05:00
Владислав Сухов
dc1e39264b
Documentation: donate: add new donation info
2025-08-22 13:36:35 +05:00
Alibek Omarov
74b196d2c3
ref: gl: do not apply multisampling when drawing 2D
2025-08-17 23:43:53 +05:00
Andrey Akhmichin
4f9eb9f229
Documentation: opensource-mods.md: add Crack-Life.
2025-08-17 22:25:12 +05:00
Menino David
31c5ed69a7
android: update Brazilian Portuguese translation
2025-08-17 22:25:02 +05:00
Andrey Akhmichin
6e00e6c34c
Documentation: supported-mod-list.md: add Crack-Life.
2025-08-17 22:23:16 +05:00
Eoin O'Neill
9df725f1e9
readme: use SDL3 with sdl2-compat on Fedora/RedHat
...
SDL2 is no longer available directly on Fedora as of Fedora 42.
I believe this should also be true on RedHat EL but I'd like feedback
there.
2025-08-16 14:42:45 +05:00
Bohdan Shulyar
f0720026fc
engine: client: touch: don't reset state if clientonly didn't change
2025-08-13 20:51:10 +05:00
Alibek Omarov
6b4a16b337
engine: client: do not cause assertion when using voice chat when sound is disabled or failed to initialize
2025-08-13 19:32:33 +05:00
Alibek Omarov
f12ef07c02
engine: whereami: add support for GNU/Hurd
2025-08-13 17:02:22 +05:00
Alibek Omarov
59d771c4e4
public: add definitions for GNU/Hurd
2025-08-13 16:45:53 +05:00
Bohdan Shulyar
e716290523
android: add runtime permissions for older android versions
2025-08-13 15:43:18 +05:00
Alibek Omarov
3ca168b329
android: set requestLegacyExternalStorage specifically for Android 10 which didn't had MANAGE_EXTERNAL_STORAGE yet
2025-08-12 13:43:02 +05:00
Alibek Omarov
4f45df2293
engine: imagelib: add missing argument name, so it compilers with old C standards compliant compilers
2025-08-11 20:50:03 +05:00
Alibek Omarov
af0d77caf7
filesystem: android: more verbosity when mounting assets on Android fails
2025-08-11 18:49:26 +05:00
Alibek Omarov
3a6862f278
engine: when specifying server dll name with an @ (give that feature a name please), actually look for it in server dlls folder
2025-08-11 18:44:12 +05:00
Alibek Omarov
2ad482ee2f
engine: platform: android: add some verbosity when successfully loading libraries on Android (hidden under -dev 2)
2025-08-11 18:36:44 +05:00
Alibek Omarov
be0d31f408
engine: imagelib: try to use FS_Search to bruteforce through supported image formats
2025-08-08 18:14:46 +05:00
Alibek Omarov
7c8e2a598f
android: restore su.xash.engine.MOD action intent filter
2025-08-08 17:49:30 +05:00
Alibek Omarov
820a001ced
engine: move prepending lib prefix on Android earlier, when the path is constructed
2025-08-08 17:03:56 +05:00
Alibek Omarov
a5b68c5ed9
public: remove unused global
2025-08-08 17:01:35 +05:00
Alibek Omarov
f37738f6f8
android: set useLegacyPackaging to true, disable noCompress
2025-08-08 16:16:35 +05:00
Alibek Omarov
4cc009ac3e
engine: always prepend lib on Android, as it's part of library naming scheme now
2025-08-08 16:16:05 +05:00
Alibek Omarov
5100125fef
Documentation: extensions: library-naming: add a note about distributing Android game libraries
2025-08-08 16:13:48 +05:00
Alibek Omarov
1c0d145874
filesystem: restore lib prefix on Android, otherwise Android won't unpack the libraries
2025-08-08 16:00:03 +05:00
Alibek Omarov
0e48f57247
3rdparty: mainui: update
2025-08-05 19:04:33 +05:00
Alibek Omarov
f9ec8f0b85
wscript: disable {gcc,msvc}deps with wafcache enabled
2025-08-05 19:03:53 +05:00
Alibek Omarov
a4614a00e9
engine: move android logging category from debug to info
2025-08-05 19:03:53 +05:00
Bohdan Shulyar
0ba45d343e
host: common: switch host_writeconfig to direct function call
2025-08-05 01:31:21 +05:00
Bohdan Shulyar
2c26601bee
engine: common: add a host_writeconfig console command
2025-08-05 01:31:21 +05:00
Alibek Omarov
10ada3c141
Revert "scripts: gha: temporarily switch hlsdk-portable branch to android_library_naming for testing"
...
This reverts commit c1c0c2761d .
2025-08-04 10:39:04 +05:00
Alibek Omarov
4912e84d46
android: enable x86 and x86_64 abis back
2025-08-04 10:38:59 +05:00
Alibek Omarov
81c7ef20eb
filesystem: android: use commit date as android assets file time
2025-08-04 10:25:42 +05:00
Alibek Omarov
ac22de84bf
public: remove Q_buildnum generated from __DATE__ macro, as we rely only on Git now
2025-08-04 10:25:42 +05:00
Alibek Omarov
70f6480a5f
engine: add a shortcut for loading custom DLLs that follow library naming scheme (like bots)
2025-08-03 19:01:56 +05:00
Alibek Omarov
95bfb7cdf2
scripts: build-ninja: add support for installing libraries with cmake, compared to yanking them out of build directory
...
Set up hlsdk-portable to install in APK style directory (omitting game and game library directories from path).
Minor refactoring.
2025-08-03 19:01:56 +05:00
Alibek Omarov
b22186b2f1
engine: platform: android: strip library path when loading libraries from APK
2025-08-03 19:01:56 +05:00
Bohdan Shulyar
70e53f547b
android: add some simple run instructions
2025-08-03 19:01:56 +05:00
Bohdan Shulyar
8047f8177b
android: add some simple docs
2025-08-03 19:01:56 +05:00
Bohdan Shulyar
95bf2f03ad
android: bump deps
2025-08-03 19:01:56 +05:00
Bohdan Shulyar
ca6de641a1
android: experimental ninja build
2025-08-03 19:01:56 +05:00
Bohdan Shulyar
bb811310d2
android: fix weird acra build error
2025-08-03 19:01:56 +05:00
Bohdan Shulyar
cd881c079b
android: don't generate x86 libraries for now
2025-08-03 19:01:56 +05:00
Bohdan Shulyar
2319d4caf9
android: bump gradle
2025-08-03 19:01:56 +05:00
Bohdan Shulyar
ac412fc15e
android: add a (not working yet) basedir option
2025-08-03 19:01:56 +05:00
Bohdan Shulyar
4f7a216191
android: update codebase to use java File API
2025-08-03 19:01:56 +05:00
Velaron
d87cdd7ff8
android: reformat codebase
2025-08-03 19:01:56 +05:00
Velaron
2c53cc7e70
android: upgrade buildsystem
2025-08-03 19:01:56 +05:00
Velaron
b7bb81fbe7
android: remove DocumentsProvider
2025-08-03 19:01:56 +05:00
Velaron
a767540a2b
android: remove currently unused or invalid resources
2025-08-03 19:01:56 +05:00
Alibek Omarov
f1251e8767
engine: platform: android: do not automatically prepend lib prefix
2025-08-03 19:01:56 +05:00
Alibek Omarov
c1c0c2761d
scripts: gha: temporarily switch hlsdk-portable branch to android_library_naming for testing
2025-08-03 19:01:56 +05:00
Alibek Omarov
c69a87fa89
filesystem: wscript: strip lib prefix on Android
2025-08-03 19:01:56 +05:00
Alibek Omarov
bf7f952d0e
defaults: disable INTERNAL_GAMELIBS for Android
2025-08-03 19:01:56 +05:00
Alibek Omarov
6aecc45ce1
engine: platform: include errno.h globally, it's defined by the C standard, so should be available everywhere
2025-08-03 10:27:36 +05:00
Alibek Omarov
bfc10a732a
engine: register forgotten ui_language cvar, so changing language actually works (thanks @Alivebyte on GitHub\!)
2025-08-03 10:23:31 +05:00
Alibek Omarov
67d1536127
public: rename rsqrt to Q_rsqrt due to weird collision with tgmath.h macro
...
It was reported on Discord with no additional information attached. But I guess
it might be better to prefix our math- and crtlib functions in general.
2025-08-03 10:20:52 +05:00
Alibek Omarov
56db9f73d8
engine: platform: ignore nanosleep EINTR error, otherwise sleeptime will never use nanosleep again
2025-08-03 10:18:29 +05:00
lewa_j
250d425b34
engine: platform: sdl2: use -egl to force EGL on windows, same as on other platforms
2025-08-03 08:21:14 +05:00
lewa_j
99140fc7df
engine: platform: sdl2: Allow SDL to use wgl to create gles context, if it can
2025-08-03 08:21:14 +05:00
Alibek Omarov
2557d5acaa
3rdparty: opus: limit assembly to SSE and SSE2
...
Otherwise whole engine builds with SSE4.1 and AVX support with LTO enabled. =/
2025-08-03 04:34:46 +05:00
lewa_j
b14a1b664f
engine: platform: sdl2: Fix uninitialized read introduces in 7fda58561f
2025-08-02 17:59:26 +03:00
Alibek Omarov
56361b52e7
3rdparty: opus: enable platform optimized code (x86 SSE/AVX with runtime detection and NEON on ARM)
...
Along that enable hardening and check for C99 lrintf (probably can do the same in the engine at some point).
2025-08-02 12:27:26 +05:00
Alibek Omarov
da1b9ad80d
scripts: waifulib: xcompile: enable cross compilation automatically if CROSS_COMPILE environment variable is set
2025-07-31 03:17:39 +05:00
Alibek Omarov
aec1213319
scripts: waifulib: xcompile: fix NDK 28 minimal API version
2025-07-31 03:17:39 +05:00
Alibek Omarov
cb4540a877
engine: platform: android: call SDL_OpenURL only if XASH_SDL was defined during build. Remove version check, as Android always builds with latest SDL version.
2025-07-30 23:33:08 +05:00
Alibek Omarov
613768c3f9
wscript: add experimental option to enable wafcache [skip ci]
2025-07-30 21:07:45 +05:00
Alibek Omarov
234a16d611
scripts: waifulib: xcompile: add support for kbuild-style CROSS_COMPILE environment variable [skip ci]
2025-07-30 21:06:32 +05:00
Alibek Omarov
e468371394
3rdparty: libbacktrace: similarly, use C compiler for multicheck tests, as this is a C project
2025-07-29 21:42:40 +05:00
Alibek Omarov
671157ee20
public: wscript: set compiler for tests using compiler key instead of directly setting up features, otherwise it won't add uselib
2025-07-29 21:42:02 +05:00
Alibek Omarov
4398de1dab
public: wscript: explicitly set language for libc tests in multicheck, as Waf chooses C++ by default
...
Compiling tgmath.h test with C++ compiler causes misdetection on PSVita which has broken tgmath.h support.
2025-07-29 20:41:59 +05:00
Alibek Omarov
dc09cf0c39
public: fix incorrect logic where libc extension defines were exported without an actual check
2025-07-29 11:31:45 +05:00
Alibek Omarov
f4854dbcde
public: wscript: parallelize libc extension checks for faster reconfigure
2025-07-29 08:57:57 +05:00
Alibek Omarov
25e206f5ae
engine: platform: posix: remove old crashhandler as libbacktrace supports much more targets, remove duplicated code around execinfo and libbacktrace-based crashhandlers
...
Update copyright headers.
2025-07-29 08:14:06 +05:00
Andrey Akhmichin
b3d3a15c3d
utils: mdldec: bump version to 1.2.1.
2025-07-27 22:02:59 +05:00
Andrey Akhmichin
92faa25670
utils: mdldec: add support for absolute paths on *nix.
2025-07-27 22:02:59 +05:00
lewa_j
3eed2769d5
ref: wscript: gl4es fix typo
2025-07-27 16:27:55 +05:00
lewa_j
6302553ee4
ref: update nanogl and wes submodules
2025-07-27 16:27:55 +05:00
lewa_j
ae2808dff7
ref: gles3compat: Fix crashes on stubs under windows, probably due to signature missmatch
2025-07-27 16:27:55 +05:00
lewa_j
af69df15e1
ref: Fix gl4es build under windows. Static gl functions declared with APIENTRY even without mangling.
2025-07-27 16:27:55 +05:00
lewa_j
98e4aae6bb
ref: wscript: Fix gl4es invalid build flags under msvc
2025-07-27 16:27:55 +05:00
Sergey Degtyar
3e921c829f
engine: client: fix CL_DrawCenterPrint aligment for cyrillic text
2025-07-26 19:57:23 +05:00
Sergey Degtyar
e994cc0c8b
engine: client: adjust SPRAY_ALPHA_THRESHOLD
2025-07-25 02:32:40 +05:00
Alibek Omarov
cd26b1f279
engine: imagelib: img_quant: reduce used colors from 256 to 255, so last color in palette can be reserved for custom usage (like transparency in player decals)
2025-07-25 01:39:59 +05:00
Alibek Omarov
24f05e3fc5
engine: client: refactor spray logo, get rid of unneeded bmp checks
2025-07-25 01:34:46 +05:00
Alibek Omarov
2bdeb05153
engine: client: oops, fix including non-existent file
2025-07-25 00:24:45 +05:00
Alibek Omarov
de4b635b19
engine: client: move cl_spray.c only external function declaration to client.h, move other definitions to cl_spray.c
2025-07-24 23:59:15 +05:00
SNMetamorph
ab744a8baf
engine: client: fixed critical bugs in GoldSrc spray generating code, removed useless hacks
2025-07-24 20:49:05 +05:00
SNMetamorph
0aca03d343
engine: client: refactored GoldSrc sprays code, removed magic numbers
2025-07-24 20:49:05 +05:00
Alibek Omarov
eeca965b5d
3rdparty: update libbacktrace and mainui submodules
2025-07-18 19:00:39 +05:00
Alibek Omarov
eb27dc639e
Documentation: remove public server rules and recommendation (it might be back after reworking it)
2025-07-18 19:00:39 +05:00
Bohdan Shulyar
af5c6d1196
donate: update url
2025-07-18 03:47:09 +05:00
Sergey Degtyar
0cce014c01
engine: client: fix spray support for 24-bit BMP (save as miptex, not decal)
2025-07-17 02:20:36 +05:00
Sergey Degtyar
6111df486e
engine: client: GoldSrc spray support
2025-07-16 23:54:56 +05:00
Sergey Degtyar
7dc88f9417
filesystem: common: move wad structures to wadfile.h
2025-07-16 23:54:56 +05:00
Sergey Degtyar
e36486b73a
engine: imagelib: handling wad extension to save and load image properly
2025-07-16 23:54:56 +05:00
Sergey Degtyar
000304ddde
engine: net_chan: added bz2 compression for file fragments
2025-07-16 23:54:56 +05:00
Alibek Omarov
4c9b69af5f
engine: mod_bmodel: allow firstclipnode index to be negative, as maps compiled with it rely on this trick by encoding whole hull as empty contents
2025-07-16 23:42:49 +05:00
SNMetamorph
599b1b48ec
engine: voice: added wrapper for players voice status array to avoid mess with off-by-one errors
2025-07-15 18:54:01 +05:00
Alibek Omarov
4e23012950
ci: disable build for e2k-8c for now (probably will compile natively on e2k-4c instead)
2025-07-13 04:43:34 +05:00
Alibek Omarov
6e69e1d67b
scripts: gha: build engine for Linux and Windows with FFmpeg linked in runtime by default, thus allowing for smaller distribution size for game developers
2025-07-13 04:39:44 +05:00
Alibek Omarov
7564e3c61f
engine: client: add support for building with FFmpeg linked in runtime
2025-07-13 04:39:44 +05:00
Alibek Omarov
0543b861ca
ci: upgrade win32-i386 build runner to windows-2022 (which probably will break XP support... or it might not)
2025-07-09 19:31:12 +05:00
Alibek Omarov
0d403a7117
engine: client: console: make con history remember modifications to old lines
2025-07-09 19:23:17 +05:00
Alibek Omarov
928ce9d754
engine: client: console: simplify history handling by defining a separate type for console lines saved in history
...
Thus we don't need to save linewidth for them anymore.
2025-07-09 19:22:29 +05:00
Alibek Omarov
6cc3bed60a
engine: client: console: fix uninitialized variable
2025-07-09 19:04:59 +05:00
Alibek Omarov
40dfd2e711
engine: client: voice: fix off by one errors (as suggested by @SNMetamorph)
2025-07-09 18:29:36 +05:00
Alibek Omarov
c554eef3b9
engine: client: add ability to disable prepending [Xash3D] tag to the nickname when connecting to GoldSrc servers
2025-07-09 17:44:13 +05:00
Alibek Omarov
dc0648e812
engine: net_http: validate file size against reported by server, when downloading chunked files
2025-07-09 17:35:25 +05:00
Alibek Omarov
3d762802ab
Merge remote-tracking branch 'pwd491/gsvoice'
2025-07-09 16:43:14 +05:00
Sergey Degtyar
21b0516724
engine: client: move voice reset to Voice_Shutdown
2025-07-03 16:25:24 +03:00
Sergey Degtyar
cca1732245
engine: client: refactored voice.c
...
- reformatted code.
- changed function declarations to static.
- ensured consistent use of defined constants for buffer sizes.
2025-07-03 13:50:57 +03:00
Sergey Degtyar
fddf0200db
engine: client: replaced hardcoded buffer sizes with defined constants for voice data
2025-07-03 13:36:25 +03:00
Sergey Degtyar
6bb7bcd378
engine: client: GoldSrc voice chat support
...
- Added support for GoldSrc voice mode, including initialization and shutdown functions.
- Implemented data size verification for the GoldSrc voice package.
- Creation and processing of voice packets, CRC verification of data integrity.
- Added a Steam ID field to the client_static_t structure
- Automatic gain control has been introduced for voice samples.
- The voice status structure has been updated.
- Refactored voice data handling for better type consistency and maintainability.
- Fixed ISO C90 compliance issues for better portability.
- Fixed decoder index usage.
2025-07-01 16:09:09 +03:00
Sergey Degtyar
f37bbec78e
engine: sound: voice buffer isolation and correct MP3 volume handling
2025-06-26 06:57:50 +03:00
Sergey Degtyar
50a8f23b43
engine: sdl: always reset device descriptors on shutdown
2025-06-26 06:57:37 +03:00
Marc-Antoine Lortie
f9fc26239b
Update reimplementations and ports links.
2025-06-24 21:41:39 +03:00
Marc-Antoine Lortie
9f797ef705
Fix repository spelling.
2025-06-24 21:40:40 +03:00
Alibek Omarov
a7671a8ac1
3rdparty: update UI submodules
2025-06-19 16:43:08 +05:00
Alibek Omarov
c807faf5b9
engine: client: rename queryserver to ui_queryserver (so q<tab> will always result in quit command, by users request)
2025-06-19 16:43:08 +05:00
Alibek Omarov
45dd15b064
wscript: remove unused --enable-emscripten
2025-06-19 15:48:50 +05:00
Alibek Omarov
7e50026100
engine: server: fix restoring player view entity after save restore (fixes trigger_camera usage)
2025-06-19 15:22:54 +05:00
Alibek Omarov
05a258a5b4
engine: client: respect intro videos aspect ratio
2025-06-19 14:29:34 +05:00
Alibek Omarov
902fa52cbd
Revert "scripts: gha: fix ffmpeg build flavor (the one we're using for now don't have minimal flavor)"
...
This reverts commit 2267b2e4e6 .
2025-06-16 06:24:39 +05:00
Alibek Omarov
cc528d407d
Revert "scripts: gha: use full ffmpeg builds, as ours are not finalized yet"
...
This reverts commit 7f5e62d03a .
2025-06-16 06:24:35 +05:00
Alibek Omarov
2267b2e4e6
scripts: gha: fix ffmpeg build flavor (the one we're using for now don't have minimal flavor)
2025-06-16 06:21:17 +05:00
Alibek Omarov
7f5e62d03a
scripts: gha: use full ffmpeg builds, as ours are not finalized yet
2025-06-15 16:01:23 +05:00
Alibek Omarov
e3bfdf4127
engine: wscript: remove duplicated --enable-ffmpeg option
2025-06-15 14:25:28 +05:00
Alibek Omarov
bf186b8178
github: set correct flatpak github action version
2025-06-15 13:18:34 +05:00
Alibek Omarov
907e02da8d
Merge ffmpeg support
2025-06-15 13:15:17 +05:00
yohimik
2234f91c38
ref: gl: add stubs for WebGL
2025-06-15 13:01:13 +05:00
Alibek Omarov
582fe9a2fc
common: defaults: Emscripten doesn't use INTERNAL_GAMELIBS anymore
2025-06-15 13:01:13 +05:00
Alibek Omarov
fa92a5fa0c
engine: common: disable colored stdout for Emscripten
2025-06-15 13:01:13 +05:00
Alibek Omarov
342aa56144
engine: wscript: increase default memory size for Emscripten port, include game files from rodir folder in source tree root
2025-06-15 13:01:13 +05:00
Alibek Omarov
e9440a8612
filesystem: fix folder exists check in RoDir
2025-06-15 13:01:13 +05:00
Alibek Omarov
3e396bb55a
engine: host: allow console if DEFAULT_DEV is set to larger than 0 value
2025-06-15 13:01:13 +05:00
Alibek Omarov
72b8182af0
public: comment out XASH_JS define to avoid arch misdetection on modern Emscripten versions
2025-06-15 13:01:13 +05:00
Alibek Omarov
6022865cae
engine: filesystem_engine: set default root directory on Emscripten
2025-06-15 13:01:13 +05:00
Alibek Omarov
1559b1b331
engine: system: exit from Emscripten with force_exit call
2025-06-15 13:01:13 +05:00
Alibek Omarov
5db150e565
engine: launcher: get rid of Emscripten load library hacks, mount IDBFS into /rwdir
2025-06-15 13:01:13 +05:00
Alibek Omarov
e823ba050a
engine: whereami: add stub for Emscripten
2025-06-15 13:01:13 +05:00
Alibek Omarov
6f545f178e
engine: host: move main loop contents into separate function
2025-06-15 13:01:13 +05:00
Alibek Omarov
b598daf049
engine: wscript: disable default install for Emscripten, we need to rename main program into index.html and also install additional outputs
2025-06-15 12:51:57 +05:00
Alibek Omarov
3f5ca210a0
common: port: set .wasm as libraries extension on Emscripten
2025-06-15 12:51:57 +05:00
Alibek Omarov
f1e665b5b3
engine: wscript: disable async ns resolve for Emscripten for now
2025-06-15 12:51:57 +05:00
Alibek Omarov
eb84efd260
wscript: set Emscripten defaults
2025-06-15 12:51:57 +05:00
Alibek Omarov
90884a2d09
scripts: waifulib: sdl2: use Emscripten's SDL port
2025-06-15 12:51:57 +05:00
Alibek Omarov
69e38c963d
engine: platform: remove Emscripten-specific library loading, it's not needed anymore
2025-06-15 12:51:57 +05:00
Alibek Omarov
d7f4b21db7
3rdparty: mainui: update
2025-06-15 12:51:57 +05:00
Alibek Omarov
6aa281bc59
public: define Emscripten as POSIX-compatible
2025-06-15 12:51:57 +05:00
Alibek Omarov
e22dadc36f
scripts: waifulib: add tool for building with Emscripten's Clang wrapper
2025-06-15 12:51:57 +05:00
Alibek Omarov
1bf5909023
wscript: don't forget to recurse into ref/gl with only gles3compat enabled
2025-06-15 09:13:39 +05:00
Andrey Akhmichin
ba71f114d9
Documentation: opensource-mods.md: add "Master Sword".
2025-06-15 07:12:45 +03:00
Alibek Omarov
c90d110096
engine: platform: sdl2: assign K_AUX32 and K_AUX31 to volume buttons to match old engine behavior on Android
2025-06-07 11:21:32 +05:00
Alibek Omarov
05edde050d
engine: always remap clipnodes for bsp30ext
2025-05-27 22:54:06 +03:00
Alibek Omarov
1c29490889
Reapply "engine: disable clipnodes remapping for non-extended formats and QBSP2"
...
This reverts commit 2e748c4aea .
2025-05-27 22:44:53 +03:00
Alibek Omarov
210f51d38c
ci: use flatpak github action fork again because I forgot that github has weird limitations
2025-05-27 22:38:13 +03:00
Alibek Omarov
2e748c4aea
Revert "engine: disable clipnodes remapping for non-extended formats and QBSP2"
...
This reverts commit f2ecdad5bb .
2025-05-27 22:23:44 +03:00
Alibek Omarov
375ff6296b
ci: try to upgrade flatpak action
2025-05-27 22:21:23 +03:00
Alibek Omarov
026435865a
wscript: cleanup defaults, now that we don't need to specify most options from here
2025-05-27 21:54:22 +03:00
Alibek Omarov
216e680965
wscript: detect threading ability by platform
...
On client, it's handled by SDL{2,3}. On server we rely on pthreads (and some platforms don't have pthreads).
2025-05-27 21:40:07 +03:00
Alibek Omarov
3fe77ec86c
wscript: remove msdev.py generator (Visual Studio project still can be generated using msvs.py)
2025-05-27 20:59:47 +03:00
Alibek Omarov
a88fea6ab3
wscript: remove cmake.py generator
2025-05-27 20:57:47 +03:00
Alibek Omarov
78ef00a269
wscript: remove hacky logic determening valid target when crosscompiling to 32-bit x86
2025-05-27 20:50:08 +03:00
Alibek Omarov
f9a9aedea5
engine: set fps_override to 0 by default, it's still experimental and breaks multiplayer
...
Was probably set to 1 by mistake.
2025-05-26 20:10:45 +05:00
Alibek Omarov
53e59c2e73
ref: load sprites textures with texgamma applied (like GoldSrc)
2025-05-26 19:09:28 +05:00
Alibek Omarov
fc3b8ae45d
engine: imagelib: allow installing texgamma processed palette before loading sprites
2025-05-26 19:09:28 +05:00
Alibek Omarov
911b83a9d8
engine: imagelib: load studio model textures with texgamma applied (like GoldSrc)
2025-05-26 19:09:28 +05:00
Alibek Omarov
5276e46dc0
contributing: add a note about usage of LLM-based tools [skip ci]
2025-05-26 03:28:58 +05:00
Alibek Omarov
9fbd47bb4c
engine: server: move unexpected master server query packets and failed challenges to more verbose loglevel
2025-05-25 21:05:37 +05:00
Alibek Omarov
b8ead38573
engine: server: prevent flood about unreliable datagram overflow on frozen players
2025-05-25 20:37:06 +05:00
Alibek Omarov
6a318d5000
engine: server: check for master servers addresses in connectionless packet handler, and it it matches, only reply to M2S messages
2025-05-25 20:29:16 +05:00
Alibek Omarov
71040c7ed5
engine: net_http: fix missing newline
2025-05-25 19:21:23 +05:00
Alibek Omarov
c3531b6499
engine: expect that base_cmd is consistent, as for many years no cases of broken basecmd were found
2025-05-25 16:48:31 +05:00
Alibek Omarov
9c6f12f31c
engine: make command argc/argv functions inline
2025-05-25 16:47:45 +05:00
Alibek Omarov
913d0eb693
engine: add command to make other commands or variables privileged
2025-05-25 16:33:11 +05:00
Alibek Omarov
7bff848592
engine: base_cmd: simplify FindAll
2025-05-25 16:33:11 +05:00
Alibek Omarov
72485da491
engine: client: make demo recording and demo removing command privileged
2025-05-25 03:22:19 +05:00
Alibek Omarov
694472f4c1
engine: platform: allow querying window type through R_GetWindowHandle
2025-05-24 22:03:43 +05:00
TheEVolk
735f4e2bcb
ref_api: make handle as argument and use type request input
2025-05-24 20:47:28 +05:00
TheEVolk
9ebeb520fa
engine: platform: refactor R_GetWindowHandle to return a struct instead of a pointer
2025-05-24 20:47:28 +05:00
TheEVolk
dd52840a97
ref_api: update REF_API_VERSION to 10 and document R_GetWindowHandle addition
2025-05-24 20:47:28 +05:00
TheEVolk
4ce03662d9
ref_api: R_GetWindowHandle method
2025-05-24 20:47:28 +05:00
Andrey Akhmichin
20320d8dfa
Documentation: not-supported-mod-list-and-reasons-why.md: update.
2025-05-24 20:45:28 +05:00
Alibek Omarov
f2ecdad5bb
engine: disable clipnodes remapping for non-extended formats and QBSP2
2025-05-24 20:43:44 +05:00
Alibek Omarov
298842be32
engine: fix clipnodes limit check based on BSP version
2025-05-24 17:43:01 +05:00
Alibek Omarov
15544cde26
engine: common: fix typo in aguirRe nickname [skip ci]
2025-05-21 17:43:05 +05:00
Alibek Omarov
a4ad537e59
engine: server: minor refactoring
2025-05-20 20:24:42 +05:00
Alibek Omarov
7ba48e00bc
3rdparty: libbacktrace: sort entries in config.h to keep it the same between reconfigurations
...
Multicheck parallel nature caused config.h entries to be sorted randomly and
libbacktrace recompiled on every occasion.
2025-05-20 15:25:39 +05:00
Alibek Omarov
bb620d1265
engine: client: set cl_upmax to 508 by default
2025-05-20 14:35:29 +05:00
SNMetamorph
32e6f37c7e
engine: server: fixed incorrect printing of IPv6 address in "status" command
2025-05-12 14:11:09 +03:00
Alibek Omarov
8f95535390
engine: server: fix a typo that prevented "status" command from executing by spawned player
2025-05-12 11:37:11 +03:00
Alibek Omarov
b2444f2480
engine: restore SDL2 include path
2025-05-11 18:01:17 +03:00
Alibek Omarov
37d6d75e69
engine: platform: sdl3: add system and input SDL3 platform implementation
2025-05-11 17:35:13 +03:00
Alibek Omarov
97bdd9dba0
engine: port occasional SDL2 calls to SDL3, no platform yet
2025-05-11 16:18:10 +03:00
Alibek Omarov
ffc8bf30d7
engine: platform: make most input platform functions optional, patch fbdev/evdev to compile
2025-05-11 16:14:36 +03:00
Alibek Omarov
8209a8a681
engine: platform: move mouse grab enabling and querying functions to SDL platform code
2025-05-11 16:09:57 +03:00
Alibek Omarov
34beb9666b
engine: soundlib: drop SDL-based resampler
2025-05-11 15:27:50 +03:00
Alibek Omarov
6ccafbe297
engine: platform: move Host_Minimize_f into platform code
2025-05-11 15:24:52 +03:00
Andrey Akhmichin
a479099804
utils: mdldec: write all GoldSource-compatible motion-types with "-m" option.
2025-05-11 03:40:57 +03:00
Alibek Omarov
94791d3cb6
engine: allow downloading files that have multiple dots in filename. Also disallow everything that has nonprintable characters.
2025-05-06 21:16:06 +03:00
Alibek Omarov
6555562e78
engine: common: fix building tests
2025-05-06 21:15:28 +03:00
Alibek Omarov
de790d6f59
Revert "engine: server: increased sv_connect_timeout to a half a minute"
...
This reverts commit 3fca1bb4d5 .
2025-05-06 20:22:20 +03:00
Alibek Omarov
cff0df60a9
engine: server: also bump timeouts for connected clients during changelevel in server activation
2025-05-06 20:19:17 +03:00
Alibek Omarov
c8b8e19ed3
engine: server: fix time out on change level
2025-05-06 20:11:41 +03:00
Alibek Omarov
2106556dec
engine: server: limit status and build info commands only to spawned clients
2025-05-06 19:50:51 +03:00
Alibek Omarov
7221bd6049
engine: server: small refactoring
2025-05-06 19:50:26 +03:00
Alibek Omarov
ded38020d3
engine: server: add new client state cs_spawning, to ensure that client cannot spawn before it has an entity
2025-05-06 19:37:54 +03:00
Alibek Omarov
c6251174df
engine: server: don't let unspawned player execute ent tools commands or send voice data
2025-05-06 19:02:32 +03:00
Alibek Omarov
177c132969
engine: common: fix incorrect argument name, which also fixes build with compilers that enforce C23
2025-05-06 19:00:18 +03:00
Alibek Omarov
3fca1bb4d5
engine: server: increased sv_connect_timeout to a half a minute
2025-05-06 16:28:29 +03:00
Alibek Omarov
321e28c810
scripts: waifulib: sdl2: fix SDL3 sanity test
2025-05-05 18:51:01 +03:00
Alibek Omarov
7fda58561f
engine: platform: sdl2: remove SDL1.2 code, as it's now moved into it's own separate directory
2025-05-05 05:56:23 +03:00
Alibek Omarov
0cbb62b329
engine: platform: try to restore SDL1.2 support (only ref_soft is tested, ref_gl doesn't work)
2025-05-05 05:44:31 +03:00
Alibek Omarov
aa2e5eb3cc
engine: platform: move SDL2 support code into sdl2 subdirectory. Change XASH_SDL macro value from 12 to 1 for SDL1.2
2025-05-05 05:15:10 +03:00
Alibek Omarov
3d26ba1ed8
engine: client: always pass a valid pointer to usercmd_t in ref_params_t to prevent crassh when client.dll reads them during demo playback
2025-05-05 03:40:18 +03:00
Alibek Omarov
47c4844024
engine: platform: sdl: enable building with SDL as old as 2.0.8, it should satisfy everybody masturbating to old software
2025-04-30 17:45:05 +03:00
Alibek Omarov
d457d7d093
filesystem: archive mounting refactoring
2025-04-28 22:28:30 +03:00
Vladimir
43364ec2e9
defaults: enable touch for psvita & nswitch ( #2143 )
2025-04-27 14:39:58 +03:00
Alibek Omarov
14127c26f5
scripts: gha: don't put dedicated binary in full client tarballs
2025-04-24 23:41:26 +03:00
Alibek Omarov
291f24a611
scripts: cirrus: build dedicated server alongside full client for slightly faster builds
2025-04-24 23:33:59 +03:00
Alibek Omarov
1abb16638f
scripts: gha: build dedicated server alongside full client for slightly faster builds
2025-04-24 23:33:59 +03:00
Alibek Omarov
3e41e389c5
engine: lib_common: do not take generic GNU/Linux rules for library naming on Android
2025-04-24 21:53:03 +03:00
Alibek Omarov
5aca143eba
engine: disable Android-specific library loader under Termux
2025-04-24 21:46:43 +03:00
Alibek Omarov
60fa855d47
filesystem: wscript: strip lib prefix on Termux too
2025-04-24 21:42:20 +03:00
Alibek Omarov
22661fd446
public: define XASH_TERMUX if __TERMUX__ is defined. Do not enable XASH_MOBILE_PLATFORM for it
2025-04-24 21:40:35 +03:00
Alibek Omarov
61d8d5e12b
wscript: detect if we're compiling from Termux
2025-04-24 21:39:46 +03:00
Alibek Omarov
a7f3c04baa
engine: platform: android: hide SDL calls under XASH_SDL macro
2025-04-24 21:39:46 +03:00
Alibek Omarov
296e642f09
wscript: look for libm when compiling for Android on Android device itself (e.g. Termux)
2025-04-24 20:52:55 +03:00
Alibek Omarov
75eb1f1e8b
filesystem: android: make failing to find JNI env non-fatal
2025-04-24 20:52:18 +03:00
Alibek Omarov
8f4a45baaa
engine: platform: win32: set IMAGEHLP_LINE64 structure size as required in dbghelp docs on MSDN
2025-04-21 20:33:30 +03:00
Alibek Omarov
18aac5fd3d
readme: update
2025-04-21 20:12:55 +03:00
Alibek Omarov
ca6ca8450b
engine: platform: sdl: load .ico file with wide function allowing for icons to be loaded from non-latin game directory
2025-04-21 20:09:39 +03:00
Alibek Omarov
6ecaea3102
engine: system: convert Windows username to utf8
2025-04-21 19:56:49 +03:00
Alibek Omarov
fa47ca0d2d
engine: system: make a copy of pw_name just in case
2025-04-21 19:56:23 +03:00
Alibek Omarov
8ce3b4ac93
engine: client: identification: use wide CreateProcess call, ensure that process terminated and it's handles are closed
2025-04-21 19:38:10 +03:00
Alibek Omarov
a7ba705277
engine: platform: win32: make output similar to libbacktrace-based crashhandler, general improvements and refactoring
2025-04-21 18:54:39 +03:00
Alibek Omarov
85a4d296f5
Documentation: not-supported-mod-list-and-reasons-why: clarify that we don't know why Arrange Mod doesn't work on Xash yet [skip ci]
2025-04-21 17:06:11 +03:00
Andrey Akhmichin
4dd8d89459
Documentation: not-supported-mod-list-and-reasons-why.md: update [skip ci]
2025-04-21 17:04:19 +03:00
Alibek Omarov
c564cc96c7
engine: get rid of host.crashed field, as it's a complete duplicate of host.status
2025-04-21 16:59:44 +03:00
Alibek Omarov
0e54200f34
engine: platform: win32: move saving minidumps before showing stacktrace messagebox
2025-04-21 16:58:43 +03:00
Alibek Omarov
fa75c33390
engine: platform: win32: do not set parent window for stacktrace print window
2025-04-21 16:57:27 +03:00
Alibek Omarov
36cb3b2d89
engine: fix incompatible int size when casting pointer to int
2025-04-21 15:54:32 +03:00
Andrey Akhmichin
2f3b03d27a
Documentation: opensource-mods.md: add "Counter-Life".
2025-04-20 10:23:53 +03:00
SNMetamorph
f0deac206b
Documentation: added initial revision of touch controls configuring guide
...
Thanks to VladislavKZ and archer for helping with information gathering.
2025-04-18 17:24:44 +03:00
Alibek Omarov
5d0e473cf1
3rdparty: maintui: update
2025-04-16 14:52:46 +03:00
Alibek Omarov
2174fe6d21
ci: update to ubuntu-22.04
2025-04-15 21:04:48 +03:00
Alibek Omarov
5d1e207337
3rdparty: maintui: update
2025-04-15 21:00:38 +03:00
Alibek Omarov
87c209f1f9
engine: server: drop clients that do not continue connecting after smaller timeout
2025-04-15 20:54:27 +03:00
SNMetamorph
ed5ea002d7
Documentation: donate: updated details, changed layout
2025-04-15 18:07:59 +03:00
Alibek Omarov
149593fea5
engine: server: hide Cmd_ForwardToServer call under XASH_DEDICATED just in case, fixes build with debug
2025-04-11 00:34:10 +03:00
Alibek Omarov
8c0f1d65ba
3rdparty: maintui: update
2025-04-10 23:56:55 +03:00
Alibek Omarov
bbf6f1c7b8
scripts: gha: fix generating sources.list on different ubuntu version
2025-04-10 23:37:36 +03:00
Alibek Omarov
3b61e0bbd6
ci: thanks github, ubuntu-latest isn't actually latest
2025-04-10 23:07:39 +03:00
Alibek Omarov
8d2986bc74
3rdparty: maintui: update
2025-04-10 23:02:48 +03:00
Alibek Omarov
27a8adad22
ci: compile risc-v port on ubuntu-latest for newer compilers
2025-04-10 22:48:41 +03:00
Alibek Omarov
64e774377b
scripts: gha: fix ppc64el rust target
2025-04-10 22:48:17 +03:00
Alibek Omarov
8ff469d466
3rdparty: maintui: update
2025-04-10 22:26:13 +03:00
Alibek Omarov
a20e961892
scripts: gha: install i686-pc-windows-msvc rust target for cross-compiling 32-bit maintui
2025-04-10 22:02:13 +03:00
Alibek Omarov
8ba30a1c09
scripts: gha: add Rust target for crosscompiling
2025-04-10 20:01:03 +03:00
Alibek Omarov
d570d6d6da
scripts: gha: enable building maintui on supported platforms (win32, linux and apple)
2025-04-10 19:21:09 +03:00
Alibek Omarov
882b573e70
wscript: build maintui alongside mainui_cpp, so both could be used and shipped
2025-04-10 19:21:09 +03:00
Andrey Akhmichin
54657c149b
utils: mdldec: use separate options for sequences and textures.
2025-04-10 14:57:11 +05:00
Alibek Omarov
9054b11ebd
engine: client: let loading custom menu dll with -menulib command line switch
2025-04-09 17:35:36 +03:00
Alibek Omarov
71d31330f9
filesystem: dir: fix possible null dereference
2025-04-05 14:03:24 +05:00
SNMetamorph
ea29699633
scripts: gha: psvita: pinned cmake version to 3.28.3
2025-04-05 12:45:45 +05:00
Andrey Akhmichin
ccb8d611c6
public: add getopt implementation from NetBSD libc.
2025-04-02 12:07:41 +03:00
Andrey Akhmichin
f4d98c056e
utils: mdldec: handle unknown options.
2025-04-02 12:07:41 +03:00
Andrey Akhmichin
779adcd838
utils: mdldec: bump version to 1.2.
2025-04-02 12:07:41 +03:00
Andrey Akhmichin
16e2ce0aeb
utils: mdldec: avoid brackets.
2025-04-02 12:07:41 +03:00
Andrey Akhmichin
7bfcd4cef0
utils: mdldec: add options to:
...
- disable log output.
- use separate directories for smd and texture files.
- avoid to write paranoia 2 motion types.
- ignore filesize checks.
- enable UV coords shifting.
- show decompiler version.
- show help.
2025-04-02 12:07:41 +03:00
Andrey Akhmichin
c298635728
utils: mdldec: Makefile: update.
2025-04-02 12:07:41 +03:00
Andrey Akhmichin
92e976952e
utils: mdldec: fix UV coords shifting yet again.
2025-04-02 12:07:41 +03:00
Denis Drakhnia
a85bd0c864
maintui: first blood
2025-04-01 14:46:27 +03:00
Alibek Omarov
0a5f175431
mainui: update
2025-03-31 19:18:39 +03:00
Alibek Omarov
da6402ccc2
common: xash3d_types: disable PFN_RETURNS_NONNULL attribute for MCST lcc
2025-03-31 19:14:22 +03:00
Alibek Omarov
9d1b03d119
scripts: gha: build for e2k-8c on GitHub Actions machines
2025-03-31 19:07:47 +03:00
Alibek Omarov
6cf0d7a871
scripts: gha: linux: fix enabling stb_truetype in mainui_cpp
2025-03-31 18:20:23 +03:00
SNMetamorph
d5a6a7ae60
scripts: gha: made voice chat enabled by default for PS Vita platform
2025-03-30 20:24:38 +03:00
SNMetamorph
185374f99f
engine: platform: psvita: explicitly exported symbol rintf
...
This is required for cs16client port for PS Vita.
2025-03-30 20:24:38 +03:00
SNMetamorph
b9072e4642
Documentation: slightly updated PS Vita port installation instructions
2025-03-30 20:24:38 +03:00
yumirak
06e5895d7a
engine: client: fix TE_BLOODSPRITE behaviour to GoldSrc
2025-03-26 22:00:10 +03:00
Alibek Omarov
ac5be8156b
Revert "wscript: force -Wuninitialized to error"
...
This reverts commit e615ff0e7f .
2025-03-25 19:10:13 +03:00
Alibek Omarov
8c12a8baed
mainui: update
2025-03-25 19:02:00 +03:00
Alibek Omarov
e615ff0e7f
wscript: force -Wuninitialized to error
2025-03-25 17:11:51 +03:00
Alibek Omarov
2e8fa60e96
engine: client: don't allow downscaling HUD when using hud_scale's fixed resolution mode
2025-03-25 17:07:05 +03:00
Alibek Omarov
a8ba9124dd
engine: server: fix -Wmaybe-uninitialized
2025-03-25 17:07:05 +03:00
Alibek Omarov
f6e8a68b22
engine: imagelib: img_png: fix -Wmaybe-uninitialized
2025-03-25 17:07:05 +03:00
Alibek Omarov
706cc16a86
ref: fix -Wmaybe-uninitialized
2025-03-25 17:06:59 +03:00
Alibek Omarov
a9fd508e47
engine: common: fix reading maybe uninitialized crt_tm variable
2025-03-25 17:04:35 +03:00
Alibek Omarov
90bd72d481
ref: gl: disable blend after we're done drawing sprite "lightmap"
...
Fixes translucent brush model on renderfx2.bsp (https://twhl.info/vault/view/6933 )
which so happened to draw after agrunt sprite, that has "lightmap" enabled
2025-03-25 00:52:11 +03:00
Alibek Omarov
a2a3978de7
engine: server: fix erasing physinfo on client connect, when it was already set by game logic on save restore
...
Fixes issue when player loses long-jump in Half-Life on save load or level transition.
2025-03-24 23:22:19 +03:00
Andrey Akhmichin
ea70989fd2
utils: mdldec: Fix resource names validity checks.
2025-03-24 01:24:31 +03:00
Andrey Akhmichin
091228bcb3
Documentation: supported-mod-list.md: update.
2025-03-24 01:24:25 +03:00
Alibek Omarov
9c49253388
filesystem: allow symlinks when using listdirectory with dirs_only = true
...
Should fix special setups when game directories are actually symlinks
2025-03-20 20:31:44 +03:00
Alibek Omarov
eea804a4bf
engine: server: improve server op status command output
2025-03-20 05:47:24 +03:00
Alibek Omarov
ecbfdb82f4
engine: server: add requested server command status. Only expose client input devices for now, as everything else might be considered sensitive information
2025-03-20 05:46:49 +03:00
Alibek Omarov
a1950ec7b0
engine: server: tiny refactoring, make SV_CalcPing pointer to client const
2025-03-20 05:44:23 +03:00
Alibek Omarov
6b56e13b60
engine: make local ipv4 address private to net_ws, acquire local addresses with GetLocalAddress function
2025-03-20 05:39:02 +03:00
Alibek Omarov
d93bee0cbc
engine: minor refactoring, rename ref_state_t fields to snake case, rename readable names to shorter (no pun intended) long names
2025-03-20 03:11:17 +03:00
Alibek Omarov
5009db6aac
engine: client: make renderer loading failure less scary for the user
2025-03-20 03:06:05 +03:00
Alibek Omarov
c389736c2f
android: do not crash on Browse button if activity wasn't found
2025-03-20 02:44:37 +03:00
Alibek Omarov
66bdca63ee
ref: gl: upload skybox texture object with >= 5800 name only with GL compatibility context, it's not needed on GLES
2025-03-17 08:32:06 +03:00
SNMetamorph
d3f455649e
engine: client: implemented xashid for PS Vita platform
2025-03-16 21:34:32 +03:00
SNMetamorph
17ff80d85d
engine: platform: psvita: implemented function for getting PSID
2025-03-16 21:34:32 +03:00
SNMetamorph
407d0aa291
engine: wscript: enabled linking library SceLibKernel_stub on PS Vita
2025-03-16 21:34:32 +03:00
Alibek Omarov
d13429a287
game_launch: explicitly call wide or ascii Win32 API function calls
2025-03-16 20:41:57 +03:00
Alibek Omarov
a84204fc75
engine: partial fix to explicitly call ascii or wide Win32 API function calls
2025-03-16 20:41:57 +03:00
SNMetamorph
292ace2d26
engine: client: fixed SQB in CL_ParseEvent & CL_ParseReliableEvent
2025-03-16 20:31:14 +03:00
Alibek Omarov
68a1fbdc2b
engine: platform: win32: use widechar versions of LoadLibrary, which fixes loading engine if path contains non-latin characters
2025-03-16 03:16:02 +03:00
Alibek Omarov
d68f29737a
public: crtlib: use Q_rint instead of round in Q_pretifymem, so we don't have to link libm when we don't need it
2025-03-16 01:01:13 +03:00
Alibek Omarov
a34edbd8e8
wscript: ok, let's disable format-nonliteral for now
2025-03-15 20:01:47 +03:00
Alibek Omarov
71e2d4ecd4
engine: client: fix another case of format-nonliteral
2025-03-15 19:52:24 +03:00
Alibek Omarov
25656b532a
engine: platform: posix: fix a typo
2025-03-15 19:52:00 +03:00
Alibek Omarov
1a791e8556
engine: soundlib: get rid of useless formatstring, which is always the same for all types
2025-03-15 19:36:34 +03:00
Alibek Omarov
ccd31c6b27
engine: imagelib: get rid of useless formatstring, which is always the same for all types
2025-03-15 19:29:11 +03:00
Alibek Omarov
6aeedf201c
ref: gl: update dlight texture in case if BLOCK_SIZE changes between maps (going from QBSP to BSP2 or toggling r_large_lightmaps cvar)
2025-03-15 19:23:49 +03:00
Alibek Omarov
c9f8bdfcb0
ref: gl: allow updating texture with NULL data by calling TexImage instead of TexSubImage
2025-03-15 19:20:36 +03:00
Alibek Omarov
3cf4901ad2
engine: fix another case of format-nonliteral
2025-03-15 18:23:38 +03:00
Alibek Omarov
92de3ebc58
wscript: disable format-nonliteral for Clang, it's buggy there
2025-03-15 14:20:11 +03:00
Alibek Omarov
7aa9f23590
public: crtlib: fix Q_pretifymem so it compiles with -Wformat-nonliteral
2025-03-15 14:19:47 +03:00
Alibek Omarov
3d999269eb
engine: net_ws: make net6_local global static, as it's not used outside of this translation unit
2025-03-15 01:24:59 +03:00
Alibek Omarov
1e8e4825fa
engine: fix remaining -Wformat=2 and force it to -Werror
2025-03-15 01:24:59 +03:00
Alibek Omarov
91bc372811
mainui: update
2025-03-15 01:24:59 +03:00
Alibek Omarov
f9df96d70e
engine: server: fix server strings deduplication on 64-bit systems
2025-03-15 01:24:59 +03:00
Alibek Omarov
8af0e2c8b4
readme: add missing system dependencies on Linux systems [skip ci]
2025-03-08 02:42:28 +03:00
Alibek Omarov
a5191d8948
engine: client: console: simplify Field_DrawInputLine, try to make it safer
2025-03-08 02:35:32 +03:00
Alibek Omarov
b2d8239829
engine: common: net_http: fix decompression for compressed but not chunked files
2025-03-06 19:10:48 +03:00
Alibek Omarov
34322f025b
engine: client: limit ticket generator choices to revemu2013 only
2025-03-06 12:35:32 +03:00
Alibek Omarov
3e6b434733
mainui: update
2025-03-05 22:36:41 +03:00
Alibek Omarov
8359cbe76c
scripts: waifulib: add flag --enable-limited-debuginfo which enables -gline-tables-only on GCC and Clang compilers
...
This saves ~30mb of APK size on Android.
2025-03-05 02:19:39 +03:00
Alibek Omarov
0e90e6285e
engine: host: use #if instead of #ifdef when checking for extended hl25 structs compile option
2025-03-03 22:59:44 +03:00
Alibek Omarov
2f5840f650
engine: host: add a cvar that indicates whether engine was built with --enable-hl25-extended-structs or not
2025-03-03 22:53:20 +03:00
Alibek Omarov
3b51a554dd
mainui: update
2025-03-02 20:20:54 +03:00
Alibek Omarov
5f0880d4a2
engine: client: lower the bandwidth test fragment sizes to 1400 and less, as using 64k, 32k and more is unreliable
2025-03-02 20:20:40 +03:00
Bohdan Shulyar
884a3c66ac
client: touch: fix minor typo that prevented editing touch buttons commands
2025-03-02 20:19:58 +03:00
Alibek Omarov
c76752cc5f
engine: server: validate uuid in protinfo, it's an md5 string
2025-03-01 22:45:01 +03:00
Alibek Omarov
fc2888e107
engine: server: fix incorrect ID string generation, hashedcdkey is already an MD5 string
2025-03-01 22:27:22 +03:00
Alibek Omarov
674b4c1506
engine: server: reorder sv_client_t struct for better memory efficiency, remove unused fields
2025-03-01 22:07:05 +03:00
Alibek Omarov
cddd50f1e9
engine: server: completely erase sv_client_t on client connect, so we always start from scratch for every user
2025-03-01 22:07:05 +03:00
Alibek Omarov
6c9d5bc1fb
engine: server: cleanup penalties and warns for new players
2025-03-01 16:03:39 +03:00
Alibek Omarov
ec23860238
gitmodules: use github mirrors instead of xiph.org's git
...
It's not really a good idea to hammer upstream git servers with cloning same
data over and over. Besides, it's down right now.
2025-03-01 15:28:55 +03:00
Alibek Omarov
14a2e34b7e
mainui: update
2025-03-01 15:21:20 +03:00
Alibek Omarov
29c8818557
engine: server: do not continue processing command if the player was kicked during it (for example, by speedhack prevention)
2025-03-01 14:58:15 +03:00
Andrey Akhmichin
7222830b28
Documentation: supported-mod-list.md: a little remark.
2025-02-28 23:56:28 +03:00
Alibek Omarov
9b0ad7daf0
engine: common: register forgotten net_clockwindow cvar
2025-02-28 22:44:44 +03:00
Alibek Omarov
73729827f4
engine: platform: win32: add forgotten SDL.h include
2025-02-28 21:55:26 +03:00
Alibek Omarov
97fa395a3b
engine: platform: win32: fix build by restoring previous win32 header inclusion order
2025-02-28 21:44:22 +03:00
Alibek Omarov
1cef8ea7af
Revert "ref: gl: check OES NPOT texture extension in BigGL mode"
...
This breaks mipmaps on PSVita
This reverts commit 54b0cf9991 .
2025-02-28 17:08:27 +03:00
Alibek Omarov
eda4e95607
engine: client: draw version at bottom right in menu, regardless if dev_overview or net_graph are enabled (those only used in-game)
2025-02-28 15:11:24 +03:00
Alibek Omarov
a5f0ca38f1
engine: remove inclusion of SDL headers globally, helps to cleanup code before SDL3 migration
2025-02-28 13:14:47 +03:00
Alibek Omarov
bbbd7711c1
engine: platform: cleanup remnants of disabling vsync while loading mechanism for linux fbdev and dos ports
2025-02-28 12:33:30 +03:00
Alibek Omarov
38e922557d
engine: platform: sdl: remove disabling vsync while we're not in game, as this is something users have been complaining a lot
...
It's not a big deal if level loading will take a few milliseconds more.
2025-02-28 08:27:38 +03:00
Alibek Omarov
4dec1785ed
engine: client: touch: fix inverted file extension check
2025-02-28 06:44:21 +03:00
Alibek Omarov
9f77b7dc46
scripts: waifulib: enable HLSDK -mtune only on GCC and Clang, and not on Android
2025-02-26 17:11:10 +03:00
Alibek Omarov
5061a29f86
scripts: waifulib: enable asynchronous-unwind-tables for better stacktraces
2025-02-26 17:10:30 +03:00
Alibek Omarov
cb5dffd554
engine: server: don't bother printing about unsupported connectionless packets if sv_log_outofband is set to 0
2025-02-26 17:06:33 +03:00
Alibek Omarov
4eaa8ab40f
android: bump minimum CMake version, so disabling unneeded features in SDL actually works
2025-02-26 14:21:58 +03:00
Alibek Omarov
2a82d265d6
scripts: waifulib: xcompile: add support for Android NDK r27 as well
2025-02-26 12:40:22 +03:00
Alibek Omarov
f2392b5709
scripts: waifulib: xcompile: add support for building on Windows. Drop using shortcut target clang symlinks, as those don't work on Windows at all (they are wrapped into batch files, which can't be invoked like exes)
2025-02-26 12:40:22 +03:00
Alibek Omarov
5620e7ab4c
android: fixup CMAKE_LIBRARY_OUTPUT_DIRECTORY on Win32, merge stdout and stderr for waf output
2025-02-26 12:40:22 +03:00
Alibek Omarov
a76236ac5a
scripts: waifulib: xcompile: add support for NDK 28, remove setting up custom PREFIX to not mess up installation path
2025-02-26 12:40:22 +03:00
Alibek Omarov
d1c5862bab
android: bump NDK version to 28
2025-02-26 12:40:22 +03:00
Alibek Omarov
81400d0b01
android: use xcompile.py's support for Android NDK, fix tabs
2025-02-26 12:40:22 +03:00
Alibek Omarov
a129f13e25
android: enable verbose output for CMake running from Gradle
2025-02-26 12:40:22 +03:00
Alibek Omarov
ec8b4c0a84
android: rework how engine is built, instead of generating CMakeLists, just use included in CMake ExternalProject feature
2025-02-26 12:40:22 +03:00
Alibek Omarov
f1f726822c
engine: client: restore cl_cmdrate default value at 30. It wasn't an intentional change.
2025-02-25 19:52:48 +03:00
Alibek Omarov
8982d55392
engine: client: set default rate value to 25000
...
3500 is barely playable these days. Those who have worse than usual internet
connection, should set appropriate value themselves.
2025-02-25 17:36:43 +03:00
Alibek Omarov
f499286a87
engine: platform: sdl: don't call SDL_GL_SetSwapInterval each frame while we're not in game
2025-02-25 11:52:03 +03:00
Alibek Omarov
a3aaa87147
ref: gl: enable polygon offset for fullbright textures when rendering them in separate from VBO pass
2025-02-25 11:49:31 +03:00
Alibek Omarov
15a6971aca
engine: platform: posix: strip path from filename in backtrace
2025-02-25 11:46:57 +03:00
Alibek Omarov
b1eb3390e3
engine: server: let server dll to register it's own showtriggers cvar
2025-02-24 06:41:11 +03:00
Alibek Omarov
74ad504377
engine: client: console: do not let color strings contribute to line length in console
2025-02-24 03:55:13 +03:00
Alibek Omarov
8a0c2577ed
engine: platform: sdl: exclude fake game controller found on Android emulator
2025-02-24 03:42:03 +03:00
Alibek Omarov
a060d7aefd
wscript: disable large file for 32-bit Android
2025-02-23 16:07:51 +03:00
Alibek Omarov
ccf342f4fe
engine: client: fix inconsistent mouse state caused by mis-use of touch_emulate by cs16-client
2025-02-23 07:13:39 +03:00
Alibek Omarov
8b9a40ff1f
engine: client: completely refactor touch code, protect button color, improve config output
2025-02-23 07:00:20 +03:00
Alibek Omarov
425cc61c4c
engine: client: handle K_ESCAPE in Key_Console, remove special case for it in Key_Event
2025-02-23 06:47:44 +03:00
Alibek Omarov
fe1fd5b024
engine: client: make color array of DrawString functions const
2025-02-23 06:46:22 +03:00
Alibek Omarov
0c8da36a0b
filesystem: disallow path traversal in FS_Delete and FS_Rename
2025-02-23 03:13:46 +03:00
Alibek Omarov
2c5030ab45
engine: client: do not save touch_emulate cvar
2025-02-23 02:04:33 +03:00
Alibek Omarov
9decba873b
engine: platform: sdl: try to save and restore mouse position during showing or hiding cursor
2025-02-23 02:04:03 +03:00
Alibek Omarov
bda4c45504
engine: client: simplify CL_EDICT_NUM and it's sister, non throwing error, function CL_GetEntityByIndex
2025-02-23 01:51:05 +03:00
Alibek Omarov
f7aa8a0c90
ci: bump SDL2 to 2.32.0. This is the last major upgrade to SDL2 dependency, we should migrate to SDL3 (with sdl2-compat for GoldSrc mods) after that
2025-02-22 18:48:41 +03:00
Alibek Omarov
4c15cceb32
engine: client: deprecate custom id, it is not used meaningfully by anyone
2025-02-20 15:41:17 +03:00
Alibek Omarov
3e4c5beb25
ref: fix another typo made after R_StudioCalcBones refactor
2025-02-18 19:22:06 +03:00
Alibek Omarov
f84d865f4a
engine: client: fix crash if server sends new movevars before entities were created
...
Nothing bad will happen if we skip wave height for world entity for now, but
we might need to handle this situation somehow in the future.
2025-02-17 13:02:21 +03:00
SNMetamorph
2465782a3e
engine: platform: sys_win: fixed compiling error
2025-02-15 13:45:22 +03:00
Alibek Omarov
7ba2209124
engine: platform: sdl: set requested timer delay in units of 100ns according to the documentation
2025-02-15 13:08:05 +03:00
Alibek Omarov
af6b434b71
engine: platform: win32: implement nanosleep using waitable timers with high precision
2025-02-15 11:57:41 +03:00
Alibek Omarov
052ea6a8bd
engine: platform: introduce for Platform_NanoSleep, to be used for better sleeping in between frames for lowering CPU usage
2025-02-15 10:11:17 +03:00
Alibek Omarov
448dc720ed
engine: server: immediately exit from SV_GetChallenge on unknown type addresses
2025-02-15 09:31:20 +03:00
Alibek Omarov
75b15696f8
engine: zone: ensure memheader_t size is always expected
2025-02-15 09:31:20 +03:00
Andrey Akhmichin
7fb113f610
Documentation: opensource-mods.md: add "Delta Particles".
2025-02-15 08:02:44 +03:00
Andrey Akhmichin
0497e00ad2
Documentation: supported-mod-list.md: update.
2025-02-15 08:02:35 +03:00
Alibek Omarov
9c50288bbb
engine: server: rewrite challenge generator to something more simple: salted MD5 of an IP address
...
The idea was taken from ReHLDS project.
2025-02-15 08:01:44 +03:00
Alibek Omarov
c5d4af802c
engine: server: even if user set non-integer value for cl_updaterate, clamp it to sv_minupdaterate
2025-02-15 08:01:44 +03:00
Alibek Omarov
340a8b5e0c
engine: server: fixes for userinfo change ratelimiting
...
* Add pentalty earlier
* Increase disallowed timewindow according to penality multiplier
* Allow first change even if it falls into ignore timewindow
2025-02-15 08:01:44 +03:00
Alibek Omarov
bc1b86c19c
engine: server: refactor SV_ConnectClient, simplify LAN IP check
2025-02-15 08:01:44 +03:00
Alibek Omarov
b605cf603e
common: xash3d_types: make it more compatible for inclusion in SDK
2025-02-15 08:01:44 +03:00
xiaodo
fdc2ed8093
engine: server: pfnClientCommand and pfnQueryClientCvarValue should execute on unspawned player
2025-02-14 20:52:45 +03:00
xiaodo
a27375d1f5
engine: server: cmds: fix kick command incorrect argc
2025-02-14 20:52:45 +03:00
Alibek Omarov
0e2abf9040
engine: platform: always create zeroed buffer for audio
2025-02-14 05:20:40 +03:00
Alibek Omarov
89430400d9
engine: sys_con: only allow names that start with either alphabetic or numerical character for a log file
2025-02-14 01:51:50 +03:00
Alibek Omarov
f1a9d408bf
engine: sys_con: check if the next argument after -log starts with minus and ignore it if it does
2025-02-14 00:50:01 +03:00
Alibek Omarov
6529692244
engine: disable timestamps in log file by default, allow changing log file name with -log argument
2025-02-14 00:28:00 +03:00
Alibek Omarov
51d11f8e86
engine: platform: win32: remove unused log variables and checks from Win32 console, sys_con does the job
2025-02-14 00:28:00 +03:00
Alibek Omarov
c5397191e5
engine: client: touch: limit usage of touch_set_stroke and touch_setclientonly only for privileged mode
2025-02-13 20:55:49 +03:00
Alibek Omarov
44426709f7
engine: platform: posix: skip first stack frame when printing stack trace with libbacktrace
2025-02-13 20:43:32 +03:00
Alibek Omarov
2d8f747e84
wscript: disable using system-wide libbacktrace, as it might not support features we need
2025-02-13 19:21:07 +03:00
Alibek Omarov
0dd5a60410
3rdparty: gl4es: update submodule
2025-02-13 02:32:28 +03:00
Alibek Omarov
eec8129be4
3rdparty: extras: update submodule
2025-02-13 02:31:30 +03:00
Alibek Omarov
934c5e018d
readme: clarify that chat is for russian speaking people [ci skip]
2025-02-12 18:08:10 +03:00
Alibek Omarov
d658d8cc78
readme: remove builds.sr.ht status, add Telegram chat link, remove stable build link (it's very outdated and not recommended to use) [skip ci]
2025-02-12 17:58:51 +03:00
Alibek Omarov
ca9a3f0491
engine: server: fix out of bounds write in SV_FindTouchedLeafs
2025-02-11 21:15:54 +03:00
Alibek Omarov
1510cb458f
public: fix another typo
2025-02-11 21:12:50 +03:00
Andrey Akhmichin
30cabb8107
Documentation: supported-mod-list.md: fix branch name.
2025-02-11 21:10:59 +03:00
Alibek Omarov
64ee956618
engine: fix a typo
2025-02-11 20:06:15 +03:00
Alibek Omarov
39659644bf
public: merge calc bone quaternion and position into single function
...
Expect that only adj and output quaternion can be NULL.
2025-02-11 18:57:08 +03:00
Alibek Omarov
eb09af0b08
ref: gl: avoid generating GL_INVALID_OPERATION if gl_vbo_dlightmode is set to 0
2025-02-11 18:57:08 +03:00
Andrey Akhmichin
91a4ace12c
Documentation: supported-mod-list.md: update.
2025-02-11 16:28:40 +03:00
Alibek Omarov
2ad2e46b30
mainui: update
2025-02-10 13:18:59 +03:00
Alibek Omarov
627444279f
Revert "common: cvar: make auto descriptions private to cvar subsystem, use them when Cvar_Get is called with NULL description"
...
This reverts commit ade560c601 .
2025-02-10 12:49:05 +03:00
Alibek Omarov
3550bdb30d
3rdparty: mainui: update
2025-02-09 23:14:24 +03:00
Alibek Omarov
c201b895eb
common: netadr: force cast uint16_t type to netadrtype_t
...
So it compiles in C++
2025-02-09 23:13:29 +03:00
Alibek Omarov
72f1ac3780
wscript: ensure system-wide libbacktrace supports threads
2025-02-09 18:29:02 +03:00
Alibek Omarov
d7dc3192de
3rdparty: libbacktrace: fix applying uselib
2025-02-09 18:25:40 +03:00
Alibek Omarov
43ea65fffc
ci: upgrade freebsd tasks.
2025-02-09 17:41:01 +03:00
Alibek Omarov
a72d921c12
wscript: add system-wide libbacktrace detection
2025-02-09 17:41:01 +03:00
Alibek Omarov
99b7d71824
wscript: set DEST_SIZEOF_VOID_P with allow 64bit flag
2025-02-09 17:16:17 +03:00
Alibek Omarov
67c73bdcbe
engine: server: remove impulse 204, it's not used anywhere
...
Thanks @tyabus for reminding me about this feature.
2025-02-09 17:16:05 +03:00
Alibek Omarov
8b1dbcf166
ci: remove extra 20s of wait before removing current release and downloading artifacts
2025-02-09 17:02:31 +03:00
Alibek Omarov
5f60095dc4
scripts: flatpak: disable separate debuginfo
2025-02-09 16:54:51 +03:00
Alibek Omarov
c7282b488b
3rdparty: libbacktrace: disable linking zlib, lzma and zstd for now, figure this out later
2025-02-09 16:49:43 +03:00
Alibek Omarov
afa829d996
3rdparty: libbacktrace: don't define POSIX_SOURCE, it breaks build on Mac
2025-02-09 16:41:26 +03:00
Alibek Omarov
c06ea8d915
engine: platform: posix: add printing backtrace to stderr and logfile for libbacktrace backend
2025-02-09 16:41:26 +03:00
Alibek Omarov
bf344282ec
android: explicitly set Waf output directory so it doesn't mess with current configuration and places generated files where CMake expects them to be
2025-02-09 16:20:38 +03:00
Alibek Omarov
21f62910ac
engine: platform: posix: fix build when glibc execinfo.h is not available, but libbacktrace is still used
2025-02-09 16:20:38 +03:00
Alibek Omarov
54552d93ef
Documentation: goldsrc-protocol-support: I am not going to support Dproto
2025-02-09 16:18:21 +03:00
Alibek Omarov
97455e7fd4
engine: platform: sdl: fix build after last PR
2025-02-09 15:56:16 +03:00
Alibek Omarov
6087d43043
3rdparty: libbacktrace: properly disable it on win32, nswitch and psvita
2025-02-09 15:55:12 +03:00
Alibek Omarov
c1a96d3ff1
engine: platform: posix: fix build
2025-02-09 15:51:25 +03:00
Alibek Omarov
e27d20dfa3
android: enable debug symbols for native libraries
2025-02-09 15:49:28 +03:00
Alibek Omarov
890e12ec76
engine: platform: posix: flush stdout/stderr before everything, include build branch
2025-02-09 15:45:44 +03:00
Alibek Omarov
774d2ac28a
engine: platform: posix: add libbacktrace support for crash handler
2025-02-09 15:42:28 +03:00
Alibek Omarov
960d724828
3rdparty: libbacktrace: add submodule
2025-02-09 15:40:07 +03:00
Alibek Omarov
32aa1f91bf
engine: pass argv0 to crash handler setup, which is required for libbacktrace integration
...
Fix indentation in crash_posix.c
2025-02-09 15:36:49 +03:00
Alibek Omarov
bd3634c815
wscript: add sanity test for opusfile because some distros don't ship 32-bit binary
2025-02-09 15:34:30 +03:00
Oleg
eda0ac92cc
engine: platform: sdl: change behavior when window position is not set
2025-02-09 08:54:31 +03:00
Oleg
546903ea05
engine: platform: sdl: write windows position changes even in fullscreen
2025-02-09 08:54:31 +03:00
Oleg
4975001795
engine: platform: sdl: enumerate video modes for display where window located is instead of display zero
2025-02-09 08:54:31 +03:00
Oleg
a078ad1f51
engine: platform: sdl: fix windows save position for multiple monitors
2025-02-09 08:54:31 +03:00
Oleg
8307f671d4
engine: platform: sdl: let platform decide where to put our fullscreen window
2025-02-09 08:54:31 +03:00
Alibek Omarov
241fab02b1
ref: gl: don't try to free luma and detail texture of water texture, as these fields used by r_ripple
2025-02-08 16:57:20 +03:00
Alibek Omarov
1bfee70477
engine: con_utils: add autocompletion for cvar commands like set, reset and toggle
2025-02-08 16:45:52 +03:00
Alibek Omarov
eb51d17cd2
engine: server: enable sv_zmax clamping back to avoid overflowing zmax value encoded in delta
2025-02-08 16:38:11 +03:00
Alibek Omarov
b5cb0b9f10
ref: gl: add r_dlight_virtual_radius. It potentially fixes ugly dlight cut off on largely scaled textures (or at least allows to tune it)
...
It also adds a fix found in JoeQuake (which traces back to FitzQuake, in which
it is attributed to LadyHavoc, Darkplaces author) to exactly calculate whether
the light hits the surface, so we don't wrongly enable lighting on a surface by
an increased radius.
2025-02-07 23:07:08 +03:00
Alibek Omarov
a955d1e957
ref: gl: make GL_BuildPolygonFromSurface static, remove one global variable usage (which is unused anyway)
2025-02-07 22:55:38 +03:00
Alibek Omarov
2b2c967e85
engine: add ms3.mentality.rip master server
2025-02-07 19:32:37 +03:00
Alibek Omarov
c48d93e3ce
public: use last Git commit date (committer date, to be exact) as more predictable source for build num
2025-02-07 17:51:10 +03:00
Alibek Omarov
8f257cc331
public: add parsing build date from ISO-8601 alike format
2025-02-07 17:47:23 +03:00
Alibek Omarov
151e7fe37b
public: crtlib: check for empty buffer in Q_vsnprintf
2025-02-06 21:19:10 +03:00
Alibek Omarov
add02dc6f9
engine: fix potential UB in netadr_t
2025-02-06 20:54:18 +03:00
Alibek Omarov
d4c34abd6e
engine: enable writing log even if console hasn't been enabled at the engine startup (it might be enabled later, it might also contain crash data)
2025-02-06 20:03:07 +03:00
Alibek Omarov
1d81e611f0
scripts: gha: use N+1 job count when building PSVita dependencies
2025-02-06 00:32:42 +03:00
Alibek Omarov
6a0038e26a
ref: gl: always set texture env mode to GL_MODULATE in TriAPI's RenderMode call
...
Not sure if this is correct, but it's generally a good idea to restore it to an
expected value.
2025-02-06 00:30:32 +03:00
Alibek Omarov
1d99f65e86
filesystem: when shutting down, clean up gameinfo pointers and total games count
2025-02-05 21:14:08 +03:00
Alibek Omarov
5e524bca60
engine: client: enable half-texel hack for nearest filtering too, if the scaling factor isn't an integer
2025-02-05 20:16:16 +03:00
Alibek Omarov
cf3e56e275
engine: client: add alternative mode for hud_scale, where it scales HUD down to selected resolution with preserving aspect ratio
2025-02-05 19:47:59 +03:00
Alibek Omarov
ade560c601
common: cvar: make auto descriptions private to cvar subsystem, use them when Cvar_Get is called with NULL description
...
It allows us to not lose engine-side description when client or gameui registers cvar with the same name. In case of
menu it's the only way to get cvar pointer.
2025-02-05 19:11:16 +03:00
Alibek Omarov
62e3ba2126
engine: add cvars to control mounting additional directories
...
Use existing ui_language cvar for mounting localization folders.
2025-02-05 18:54:28 +03:00
Alibek Omarov
674a4e5883
filesystem: add ability to mount HD, LV, addon and language folders by engine request
2025-02-05 18:24:36 +03:00
Alibek Omarov
f911210b81
public: simplify ctype.h is* functions wrappers for null-terminated strings, add Q_isalpha
2025-02-05 18:21:18 +03:00
Alibek Omarov
14eb07653c
engine: client: fix incorrect format in error message in CL_SetLightStyle
2025-02-05 17:41:01 +03:00
Alibek Omarov
54b0cf9991
ref: gl: check OES NPOT texture extension in BigGL mode
2025-02-05 14:00:44 +03:00
Alibek Omarov
3ebcb08a97
ref: gl: add cvar r_large_lightmaps to enable larger lightmap sizes, opt-in, yields better performance with VBO renderer
2025-02-05 13:02:37 +03:00
Alibek Omarov
23940f8590
readme: remove fontconfig from dependencies list, we aren't using it anymore [skip ci]
2025-02-04 21:00:42 +03:00
Alibek Omarov
687fb0123f
engine: implement basic gamepad gyroscope calibration
...
Called on game controller becoming active or by user request.
Exposes current calibration state by read-only console variable.
2025-02-03 13:14:51 +03:00
Alibek Omarov
6c91fdb0cd
ref: gl: gl2_shim: fix int vs GLuint
2025-02-02 20:57:37 +03:00
Alibek Omarov
4832232fd6
ci: attempt to fix flatpak upload
2025-02-02 20:31:51 +03:00
Alibek Omarov
185bce0489
engine: common: remove unused D_ enum used for MsgDev in old engine. Make sure all enums and structs here are not anonymous
2025-02-02 20:26:07 +03:00
Alibek Omarov
f460aa63b0
engine: platform: posix: don't forget to print backtrace to stderr too
2025-02-02 19:20:54 +03:00
Alibek Omarov
22f8b6f9c3
engine: platform: enable crash handler for macOS
2025-02-02 18:30:41 +03:00
Alibek Omarov
0cb034afc2
engine: wscript: improve execinfo and GNU backtrace() check
2025-02-02 18:18:26 +03:00
Alibek Omarov
d0464ef602
engine: platform: posix: use glibc-based backtrace implementation for crash handling, if execinfo.h can be found
2025-02-02 18:06:18 +03:00
Alibek Omarov
c3ebb84b97
ci: bump SDL2 to 2.30.12
2025-02-02 08:14:24 +03:00
Alibek Omarov
11742efbc3
engine: fix player move on dedicated servers
2025-02-02 08:08:15 +03:00
Alibek Omarov
95af635ab4
engine: client: add command replaybufferdat to aid in debugging protocol errors by parsing buffer.dat
2025-02-02 05:22:46 +03:00
Alibek Omarov
1abec80191
engine: client: set codepage to 0 if con_charset value is unknown
2025-02-02 02:34:08 +03:00
Alibek Omarov
93ebddfba3
public: utflib: simplify Q_EncodeUTF8
2025-02-02 02:31:56 +03:00
Alibek Omarov
5378494199
wscript: enable main() function for Android port, which was forgotten after last refactoring
2025-02-01 18:26:20 +03:00
Alibek Omarov
1b44d7733e
engine: platform: add improved Platform_Vibrate2 function, that allows to control vibration strength
2025-02-01 18:08:53 +03:00
Alibek Omarov
694c630b44
engine: zone: don't error when trying to free NULL pointer, like standard C free() and C++ delete
2025-02-01 17:51:02 +03:00
Alibek Omarov
7df1d4b9e2
engine: platform: sdl: remove useless for us game controller events
2025-01-31 19:48:33 +03:00
Alibek Omarov
b16037eabf
engine: drop raw SDL joystick API, always use GameController instead. Implement actually working rumble, ensure we're freeing up all resources related to gamepads
2025-01-31 17:50:19 +03:00
Alibek Omarov
bff7299f9b
gha: publish binaries even if flatpak fails
2025-01-31 10:37:41 +03:00
Alibek Omarov
de196b1c58
common: xash3d_types: avoid defining true and false in C23
2025-01-31 10:36:27 +03:00
Alibek Omarov
a0eec8b85d
scripts: waifulib: add special_install_path for platform-specific executable formats that create post link stage (was nro_install_path)
2025-01-31 10:25:02 +03:00
Alibek Omarov
c7e8ea2ffa
scripts: gha: linux: build smaller SDL2 (without 2D renderer) for Linux as well
2025-01-31 10:02:19 +03:00
Alibek Omarov
1c1cf3d646
scripts: waifulib: psvita: make sce_sys truly optional in apply_vpk
2025-01-31 10:02:19 +03:00
Alibek Omarov
9759b80b78
scripts: waifulib: psvita: set default title id and app name to just test
2025-01-31 09:10:39 +03:00
Alibek Omarov
94b2c0b443
scripts: gha: build render-less SDL2 for PSVita
2025-01-31 09:10:09 +03:00
Alibek Omarov
ff8d17a5a8
scripts: waifulib: psvita: add missing cprogram attributes
2025-01-31 09:04:40 +03:00
Alibek Omarov
aa23196a55
scripts: waifulib: support vpk and nro pass for pure C programs, just in case
2025-01-30 20:51:01 +03:00
Alibek Omarov
83b488c37e
wscript: let building client and dedicated server in the same configuration
2025-01-30 20:23:12 +03:00
Alibek Omarov
77abf621d7
ref: gl: make GL_Support and GL_MaxTextureUnits functions inlined
2025-01-30 19:02:53 +03:00
Alibek Omarov
f9d4ac2771
ref: gl: fix ugly seam at the skybox, thanks Spoike for help
2025-01-30 18:53:31 +03:00
Alibek Omarov
f076d84975
engine: platform: android: move dlsym-weak hack from C++ to C
2025-01-30 18:07:35 +03:00
Alibek Omarov
faf0b32a94
ref: gl: fix massive frame drop caused by ripples code rendering same texture multiple times in the frame
2025-01-29 20:15:21 +03:00
Alibek Omarov
feb80e5997
engine: platform: sdl: read gamecontrollerdb.txt from extras.pk3
2025-01-29 13:43:10 +03:00
Alibek Omarov
004af02e99
engine: avi: comment out debug messages
2025-01-29 11:13:29 +03:00
Alibek Omarov
8ad56eb085
Merge branch 'master' into avi
2025-01-29 11:12:38 +03:00
Alibek Omarov
578a77518f
engine: client: fix clearing keyboard buttons caused by typical brain fart
2025-01-29 10:04:47 +03:00
Alibek Omarov
2457ecf226
filesystem: fix recursive basedir possible cyclic dependency when default game directory uses a basedir that's base directory is undefined
...
That could happen when default game directory depends on base directory that don't have gameinfo.txt.
Because all game directories with liblist.gam automatically have dependency on default game directory, it causes cyclic dependency.
2025-01-29 09:49:29 +03:00
Alibek Omarov
8cd99885f1
filesystem: clean added status for game folders when purging search paths
2025-01-29 09:46:18 +03:00
Alibek Omarov
684e229ac8
engine: client: get rid of absolutely useless bitfields
2025-01-26 23:34:04 +03:00
SNMetamorph
c0f1d8c647
engine: model: fixed incorrect check in Mod_LoadModel
2025-01-26 23:27:18 +03:00
SNMetamorph
c3b8696957
engine: platform: win32: disable initializing console in case of regular game startup
2025-01-26 23:02:24 +03:00
Tom Kidd
3ca413dbab
Fixed path calc for extras on Mac
2025-01-26 22:25:08 +03:00
Alibek Omarov
92dc04ff3c
engine: client: minor change, add forgotten newline in CL_DeltaEntityGS Host_Error call
2025-01-25 17:51:48 +03:00
Alibek Omarov
ad6db91285
engine: move xashid stuff onto client
2025-01-25 17:51:48 +03:00
David DeGraw
90a0f74087
undo change to mod link
2025-01-25 08:23:04 +03:00
David DeGraw
4f7f5288a1
more nits
2025-01-25 08:23:04 +03:00
David DeGraw
c23b4bfe61
nits
2025-01-25 08:23:04 +03:00
David DeGraw
4780f70ea2
Improve mod installation instructions
...
Also improved uplink setup and used a better source for mod files.
2025-01-25 08:23:04 +03:00
NightFox
98a04c7764
FIx Matrix*x4_LoadIdentity (xash3d_mathlib.h)
2025-01-25 08:21:21 +03:00
Alibek Omarov
7da9772143
engine: check for macOS bundle in SDL_GetBasePath, and fallback to SDL_GetPrefPath for our directory
2025-01-23 22:58:19 +03:00
Alibek Omarov
32def35408
engine: avi: remove stub file
2025-01-23 18:56:44 +03:00
Alibek Omarov
952ccb1247
engine: avi: very dumb pause
2025-01-23 18:55:48 +03:00
Alibek Omarov
6f0fb594e7
Merge branch 'master'
2025-01-23 18:42:00 +03:00
Alibek Omarov
f0b29bac1b
engine: client: add cl_trace_consistency used to print which resources server wants to check
2025-01-23 13:57:17 +03:00
Alibek Omarov
7b5ff606bd
3rdparty: extras: enable compression of extras.pk3
2025-01-23 13:08:53 +03:00
Alibek Omarov
3e22ee64ae
scripts: waifulib: zip: add support for passing compression level on Python 3.7. Exclude PNG files from compression
2025-01-23 13:08:21 +03:00
Alibek Omarov
c86c45503f
engine: replace few more Xash3D strings by XASH_ENGINE_NAME macro
2025-01-23 10:33:22 +03:00
Alibek Omarov
ef75a4c28d
engine: rename pref path on Mac to Xash3D FWGS by allowing for custom branding through XASH_ENGINE_NAME macro
2025-01-23 10:24:55 +03:00
Alibek Omarov
bccd3f2271
engine: pass launcher's default game directory all the way down to Platform_Init, so we mount correct extras.pk3 on Mac
2025-01-23 10:22:53 +03:00
Tom Kidd
7bbc3e8238
Made modifications for Mac App Bundle
...
- Looks for game data in SDL pref path (Application Support)
- Sets XASH3D_EXTRAS_PAK1 to SDL base path (Resources dir in App Bundle
- Added option to force search for SDL dylib via pkgconfig on Darwin instead of Framework (option for Mac Source Ports build process)
2025-01-23 10:15:47 +03:00
Alibek Omarov
c34e0c66d9
engine: add fuzzing target for Mod_LoadModel
2025-01-23 10:12:32 +03:00
Alibek Omarov
e5d80878b8
scripts: waifulib: add asan-only build type
2025-01-23 10:11:56 +03:00
Alibek Omarov
1e075d25b7
engine: make LZSS compression optional for 49 protocol, disable it for local clients (singleplayer)
2025-01-22 21:18:19 +03:00
Alibek Omarov
d29e53481d
engine: client: remove unused S_StreamAviSamples
2025-01-22 20:01:11 +03:00
Alibek Omarov
d23a2fd2df
engine: client: stub AVI_StreamSound RenderAPI call, it is not used in ffmpeg-based video playback code
2025-01-22 20:00:50 +03:00
Alibek Omarov
f6f15cc204
engine: mod_studio: validate studio self-reported length before loading model
2025-01-22 20:00:13 +03:00
Alibek Omarov
4f2249ed8e
ref: support loading sprites with truncated palette
2025-01-22 19:24:00 +03:00
Alibek Omarov
9f322df498
engine: imagelib: handle loading truncated palette files, by filling remaining bytes with zeros
2025-01-22 19:21:51 +03:00
Alibek Omarov
b554d7e215
ref: properly handle unloading sprites that aren't loaded completely
2025-01-22 19:20:20 +03:00
Alibek Omarov
719093c10b
ref: properly return false to the engine if renderer refuses to load the model for some reason
2025-01-22 19:13:23 +03:00
Alibek Omarov
c2da140ccc
engine: model: do not crash if renderer refused to load this model
2025-01-22 19:12:43 +03:00
Alibek Omarov
375998dffb
Cleanup xash3d_types.h from engine-specific macros and types
2025-01-22 15:10:18 +03:00
Alibek Omarov
787444f63d
engine: simplify sound fx allocation
2025-01-22 14:46:40 +03:00
Alibek Omarov
0c50076ff0
engine: zone: ensure poolcount is zero on Memory_Init
2025-01-22 13:49:51 +03:00
Alibek Omarov
8ce01c38c7
engine: http: ensure we don't write broken decompressed files
2025-01-22 13:49:24 +03:00
Alibek Omarov
cac6206984
engine: client: allocate everything related to sounds in the sound pool
2025-01-22 13:49:02 +03:00
Alibek Omarov
a5c88bdda9
engine: touch: allow smoother migration from old engine touch configs by stripping .tga extension
2025-01-22 13:40:47 +03:00
Alibek Omarov
fc017286a6
engine: base_cmd: slightly faster search based on assumption that list is always ordered
2025-01-22 05:41:52 +03:00
Alibek Omarov
20d4e3e719
engine: fix flexible array member usage in case of null terminated strings
...
(woops)
2025-01-22 05:41:52 +03:00
Alibek Omarov
4eaa32fc10
engine: whereami: sync with upstream
2025-01-21 20:03:20 +03:00
Alibek Omarov
b7c025b167
filesystem: android: request buffer for Android asset LoadFile implementation
...
Might be better than asking for random access and then only reading forward.
2025-01-21 19:50:14 +03:00
Alibek Omarov
f29c588e0f
filesystem: take code from DarkPlaces to properly read compressed files
2025-01-21 18:47:42 +03:00
Alibek Omarov
2065ef143a
engine: server: fix ent_create under PrimeXT
2025-01-21 16:09:56 +03:00
Alibek Omarov
a5c02c85f0
filesystem: wad: get rid of sentinel value at the end of wad_types array
2025-01-21 15:26:06 +03:00
Alibek Omarov
9a8761f1d8
engine: client: remove unused NetAPI_ValueForKey function
2025-01-21 15:17:03 +03:00
Alibek Omarov
273990d292
engine: cmd: store command description in flexible array member
2025-01-21 15:06:08 +03:00
Alibek Omarov
0e27d8717c
ref: remove servercount from texture struct, Xash don't use it (and it's also harmful anyway)
2025-01-21 14:36:42 +03:00
Alibek Omarov
8a9b209db0
engine: zone: optimize memory usage a bit by compressing memheader_t better while keeping it efficient
...
It saves about 40 kilobytes of memory.
2025-01-21 14:04:33 +03:00
Alibek Omarov
232d1f8583
engine: make separate mempools for cmds, cvars and basecmd
2025-01-21 11:26:35 +03:00
Alibek Omarov
6cfa5877a4
engine: base_cmd: decrease base cmd hash size
2025-01-21 11:25:33 +03:00
Alibek Omarov
154df00f94
filesystem: don't create full path to rwdir, as cwd is always equal to rwdir
...
Fixes updating gameinfo.txt.
2025-01-20 19:53:04 +03:00
Alibek Omarov
c5649c94d5
engine: client: fix delta entity packet flush on GoldSrc protocol
...
Implement counting playerbytes for more accurate net_graph, even if we're
skipping this delta frame.
2025-01-20 19:38:44 +03:00
Alibek Omarov
a1da10fe38
filesystem: set default values for quick/autosave aged count
2025-01-20 16:06:57 +03:00
Andrey Akhmichin
17a71ffc96
ci: upgrade freebsd tasks.
2025-01-19 04:36:07 +03:00
Andrey Akhmichin
4609fbc0c5
Documentation: supported-mod-list.md: update links.
2025-01-19 04:35:17 +03:00
Andrey Akhmichin
d278d3bdd7
engine: common: fix clang build.
2025-01-19 04:33:06 +03:00
Alibek Omarov
7811b60292
engine: common: fix build for apple and freebsd-15
2025-01-18 10:40:12 +03:00
Alibek Omarov
870fad5606
public: tests: remove Q_colorstr tests
2025-01-18 10:36:11 +03:00
Alibek Omarov
3e93aa459d
engine: net_buffer: turn bit write and read masks into predefined arrays, so we don't have to call InitMasks
...
In future, net_buffer might get moved to libpublic.
Also, get rid of 32-th bit write mask, it's only get used when we're trying to
write zero bits value which is nonsense.
2025-01-18 09:54:11 +03:00
Alibek Omarov
626c5e44f6
engine: client: use existing engine functions for some client API functions
2025-01-18 09:44:21 +03:00
Alibek Omarov
c906aa0106
ref: gl: make DrawGLPoly and R_TextureAnimation private to brush rendering code
2025-01-18 08:39:31 +03:00
Alibek Omarov
0a41b70e44
ref: gl: store ripple texture in texture's fb_texturenum as it's only used for water and water don't have luma
2025-01-18 08:38:43 +03:00
Alibek Omarov
ea338adc46
ref: gl: make GL_FrustumSetPlanme private to the frustum implementation
2025-01-18 08:34:25 +03:00
Alibek Omarov
5fa777578b
ref: gl: fix detail texture leak, fix texture leak when texture have default texture set (in which case it still might have other textures set)
2025-01-18 08:33:20 +03:00
Alibek Omarov
5b9db5940b
engine: mod_bmodel: don't try to load luma/fullbright texture for water, as no renderers support it anyway, and instead we will use that field for rippletexture
2025-01-18 08:30:59 +03:00
Alibek Omarov
4b1b3aa13c
public: remove Q_colorstr, as it's completely useless and checking for color string is easy actually
2025-01-18 08:29:36 +03:00
Alibek Omarov
2d51d23d89
engine: client: don't send commands until ca_active on Xash protocol
2025-01-17 15:06:59 +03:00
Alibek Omarov
b5b6dad39c
engine: fix a typo in scroll lock (missing L)
2025-01-15 23:49:13 +03:00
Alibek Omarov
a5619e9960
engine: take keydefs header from Quake-2 source code (client/keys.h)
2025-01-15 23:47:55 +03:00
Alibek Omarov
a75666a3cd
engine: common: fix dedicated build by defining SV_GetMaxClients before CL_GetMaxClients stub (that redirects to it)
...
Also remove CL_Shutdown from dedicated stub lists.
2025-01-14 13:10:02 +03:00
Alibek Omarov
49426721d8
engine: use zero initializers instead of memset
2025-01-14 12:11:27 +03:00
Alibek Omarov
04125284a3
engine: dedicated: make some stubs inlined
2025-01-14 12:10:31 +03:00
Alibek Omarov
1d4f7b2f94
engine: server: slight refactoring, make SV_ModelHandle inlined, move PlayerIsFrozen to sv_client, fix packet loss data type
2025-01-14 12:09:23 +03:00
Alibek Omarov
38c82a3f76
engine: don't bother calculating crc32 for local clients for better performance (thanks @tyabus for the idea)
2025-01-14 11:55:28 +03:00
Alibek Omarov
785632a437
filesystem: minor refactoring in MD5_HashFile, use initializer instead of memset, limit buffer variable scope
2025-01-14 11:36:13 +03:00
Alibek Omarov
4be75af214
engine: client: always write buffer.dat so we will be able to request it from users. Append protocol number to it
2025-01-14 11:31:10 +03:00
Alibek Omarov
dcdca01e86
ref: gl: declare VBO globals static
2025-01-14 11:30:35 +03:00
Alibek Omarov
201d9c8f80
public: split VCS info to separate file for slightly better compilation speeds
2025-01-13 20:02:59 +03:00
Alibek Omarov
69341e36a3
public: expose commit and branch as global variables instead of functions
2025-01-13 20:02:59 +03:00
Alibek Omarov
3532a77643
public: move git commit and branch private to libpublic
2025-01-13 20:02:59 +03:00
Alibek Omarov
35dc072b26
filesystem: on Android, assume all paths are case-sensitive because doing Linux-specific ioctl check crashes FUSE driver and kills our app
2025-01-13 13:56:15 +03:00
Alibek Omarov
f92a3695b3
filesystem: fix fd leak in Platform_GetDirectoryCaseSensitivity
2025-01-13 13:54:42 +03:00
Alibek Omarov
a7b776f3b9
Revert "wscript: disable /showIncludes based msvcdeps for now, it causes issues with non-English locales"
...
Add option --enable-msvcdeps that we only enable on CI.
This reverts commit e58007aab3 .
2025-01-10 21:48:43 +03:00
Alibek Omarov
f2fb668c9e
android: now run exit() from Java side, as the next engine run is expected to be clean
2025-01-09 21:29:01 +03:00
Alibek Omarov
90e493fa3a
engine: common: add Host_ExitInMain function that will force engine return from Host_Main() function, essentially making engine gracefully exit on Android
...
In future, this might be used everywhere, so users would be able to add custom
cleanup in some advanced game_launch implementation, on any platform.
2025-01-09 20:31:26 +03:00
Alibek Omarov
692bcc4073
engine: client: cl_tent: rewrite fizz effect, fix incorrect positoning along the way
2025-01-09 19:23:40 +03:00
Alibek Omarov
823642b10d
readme: add link to ipa-reader.com for Xash word pronounciation [skip ci]
2025-01-09 17:13:56 +03:00
Alibek Omarov
07189ca2f5
engine: client: remove spammy message about not precached model on client side
...
Recently, mods (Brutal Half-Life v3 and MMod) started to call this function
every frame as a hacky way to detect presence of some model on the level. I
don't know why they do that, but users (who co-incidentally run engine with
-dev) has been complaining about console spam.
This is why we can't have things.
2025-01-09 17:10:54 +03:00
Alibek Omarov
0d55441830
engine: properly pass shutdown reason down to close log, helps to finally get rid of global finalmsg
2025-01-09 08:04:18 +03:00
Alibek Omarov
98ff33d9e2
engine: mod_bmodel: rewrite .lit file loader using normal stream io functions
2025-01-09 08:02:39 +03:00
Alibek Omarov
baa8fbaaec
engine: mod_bmodel: fix misleading debug message telling about monochrome lighting when .lit file is used
2025-01-09 08:02:39 +03:00
Alibek Omarov
a0b46da04b
engine: consolidate all box clipnodes used in studio models, pmove and server in a single place
2025-01-09 08:02:39 +03:00
Alibek Omarov
e70ba7ad64
engine: now, remove SUPPORT_BSP2_FORMAT macro, only prevent ref_soft from loading such maps
2025-01-09 08:02:39 +03:00
Alibek Omarov
8a41be9d47
engine: server: finally, make a union for large leaf indices in edict_t so we can run bsp2 maps without recompiling
2025-01-09 08:02:39 +03:00
Alibek Omarov
47aff9e30b
engine: hack mnode_t struct so we can have 24-bit face and children indices to support BSP2 format in runtime
2025-01-09 08:02:39 +03:00
Alibek Omarov
ced8744ac9
engine: split edge struct into two with 16-bit indicies and 32-bit indicies to support BSP2 format in runtime
2025-01-08 14:46:07 +03:00
Alibek Omarov
734c07ddab
engine: split clipnodes struct into two with 16-bit indicies and 32-bit indicies to support BSP2 format in runtime
2025-01-08 14:46:07 +03:00
Alibek Omarov
ceb603488a
engine: platform: sdl: set up our custom log output function to catch all SDL errors in engine log file
2025-01-08 10:10:45 +03:00
Alibek Omarov
80bac157eb
Update SDL to 2.30.11, use GitHub links for SDL, as it might be faster on Actions virtual machines
2025-01-08 09:42:53 +03:00
Alibek Omarov
b45581c630
Documentation: gameinfo: add a note about liblist.gam and gameinfo.txt changes
2025-01-08 01:22:23 +03:00
Alibek Omarov
d4fe3d6f8a
filesystem: wscript: check d_type field in struct dirent, as this is an extension and some supported ports (like psvita) don't have it
2025-01-08 01:22:23 +03:00
Alibek Omarov
1907485895
filesystem: re-enable folder check for array returned by listdirectory with dirs_only set to true
...
According to glibc manual, not all filesystems support it and some might return DT_UNKNOWN.
2025-01-08 01:22:23 +03:00
Alibek Omarov
cfebb3e1d6
filesystem: massively rework how scanning game directories work
...
* No more conversion from liblist.gam to gameinfo.txt. We are using liblist.gam directly now.
gameinfo.txt being native format to Xash3D not only remains, it takes priority over liblist.gam.
* Quake game directories now don't receive autogenerated gameinfo.txt.
* Empty directories don't get gameinfo.txt either, finally making it easier to support HD addon folders.
* If user still wishes to generate gameinfo.txt, there is now command fs_make_gameinfo that creates
gameinfo.txt for currently running game.
* No more creating empty folders for RoDir. They are now created on demand.
2025-01-08 01:22:23 +03:00
Alibek Omarov
f9a0057c28
wscript: fix bsp2 build bruh
2025-01-08 01:22:23 +03:00
Alibek Omarov
ceb2b0c5e4
filesystem: add utility function FS_CheckForQuakePak that parses Quake PAK file and looks for specific files in it's root
...
Used to properly detect Quake game dirs.
2025-01-08 01:22:23 +03:00
Alibek Omarov
83b5edea88
engine: platform: sdl: clear key states on losing window focus
2025-01-06 16:38:16 +03:00
Alibek Omarov
9d2a85f11f
engine: client: clear mouse state along with everything else in Key_ClearStates
2025-01-06 16:38:16 +03:00
Alibek Omarov
93d3df81ee
engine: client: small refactoring and better explanation for char input handler for menus that don't query our extended API
2025-01-06 16:00:11 +03:00
Alibek Omarov
2a7f13151a
engine: cmd: when command is already defined and has the same function pointer, show it as warning
2025-01-06 13:51:25 +03:00
Alibek Omarov
0c4f6ae61d
engine: client: like GoldSrc, use cancelselect command for escape key. It is handled in client.dll and allows mods to override Esc key behavior
2025-01-06 13:51:25 +03:00
Andrey Akhmichin
b7150c3208
Documentation: opensource-mods.md: add "Earth Special Forces".
2025-01-02 05:35:33 +03:00
Alibek Omarov
d6ebff81e2
engine: client: vgui: track textures upload to avoid issues in buggy mods (that are probably will never get fixed)
2024-12-30 07:28:33 +03:00
Alibek Omarov
ce4148f351
engine: client: vgui: deprecate VGUI_CreateTexture and VGUI_UploadTextureBlock functions, as they never used by vgui_support module
...
* vgui_support used them in old engine for font cache, but we don't have that anymore.
2024-12-30 07:16:30 +03:00
Alibek Omarov
08c2632c14
engine: platform: nswitch: export _Unwind_GetIPInfo as required by cs16-client
2024-12-29 09:11:21 +03:00
Alibek Omarov
03eac904c1
public: make COM_FixSlashes inlined
2024-12-29 09:05:15 +03:00
Alibek Omarov
62f3354f4e
mainui: update
2024-12-29 08:06:58 +03:00
Alibek Omarov
d5b6eff0c0
game_launch: fix --disable-menu-changegame by request
2024-12-29 08:06:50 +03:00
Alibek Omarov
c9ee844a24
scripts: gha: bundle SDL2 pdb file for better stacktraces on Windows
2024-12-29 02:08:05 +03:00
Alibek Omarov
687c9b004f
engine: platform: sdl: set directsound as default audio driver on Windows, due to incompatibilities with mods
2024-12-29 02:01:23 +03:00
Alibek Omarov
14e79f04ac
engine: prevent extra malloc in exec by checking if cfg already contains newline at EOL and appending it to cbuf if required
2024-12-28 16:03:49 +03:00
Alibek Omarov
5d6cf48687
engine: client: fix lightstyle timings on GoldSrc protocol, share the parser with Quake protocol handler
2024-12-28 01:40:59 +03:00
Alibek Omarov
88949a9ee6
engine: launcher: drop support for changing games from within internal launcher for platforms that do not have execv equivalent
2024-12-27 18:45:31 +03:00
Alibek Omarov
2d1e76199b
engine: host: always print Host_Error text to log, even if console hasn't been enabled
2024-12-27 18:37:25 +03:00
Alibek Omarov
a5d78ecfd7
engine: be more verbose on why the engine is going to be shut down
2024-12-27 18:30:46 +03:00
Alibek Omarov
3576e474e6
engine: get rid of SendKeyEvents function, it only listened for WM_QUIT on Windows and we don't use that with SDL
2024-12-27 18:30:01 +03:00
Alibek Omarov
d50927f21f
ref: gl: make r_ripple work with non-square non-pot textures, fix holes caused by unexpected transparency
2024-12-26 06:31:53 +03:00
Alibek Omarov
c6e3146290
ref: gl: fix broken water texture when it was discarded by R_UploadRipples
2024-12-26 03:49:12 +03:00
Alibek Omarov
9811988cce
engine: server: set mapname globals field before making first call into DLL, as some mods tend to read it too early
2024-12-26 02:50:30 +03:00
Alibek Omarov
48bdd4238e
engine: always include reason to server shutdown
2024-12-26 02:13:13 +03:00
Alibek Omarov
fd2b7e9197
engine: client: declare music command as overridable as the same command exists in HLU SDK
2024-12-26 01:16:48 +03:00
Alibek Omarov
0e42e5b9e3
engine: command: introduce new type of commands that can be overriden by a mod DLL for better compatibility
2024-12-26 01:15:32 +03:00
Alibek Omarov
65750f0cf3
engine: server: hack save fields that use types unsupported by Half-Life Unified SDK through array types
2024-12-26 00:36:28 +03:00
Alibek Omarov
6469b0a5f5
engine: common: shut up warn-unused-result on log write functions, only fetch system time for system logs when necessary
2024-12-24 11:27:34 +03:00
Alibek Omarov
4f98187e9a
engine: move select-based stdin input function to platform/posix
2024-12-24 11:13:05 +03:00
Alibek Omarov
74c19a1557
engine: client: leave SDL2 client.dll detection for Windows only
2024-12-24 10:46:39 +03:00
Alibek Omarov
cfebee6ea8
engine: split crashhandler to win32 and posix versions
2024-12-24 10:37:49 +03:00
Alibek Omarov
bd0d6644e0
engine: move Sys_SendKeyEvents to platform/win32
2024-12-24 09:59:47 +03:00
Alibek Omarov
f41450127a
Documentation: add note about pkg-config when compiling for Windows under Wine
2024-12-24 09:59:09 +03:00
Alibek Omarov
70897af362
public: add dll helpers to simplify basic interaction with exported functions lists
2024-12-23 04:43:15 +03:00
Alibek Omarov
f1d7101ad8
engine: client: get rid of NULL sentinels at the end of arrays
2024-12-22 07:43:26 +03:00
Alibek Omarov
ac9d960eef
engine: common: get rid of NULL sentinels at the end of arrays
2024-12-22 07:22:10 +03:00
Alibek Omarov
0c471aecb1
engine: common: imagelib: get rid of NULL sentinels at the end of arrays
2024-12-22 07:21:06 +03:00
Alibek Omarov
72d0d70587
engine: server: get rid of NULL sentinels at the end of arrays
2024-12-22 07:12:32 +03:00
Alibek Omarov
bec526a77e
utils: xar: fix xar build
2024-12-22 07:11:53 +03:00
Alibek Omarov
4d1119391a
ref: gl: get rid of NULL sentinels at the end of arrays
2024-12-22 07:11:28 +03:00
Alibek Omarov
1dd622fcbb
engine: client: keys: refactoring, remove NULL sentinels, make keys structs and few more functions private to keys.c file
2024-12-21 15:22:48 +03:00
Alibek Omarov
af4b64983a
engine: fix a typo in Cmd_AddFilteredCommand flags passed to Cmd_AddCommandEx. Make them return Cmd_AddCommandEx value
2024-12-21 15:01:04 +03:00
Alibek Omarov
e751092555
engine: common: cmd: consider filtered buffer privileged when we're running local singleplayer game
2024-12-20 05:48:33 +03:00
Alibek Omarov
ce06b1d3d7
engine: client: allow CL_GetLocalPlayer to return NULL rather than halting whole server
2024-12-20 05:47:46 +03:00
Alibek Omarov
a834f4996f
engine: move client adding functions to their appropriate subsystems and make them static. Make in-engine functions inlined.
2024-12-20 05:47:46 +03:00
Alibek Omarov
fdcf267fe3
engine: client: fix usermessage being removed because of case-sensitivity (message names are case-insensitive when transferred from server to client)
2024-12-20 03:05:14 +03:00
Alibek Omarov
7f2ebd1b5e
engine: server: add command sv_list_messages to print all registered user messages
2024-12-20 02:37:38 +03:00
Alibek Omarov
68b2d9f269
engine: server: fix possible message number inconsistency if server requested it twice
2024-12-20 02:37:01 +03:00
Alibek Omarov
3f1eed9f59
engine: client: remove svc_goldsrc_* definitions for message that semantics matches Xash3D 49 protocol and instead use it's definitions
2024-12-20 01:51:24 +03:00
Alibek Omarov
0637dbaab1
engine: client: refactor and simplify CL_RegisterUserMessage
2024-12-20 01:51:24 +03:00
Alibek Omarov
85388e97c1
engine: client: add command cl_list_messages to print all registered user messages
2024-12-20 01:51:24 +03:00
Alibek Omarov
de961eb45e
engine: client: use new extension for creating temporary files for demoheader
2024-12-19 07:10:02 +03:00
Alibek Omarov
3d60770b84
filesystem: add flag to open files in a RAM
...
On Linux, it uses memfd_create syscall that can be found on Linux 3.17 and
higher. By default memfds are executable, so we set MFD_NOEXEC_SEAL flag to
prevent execution at creation time.
2024-12-19 04:22:25 +03:00
Alibek Omarov
93c5853356
engine: server: merge SV_FindBestBaseline for normal entities and static entities into single function
2024-12-18 06:57:43 +03:00
Alibek Omarov
98e587285b
engine: client: allocate static entities only when server sends static entity packet
2024-12-18 06:57:43 +03:00
Alibek Omarov
2aa13c8347
public: xash3d_mathlib: include string.h with memset definition
2024-12-17 21:58:42 +03:00
Alibek Omarov
53344771fd
public: xash3d_mathlib: get rid of matrix identity global macros
2024-12-17 21:01:51 +03:00
Alibek Omarov
2373743920
public: mention FSF in copyright header, as some of the libc extensions callbacks were derived from glibc [skip ci]
2024-12-17 20:41:55 +03:00
Alibek Omarov
90a3497afe
public: improve Q_strncat fallback implementation
2024-12-17 20:40:19 +03:00
Alibek Omarov
339aebb08c
public: add Q_strnlen with fallback to memchr
2024-12-17 20:03:09 +03:00
Alibek Omarov
b4afe390d6
public: slight refactoring
2024-12-17 19:57:27 +03:00
Alibek Omarov
ca0c5f929a
engine: slight refactoring of lightstyle handling functions
2024-12-17 17:04:26 +03:00
Alibek Omarov
48cc526c7e
engine: client: fix possible svc_pings misparse by reading until null bit is encountered
2024-12-15 18:22:40 +03:00
Alibek Omarov
8b4b0479c8
ci: enable ffmpeg by default for Windows and Linux x86 targets
2024-12-13 03:04:32 +03:00
Alibek Omarov
c8bf7e5630
engine: avi: get rid of stubs file, temporarily put these stubs into avi_ffmpeg.c
2024-12-13 03:04:32 +03:00
Alibek Omarov
4987080e1e
engine: client: remove unused S_RawSamples wrapper function
2024-12-13 03:04:32 +03:00
Alibek Omarov
1d78e400ff
engine: sound: increase MAX_RAW_SAMPLES to 16384 to fit an audio track coming from the movies
2024-12-13 03:04:32 +03:00
Alibek Omarov
2d1a885954
common: render_api: use movie_state_s in AVI functions for easier type checking
2024-12-13 03:04:32 +03:00
Alibek Omarov
43ba2e747b
engine: avi: mention SDL3 and FTEQW developers which ffmpeg integrations in their projects helped me to understand the ffmpeg API
2024-12-13 03:04:32 +03:00
Alibek Omarov
eefb823ee2
engine: client: remove legacy movie audio track streaming functions
2024-12-13 03:04:32 +03:00
Alibek Omarov
a3c33e0fa9
engine: client: sound: make S_RawSampleStereo public to other parts of engine
2024-12-13 03:04:32 +03:00
Alibek Omarov
16fe6b1b1a
engine: client: avi: remove VFW-based player
2024-12-13 03:04:32 +03:00
Alibek Omarov
4275829bd5
engine: client: partially rework how AVI playback works in Xash. Add ffmpeg-based player.
...
This intentionally will not build without --enable-ffmpeg for now.
We add new functions to the RenderAPI called AVI_Think and AVI_SetParm. Game
developer is supposed to call AVI_Think each frame and set video playback
parameters through AVI_SetParm function.
What's tested:
* Intro cinematics.
* Looping videos.
* Playing back an hour long video.
* API extension (PrimeXT's avi branch at https://github.com/a1batross/PrimeXT ).
What's broken:
* There is no way to seek a video file, only rewind to the start.
2024-12-13 03:04:32 +03:00
Alibek Omarov
1884f0a3ce
engine: client: avi: add new macro XASH_AVI and corresponding backend select macros (AVI_NULL and AVI_FFMPEG)
2024-12-09 00:27:40 +03:00
Alibek Omarov
3d30dc8d02
mainui: update
2024-12-08 01:58:39 +03:00
Alibek Omarov
75adb2e686
engine: server: for entities physics code directly use cvar values rather than movevars. Leave movevars to player movement only
2024-12-08 01:39:24 +03:00
Alibek Omarov
45787a87b3
android: try to enable poly-opt and lto optimizations for release builds
2024-12-05 22:33:22 +03:00
Alibek Omarov
0a85734ae7
engine: server: avoid useless copying in SV_GetClientIDString for bots or local clients
2024-12-05 19:49:51 +03:00
Alibek Omarov
b28c1186b2
filesystem: fix loading dlls by full path as required by metamod-r
2024-12-05 19:20:13 +03:00
Alibek Omarov
5007f8488c
engine: host: add simple usage help for -bugcomp flag
2024-12-05 18:29:54 +03:00
Alibek Omarov
f7062498c2
engine: turn old pfnGetGameDir behavior into a bugcomp flag get_game_dir_full
...
This function is kinda nasty, some mods (like old RCBot builds) expect a slash,
some newer mods (like Sandbot) doesn't. To preserve compatibility with both old
and new mods, just add it as bug compatibility flag.
2024-12-05 18:14:15 +03:00
Alibek Omarov
964744d330
engine: client: fix broken build due to incorrect constant being used
2024-12-05 14:20:43 +03:00
Alibek Omarov
f5d635b67b
engine: client: allow VOX words use other formats than WAV
2024-12-05 12:41:56 +03:00
Alibek Omarov
d0112a98b5
engine: client: improve error reporting in VOX_LoadSound, allow longer result paths, fix possible buffer overflow
2024-12-05 12:41:56 +03:00
Alibek Omarov
614b9113ad
engine: platform: as an exception, allow calling direct platform-specific implementations of Platform_Sleep to make them inlined
2024-12-04 18:37:55 +03:00
Alibek Omarov
e14cd758ad
engine: turn Platform_Sleep into an inline function that directly calls platform-specific delay functions
2024-12-04 18:32:03 +03:00
Alibek Omarov
de1361d99d
android: don't show unfinished downloads. Set progress to 1.0f when done
2024-12-04 17:08:55 +03:00
Alibek Omarov
e731775f70
android: cleanup unused imports
2024-12-04 16:27:53 +03:00
Alibek Omarov
342d61b283
engine: platform: sdl: always call SDL_Quit in Platform_Shutdown
2024-12-04 16:14:56 +03:00
Alibek Omarov
b030cdb4e3
engine: client: add NULL check to prevent crash if in_graph key doesn't exist in client.dll
2024-12-03 21:56:06 +03:00
Alibek Omarov
18a973d4f2
engine: server: always set sv_background to zero on server shutdown rather than on server dll unload
2024-12-03 21:02:37 +03:00
Alibek Omarov
51fa7d2611
wscript: strip lib prefix from new opus and vorbis targets, don't link them in dedicated
2024-12-02 21:59:11 +03:00
Alibek Omarov
6b6d3b3770
3rdparty: opusfile: wscript: hack building on Android with API level lower than 24
...
In API level 21 **and** _FILE_OFFSET_BITS == 64 we don't get fseeko/ftello functions.
To avoid increasing API level, just set _FILE_OFFSET_BITS to some bogus value.
Undefining it doesn't work as opusfile sets it to 64 automatically.
2024-12-02 21:28:36 +03:00
Alibek Omarov
fd5e3fbbb9
android: configure waf with bundled deps to not look for system libs, as Android doesn't have any
2024-12-02 21:10:10 +03:00
Alibek Omarov
6247bbc629
3rdparty: libogg: wscript: remove useless defines
2024-12-02 21:10:00 +03:00
Alibek Omarov
0181e640c9
3rdparty: wscript: set explicit names for correct dependency calc of generated files
...
This helps avoid issue when the bzip2 or libogg are compiled before header is
generated for them.
In theory, we shouldn't do that, but I guess dependency calculation through
include directives doesn't work when the file doesn't exist.
2024-12-02 21:07:30 +03:00
Alibek Omarov
26230596ba
3rdparty: bzip2: wscript: bring back generating bz_version.h.in now that cmake.py has subst support
2024-12-02 21:07:12 +03:00
Alibek Omarov
884e052d98
scripts: waifulib: cmake: replicate Waf behavior and always add build directories to the include path.
...
Also, set cmake minimum required version to 3.5 only to shut up deprecation notice.
2024-12-02 21:06:07 +03:00
Alibek Omarov
5516180ed8
scripts: waifulib: cmake: add limited subst feature support
2024-12-02 21:05:59 +03:00
Alibek Omarov
6d00aef398
engine: move soundlib onto client, only leave snd_utils with some functions that's engine core or server are dependent on
2024-12-02 21:05:41 +03:00
Alibek Omarov
2d52dae69c
engine: common: soundlib: reformat everything using uncrustify
2024-12-02 21:05:34 +03:00
Alibek Omarov
eb64ffcec9
uncrustify: sync with fakk2-sdk and make some fixes on star ptr alignments
2024-12-02 21:05:28 +03:00
Alibek Omarov
7eba5a994d
wscript: specifically look for opus 1.4, as 1.5 have broken custom modes
...
Link to GitHub issue: https://github.com/xiph/opus/issues/374
2024-12-02 21:05:08 +03:00
Alibek Omarov
c39d2e243a
wscript: look for system provided vorbis and opus dependencies
...
In some configuration, like Flatpak, on dev machines or when packaging for *nix
we can safely link with system libraries.
2024-12-02 21:04:28 +03:00
SNMetamorph
3661af921e
readme: added mention of Ogg Vorbis & Ogg Opus formats support
2024-12-02 20:36:33 +03:00
SNMetamorph
4581755f9b
3rdparty: libogg: added generating of config_types.h
2024-12-02 20:36:33 +03:00
SNMetamorph
593b0f295a
engine: soundlib: added proper errors reporting for Ogg Opus sound routines
2024-12-02 20:36:33 +03:00
SNMetamorph
7c23b6473c
engine: soundlib: added proper errors reporting to Ogg Vorbis sound routines
2024-12-02 20:36:33 +03:00
SNMetamorph
960a3a1483
engine: soundlib: minor codestyle and headers-related fixes
2024-12-02 20:36:33 +03:00
SNMetamorph
485d4324f8
3rdparty: libvorbis & libvorbisfile combined into one wscript
2024-12-02 20:36:33 +03:00
SNMetamorph
881788c0c9
3rdparty: libogg & opusfile wscript fixes
2024-12-02 20:36:33 +03:00
SNMetamorph
73cf55b958
wscript: link sound format related libraries in XASH_DEDICATED build mode
2024-12-02 20:36:33 +03:00
SNMetamorph
b7c2c476a8
engine: soundlib: implemented sound looping feature for Ogg Vorbis
2024-12-02 20:36:33 +03:00
SNMetamorph
fa152bef20
engine: soundlib: implemented sound looping feature for Ogg Opus
2024-12-02 20:36:33 +03:00
SNMetamorph
770054daaf
engine: soundlib: implemented Ogg Opus sounds streaming
2024-12-02 20:36:33 +03:00
SNMetamorph
2ad5066271
engine: soundlib: different Ogg sound formats split to separate files
2024-12-02 20:36:33 +03:00
SNMetamorph
99acd64203
engine: soundlib: implemented Ogg Vorbis sounds streaming
2024-12-02 20:36:33 +03:00
SNMetamorph
86154f81aa
engine: soundlib: allowed resampling sounds with rate >44kHz
2024-12-02 20:36:33 +03:00
SNMetamorph
e982b7911f
engine: soundlib: implemented Ogg Opus sounds playback
2024-12-02 20:36:33 +03:00
SNMetamorph
4e138ee795
engine: wscript: link libopusfile dependency
2024-12-02 20:36:33 +03:00
SNMetamorph
8e5d0a6425
3rdparty: opusfile: added wscript for libopusfile
2024-12-02 20:36:33 +03:00
SNMetamorph
33901afa57
3rdparty: added libopusfile submodule
2024-12-02 20:36:33 +03:00
SNMetamorph
8fce7dc78e
engine: soundlib: initially implemented Ogg Vorbis sounds playback
2024-12-02 20:36:33 +03:00
SNMetamorph
d618b817ca
engine: wscript: link libvorbisfile dependency
2024-12-02 20:36:33 +03:00
SNMetamorph
914be8dbd7
3rdparty: vorbis: added wscript for libvorbisfile
2024-12-02 20:36:33 +03:00
SNMetamorph
9e67a90b25
3rdparty: vorbis: added wscript for libvorbis
2024-12-02 20:36:33 +03:00
SNMetamorph
44e67c987b
3rdparty: added Vorbis submodule
2024-12-02 20:36:33 +03:00
SNMetamorph
3c6c90c1e7
3rdparty: libogg: added wscript for libogg
2024-12-02 20:36:33 +03:00
SNMetamorph
3e8bd16d2b
3rdparty: added libogg submodule
2024-12-02 20:36:33 +03:00
Alibek Omarov
fb964b8686
mainui: update
2024-12-01 11:34:44 +03:00
Alibek Omarov
38ef16b08b
engine: server: do not unload server library on win327
2024-12-01 11:21:02 +03:00
Alibek Omarov
1f5c97964b
engine: return full path in server's pfnGetGameDir, if possible
2024-11-30 09:28:30 +03:00
Alibek Omarov
4798cd6d1e
filesystem: add new export to get fs_rootdir path
2024-11-30 09:28:30 +03:00
Alibek Omarov
df4194ca57
engine: net_chan: check BZ2 functions return value and log if it's not BZ_OK
2024-11-28 19:27:13 +03:00
Alibek Omarov
888599677e
engine: net_chan: fix size of outgoing BZ2 compressed packets
2024-11-28 18:50:55 +03:00
Alibek Omarov
22da42b121
3rdparty: mainui: update
2024-11-27 16:59:18 +03:00
Alibek Omarov
5ad8bc3ba4
3rdparty: update submodules
2024-11-27 16:40:14 +03:00
Alibek Omarov
0154ffa060
wscript: try to automatically set console subsystem flag depending on target features
...
Remove subsystem flag from shlibs and stlibs, it's only required for executables.
2024-11-27 15:43:13 +03:00
Alibek Omarov
cb3f5a74a8
wscript: don't check for cmake twice
2024-11-27 15:08:42 +03:00
Alibek Omarov
b3c7dbe3e4
wscript: don't install import libraries
2024-11-27 15:08:28 +03:00
Alibek Omarov
6b24b263ab
engine: host: expose new -clientport settings. Realign options
2024-11-25 02:53:28 +03:00
Alibek Omarov
75b69fbf85
engine: net_ws: allow setting custom client port
2024-11-25 02:51:40 +03:00
Alibek Omarov
23b410ccb0
engine: mod_bmodel: optimize loading wad textures by directly loading it from the archive through new filesystem functions
2024-11-23 15:04:05 +03:00
Alibek Omarov
bf6a9cb0e7
engine: client: make R_GetTextureParms inlined
2024-11-23 15:02:13 +03:00
Alibek Omarov
689e29bc42
engine: client: only load paused icon when requested
2024-11-23 15:01:50 +03:00
Alibek Omarov
b316af13d6
engine: client: only load tile image when requested
2024-11-23 15:01:50 +03:00
Alibek Omarov
e7f939c87b
engine: always add .wad extension to wadlist names to simplify how it's being used
2024-11-23 14:01:09 +03:00
Alibek Omarov
b94446161e
filesystem: add functions to directly look up into archives
2024-11-23 13:56:53 +03:00
Alibek Omarov
567cf44111
filesystem: wad: remove unused variable in FS_FindFile_WAD
2024-11-23 13:56:25 +03:00
SNMetamorph
9244bdc7db
ref: gl: added gl_fog cvar for better GoldSrc compatibility
2024-11-21 23:11:53 +03:00
Alibek Omarov
0db2597d1e
engine: platform: psvita: try to explicitly export strtok() function
2024-11-21 05:31:43 +03:00
Alibek Omarov
744d5d1141
ci: include proguard mapping files archive
2024-11-20 17:05:46 +03:00
Alibek Omarov
778315da5f
android: let's implement proguard rules for SDL2
2024-11-20 17:05:46 +03:00
Alibek Omarov
1acda22ad4
android: CMakeLists: try to build smaller SDL2
2024-11-20 12:55:26 +03:00
Alibek Omarov
4cb1f69475
android: remove unrelated readme file
2024-11-20 12:42:56 +03:00
Alibek Omarov
f1806cbf2e
android: add SDL classes and some engine methods to proguard rules file
2024-11-20 12:41:38 +03:00
Alibek Omarov
a4beb7d493
android: remove fastlane, as we don't really need it anymore
2024-11-20 12:05:58 +03:00
Alibek Omarov
880ae0fe7c
android: change default arguments to -console -log, as -dev enables cheats which may be undesired for users
2024-11-20 10:36:53 +03:00
Alibek Omarov
cd3cc7e696
android: FileCopyWorker: implement simple progress tracking
2024-11-20 10:36:24 +03:00
Alibek Omarov
9e9a9847fc
android: fix xash-extras assets path
2024-11-20 08:49:42 +03:00
Alibek Omarov
cb5f5baa2b
Revert "wscript: as an experiment, add -pipe flag for better compilation speeds"
...
This reverts commit 6bfa5ce600 .
2024-11-20 08:13:02 +03:00
Alibek Omarov
edef41fb71
ci: android: fix deploying APK to artifacts
2024-11-20 08:08:35 +03:00
Alibek Omarov
6bfa5ce600
wscript: as an experiment, add -pipe flag for better compilation speeds
2024-11-20 08:08:16 +03:00
Alibek Omarov
d1f70bfe2c
scripts: waifulib: cmake: filter out -MMD compiler flag from generated CMake flags
2024-11-20 07:53:12 +03:00
Alibek Omarov
a56f512dc3
ci: fix signing Android APK
2024-11-20 07:43:17 +03:00
Alibek Omarov
7c88fd0a17
ci: android: fix SDL unpacking once again
2024-11-20 07:33:06 +03:00
Alibek Omarov
bec23c6d57
ci: don't run Gradle Daemon to not waste time
2024-11-20 07:31:54 +03:00
Alibek Omarov
81197b1aa4
android: bump NDK to r27c
2024-11-20 07:29:36 +03:00
Alibek Omarov
8205e22465
ci: android: fix SDL unpack, don't waste time installing NDK, gradle will do it
2024-11-20 07:29:21 +03:00
Alibek Omarov
8407af17f4
android: don't add verbose flags to waf, fix SDL path on CI
2024-11-20 07:23:40 +03:00
Alibek Omarov
22fef6fa36
android: add forgotten CMakeLists.txt
2024-11-20 07:15:50 +03:00
Alibek Omarov
88f91d3959
ci: download SDL release tarball for Android
2024-11-20 07:04:47 +03:00
Alibek Omarov
b63abe1cf2
android: use correct build flavor
2024-11-20 06:56:58 +03:00
Alibek Omarov
cd3dc78d4d
Include android project into the sources
2024-11-20 06:32:16 +03:00
Alibek Omarov
ddf5a01dfc
3rdparty: MultiEmulator: update
2024-11-20 06:32:16 +03:00
Alibek Omarov
10e8790311
filesystem: VFileSystem009: fix missing override keyword on a virtual method
2024-11-20 06:32:16 +03:00
Alibek Omarov
f04a26901c
Add 'android/' from commit 'add509bf9ebaa488e2afe2cdc158a0e6725cd654'
...
git-subtree-dir: android
git-subtree-mainline: b9f4f1eba4
git-subtree-split: add509bf9e
2024-11-20 05:31:39 +03:00
Alibek Omarov
b9f4f1eba4
engine: client: fix engine features masking for 48 and 49 protocol
2024-11-20 04:16:44 +03:00
Alibek Omarov
8b0d49f036
ci: update SDL2 to 2.30.9
2024-11-18 20:03:34 +03:00
Alibek Omarov
e94a2c900f
ci: use macos-13, as macos-12 is deprecated by GitHub
2024-11-18 19:55:32 +03:00
Alibek Omarov
bfb84a7ac4
ci: rework Linux build scripts, allow crosscompiling with whatever is included in Ubuntu 20.04 (which is used on GitHub Actions now) repositories
2024-11-18 19:55:32 +03:00
Alibek Omarov
fa272d9d93
public: add optional feature for COM_ParseFileSafe to ignore shell like hash symbol prefixed comments
2024-11-18 14:14:49 +03:00
Alibek Omarov
87f0217588
engine: client: add cl_showcmd, yet another debugging aid to print current usercmd state
2024-11-18 10:42:39 +03:00
Alibek Omarov
c4f71f1a44
engine: client: remove unncesseray int <-> qboolean branch in CL_GetMessage
2024-11-18 10:42:39 +03:00
Alibek Omarov
af332eb8ac
engine: client: validate dem_usercmd size before reading it into the buffer
2024-11-18 10:42:39 +03:00
Alibek Omarov
ac6dc2c2d3
engine: platform: directly call __NR_gettid syscall for compatibility with older systems
2024-11-18 10:42:39 +03:00
Alibek Omarov
a29b6772b9
engine: mod_bmodel: fix wadlist, wad file names don't have an extension there
2024-11-18 04:53:48 +03:00
Alibek Omarov
3691f02359
public: crtlib: make Q_strchrnul return non-const pointer, like strchr
2024-11-17 13:56:31 +03:00
Alibek Omarov
622d88eeba
engine: client: only check active tempentities when detaching player following tents
2024-11-17 13:38:14 +03:00
Alibek Omarov
56c19c4f5a
engine: client: make some simple functions, like querying entity by index, getting local player, inline
2024-11-17 13:37:32 +03:00
Alibek Omarov
c5471fe6fd
engine: server: make SV_IsPlayerIndex and SV_HavePassword inline
2024-11-17 13:36:40 +03:00
Alibek Omarov
046b1da8a8
ref: fix some possible off by one errors
2024-11-17 13:26:03 +03:00
Alibek Omarov
8fd5a5af96
filesystem: simplify ambient number bound check
2024-11-17 13:04:44 +03:00
Alibek Omarov
229f1560b0
engine: fix some possible off by one errors
2024-11-17 13:04:20 +03:00
Alibek Omarov
8f7f311f60
engine: mod_bmodel: simplify wadlist parser
2024-11-17 06:28:02 +03:00
Alibek Omarov
721c8043f1
public: optimize COM_FileExtension
2024-11-17 06:20:52 +03:00
Alibek Omarov
31a86d8af2
engine: use new Q_splitstr to work with single character delimited strings
2024-11-17 05:35:36 +03:00
Alibek Omarov
ac7617990a
public: add Q_splitstr function
2024-11-17 05:34:29 +03:00
Alibek Omarov
0813d2c7ce
engine: mod_bmodel: merge Mod_LoadColoredLightmap and Mod_LoadDeluxemap into a single function
2024-11-17 04:59:52 +03:00
Alibek Omarov
0ceb0d9e11
engine: provide compatible replacement for CompareFileTime function
2024-11-17 04:33:13 +03:00
Alibek Omarov
30db748dcb
engine: net_http: don't consider EISCONN an error, just proceed to next step
2024-11-17 03:13:39 +03:00
Alibek Omarov
399d549d0c
engine: net_ws: request Winsock 2
2024-11-17 03:13:39 +03:00
Alibek Omarov
77fb2d0eb2
engine: net_ws: fix misleading error when comparing IPv6 addresses
2024-11-15 16:41:42 +03:00
Alibek Omarov
ea88bb88b2
engine: add secondary master server
2024-11-15 15:25:40 +03:00
Alibek Omarov
190e4a5e8a
engine: client: don't kill entity's beams if this entity number was never used on client
...
Fixes issue when beam was sent over to client before it's start point entity
(due to PVS, for example)
2024-11-15 08:07:21 +03:00
Alibek Omarov
823dc3d46f
engine: net_http: don't consider EALREADY on connect() an error
2024-11-14 22:55:27 +03:00
Alibek Omarov
779cb2f721
engine: server: use calloc in SV_AllocString, allocate strings at stringspool preventing memory leaks. Fix strings deduplication on 64-bits.
2024-11-13 23:36:53 +03:00
Alibek Omarov
88c42d50f2
engine: server: always allocate svgame.stringspool, it's used to track temp string allocations like in SV_CopyString
...
Potentially fixes memory leakage on 64-bit when game uses instanced baselines or consistency lists
2024-11-13 23:35:45 +03:00
Alibek Omarov
a749bb8ef1
engine: server: reset str64 statistics on server deactivate
2024-11-13 23:32:05 +03:00
Alibek Omarov
723cd8e26c
engine: server: adjust 64-bit string pool size depending on max_edicts value (65k for each 1024 edicts)
2024-11-13 23:30:54 +03:00
Alibek Omarov
a6592e7776
public: add test to check that pair Q_buildos and Q_buildarch return expected (for this build) data
2024-11-12 21:24:48 +03:00
Alibek Omarov
4342689e73
engine: net_http: fix build with dedicated server
2024-11-12 14:46:06 +03:00
Alibek Omarov
8a2a7d1180
engine: rework how HTTP finite-machine works, use function pointers instead of enum. Preliminary chunked transfer and compression support. ( #1862 )
2024-11-11 10:30:15 +03:00
Vladimir
199e226758
Documentation updates and additions ( #1875 )
...
* Documentation: actualize and prettify entity tools instructions
* Documentation: added article about NAT bypass feature
* Documentation: updated GoldSrc protocol support article
2024-11-11 10:29:24 +03:00
Alibek Omarov
16ed6cbdcb
engine: mark some functions as never returning nullptr
2024-11-07 16:11:58 +03:00
Alibek Omarov
b51d1a4e2e
public: mark some functions as never returning nullptr
2024-11-07 16:11:40 +03:00
Alibek Omarov
534adc9630
common: xash3d_types: add returns nonnull attribute
2024-11-07 15:46:10 +03:00
Alibek Omarov
d15949d2e8
Rename _format to FORMAT_CHECK
2024-11-07 14:24:07 +03:00
Alibek Omarov
43609bc77c
mainui: update
2024-11-07 14:12:21 +03:00
Alibek Omarov
3917e096ea
engine: client: the most important change since forever, move downloading message a bit to the right so it looks better on 640x480
2024-11-07 14:12:10 +03:00
Alibek Omarov
d1a571201b
engine: client: s_mix: attempt to fix S_InterpolateCubic2x buffer overflow
2024-11-07 14:12:10 +03:00
Alibek Omarov
8a8cdd2927
engine: client: another possible null pointer dereference
2024-11-07 14:12:10 +03:00
Alibek Omarov
3ef4acecb5
Documentation: ports: clarify support for some merged but not tested ports. Add Dreamcast port repository by @maximqaxd
2024-11-07 11:23:21 +03:00
Alibek Omarov
e8c1fc958f
mainui: update
2024-11-07 10:18:16 +03:00
Alibek Omarov
08bc4ccec4
3rdparty: opus: wscript: implement looking for C99 VLA or alloca
2024-11-07 10:15:19 +03:00
Alibek Omarov
6ae62e3bb1
engine: platform: posix: include sys/filio.h to have FIONBIO declaration for networking code
2024-11-07 07:42:07 +03:00
Alibek Omarov
397f2f208a
engine: wscript: link libsocket on Solaris
2024-11-07 07:41:37 +03:00
Alibek Omarov
8bebf698ef
ref: fix out of bound access when the entity is marked as player but has invalid number
...
It's possible when client.dll passes a self allocated entity and wants to draw
it as player but doesn't initialize or set the entity number correctly.
2024-11-07 07:18:14 +03:00
Alibek Omarov
6a2a2c33ee
engine: client: don't go out of bounds if studio model don't have any sequences
...
Fixes models/null.mdl in Master Sword Rebirth. It's technically a valid model, though
completely useless for renderer.
2024-11-07 07:13:20 +03:00
Alibek Omarov
0adda483c5
public: add definitions for Solaris
2024-11-07 07:12:30 +03:00
Alibek Omarov
d8eb918cea
filesystem: rename IVFileSystem009 to IFileSystem to avoid UBsan errors when debugging a mod that calls this interface using original headers
2024-11-06 19:46:22 +03:00
Alibek Omarov
96b95db7c8
filesystem: compile with rtti, but still disable exceptions
2024-11-06 19:46:22 +03:00
Alibek Omarov
b1915106b0
vgui_support: update
2024-11-06 19:46:22 +03:00
Alibek Omarov
0d2a8488ae
engine: client: replace illegal for infostring characters in server info got from TSource Engine Query
2024-11-06 19:46:22 +03:00
Alibek Omarov
a52c8aa291
ref: soft: as an experiment, reformat ref_soft as it's easier to notice config inaccuracies
2024-11-06 02:41:38 +03:00
Alibek Omarov
fbbafb45a3
Add uncrustify config file [skip ci]
2024-11-06 02:40:26 +03:00
Alibek Omarov
659adca473
ref: soft: remove dead, commented out code
2024-11-06 02:17:06 +03:00
Alibek Omarov
38e8a581b6
engine: server: fix possible NULL dereference
2024-11-06 01:39:46 +03:00
Alibek Omarov
06e476e8c8
engine: reorder mstudiocache_t fields for better memory efficiency
2024-11-06 01:39:46 +03:00
Alibek Omarov
f529f06ea1
engine: use designated initializers to define BSP lumps. Reorder mlumpinfo_t for better memory efficiency
2024-11-06 01:39:46 +03:00
Alibek Omarov
159ded433d
ref: gl: don't touch polygon offset when not drawing debug hulls as it breaks decals with VBO
...
Also correctly restore polygon offset state so decals gets drawn even with VBO
2024-11-06 01:39:46 +03:00
Alibek Omarov
c3b6422ad0
engine: common: add lzss fixes by nillerusr
2024-11-06 01:39:46 +03:00
Alibek Omarov
41b78c26ef
engine: client: s_vox: fix incorrect check in VOX_FreeWord
2024-11-06 01:39:46 +03:00
Alibek Omarov
ca93c5b666
engine: client: touch: use FillRGBA to draw edit grid
2024-11-06 01:39:46 +03:00
Alibek Omarov
80f8b778a9
engine: client: cl_tent: more accurate R_FizzEffect
2024-11-06 01:39:46 +03:00
Alibek Omarov
8c5db5f980
engine: client: turn some asserts in texture remap code into proper nullptr checks
2024-11-06 01:39:46 +03:00
Alibek Omarov
3756361cfe
engine: client: fix possible NULL dereference when setting up bbox for non-solid visent that somehow doesn't have a model
2024-11-06 01:39:46 +03:00
Alibek Omarov
5f3e167799
engine: client: prevent possible null dereference with malformed consistency info packet
2024-11-06 01:39:45 +03:00
Alibek Omarov
b7ed779f71
public: mathlib: fix incorrect usage of DotProductAbs, it will give the integer result, while float is expected
2024-11-06 01:39:45 +03:00
Alibek Omarov
fa6f564c12
engine: client: allow extended amount of commands to be sent for newer GoldSrc server. Also refactoring
2024-11-06 01:39:45 +03:00
Alibek Omarov
ad457f717b
engine: client: no sense to check for position history pointers for NULL in CL_FindInterpolationUpdates, as they never are
2024-11-06 01:39:45 +03:00
Alibek Omarov
f95ce7f52d
engine: client: cl_font: fix possible NULL dereference
2024-11-06 01:39:45 +03:00
Alibek Omarov
ec73f23e4a
engine: client: rewrite R_RocketTrail for accuracy and fix potential uninitialized vectors
2024-11-05 17:43:09 +03:00
Alibek Omarov
2972d7c309
wscript: disable enum-float-conversion on clang
2024-11-03 04:24:54 +03:00
Alibek Omarov
4d003bc13f
ref: remove Mod_LoadMapSprite from RefAPI
2024-11-03 02:59:44 +03:00
Alibek Omarov
4cb11861e4
engine: client: reimplement Mod_LoadMapSprite on engine side
2024-11-03 02:58:31 +03:00
Alibek Omarov
addd50467e
engine: remove FillRGBABlend from RefAPI. FillRGBA now accepts rendermode parameter
2024-11-03 02:24:36 +03:00
Alibek Omarov
6cd2dbf178
engine: remove R_DrawTileClear from RefAPI
2024-11-03 02:21:38 +03:00
Alibek Omarov
f079e63737
engine: client: reimplement R_DrawTileClear on engine-side
2024-11-03 02:19:49 +03:00
Alibek Omarov
d807041aa5
engine: client: register sound cvars even if audio was disabled
2024-11-03 01:20:30 +03:00
Alibek Omarov
6153d7f168
engine: make CL_RunLightStyles accept lightstyles array pointer as an argument. Make necessary changes in renderers.
2024-11-03 01:20:30 +03:00
Alibek Omarov
e37feece4d
engine: finally remove GetLightStyle, GetDynamicLight and GetEntityLight from RefAPI
2024-11-03 01:20:30 +03:00
Alibek Omarov
6cf11cb6cf
ref: soft: migrate to new way to get lightstyles and dlights
2024-11-03 01:20:30 +03:00
Alibek Omarov
bb4e64ea58
ref: gl: migrate to new way to get lightstyles and dlights
2024-11-03 01:20:30 +03:00
Alibek Omarov
9ed55776a9
engine: add PARM_GET_*_PTR for lightstyles and dlights arrays
2024-11-03 01:20:30 +03:00
Alibek Omarov
b45bc9af67
engine: remove gamma functions from RefAPI
2024-11-03 01:20:30 +03:00
Alibek Omarov
2227e487c0
engine: client: explicitly set rendermode for R_ShowTree
2024-11-03 01:20:30 +03:00
Alibek Omarov
1f49ce599f
engine: client: fix out of bound read in gamma table access functions
2024-11-03 01:20:30 +03:00
Alibek Omarov
8af995cc28
engine: introduce REF_GET_*_PTR for gamma tables
2024-11-03 01:20:30 +03:00
Alibek Omarov
b39d660189
ref: refactor R_BuildLightMap
2024-11-03 01:20:30 +03:00
Alibek Omarov
9608da5bf9
engine: move debug hulls rendering from renderer, implement through TriAPI
...
Bump RefAPI version to 9.
2024-11-02 22:57:26 +03:00
Alibek Omarov
d3adcf3185
ref: soft: fix misplaced lightmaps
2024-11-02 04:09:04 +03:00
Alibek Omarov
40c051fb6b
ref: refactor R_AddDynamicLights
2024-11-02 04:08:40 +03:00
Alibek Omarov
015f1ba8c0
ref: gl: small optimization for brush model rendering passes, track the first and last texture id of a special surface (fullbrights, alpha chains, details..)
2024-11-02 03:24:54 +03:00
Alibek Omarov
c3de4a5c3b
ref: gl: add fullbright textures to the list with VBO renderer
2024-11-02 02:18:43 +03:00
Alibek Omarov
09210e4316
wscript: add option to build with extended msurface_t from HL25
2024-11-02 02:16:59 +03:00
Alibek Omarov
93b382f174
wscript: move SUPPORT_BSP2_FORMAT definition to the main wscript file. Manually define REF_DLL in the build task
2024-11-02 01:57:33 +03:00
Alibek Omarov
42cf51c6aa
wscript: don't look for amd64_x86 MSVC crosscompiler when using msvc-wine
2024-11-02 01:55:35 +03:00
Alibek Omarov
f7bc258c2f
ref: gl: reduce copypasted branch at LM_UploadBlock
2024-11-01 19:06:09 +03:00
Alibek Omarov
9e1908fc6f
engine: client: rewrite stupid comma separated single-line operations into more sane code
2024-10-30 22:01:41 +03:00
Alibek Omarov
6bdb3f6ea1
engine: don't save fps_override value as it's an experimental feature
2024-10-30 19:26:37 +03:00
Alibek Omarov
2fe94bceb6
engine: limit framerate during connection to GoldSrc servers to exactly 31 FPS, like GoldSrc
2024-10-30 19:25:48 +03:00
Alibek Omarov
371639f0dc
engine: introduce fps_override to unlock the 200 FPS limit in multiplayer games to 1000
2024-10-30 18:28:55 +03:00
Alibek Omarov
f88d424ecd
engine: client: don't make useless comparison, cl_cmdrate is always clamped between 10 and 100.
2024-10-30 18:16:47 +03:00
Alibek Omarov
c2ca80c889
engine: client: don't immediately send client packet after receiveing server packet or full update
...
It doesn't seem to be useful for anything. Instead, it completely breaks cl_cmdrate behavior, constantly
spamming server with move commands
2024-10-30 18:11:48 +03:00
Alibek Omarov
0313e19674
filesystem: strip upper directory access from FS_FindFile when FS_AllowDirectPath is set to true
...
Detailed explanation is available in the code comments.
2024-10-29 16:13:31 +03:00
Alibek Omarov
281d4359d0
Upgrade Freedesktop SDK to 24.08
2024-10-29 16:13:31 +03:00
Alibek Omarov
7b02c37fa7
engine: add generated by version line to the config and help.txt files
...
Remove an attempt to copyright generated files came from the original Xash3D.
2024-10-29 16:13:31 +03:00
Alibek Omarov
2ea0b0d60c
engine: client: fix fire field additive transparency from 80 to 180 (thanks @autisoid!)
2024-10-28 20:13:52 +03:00
Alibek Omarov
d879e028cf
engine: soundlib: snd_wav: fix clang warning
2024-10-28 15:32:25 +03:00
Alibek Omarov
3e7e81e078
engine: platform: android: sprinkle it with more const modifiers
2024-10-28 14:32:57 +03:00
Max Parry
cc53d59532
gha: adds SDL2 to OSX builds ( resolves #1791 ) ( #1855 )
...
* updated build_apple.sh to copy over SDL2 from the Frameworks folder that it was installed in by dep_apple.sh
2024-10-28 12:58:46 +03:00
Alibek Omarov
319dea1f7d
mainui: update
2024-10-28 12:22:10 +03:00
Alibek Omarov
48047c05b7
extras: update
2024-10-28 12:22:10 +03:00
Alibek Omarov
85b0273911
engine: client: check resource nIndex before writing it to the precache arrays
2024-10-28 12:22:10 +03:00
Alibek Omarov
eb72b6baee
ref: gl: fix r_shadows and gl_vbo registration order. It must be registered before reading renderer config
2024-10-28 02:10:24 +03:00
Alibek Omarov
422addcbb6
public: make Q_atoi_hex public, check for 0x prefix
2024-10-28 02:09:05 +03:00
Alibek Omarov
4a58be2aa0
ref: gl: deregister timerefresh command in renderer, as it's renderer-specific
2024-10-28 01:59:39 +03:00
Alibek Omarov
562b54839c
engine: client: console: fix printing multiline messages with CRLF, like HTTP headers
2024-10-28 01:58:47 +03:00
Alibek Omarov
639eaa9416
engine: split HTTP client into a separate file
2024-10-27 17:07:35 +03:00
Alibek Omarov
6c6cb65b30
mainui: update
2024-10-27 14:33:27 +03:00
Alibek Omarov
8ea8437e19
3rdparty: opus: downgrade to 1.4.0
2024-10-27 14:32:43 +03:00
Alibek Omarov
2656eb1aeb
engine: fix A2S_GOLDSRC_INFO, it must always include Source Engine Query and a null terminator
2024-10-26 20:24:31 +03:00
Alibek Omarov
fa1e92b127
engine: request file from server if HTTP locations failed
2024-10-26 20:24:31 +03:00
Alibek Omarov
cff8ee13e6
engine: rcon refactoring. Use sizebuf_t to concatenate commands. Only call redirect when we're executing command.
2024-10-26 19:37:30 +03:00
Alibek Omarov
3956e3863e
engine: make Netchan_TransmitBits accept const data
2024-10-26 19:19:37 +03:00
Alibek Omarov
9600218757
engine: client: send tempdecal.wad to GoldSrc servers
2024-10-26 19:16:59 +03:00
Alibek Omarov
2db7cb0d64
engine: client: when validating, we're supposed to send move and delta commands
2024-10-26 19:12:52 +03:00
Alibek Omarov
267a70d621
engine: common: don't print svc/clc_nop with net_recv/send_debug
2024-10-26 05:18:09 +03:00
Alibek Omarov
667bedab82
engine: client: allow reading upper directories for clc_fileconsistency. Initialize md5 digest, add note about servers relying on uninitialized md5 value in some cases.
2024-10-26 05:17:24 +03:00
Alibek Omarov
49990a0859
mainui: update
2024-10-26 05:15:55 +03:00
Alibek Omarov
f7c4cd9398
engine: client: allow case-insensitive goldsrc proto argument in connect and queryserver commands
2024-10-26 05:15:46 +03:00
Alibek Omarov
cd4f4d5ad4
engine: common: fix hpkextract command
2024-10-26 05:15:09 +03:00
Alibek Omarov
fe429fe213
engine: common: net_ws: fix HTTP request when server have custom port and/or doesn't have slash at the end of URL. Set Accept: */* just in case.
2024-10-26 05:14:51 +03:00
Alibek Omarov
0a24ca3fe2
engine: client: fix svc_updateuserinfo for inactive player on GoldSrc servers
2024-10-26 05:13:22 +03:00
Alibek Omarov
8c93a0d247
engine: client: allow playing back demos recorded on GoldSrc servers
2024-10-26 05:12:11 +03:00
Alibek Omarov
5c75dda864
mainui: update
2024-10-26 02:42:30 +03:00
Alibek Omarov
55bdded6a4
engine: add pfnIsCvarReadOnly to mainui API
2024-10-25 05:09:02 +03:00
Alibek Omarov
25b2c0f7e3
ref: gl: use FCVAR_GLCONFIG on VBO and detail textures cvars, so it always gets saved to opengl.cfg
2024-10-24 23:31:16 +03:00
Alibek Omarov
ed522852cf
mainui: update
2024-10-24 23:30:23 +03:00
Alibek Omarov
224e42d345
engine: platform: android: make dlsym-weak C++ again (because of struct soinfo definition). Reformat linker.h file as well.
2024-10-24 17:54:09 +03:00
Alibek Omarov
128a1f59a9
engine: cleanup XASH_64BIT usage. Always use it from build.h
2024-10-24 16:39:09 +03:00
Alibek Omarov
40ffde0439
3rdparty: opus: update to 1.5.2
2024-10-24 15:51:41 +03:00
Alibek Omarov
ec5578a437
ref: gl: vgl_shim: remove -fno-PIC to properly link it with shared library
2024-10-24 15:47:06 +03:00
Alibek Omarov
1cf40a2d17
engine: wscript: remove useless globs
2024-10-24 15:46:33 +03:00
Alibek Omarov
958ea0ac1d
scripts: gha: temporarily enable verbose build output for PSVita
2024-10-24 02:05:47 +03:00
Alibek Omarov
a9fdae28b2
engine: platform: android: reformat dlsym-weak and make it C only
2024-10-24 02:04:52 +03:00
Alibek Omarov
3d9eb869b0
ci: fix netbsd bzip2 package name
2024-10-24 00:57:18 +03:00
Alibek Omarov
8162c6d42f
scripts: waifulib: xshlib: prepend xshlib so it's always first
2024-10-24 00:46:43 +03:00
Alibek Omarov
48a9f17222
filesystem: only export GetFSAPI, CreateInterface is useless with static linking (and should be implemented differently)
2024-10-24 00:40:47 +03:00
Alibek Omarov
e381d04094
ref: simplify wscripts, remove gl2_shim unused wscript, fix non-existent export in exports.txt
2024-10-24 00:40:12 +03:00
Alibek Omarov
0e79326571
waf: upgrade to latest, fix for api changes
2024-10-24 00:37:05 +03:00
Alibek Omarov
f7eb8cd913
engine: wscript: ensure we always add needed features when mixing C and C++ objects. Simplify bld call for all platforms
2024-10-23 23:22:23 +03:00
Alibek Omarov
a15c1f99b2
wscript: remove useless features
2024-10-23 23:20:47 +03:00
Alibek Omarov
ba2191172d
ci: add bzip2 for sourcehut CI
2024-10-23 20:25:26 +03:00
Alibek Omarov
6ab2c9dbbf
engine: client: fix out of bounds access with some ticket generators
...
* Update MultiEmulator submodule
2024-10-22 02:13:36 +03:00
Alibek Omarov
7da460d4b1
public: bump miniz to latest release
2024-10-21 21:22:50 +03:00
Alibek Omarov
ffe7b1f4a1
3rdparty: MultiEmulator: move it to submodule
2024-10-21 14:08:16 +03:00
Alibek Omarov
6a1f502d25
3rdparty: MultiEmulator: remove unused code
2024-10-21 06:30:53 +03:00
Alibek Omarov
434359ea01
3rdparty: update mainui and extras
2024-10-21 06:19:11 +03:00
Alibek Omarov
ae2ad6ddf2
3rdparty: add MultiEmulator by 2010kohtep
...
* patched to be portable, turned into a static library
* integrated to the engine
2024-10-21 06:19:11 +03:00
Alibek Omarov
ec11683dc5
engine: client: minor fix, reference cl_allowdownload cvar actual name
2024-10-21 04:49:25 +03:00
Alibek Omarov
47318b0c14
engine: server: minor fix, use __func__ instead of the function name in debug message
2024-10-21 02:32:07 +03:00
Alibek Omarov
60d6214ad7
engine: client: implement parsing GoldSrc server query response for mainui_cpp
2024-10-21 02:31:45 +03:00
Alibek Omarov
a3e26a21a7
engine: common: net_chan: as we expect pfnBlockSize to be always set, use it to determine if netchan was initialized or not
2024-10-21 02:30:49 +03:00
Alibek Omarov
d0f3a6f74b
engine: client: add command queryserver for mainui to query a specific address. Make server querying commands restricted
2024-10-20 02:22:09 +03:00
Alibek Omarov
fee236a050
engine: common: net_ws: make NET_IsLocalAddress inline
2024-10-19 14:08:27 +03:00
Alibek Omarov
e3e4bcc015
engine: global refactoring of connectionless packets, now they can be customized from single protocol.h header
2024-10-19 14:05:00 +03:00
Alibek Omarov
2d546ccbf7
engine: implement CL_MsgInfo for dedicated server
2024-10-18 03:13:43 +03:00
Alibek Omarov
b41804bb5b
mainui: update
2024-10-17 14:56:38 +03:00
Alibek Omarov
47a04df189
wscript: try to fix Windows XP compatibility on 32-bit binaries
2024-10-17 14:56:10 +03:00
Alibek Omarov
2efedaf46c
pm_shared: mark PM_TraceSurface call in PMove API as Xash3D specific
2024-10-17 03:36:29 +03:00
Alibek Omarov
49e43c830b
engine: client: fix formatting error in CL_ParseExtraInfo
2024-10-16 22:29:21 +03:00
Alibek Omarov
763e101208
ref: preserve aspect ratio when saving level and save shots
2024-10-16 21:35:52 +03:00
Alibek Omarov
e39a62b1fd
mainui: update
2024-10-16 08:33:44 +03:00
Alibek Omarov
da76abda75
engine: even more refactorings to avoid global cls.legacymode usage, now with GoldSrc server autodetection
2024-10-16 07:31:27 +03:00
Alibek Omarov
829d7d0a7e
engine: client: CL_SendConnectPacket refactoring
2024-10-16 07:02:23 +03:00
Alibek Omarov
9f6372b305
engine: client: implement GoldSrc fragment size limits
2024-10-16 07:00:10 +03:00
Alibek Omarov
12edd782c6
engine: common: net_chan: always rely on pfnBlockSize being non-null
2024-10-16 06:59:33 +03:00
Alibek Omarov
0b59fa9416
engine: swap Cvar_VariableInteger and simple integer checks for performance
2024-10-16 06:57:46 +03:00
Alibek Omarov
cc0f12ed26
engine: client: add stubs for richpresence commands added in HL25
2024-10-16 05:57:32 +03:00
Alibek Omarov
f42553d0e1
readme: install 32-bit deps on Ubuntu with aptitude, as it's less prone to fuck up entire system (remove random packages, bootloader, etc...) [skip ci]
2024-10-16 00:32:23 +03:00
Alibek Omarov
e7564420c9
engine: fix some ubsan warnings (alignment, integer limits...)
2024-10-16 00:32:22 +03:00
Alibek Omarov
e81a0ded11
engine: client: fix sendres message for GoldSrc protocol
2024-10-16 00:32:22 +03:00
Alibek Omarov
a32c702dbd
engine: client: avoid useless check on empty clc_resourcelist, which will never be false
2024-10-15 06:15:22 +03:00
Alibek Omarov
23a5ed71de
engine: easier MSG_EndBitWriting byte padding
2024-10-15 06:14:37 +03:00
Alibek Omarov
245dc97cfb
engine: semi-correct printing GoldSrc client messages
2024-10-15 06:12:31 +03:00
Alibek Omarov
ece204c30f
engine: common: add cvars net_send_debug and net_recv_debug to print server/client messages to console
2024-10-15 06:11:57 +03:00
Alibek Omarov
1bd59096fd
engine: client: implement miscellaneous, often unused, GoldSrc protocol messages
2024-10-15 06:10:25 +03:00
Alibek Omarov
0b02c2c6a7
engine: client: fix disconnect on GoldSrc servers
2024-10-15 06:08:21 +03:00
Alibek Omarov
6a61a499e9
engine: client: don't send useless/empty clc_move commands while we're connecting to server
2024-10-15 06:07:57 +03:00
Alibek Omarov
6b1c283082
engine: client: fix svc_event parsing
2024-10-15 06:07:06 +03:00
Alibek Omarov
5402a9611e
engine: common: fix discarded const qualifier
2024-10-14 19:41:36 +03:00
Alibek Omarov
43e06ccd45
engine: common: make some simple functions inlined
2024-10-14 19:20:47 +03:00
Alibek Omarov
f52c825bf5
engine: make some global variables static and const, make even more functions static if possible
2024-10-14 19:19:46 +03:00
Alibek Omarov
bf8b709372
engine: move pm_debug particle functions to client, as they are never used on server
2024-10-14 19:11:26 +03:00
Alibek Omarov
fdf82e5270
engine: client: cleanup tent and efx code, make global variables static, remove unused functions
2024-10-14 18:08:01 +03:00
Alibek Omarov
0224a1b66b
engine: client: better debug messages for GoldSrc entities packet parsing
2024-10-14 17:59:17 +03:00
Alibek Omarov
505ad6d69b
engine: server: reinitalize delta in case if delta was shutdown by client and some tables were omitted (movevars after using GoldSrc server)
2024-10-14 06:56:17 +03:00
Alibek Omarov
5bcd573821
engine: remove goldsrc meta delta table reinitialization
2024-10-14 06:54:41 +03:00
Alibek Omarov
c5a291d9c7
engine: minor refactoring
2024-10-14 05:17:21 +03:00
Alibek Omarov
232a8c1148
engine: common: net_ws: don't expect more than 5 splits for GoldSrc protocol
2024-10-14 05:17:03 +03:00
Alibek Omarov
663f6eaf5c
ref: turn r_shadows into extended convar_t
2024-10-14 04:18:35 +03:00
Alibek Omarov
9d3210259c
ref: set hullcolor (used by r_drawentities) as const
2024-10-14 04:15:48 +03:00
Alibek Omarov
4ec6c2f7cf
engine: client: support vox sentence that starts with leading slash
2024-10-14 04:13:10 +03:00
Alibek Omarov
8452bec877
engine: client: reduce reads of cls.legacymode
2024-10-14 04:13:10 +03:00
Alibek Omarov
0d4296e0e1
engine: client: explicitly pass protocol to svc_time parser
2024-10-14 04:13:10 +03:00
Alibek Omarov
2b85da3bc9
engine: client: fix parsing svc_setpause and svc_goldsrc_timescale for GoldSrc protocol
2024-10-14 04:13:10 +03:00
Alibek Omarov
17f194b9a3
engine: client: consolidate usermsg registering and parsing for multiple protocols
2024-10-14 04:13:10 +03:00
Alibek Omarov
ff47fbaedc
engine: client: another fix baselines and entities parsing for GoldSrc, ensure we always call MSG_EndBitWriting
2024-10-14 04:13:10 +03:00
Alibek Omarov
87c88f7463
engine: client: fix svc_particles parsing on GoldSrc protocol
2024-10-14 04:13:10 +03:00
Alibek Omarov
60fd5f7ab8
engine: client: stub svc_restoresound for legacy protocol, it's only used during save restore which is unuseful for us
...
* Set sequence flag for restored sound, even though we don't support sequences anymore.
2024-10-14 04:13:10 +03:00
Alibek Omarov
5ceab059dc
engine: client: add function for parsing common protocol messages, which structure is enforced by server DLL compatibility
2024-10-14 04:13:10 +03:00
Alibek Omarov
67c898f9ad
engine: client: improve server data parsing for GoldSrc, restore nick name and remove unuseful userinfo keys before connection
2024-10-14 04:13:10 +03:00
Alibek Omarov
d903187eea
public: make crc value init functions inline, move hex2char/ex2string to crclib and make them private to it
2024-10-14 04:13:10 +03:00
54ac
653f0841e4
ref: gl: restore r_shadows ( #1843 )
2024-10-13 17:15:29 +03:00
Alibek Omarov
10bfadb556
engine: client: support svc_disconnect reason messages for GoldSrc protocol
2024-10-11 20:58:46 +03:00
Alibek Omarov
0b2cc066dd
engine: fix signed integers encoding with alternate format for GoldSrc protocol
2024-10-11 20:36:09 +03:00
Alibek Omarov
60ab13d216
engine: client: always add [Xash3D] to the nickname on GoldSrc servers
2024-10-11 19:32:16 +03:00
Alibek Omarov
f90c658567
engine: client: skip voice data for GoldSrc protocol to avoid svc_bad
2024-10-11 19:31:41 +03:00
Alibek Omarov
0c54895877
engine: client: add unmunge function for consistency info for GoldSrc protocol
2024-10-11 18:41:17 +03:00
Alibek Omarov
4eb54328f8
engine: client: various connection setup fixes for GoldSrc proto
...
* always add "steam" to getchallenge message
* cdkey md5 should be sent with lowercase
* strip null terminator from connect message
2024-10-11 18:41:16 +03:00
Alibek Omarov
b1189db9c5
engine: client: avoid clc_move spam when we're connected but not spawned yet
2024-10-11 00:08:21 +03:00
Alibek Omarov
869578f1ba
engine: client: lie about sv_version for GoldSrc protocol
2024-10-11 00:08:21 +03:00
Alibek Omarov
3320f776ce
engine: client: implement correct clc_fileconsistency response for GoldSrc
2024-10-11 00:08:21 +03:00
Alibek Omarov
1d64635783
engine: correctly check for cls.legacymode, as it's not a boolean anymore
2024-10-11 00:08:21 +03:00
Alibek Omarov
bbb076c0d4
engine: client: voice: don't print about unsupported codec with empty string name
2024-10-10 23:40:23 +03:00
Alibek Omarov
fe2a4d0428
engine: common: net_encode: remove DT_SIGNED_GS flag just in case
2024-10-10 23:40:23 +03:00
Alibek Omarov
6bdc1941e6
engine: common: netchan: only compress with BZip2 when it's efficient
2024-10-10 23:40:23 +03:00
Alibek Omarov
9188905145
engine: client: fix map CRC match with GoldSrc protocol
2024-10-10 23:40:23 +03:00
Alibek Omarov
3f2fbb10d8
engine: client: only send continueloading for legacy protocol
2024-10-10 23:40:23 +03:00
Alibek Omarov
9c97235fe8
engine: client: implement GoldSrc connectionless print message
2024-10-10 23:40:23 +03:00
Alibek Omarov
70a13b47db
engine: client: implement randomized cdkey for GoldSrc protocol
2024-10-10 23:40:22 +03:00
Alibek Omarov
18afaf0eaf
engine: client: more accurate clc_move for GoldSrc protocol
2024-10-10 23:38:55 +03:00
Alibek Omarov
8b8c3d8116
scripts: waifulib: xcompile: define WebAssembly target as DEST_OS wasi
2024-10-10 16:13:54 +03:00
Alibek Omarov
514fc9fe43
public: reserve identifier for WebAssembly port
2024-10-10 16:13:20 +03:00
Alibek Omarov
5d8923d69c
scripts: waifulib: sdl2: fix build on macOS
2024-10-10 15:44:32 +03:00
Alibek Omarov
5db880af57
engine: wscript: add an ability to build with SDL3
2024-10-10 06:13:56 +03:00
Alibek Omarov
c05db9ce58
waf: upgrade waifu to latest master
2024-10-10 06:13:32 +03:00
Alibek Omarov
04079abe00
scripts: waifulib: re-export sdl2.py from waifu repository, add sdl3 compatibility
2024-10-10 06:13:23 +03:00
Alibek Omarov
8054b69f73
readme: add GoldSrc protocol support, add RedHat/Fedora build instructions, better wording [skip ci]
2024-10-10 01:58:56 +03:00
SNMetamorph
b5ee777466
Documentation: added article about GoldSrc network protocol support
2024-10-10 01:52:44 +03:00
Alibek Omarov
96f3061709
ref: gl: show texture size in memory, skip empty pages, skip empty 0-th texture
2024-10-09 02:44:26 +03:00
Alibek Omarov
420c5a4ff3
ref: gl: set numeric value for wrappers macros, similar to build.h macros
2024-10-09 02:01:10 +03:00
Alibek Omarov
e8f6476e8c
ref: gl: patch to compile with nanogl (nanogl doesn't impement glTexCoord3f)
2024-10-09 00:31:05 +03:00
Alibek Omarov
65ec35b732
engine: client: fix bug in temp entity parsing caused by find and replace
2024-10-08 23:02:02 +03:00
Alibek Omarov
8d731b5d15
engine: common: fix for dedicated again
2024-10-08 16:41:25 +03:00
Alibek Omarov
38c0dc4551
3rdparty: bzip2: properly use stdio-free version, don't include tests and utils to the build
2024-10-08 15:39:56 +03:00
Alibek Omarov
4d8cb0469f
scripts: gha: build Linux binaries with bundled deps, to avoid external dependency on libbz2
2024-10-08 13:09:34 +03:00
Alibek Omarov
62cb8f5ba6
3rdparty: bzip2: forgot to add actual bz_version.h file
2024-10-08 13:07:42 +03:00
Alibek Omarov
97c75d96d5
3rdparty: bzip2: build with BZ_NO_STDIO
2024-10-08 13:06:02 +03:00
Alibek Omarov
f5ae806b31
ref: gl: add r_showtextures implementation by ncuxonaT
...
Main changes made by me besides engine differences:
* Text color changed to pure white for better readability
* An attempt to draw texture name in full size
2024-10-08 12:56:07 +03:00
Alibek Omarov
482dc3a5a5
engine: client: fix joining current protocol servers
2024-10-08 12:43:29 +03:00
Alibek Omarov
a8539ac004
3rdparty: bzip2: add pre-generated bz_version.h header as some generators (like cmake.py) don't understand subst yet
2024-10-08 12:27:41 +03:00
Alibek Omarov
9970c56218
engine: common: disable bzip2 for dedicated server, it's not used there
2024-10-08 12:14:37 +03:00
Alibek Omarov
480218412a
engine: client: remove voidptr hack from IN_EngineAppendMove, just use usercmd_t directly
2024-10-08 04:07:03 +03:00
Alibek Omarov
6ae09d2866
engine: client: support GoldSrc signon and refactor parsing delta entities for current and legacy protocols
2024-10-08 04:07:03 +03:00
Alibek Omarov
609680b328
engine: client: support parsing GoldSrc event messages
2024-10-08 04:07:03 +03:00
Alibek Omarov
ccbe370c8e
engine: client: add support for parsing GoldSrc messages
2024-10-08 04:07:03 +03:00
Alibek Omarov
9706e47643
engine: client: refactor and implement GoldSrc-specific parsing bits in common message parsing code
2024-10-08 03:28:02 +03:00
Alibek Omarov
d98361f782
engine: client: add support for parsing GoldSrc svc_temp_entity
2024-10-08 03:28:02 +03:00
Alibek Omarov
ba7c789ec9
engine: common: add GoldSrc delta support
2024-10-08 03:28:02 +03:00
Alibek Omarov
d128997d40
engine: common: add GoldSrc bitbuf operations, add support for GoldSrc signed integers
2024-10-08 03:28:02 +03:00
Alibek Omarov
61342547ce
engine: common: add support for GoldSrc split packet
2024-10-08 03:28:02 +03:00
Alibek Omarov
c1a5f173b8
engine: common: add GoldSrc netchan support
2024-10-08 03:28:02 +03:00
Alibek Omarov
f5c5b7b2c8
engine: common: add buffer munge functions
2024-10-08 03:28:02 +03:00
Alibek Omarov
057b47555d
3rdparty: bzip2: add wscript for bzip2, check for system-wide bzip2, add readme note
2024-10-08 03:28:02 +03:00
Alibek Omarov
43299f6747
3rdparty: add bzip2 submodule
2024-10-08 03:28:02 +03:00
Alibek Omarov
03bf6cb719
engine: client: get rid of PROTOCOL_GOLDSRC_VERSION, as connprotocol_t enum does it's job
2024-10-08 03:27:32 +03:00
Alibek Omarov
3a1bb12830
engine: client: rename CL_LegacyMode to CL_Protocol
2024-10-08 03:27:09 +03:00
Alibek Omarov
5efa68757e
engine: remove unused svc_deltapacketbones
2024-10-08 03:27:09 +03:00
Alibek Omarov
afaf5bf3ea
engine: improve security a little bit by properly checking customization files starting with \!MD5
...
Implement basic test for COM_IsSafeFileToDownload
Move COM_ParseFileSafe test to libpublic
2024-10-08 03:22:53 +03:00
SNMetamorph
50c805826f
engine: implemented handling SIGTERM signal for proper stopping dedicated server
2024-10-08 01:05:26 +03:00
Alibek Omarov
35ae9f4a64
engine: client: don't save thirdperson value, it's not used anywhere
2024-10-07 21:00:16 +03:00
Alibek Omarov
d7d96c02a2
engine: client: implement cvar showpause for GoldSrc compatibility
2024-10-07 20:59:44 +03:00
Alibek Omarov
dd03723144
readme: add libopus-dev to dependencies list on Debian/Ubuntu
2024-10-07 18:09:32 +03:00
xiaodo
26f07196ea
engine: Format Codes.
2024-10-07 17:22:27 +03:00
xiaodo
8c291fdfe3
engine: fix CenterPrint Wrong Y Position.
2024-10-07 17:22:27 +03:00
xiaodoxd
d1e118f07c
Fix CenterPrint Wrong X Position
2024-10-07 17:22:27 +03:00
Alibek Omarov
6c531c14e6
engine: common: cvar: compatibility hack for mods that depend on HL25 widescreen FOV
...
Fixes Natural Selection 3.3 beta 9.
2024-10-04 19:09:43 +03:00
Alibek Omarov
433213c915
engine: server: fix cvar description for mp_footsteps
2024-10-04 19:07:44 +03:00
Alibek Omarov
ab0c0b18c2
engine: server: remove limit on sv_zmax value as it breaks Natural Selection mod
2024-10-04 19:07:08 +03:00
Alibek Omarov
29fd5f9fbe
engine: server: remove FCVAR_SERVER flag from sv_zmax
...
The problem is that FCVAR_SERVER flagged cvars get saved to listenserver.cfg.
The game code usually sets sv_zmax value to worldspawn parameters and
listenserver.cfg gets generated before server DLL gets initialized.
2024-10-04 19:04:34 +03:00
Alibek Omarov
882d8afc93
engine: server: stub SV_RestartDecals for dedicated server
2024-10-04 01:28:22 +03:00
Alibek Omarov
e11635d15c
engine: server: slight refactoring, hide client calls under XASH_DEDICATED, remove useless dedicated stub
2024-10-04 01:22:59 +03:00
Alibek Omarov
5d79d93aac
engine: server: use safe cvar unlinking for mods that deallocate cvars (like HL Unified SDK)
2024-10-03 15:32:14 +03:00
Alibek Omarov
7ccf651fd0
engine: cvar: implement safer cvar unlinking in case when game deallocates cvar
2024-10-03 15:32:14 +03:00
Alibek Omarov
67af41cce8
engine: common: net_ws: more minor refactoring, avoid memcpy for same type structs
2024-10-02 23:30:42 +03:00
Alibek Omarov
e2c96e62e1
engine: common: net_ws: drop IPv4 mapped as IPv6 support, it's an artifact from dual-stacking experiments and not used anymore
2024-10-02 23:26:28 +03:00
Alibek Omarov
2ecae442fc
engine: common: net_ws: minor refactoring
2024-10-02 23:25:12 +03:00
Alibek Omarov
a1060b0eb5
engine: add v6only master servers, add v6only flag for NET_StringToAdrNB
2024-10-02 23:23:08 +03:00
Alibek Omarov
ddd8de888f
engine: add macro XASH_NO_IPV6_RESOLVE to completely skip resolving addresses with family AF_INET6
2024-10-02 23:21:25 +03:00
Alibek Omarov
a758dffbc1
public: avoid useless copy in Q_timestamp
2024-10-02 22:18:16 +03:00
Alibek Omarov
87775faeca
engine: common: properly check if we can destroy resolve mutexes. Add net_resolve_debug cvar to enable printing resolve thread debug messages.
2024-10-02 22:16:51 +03:00
Alibek Omarov
ef0fc46ed8
wscript: allow async resolving for NSwitch
2024-10-02 00:55:53 +03:00
Alibek Omarov
138b4fa247
wscript: allow async resolving for PSVita
2024-10-02 00:55:53 +03:00
Alibek Omarov
47d1f3459c
engine: common: try to implement DNS resolve thread through SDL2 functions if SDL2 build is enabled
2024-10-02 00:55:53 +03:00
Alibek Omarov
4712aae834
engine: server: move autoprecaching wads after parsing reslists
...
An attempt to avoid assert() in HL Unified SDK.
2024-09-30 18:46:01 +03:00
Ivan Avdeev
2900ee1cde
engine: allow specifying screenshot filenames in command directly
2024-09-30 17:15:09 +03:00
Alibek Omarov
c6c4178dd2
engine: client: set TE_SPRAY to collide with world, fixes c7ad8e4bf
2024-09-30 04:15:22 +03:00
Alibek Omarov
a3ce0e6b1b
public: tests: test_efp: mark Test_ExtractFilePath as static
2024-09-30 04:00:28 +03:00
Alibek Omarov
0b1ad3b7f0
engine: imagelib: fix mismatched dealloc in a test
2024-09-30 04:00:28 +03:00
Alibek Omarov
37fb46f092
wscript: enable mismatched-dealloc and free-nonheap-object, now that we mark all malloc-like functions with malloc attribute
2024-09-30 04:00:28 +03:00
Alibek Omarov
bc8bf9a9fb
engine: add const on delta functions
2024-09-30 04:00:28 +03:00
Alibek Omarov
9e28c98911
engine: print to stderr if writing message to logfile failed
2024-09-30 04:00:28 +03:00
Alibek Omarov
0a1269d52d
filesystem: zip: fix non-heap object dealloc
2024-09-30 04:00:28 +03:00
Alibek Omarov
2e5bc31c9e
filesystem: set malloc like attribute for imported zone memory allocator functions
2024-09-30 04:00:28 +03:00
Alibek Omarov
1b335fd945
ref: soft: set malloc like attribute for imported zone memory allocator functions
2024-09-30 04:00:28 +03:00
Alibek Omarov
0c8b2d007a
ref: gl: set malloc like attribute for imported zone memory allocator functions
2024-09-30 04:00:28 +03:00
Alibek Omarov
9ee1b32e2d
engine: set malloc like and warn_unused_result attributes on common allocation functions, fs, image and soundlib
2024-09-30 04:00:28 +03:00
Alibek Omarov
953ad98a16
engine: workaround buggy stringop-overflow
2024-09-30 04:00:28 +03:00
Alibek Omarov
1357057bd8
common: add GCC malloc and warn_unused_result attribute macro
2024-09-30 04:00:28 +03:00
Alibek Omarov
35c9323de6
public: make vec3_origin and identity matrix inlined
2024-09-30 00:15:47 +03:00
Alibek Omarov
13a0afef06
public: reorganize mathlib, inline more functions
2024-09-30 00:15:47 +03:00
Alibek Omarov
c7ad8e4bf6
engine: client: more accurate implementation of TE_SPRAY and TE_SPRITE_SPRAY
2024-09-29 20:36:09 +03:00
Alibek Omarov
f1754bdd5f
wscript: disable cast-align diagnostic, it's mostly useless
2024-09-29 20:36:09 +03:00
Alibek Omarov
c462a1c500
wscript: add commented out freevgui subproject
2024-09-29 20:36:09 +03:00
Alibek Omarov
0bba184994
public: add VectorUnpack macro to read vector values into variables
2024-09-29 20:33:33 +03:00
Alibek Omarov
178602ea1f
engine: fix loading map in Dark Future mod with broken mark surface id
2024-09-05 15:23:23 +03:00
Alibek Omarov
2eb8f88a20
engine: move attenuation none sound spatialize fix to bugcomp mode, as Xash native games use this
2024-09-05 13:50:15 +03:00
Alibek Omarov
96d11df06c
Revert "engine: client: sounds with zero attenuation must get spatialized anyway"
...
This reverts commit 0870536405 .
2024-09-05 13:27:54 +03:00
Alibek Omarov
950d210ec5
Revert ABI2, it wasn't meant to end up in master branch.
2024-09-05 04:31:50 +03:00
Alibek Omarov
55c1bddac5
ref: gl: implement generating VBO only when gl_vbo was set to 1
...
* Make it safer by creating a function that returns VBO state, was it
generated or enabled by user
2024-09-05 04:10:56 +03:00
Alibek Omarov
ac50c762d7
ref: gl: slight refactoring, split large R_RenderBrushPoly to smaller functions
...
* Use R_RenderDetailsForSurface in R_AddSurfToVBO instead of copypaste
* Use existing VBO's R_CheckLightMap in R_RenderLightmapForSurface
2024-09-05 02:40:57 +03:00
Alibek Omarov
5c2ab150b3
ref: gl: move forcing gl_vbo to 0 after checking GL extensions out from R_GenerateVBO
2024-09-05 01:47:14 +03:00
Alibek Omarov
0870536405
engine: client: sounds with zero attenuation must get spatialized anyway
2024-09-05 01:28:55 +03:00
Alibek Omarov
b47ede477a
engine: server: strip 64-bit string pool stuff for now, to not mess up abi2
2024-09-05 01:28:55 +03:00
Alibek Omarov
eef5cc17b3
breaking engine headers by replacing int with string_t where it's supposed to be
2024-09-05 01:28:55 +03:00
Alibek Omarov
ad2191333d
engine: add _st64 prefix to load abi2 binaries
2024-09-05 01:28:55 +03:00
SNMetamorph
a85cac497d
ref: disabled verbose reporting about tracer invalid color index
2024-09-03 15:31:51 +03:00
SNMetamorph
e0c69d7df5
gha: fixed binaries signing in Windows workflow
2024-08-30 07:34:40 +03:00
Alibek Omarov
ff3d91ceb4
engine: add aaaa.mentality.rip:27011 master server
2024-08-28 19:56:41 +03:00
Alibek Omarov
5777431577
engine: common: insert spaces between arguments in echo command
2024-08-22 16:45:42 +03:00
Alibek Omarov
cd86f80203
engine: common: make MSG_WriteOneBit inlined, as it's usually called with literal argument
2024-08-22 12:51:47 +03:00
Alibek Omarov
8c885d3f37
mainui: update
2024-08-22 12:50:01 +03:00
Alibek Omarov
dddb46a6d0
mainui: update
2024-08-21 18:14:21 +03:00
Alibek Omarov
6b0f378c5b
engine: client: ensure requested (but failed) renderer won't be loaded twice
2024-08-21 12:18:06 +03:00
Alibek Omarov
9dd7f37d42
Revert "engine: client: add missing ref_null to R_CollectRendererNames"
...
This reverts commit 69ec810ed0 .
2024-08-21 12:18:06 +03:00
Alibek Omarov
9f10fb6472
engine: client: ensure RefDll cvars have FCVAR_REFDLL flag, clean up them automatically. Don't unload failed renderer, it will be done in R_UnloadProgs
2024-08-21 12:18:06 +03:00
Alibek Omarov
64dbccb9bd
engine: platform: sdl: do not call SDL_VideoQuit in R_Free_Video, as one failed renderer will shut down whole SDL video subsystem
2024-08-21 12:18:06 +03:00
Alibek Omarov
9a432a5a13
common: rewrite cvardef.h from scratch based on Quake definitions
...
* unify cvar.h and cvardef.h, enable private definitions only for refdll and engine
* add FCVAR_REFDLL for easier RefDll cvars cleanup
2024-08-21 12:18:06 +03:00
Alibek Omarov
842e494fa6
common: add macro for simultaneously checking data type size for ILP32 and LP64
2024-08-21 12:00:35 +03:00
Alibek Omarov
7fc9ee154a
engine: client: fail with Sys_Error when no renderer is loaded, as we can't recover from it
2024-08-19 13:25:07 +03:00
Alibek Omarov
5f84010c2a
engine: server: enable allocating 64-bit string pool closer to server library only for Linux amd64, as mmap() isn't reliable anywhere else
2024-08-19 13:22:04 +03:00
Alibek Omarov
3dcd6cb80b
wscript: set crosscompiling msvc toolchain on 64-bit systems
2024-08-18 14:13:51 +03:00
Alibek Omarov
79e94bf766
Revert "scripts: gha: use 64-bit compiler for 32-bit target for faster compilation on Win32"
...
This reverts commit 3de370f3d5 .
2024-08-18 14:13:01 +03:00
Alibek Omarov
3de370f3d5
scripts: gha: use 64-bit compiler for 32-bit target for faster compilation on Win32
2024-08-18 14:04:54 +03:00
Alibek Omarov
c84d2f4624
gha: first attempt at signing binaries
2024-08-18 13:52:02 +03:00
Alibek Omarov
380a9f7a6f
scripts: add self-signed certificate for win32
...
* There is no infrastructure to use signtool during win32 builds yet.
2024-08-18 12:24:17 +03:00
Alibek Omarov
a6c7b67d0d
filesystem: include errno.h for Win32
2024-08-17 17:32:50 +03:00
Alibek Omarov
c13c1f2577
public: wscript: always define alloca header as malloc.h on Win32
2024-08-17 13:17:48 +03:00
Alibek Omarov
151405618f
engine: client: input: slight refactoring of mouse grabbing, add verbose output for debugging mouse issues
2024-08-16 12:59:54 +03:00
Alibek Omarov
70e11cc309
engine: platform: sdl: borderless fullscreen windows don't need to restore desktop resolution
...
* This fixes the case when we switch from windowed to borderless, minimize the window
and restore makes it lose it's fullscreen state
2024-08-16 12:25:08 +03:00
Alibek Omarov
7619824d80
engine: platform: sdl: return correct value from SW_CreateBuffer on success
2024-08-16 11:36:36 +03:00
Alibek Omarov
f3d181b5ee
engine: platform: psvita: explicitly export __aeabi_ul2f
2024-08-16 02:22:25 +03:00
Alibek Omarov
55055a70f0
engine: client: allocate mods list for UI on demand
2024-08-15 12:27:43 +03:00
Alibek Omarov
22d3ba674e
engine: client: ensure demoheader will be written when we're recording demo and changed level
2024-08-14 19:10:00 +03:00
Alibek Omarov
ac487a2133
mainui: update
2024-08-14 10:29:42 +03:00
Alibek Omarov
4da3a14adc
mainui: update
2024-08-13 19:25:32 +03:00
Alibek Omarov
69ec810ed0
engine: client: add missing ref_null to R_CollectRendererNames
2024-08-13 19:16:59 +03:00
Alibek Omarov
2df01316ce
engine: client: add two new APIs for mainui to get extended new gameinfo structure
2024-08-13 18:28:07 +03:00
Alibek Omarov
3a67aefee2
filesystem: check rodir too when checking falldir existence too, just in case
2024-08-13 17:25:25 +03:00
Alibek Omarov
d114dffcb4
filesystem: add new gameinfo.txt key: demomap
2024-08-13 17:22:06 +03:00
Alibek Omarov
7bb5d9a67a
gha: give github 20s to process remaining artifacts upload before downloading them. Upgrade Flatpak Docker image
2024-08-12 11:43:01 +03:00
Alibek Omarov
a6b1e57ae1
gha: simplify uploading releases by using gh cli tool
2024-08-12 11:26:36 +03:00
Alibek Omarov
c70c13eb5c
gha: don't upload flatpak, action does it for us. Print found artifacts, as it seems actions/download-artifact sometimes skips some
2024-08-12 10:44:25 +03:00
Alibek Omarov
d905ea354e
scripts: gha: do not waste time building bshift, just copy binary from mobile_hacks
2024-08-12 10:27:26 +03:00
Alibek Omarov
99cec81894
gha: update flatpak actions
2024-08-12 10:07:41 +03:00
Alibek Omarov
5d5bccf1bb
gha: should've been doing this in a branch meh
2024-08-12 09:53:45 +03:00
Alibek Omarov
6fcf0a77af
scripts: gha: fix typo
2024-08-12 09:43:02 +03:00
Alibek Omarov
e7477c0abf
gha: update more actions, use gh delete release instead of delete-tag-and-release
2024-08-12 09:37:55 +03:00
Alibek Omarov
85540855c3
gha: update actions/checkout and actions/upload-artifact
2024-08-12 09:12:32 +03:00
Alibek Omarov
2dc220b42f
gha: add build for macOS ARM and x86
...
Very barebones, doesn't build universal app, doesn't build dmg
2024-08-12 09:12:13 +03:00
Alibek Omarov
2d6cadbf1b
waf: update to latest waifu
2024-08-12 08:38:52 +03:00
Alibek Omarov
340871e03a
engine: platform: sdl: correct the message about glblit in ref_soft
2024-08-11 18:32:10 +03:00
Alibek Omarov
e222a74960
ref: soft: fail to the engine if CreateBuffer has failed (otherwise it sits in infinite loop)
2024-08-11 18:28:45 +03:00
Alibek Omarov
ab499d5095
scripts: waifulib: vgui: fix vgui_support getting automatically enabled on x86 machines with unsupported OS
2024-08-11 18:08:20 +03:00
Alibek Omarov
a5f7027229
readme: better wording
2024-08-10 15:03:07 +03:00
Alibek Omarov
bf5cf897e2
readme: add IPA pronounciation for word 'Xash'
2024-08-10 15:02:31 +03:00
Alibek Omarov
d33c1af549
wscript: don't force 32-bit for OSX users, as OSX don't support launching 32-bit applications since Catalina
...
Add `-4` or `--32bits` configure flag to specifically target 32-bit engine
2024-08-10 15:01:42 +03:00
Alibek Omarov
677464d04d
ref: rename glpoly_t to glpoly2_t to make the changes more obvious and easier to notice
2024-08-10 13:46:00 +03:00
Alibek Omarov
d2d6ed8bd4
filesystem: fix zip_t and pack_t definition so it have true standard flexible array member
2024-08-10 13:46:00 +03:00
Alibek Omarov
bd2a44dbdd
engine: common: fix fragbuf_t definition so it has true standard flexible array member
2024-08-10 13:46:00 +03:00
Alibek Omarov
e9ee4beb9f
engine: client: fix rawchan_t definition so it has true standard flexible array member
2024-08-10 13:46:00 +03:00
Alibek Omarov
3b3f057f6f
engine: common: fix winding_t definition so it has true standard flexible array member
2024-08-10 13:46:00 +03:00
Alibek Omarov
a9dec51e59
ref: fix glpoly_t definition so it has true standard flexible array member
2024-08-10 13:46:00 +03:00
Alibek Omarov
257312ad7c
3rdparty: update extras
2024-08-10 13:45:41 +03:00
Владислав Сухов
6ee8a2dfa7
scripts: sailfish: bump engine version to 0.21
2024-08-09 12:41:47 +03:00
Владислав Сухов
75c5e9cfa7
engine: bump engine version to 0.21
2024-08-09 12:41:47 +03:00
Gleb Mazovetskiy
1a94f2b585
Enable vsync by default
...
This is the first setting I change after installing xash3d-fwgs. Some distros even patch xash3d-fwgs to enable vsync by default (e.g. Batocera).
Let's enable vsync by default here.
2024-08-09 09:14:50 +03:00
Alibek Omarov
f0b4c42c68
engine: common: faster and simpler Netchan_OutOfBand
2024-08-08 04:37:16 +03:00
Alibek Omarov
9be061735f
engine: client: fix misleading gcc warning about printf format string not being literal
2024-08-08 04:36:40 +03:00
Alibek Omarov
6bfa525080
engine: common: faster and simpler MSG_WriteString
2024-08-08 04:35:55 +03:00
Alibek Omarov
8fcaf18897
engine: client: remove useless copy in NetAPI_SendRequest
2024-08-08 04:32:58 +03:00
Alibek Omarov
f558cde266
engine: client: fix build with -Wincompatible-pointer-types-discards-qualifiers
2024-08-08 04:31:51 +03:00
Alibek Omarov
b508a33f5d
engine: client: minor refactoring in CL_DecayLights, get rid of pointer iterating in for-loop
2024-08-07 09:23:09 +03:00
Alibek Omarov
b4db99006b
engine: client: always print timedemo result
2024-08-07 08:46:55 +03:00
Alibek Omarov
8994f079a5
engine: common: don't uselessly copy data in Netchan_OutOfBound when playing a demo
2024-08-07 02:28:58 +03:00
Alibek Omarov
b2d184cfa5
engine: common: add unit tests for net_buffer functions
2024-08-07 02:28:13 +03:00
Alibek Omarov
92dc92379f
engine: client: minor refactoring, turn quake stats into an enum
2024-08-06 08:42:23 +03:00
Alibek Omarov
2a6862ceb9
engine: soundlib: fix buffer overflow with truncated WAV files containing CoolEdit cue mark
2024-08-06 08:41:36 +03:00
Alibek Omarov
4c569e1d5f
engine: client: ensure loading plaque was removed after we request spawn on legacy protocol
2024-08-03 11:27:45 +03:00
Alibek Omarov
4420ffd49e
engine: fix buffer overflow in Sys_PrintLog
2024-08-03 11:27:45 +03:00
Alibek Omarov
fb7f57cf6a
engine: client: switch efrags to dynamic allocation (as suggested on insideqc by @mh)
2024-08-03 11:27:45 +03:00
Alibek Omarov
8be3bdac5d
engine: client: add command listdemo to show information about demo file (isn't really useful, just reads file header)
2024-08-03 11:01:17 +03:00
Alibek Omarov
2785376bd3
ref: remove unused function declarations
2024-08-03 09:14:56 +03:00
Alibek Omarov
d6e77e531d
engine: fix memory leak in netchan
...
frag_message_buf wasn't always freed alongside with fragbuf_t
instead of ensuring frag_message_buf being freed, I turned it into
a flexible array member
2024-08-03 08:40:33 +03:00
Владислав Сухов
add509bf9e
android: apply themed icon on Android 13+
2024-08-01 15:08:42 +03:00
Alibek Omarov
e686b1410d
engine: client: set default fullscreen value in vid_fullscreen cvar definition
2024-07-31 00:53:58 +03:00
Alibek Omarov
2c23a1e0a0
engine: platform: sdl: fix going fullscreen after manually changing VIDRESTART cvars (like width and height)
2024-07-31 00:53:29 +03:00
Alibek Omarov
47eb9e8c8f
engine: client: replace same struct type memcpys by assignments
2024-07-31 00:06:22 +03:00
Alibek Omarov
712b354421
engine: common: replace same struct type memcpys by assignments
2024-07-31 00:06:22 +03:00
Alibek Omarov
18ef4922de
engine: server: replace same struct type memcpys by assignments
2024-07-31 00:06:22 +03:00
Alibek Omarov
274f9d5846
filesystem: replace same struct type memcpys by assignments
2024-07-31 00:06:15 +03:00
Alibek Omarov
f6fa085fe4
ref: gl: replace same struct type memcpys by assignments
2024-07-31 00:06:07 +03:00
Alibek Omarov
9ab0f04ba5
ref: null: replace same struct type memcpys by assignments
2024-07-31 00:05:57 +03:00
Alibek Omarov
fb7854f1ef
ref: soft: replace same struct type memcpys by assignments
2024-07-31 00:05:44 +03:00
Владислав Сухов
1086c31503
engine: client: in_touch.c: make the voicechat and spray buttons multiplayer only
2024-07-30 17:52:28 +03:00
Alibek Omarov
3a47248a09
extras: update submodule
2024-07-30 15:34:20 +03:00
Владислав Сухов
71a333261b
engine: client: in_touch.c: added voicechat touch button
2024-07-30 15:33:35 +03:00
Alibek Omarov
5ea2e295c1
engine: prevent rescanning filesystem when new player connects or on late precache
...
By reusing a padding hole in resource_t structure, we put a bit indicating that this archive
was already mounted by filesystem and skip it.
Because we associate this with resource, theoretical use of late precache with archives
will rescan filesystem and allow using newly downloaded assets.
2024-07-30 15:25:48 +03:00
Alibek Omarov
1fc7547a53
engine: client: clean up scr_viewsize remnants, don't tell client.dll scr_viewsize cvar value
2024-07-30 15:25:20 +03:00
Alibek Omarov
a7d63649f8
engine: add checks to verify resource_t, customization_t and HPAK data structs sizes
2024-07-30 15:25:20 +03:00
Alibek Omarov
2f26fcdc2a
public: disallow backslashes in COM_PathSlashFix
2024-07-30 15:25:20 +03:00
Alibek Omarov
107d4cdd61
engine: client: fix buffer overrun in S_TrimEnd
2024-07-30 15:25:20 +03:00
Alibek Omarov
52f9aad4d0
filesystem: add new call to fs_stdio C API to check whether we support that archive format
2024-07-30 15:25:20 +03:00
Alibek Omarov
7bb5175084
Turn downloaded/ and custom/ into com_strings.h definitions, like sound path and saves path
2024-07-30 15:25:20 +03:00
Alibek Omarov
dd570b616b
engine: client: properly exit from touch editor to menu when user have chosen to cancel and reset
2024-07-29 05:11:41 +03:00
Alibek Omarov
943a30af04
engine: client: add privileged flag to touch_in_menu and touch_enable
2024-07-29 05:08:35 +03:00
Alibek Omarov
eabed60e56
engine: automatically turn-on touch emulation while editing touch from menu
2024-07-29 05:06:10 +03:00
Alibek Omarov
f793413a79
mainui: update
2024-07-29 05:05:20 +03:00
Alibek Omarov
f4a3b8571d
engine: fix inverted check in debug log output
...
Why there is even this check in the first place???
2024-07-29 04:48:21 +03:00
Alibek Omarov
da6586b847
ref: gl: fix white border around the screen in Base Defense mod
2024-07-28 23:58:09 +03:00
Alibek Omarov
4a5f34089d
engine: client: fix TriColor4fRendermode
2024-07-28 20:50:20 +03:00
Alibek Omarov
90da9659d1
engine: client: vgui: enable texturing in VGUI by default, just in case reset color too
2024-07-28 20:03:32 +03:00
Alibek Omarov
2e30acf611
engine: client: voice: allow restoring voice after toggling voice_enable while connected to server
2024-07-28 17:12:32 +03:00
Alibek Omarov
5554d13f7f
engine: client: fix buffer overflow in voice sound mixer
2024-07-28 16:41:20 +03:00
Alibek Omarov
a5ef33b302
mainui: update
2024-07-28 14:51:09 +03:00
Alibek Omarov
9a2588f7eb
engine: client: console: fix a rare crash when we're in game, console is enabled but it's empty
...
With ui_allowconsole toggle it's easy to reproduce: join game without console, go to menu,
enable console and return back to game.
2024-07-28 14:48:40 +03:00
Alibek Omarov
cac5852e68
ref: enable multiplayer high defintion model in menu preview
2024-07-28 14:45:10 +03:00
Alibek Omarov
d52d50e283
engine: client: set user name as default value for name cvar. Add ui_username cvar with user name.
2024-07-28 14:44:03 +03:00
Alibek Omarov
6911da8581
engine: client: add ui_allowconsole command that enables console
...
To be used by UI
2024-07-28 13:32:52 +03:00
Alibek Omarov
e70f9a67b8
engine: host: always enable console for dedicated
2024-07-26 11:08:34 +03:00
dependabot[bot]
e4bc767644
build(deps): bump rexml from 3.2.5 to 3.3.2
...
Bumps [rexml](https://github.com/ruby/rexml ) from 3.2.5 to 3.3.2.
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.2.5...v3.3.2 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-25 10:33:11 +03:00
Владислав Сухов
97ab977f58
android: fix a string not fitting on some DPIs
2024-07-24 13:49:45 +03:00
Alibek Omarov
173aa7333a
scripts: waifulib: vgui: add option to disable vgui platform support checks, try to lookup DEST_CPU subdirectories for prebuilt library
2024-07-24 07:04:53 +03:00
David
058aca0ce3
Fix strings.xml ptbr
2024-07-23 19:25:34 +03:00
Владислав Сухов
8ab693f3fe
android: added russian strings
2024-07-23 17:55:51 +03:00
Alibek Omarov
2396b2d4db
ref: gl: add VBO generating/uploading times
2024-07-22 22:24:19 +03:00
Alibek Omarov
6120c0daec
engine: print command line args alongside developer level during init
2024-07-22 22:15:56 +03:00
Alibek Omarov
790f9bde54
engine: client: hack mobile API init because of incorrectly defined export in hlsdk-portable
2024-07-21 21:18:00 +03:00
Alibek Omarov
7a469fb481
engine: always use original player hulls for pmove trace, because mods can write invalid data in pmove->player_{mins,maxs}
2024-07-21 11:01:18 +03:00
Alibek Omarov
d4a2011a59
wscript: add configuration option for building xar
2024-07-21 05:36:58 +03:00
Alibek Omarov
9165832caf
mainui: update
2024-07-21 05:34:23 +03:00
Владислав Сухов
d274a5c13c
Documentation: supported-mod-list: added new supported mods (from mobile_hacks branch of hlsdk-portable)
2024-07-21 05:16:30 +03:00
Владислав Сухов
e6bd15c68b
Documentation: supported-mod-list: fix dead links
2024-07-21 05:16:30 +03:00
Alibek Omarov
38bef99f98
engine: client: fix opening Quake demos
2024-07-21 05:01:31 +03:00
Alibek Omarov
95ff9e7165
engine: client: prevent empty lightstyle console flood
2024-07-21 05:01:16 +03:00
Alibek Omarov
2fddbdddee
engine: client: fix ScreenFade under quake compatibility mode
2024-07-21 04:33:46 +03:00
Alibek Omarov
465e812ed9
engine: client: fix EF_DIMLIGHT under quake compatibility mode
2024-07-21 04:33:31 +03:00
Alibek Omarov
3b1fb79a85
engine: client: use Host_IsQuakeCompatible instead of checking host.features bit
2024-07-21 04:32:38 +03:00
Alibek Omarov
0f8f35b415
engine: fix alias model loading
2024-07-21 04:15:56 +03:00
Alibek Omarov
a133b1c2a9
engine: remove unused texFlags argument in Mod_LoadSpriteModel
2024-07-21 03:04:21 +03:00
Alibek Omarov
fa74acb5f0
Revert "engine: client: make client engfuncs const"
...
This reverts commit 14ae9b312d .
2024-07-21 02:53:28 +03:00
Alibek Omarov
836b4c358f
Revert "engine: server: make physic engfuncs const"
...
This reverts commit 5af9511505 .
2024-07-21 02:53:23 +03:00
Alibek Omarov
982e32d108
engine: client: don't mistakingly tell user about failed mobile api, when it's just not used by client.dll
2024-07-21 02:07:38 +03:00
Alibek Omarov
024a335505
engine: move wcon definitions to platform.h
2024-07-21 02:06:51 +03:00
Alibek Omarov
963cbf61e4
filesystem: fix loading libraries from archives on Windows
2024-07-21 01:49:34 +03:00
Alibek Omarov
6d98d2c7c3
engine: check XASH3D_GAME if -game argument wasn't found, do not override default base directory
...
Clarify that `--gamedir` configure option and `XASH_GAMEDIR` macro specify base directory
2024-07-21 01:04:50 +03:00
Alibek Omarov
64726f13e1
engine: client: more accurate R_BeamKill reimplementation
...
Reverse engineered from HL25 hw.so
2024-07-19 07:13:14 +03:00
Alibek Omarov
85dfaaa2c2
engine: imagelib: add LUMP_TEXGAMMA palette kind to only pass HL textures through texgamma, not Quake
2024-07-19 06:34:51 +03:00
Alibek Omarov
42a915b04a
wscript: enforce -Werror=format-extra-args
2024-07-18 01:28:35 +03:00
Alibek Omarov
42a8aa6c66
mainui: update
2024-07-18 01:27:30 +03:00
Alibek Omarov
56464d3291
engine: when colorizing standard output, use bold text, as it makes it more visible (especially with black text)
2024-07-17 22:53:35 +03:00
Alibek Omarov
aed96ee753
engine: common: reduce large static arrays amount for logging by adding generic function accepting va_list
2024-07-17 22:27:20 +03:00
Alibek Omarov
a937320c65
engine: wscript: add ffmpeg hidden option, just to make it easier for me to switch between branches
2024-07-17 22:27:20 +03:00
Alibek Omarov
71b2232995
Remove non-translatable strings from values-pt-rBR
2024-07-17 02:29:19 +03:00
David
a2d9730c60
Update strings.xml to Portuguese brazilian
2024-07-17 02:29:19 +03:00
Alibek Omarov
a81a0cb059
engine: client: make menu engfuncs const
2024-07-16 15:23:03 +03:00
Alibek Omarov
5af9511505
engine: server: make physic engfuncs const
2024-07-16 15:23:03 +03:00
Alibek Omarov
14ae9b312d
engine: client: make client engfuncs const
2024-07-16 15:23:03 +03:00
Alibek Omarov
2d3e5c2e0b
engine: client: make renderer engfuncs const
2024-07-16 15:23:03 +03:00
Alibek Omarov
17950fec3e
filesystem: make engfuncs const
2024-07-16 15:23:03 +03:00
Alibek Omarov
2009140da8
ref: make gReffuncs const
2024-07-16 15:23:03 +03:00
Alibek Omarov
2a394eee62
filesystem: make g_api const
2024-07-16 15:23:03 +03:00
Alibek Omarov
09a7585643
engine: soundlib: super micro-optimization, reallocate buffer in Image_Copy rather than allocating and copying
2024-07-16 05:11:06 +03:00
Alibek Omarov
a09084ceba
engine: imagelib: super micro-optimization, reallocate buffer in Image_Copy rather than allocating and copying
2024-07-16 05:10:29 +03:00
Alibek Omarov
147e5dceff
engine: request SDL to ungrab mouse before signaling debugger to stop
2024-07-16 05:09:02 +03:00
Alibek Omarov
3510afd30b
engine: zone: allow moving allocation from one pool to another during realloc
2024-07-16 05:06:44 +03:00
Alibek Omarov
d3586c2143
engine: soundlib: add support for converting stereo to mono and back, attempt to simplify conversion boilerplate
2024-07-16 05:05:50 +03:00
Alibek Omarov
56ba2325c1
engine: client: skip drawing 2D during changelevel before the client was active
...
* Prevents screen garbage on GPUs with tile-based renderers like Adreno and ImgTec
2024-07-11 09:01:19 +03:00
Alibek Omarov
b77a4ed3a1
engine: client: ignore changelevel for old protocol
...
* Prevents engine from drawing too early during reconnect to a
legacy coop server
2024-07-11 08:59:42 +03:00
Alibek Omarov
9b86c3127a
engine: properly disconnect from online game when loading local game (save, newgame or a level)
2024-07-10 12:32:33 +03:00
Alibek Omarov
0da7ffe45f
engine: client: reset video after last screen update in begin loading plaque. Because update screen supposedly should draw the whole screen now, gl_clear hack shouldn't be required anymore
2024-07-10 11:59:54 +03:00
Alibek Omarov
30b78d9559
mainui: update
2024-07-10 11:32:30 +03:00
Alibek Omarov
c16abc0b85
engine: server: first check for dedicated server in SV_IsSimulating, as CL_Active()/CL_IsInConsole() don't make sense if we're running dedicated server already
2024-07-10 10:35:47 +03:00
Alibek Omarov
708c691cdb
engine: fix XASH_DEDICATED check
2024-07-10 10:34:57 +03:00
Alibek Omarov
31c20ac4d8
engine: client: don't call Host_IsDedicated when getting split size for client
2024-07-10 10:34:30 +03:00
Alibek Omarov
1458014a29
engine: remove unused CL_IsInMenu, don't check for Host_IsDedicated in SCR_BeginLoadingPlaque, it's useless
2024-07-10 10:24:22 +03:00
Alibek Omarov
4de1241713
Update HLSDK and Xash3D submodules
2024-07-09 19:53:44 +03:00
Alibek Omarov
1c84a5c8ad
engine: platform: sdl: disable restoring desktop resolution for mobile platforms, as it leads to unwanted window minimize (which correctly implemented by SDL by the way)
2024-07-09 19:52:11 +03:00
Alibek Omarov
6728b843f7
engine: platform: android: use RTLD_NOW in dlopen()
...
We basically use RTLD_NOW everywhere in the engine these days,
only platform code is behind that
2024-07-09 16:50:37 +03:00
Alibek Omarov
1b55104d51
editorconfig: add IDEA exported config
2024-07-09 16:46:51 +03:00
Alibek Omarov
55d78b0197
AndroidManifest: use launchMode=singleTask, so our activity gets pushed at the top of the stack. Besides, launching engine again with another engine launched in background just crashes it
2024-07-09 16:30:26 +03:00
Alibek Omarov
c3c277f03b
AndroidManifest: disable unneeded configChanges, we don't care about RTL settings in-game or locale changes. Add touchscreen just in case (old port uses it somehow?)
2024-07-09 16:29:21 +03:00
Alibek Omarov
76978bfd47
scripts: gha: change Android project URL, update Android CLI tools and NDK
2024-07-09 08:56:14 +03:00
Alibek Omarov
6ff3231dab
engine: change current working directory before initializing filesystem_stdio
2024-07-09 08:45:27 +03:00
Alibek Omarov
64716e6b42
filesystem: request win32 error string in wide chars and then transform it to UTF-8 using our utflib
2024-07-09 08:25:15 +03:00
Alibek Omarov
a1191eb4ab
engine: platform: win32: request error string in wide chars and then transform it to UTF-8 using our utflib
2024-07-09 08:24:58 +03:00
Alibek Omarov
ccb687e552
xash3d-fwgs: update submodule
2024-07-08 22:25:39 +03:00
Alibek Omarov
075dbbd08b
hlsdk-portable: update submodule
2024-07-08 22:24:30 +03:00
Alibek Omarov
24266c64ef
SDL: update submodule
2024-07-08 22:23:57 +03:00
Alibek Omarov
f19430447a
gradle: upgrade gradle and android plugin
2024-07-08 22:21:26 +03:00
Alibek Omarov
166bed732e
engine: crashhandler: few improvements for win32 crashhandler
...
* Larger message buffer
* Print version at first line
* Tell SDL2 to ungrab mouse
2024-07-08 05:56:20 +03:00
Alibek Omarov
02cb12e4b4
mainui: update
2024-07-08 05:49:24 +03:00
Alibek Omarov
159467ad44
engine: add IPv6 master server
2024-07-07 21:18:02 +03:00
Alibek Omarov
2a006086c5
mainui: update
2024-07-07 06:51:47 +03:00
Alibek Omarov
e0dc1eec93
engine: client: more reliable way to find the payload the netinfo response
2024-07-07 06:49:54 +03:00
Alibek Omarov
ab130ee92c
engine: client: fix infostring truncation in NetAPI requests
2024-07-07 06:17:38 +03:00
Alibek Omarov
dabbe09918
engine: add NetAPI flag to send NetAPI requests to old protocol servers
2024-07-07 06:17:15 +03:00
Alibek Omarov
296a7ac11d
engine: client: fix NetAPI request sending
2024-07-07 06:16:46 +03:00
Alibek Omarov
6bbf08893e
engine: add NetAPI to extended menu API
2024-07-07 03:39:09 +03:00
Alibek Omarov
f8b958738a
engine: client: rework NetAPI response parsing
2024-07-07 03:30:34 +03:00
Alibek Omarov
1b4427f13f
engine: server: rework NetAPI responses
...
players list and rules are now actually useful
2024-07-07 03:29:27 +03:00
Alibek Omarov
e55577fd26
engine: get rid of some size constants passed to Info_SetValueForKey, use sizeof instead
2024-07-07 03:02:02 +03:00
Alibek Omarov
c42960ec2a
engine: server: mark some cvars and movevars as server cvars, so they get reported in rules query
...
Bring back sv_contact cvar, as it makes sense to get this from rules query
2024-07-07 03:01:59 +03:00
Alibek Omarov
c033d4b65c
engine: server: optimize source query
2024-07-07 02:34:43 +03:00
Alibek Omarov
dc6f03b4e4
engine: server: add function SV_HavePassword that correctly checks whether this server have set up password
2024-07-07 02:10:48 +03:00
Alibek Omarov
b6967a432a
engine: add NetAPI flag NET_ERROR_FORBIDDEN
2024-07-07 02:05:25 +03:00
Alibek Omarov
7d0467863c
engine: server: add cvar to not expose current player list, or if server has a password
2024-07-07 01:59:56 +03:00
Alibek Omarov
a0b72d3995
engine: server: light sv_query.c refactoring, use Netchan_OutOfBand instead of manually creating out of band packet
2024-07-07 01:55:03 +03:00
Alibek Omarov
5fe4b867f3
engine: server: do not expose some cvars in rules, some of them just don't make sense
2024-07-07 01:51:50 +03:00
Alibek Omarov
40af058406
engine: client: console: add conback.dds by request, don't fail on texture that cannot be loaded
2024-07-06 22:30:05 +03:00
Alibek Omarov
b4376a6a8c
engine: client: make a common function for sending out userinfo changes
2024-07-06 06:09:19 +03:00
Alibek Omarov
457422c679
engine: server: fix possible byte overflow when sending sound with attenuation == 4.0f
2024-07-06 05:50:53 +03:00
Alibek Omarov
080eba948f
engine: server: fix sound not being overriden when an entity sound came from has an aiment set
...
This check was added 10+ years ago in 8f6f3fc (viewable in Xash3DArchive) and
probably doesn't make any sense anymore.
2024-07-06 05:32:20 +03:00
Alibek Omarov
eff86defd9
public: fix Q_equal for case when applying epsilon doesn't change the value
2024-07-04 07:55:32 +03:00
Alibek Omarov
fcb463d400
engine: client: flush demoheader before copying it
2024-07-04 07:23:48 +03:00
Alibek Omarov
efee8149e2
filesystem: remove unneeded cast to fs_offset_t in write() call
2024-07-04 07:23:13 +03:00
Alibek Omarov
bc32f37fce
public: use Q_strchr in COM_FixSlashes
2024-07-04 06:42:49 +03:00
Alibek Omarov
58bfa247a4
public: add test case for COM_FixSlashes
2024-07-04 06:42:35 +03:00
Alibek Omarov
59b9b31604
public: avoid useless copies in Q_pretifymem
2024-07-04 06:39:18 +03:00
Alibek Omarov
844af709c0
public: simplify Q_colorstr and Q_strnlwr
2024-07-04 06:38:50 +03:00
Alibek Omarov
bb6e2d6885
public: add Q_colorstr and Q_strnlwr tests
2024-07-04 06:38:09 +03:00
Alibek Omarov
6243dc7913
public: simplify Q_ato{i,f} implementation
2024-07-04 06:30:59 +03:00
Alibek Omarov
45c4362ae6
public: add Q_ato{i,f,v} test
2024-07-04 06:29:46 +03:00
Alibek Omarov
a0230b7e00
engine: client: console: minor refactoring, move common NXPrintf code to Con_NXPrintfv
2024-07-04 05:49:33 +03:00
Alibek Omarov
768755c31a
engine: client: use Con_Printf instead of Con_Print (which is just printing to console, not the logging)
2024-07-03 04:22:28 +03:00
Alibek Omarov
3088c7f198
scripts: gha: set proper PKG_CONFIG_PATH when building 32-bit SDL
2024-07-02 19:26:39 +03:00
Alibek Omarov
c8469071bf
scripts: gha: add remaining wayland dependencies
2024-07-02 19:15:02 +03:00
Alibek Omarov
115fc301b5
scripts: gha: fix installing pulseaudio dependency for 32-bit build
2024-07-02 19:02:54 +03:00
Alibek Omarov
bc449b8e95
scripts: gha: enable JACK in automatic builds
2024-07-02 18:59:13 +03:00
Alibek Omarov
74bbc0fe7e
scripts: gha: install pulse, jack and wayland development files for SDL to detect them
2024-07-02 18:58:53 +03:00
Alibek Omarov
c73fa3d7a6
filesystem: fix mounting wads again
...
Because of the mounting order, VFS fails to automatically find unpacked WADs
2024-06-28 18:00:40 +03:00
Alibek Omarov
5694610478
filesystem: fix writedir being prepended to rodir path when searching for library
...
* Refactor generating shortName
* Refactor library origin checks
2024-06-27 08:16:56 +03:00
Alibek Omarov
ec107dfba5
filesystem: load on-disk archives like PAK and PK3 through VFS (disk-only for now)
...
* Track from which archive the file has been opened and provide needed functions for it
2024-06-27 07:31:11 +03:00
Alibek Omarov
64aa476330
editorconfig: add Visual Studio options (generated)
2024-06-27 07:18:10 +03:00
Alibek Omarov
42f6719e8d
filesystem: drop direct path hacks for WAD files, let VFS decide how to open WAD archives
2024-06-27 05:55:06 +03:00
Alibek Omarov
244b9dc02b
wscript: disable -Wformat=2 back (it wasn't supposed to be pushed anyway)
2024-06-24 20:01:29 +03:00
Alibek Omarov
fe3644a417
engine: client: add simple debugging tool that shows entities number, model and movetype (to be extended)
2024-06-22 08:19:19 +03:00
Alibek Omarov
e18b61e041
Fixes for -Wformat=2 on 64-bit targets
2024-06-22 07:31:37 +03:00
Alibek Omarov
d054782693
engine: client: fix broken legacy demos playing
...
Fixes: ff4221fbe7 ("engine: client: write correct cls.legacymode/net_protocol value for demos")
2024-06-22 07:30:47 +03:00
Alibek Omarov
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
Alibek Omarov
3503c721ac
engine: client: console: simplify loading console background image
2024-06-19 03:35:28 +03:00
Alibek Omarov
0fab5f07d0
Revert "engine: common: mod_studio: reject models with split textures files that cannot be loaded"
...
This reverts commit 3256236ba2 .
2024-06-18 22:50:06 +03:00
Alibek Omarov
b0d12f8bf9
engine: client: fix build
...
Forgot to stage these changes two commits ago =/
2024-06-18 00:01:54 +03:00
Alibek Omarov
9fe58aaabc
engine: client: send expected cvar not found string for old protocol cvar query
2024-06-17 23:44:05 +03:00
Alibek Omarov
03c8ea14cc
engine: client: mute music if not in focus
2024-06-17 20:32:04 +03:00
Alibek Omarov
260edc2a08
ref: gl: try to match texture slot and texture object handle because of buggy games
2024-06-15 19:21:26 +03:00
Alibek Omarov
b41591a527
ref: gl: decreate alphatest value for lightmapped sprites to make them easier to see
...
With 0.5 they're too tiny
2024-06-15 19:07:17 +03:00
Alibek Omarov
4e9481451b
mainui: update
2024-06-15 17:22:52 +03:00
Alibek Omarov
95b48da37d
engine: allow to change hardcoded path to custom.hpk
2024-06-15 17:22:26 +03:00
Alibek Omarov
1b36785177
engine: common: hpak: rename hpk_maxsize to hpak_max_size to avoid Valve's defaults
...
While we're here:
* Increase it to 64 MiB.
* Make it privileged.
* Add hpk_maxsize stub command as a deprecation notice.
2024-06-15 16:55:25 +03:00
Alibek Omarov
8bc76e3d58
engine: host: do not specifically check timedemo or vsync in Host_CalcSleep, because it's already has been checked in Host_CalcFPS
2024-06-15 13:57:12 +03:00
Alibek Omarov
1a5e2b907d
engine: client: minor refactoring for cls.demoplayback check
2024-06-15 13:56:25 +03:00
Alibek Omarov
3717e5c2e0
engine: client: simplify server message parsing by moving common code out of protocol-specific parsing funcs
2024-06-15 13:51:02 +03:00
Alibek Omarov
33a1416199
engine: common: net_chan: remove unneeded check for demo and remote address in netchan, as it's handled in client and server already
2024-06-15 13:44:26 +03:00
Alibek Omarov
ff4221fbe7
engine: client: write correct cls.legacymode/net_protocol value for demos
2024-06-15 13:43:18 +03:00
Alibek Omarov
486bca82e8
engine: add quake svc messages names
2024-06-15 11:04:30 +03:00
Alibek Omarov
611d07fc16
engine: client: redefine legacymode from qboolean to an enum with selected protocol. Remove protocol auto-guess hack, it's useless since connect accept accepts protocol string
2024-06-15 10:52:26 +03:00
Alibek Omarov
f7e12586cf
engine: platform: sdl: we must notify the engine about the unpressed button when text input was activated
2024-06-15 08:44:19 +03:00
Alibek Omarov
f62aa051c8
engine: common: make netchan cvars static
2024-06-15 08:44:19 +03:00
Alibek Omarov
2b6b898102
engine: client: make some cvars static
2024-06-15 08:44:19 +03:00
Alibek Omarov
1dd0444531
engine: server: comment out unused cvars, make some static
2024-06-15 08:44:19 +03:00
Alibek Omarov
ba9eb01c1f
engine: server: replace timeout cvar by sv_timeout cvar for consistency with GoldSrc
2024-06-15 08:44:19 +03:00
Alibek Omarov
73a8144e75
engine: client: reduce console spam about not precached model to dev level 1
2024-06-15 08:44:18 +03:00
Alibek Omarov
6aef422de6
ref: remove unneeded dlight pointer increment
2024-06-15 08:44:18 +03:00
Alibek Omarov
5f4b8b60cb
engine: client: make remote print messages more obvious
2024-06-15 08:44:18 +03:00
Alibek Omarov
3256236ba2
engine: common: mod_studio: reject models with split textures files that cannot be loaded
2024-06-14 11:34:42 +03:00
Alibek Omarov
b102727320
engine: client: try to not save passwords to console history
2024-06-14 11:34:37 +03:00
Alibek Omarov
3434005e66
engine: common: make Host_IsLocalGame and Host_IsLocalClient inlined
2024-06-13 01:20:14 +03:00
Alibek Omarov
b3026a7991
engine: client: don't use CL_Active/CL_GetMaxClients wrappers as they are only intended to be either passed to DLL or used in common/server code
2024-06-13 01:19:38 +03:00
Alibek Omarov
0a051832a8
engine: client: do not mute sounds in menu with multiplayer, the bug already been solved different way
2024-06-13 01:07:49 +03:00
Alibek Omarov
2dbafbda02
engine: common: mod_studio: fix NULL mod->cache.data if model has split texture file but none was loaded
2024-06-12 23:37:30 +03:00
Alibek Omarov
240b6fb6f2
engine: fix possible unprivileged config execute with fake extension
2024-06-12 11:16:31 +03:00
Alibek Omarov
4163d3655a
engine: reformat and reorder host_parm_s struct, remove now unused host.daemonize and host.enabledll
2024-06-12 11:16:26 +03:00
Alibek Omarov
2c7bf49fc9
engine: host: avoid some of unnecessary double-to-float conversions
2024-06-12 10:20:09 +03:00
Alibek Omarov
739592e50d
engine: host: refactoring, reduce usage of global variables a bit
2024-06-12 10:20:09 +03:00
Alibek Omarov
393e31e509
engine: move finding root/readonly directory to FS initialization, remove unused host.rodir, host.rootidr
2024-06-12 10:20:09 +03:00
Alibek Omarov
a1dceacc8f
engine: remove unused host.hMutex and host.hInst
2024-06-12 10:20:09 +03:00
Alibek Omarov
cf26c87872
engine: remove unused host.decalList and host.numdecals
2024-06-12 10:20:09 +03:00
Alibek Omarov
21195b3491
engine: increase logo and hpak limits, add cl_logomaxdim cvar to limit decal size (set to 96, default HL logo size is 64)
2024-06-11 07:47:01 +03:00
Alibek Omarov
3f66f6a6a5
ref: null: update to RefAPI 8
2024-06-11 06:30:17 +03:00
Alibek Omarov
daae4f2f80
engine: ref_api: bump RefAPI to version 8
2024-06-11 06:18:09 +03:00
Alibek Omarov
4e2708c1ac
engine: bring back texture replacement
2024-06-11 06:16:26 +03:00
Alibek Omarov
d57d8e0d5d
ref: soft: fix R_DrawStretchPic and Draw_Fill with OpenMP enabled
2024-06-11 02:07:49 +03:00
Alibek Omarov
9577a6af21
ref: moved VGUI support API implementation to the engine
2024-06-11 02:07:49 +03:00
Alibek Omarov
107a6aed01
ref: move PARM_SURF_SAMPLESIZE handling to the engine
2024-06-11 02:07:49 +03:00
Alibek Omarov
2c2045d413
ref: move PARM_SKY_SPHERE handling to the engine
2024-06-11 02:07:49 +03:00
Alibek Omarov
30fe471d2b
ref: move loading skybox into the engine
2024-06-11 02:07:44 +03:00
Alibek Omarov
5ab6979633
ref: move common quake sky cloud loading to the engine
2024-06-10 22:47:39 +03:00
SNMetamorph
ec5e9cb6e3
engine: client: send engine build information to masterserver
2024-06-10 20:53:59 +03:00
Alibek Omarov
f4b4546197
engine: temporarily fix loading studio models with split texture model
2024-06-10 14:57:00 +03:00
Alibek Omarov
f047749e61
engine: move studio model truncation into separate function, disable it by default
2024-06-10 13:34:02 +03:00
Alibek Omarov
87840ce91d
engine: fix potential buffer overflow in Mod_StudioTexName
...
* Model names are 64 bytes wide, adding texture character means we needs 65 byte wide string.
* It never gets stored in memory anyway.
2024-06-10 13:28:01 +03:00
Alibek Omarov
bf31e9f634
engine: fix NO_ASAN macro usage with MSVC
2024-06-09 09:37:16 +03:00
Alibek Omarov
f86d84daed
engine: platform: sdl: initialize window name string when building with old SDL
2024-06-09 09:16:45 +03:00
Alibek Omarov
41ed920d35
common: xash3d_types: fix build
2024-06-09 09:16:07 +03:00
Alibek Omarov
df23ddb545
engine: server: fix signed integer overflow in challenge generator
2024-06-09 07:05:24 +03:00
Alibek Omarov
767556ccad
engine: temporarily disable ASan in MSG_WriteUBitLong (evil!)
2024-06-09 07:03:59 +03:00
Alibek Omarov
f9dab2ad19
engine: server: rename sv_allow_upload to sv_allowupload for compatibility
2024-06-09 07:02:50 +03:00
Alibek Omarov
66cb3a6120
engine: client: add room_off variable to toggle sound effects processing for GoldSrc compatibility
...
* Fixes Sven-Coop 4.8 client.
* Declare dsp_off deprecated.
2024-06-09 03:51:43 +03:00
Tuldok
7672a370da
engine: Crashhandler support for Windows-on-ARM (arm/arm64)
2024-06-08 21:35:55 +03:00
Alibek Omarov
870e47ed03
engine: ensure character signness when checking for nonprintable characters
2024-06-07 22:22:13 +03:00
Alibek Omarov
32d4bdb80f
engine: fix UTF-8 sequence input
...
Fixes: 2e0fc3e4c1 ("engine: client: do not repeatedly check cl_charset value, use generic Con_UtfProcessChar")
2024-06-07 22:16:32 +03:00
Alibek Omarov
929dfd2c71
mainui: update
2024-06-03 09:04:47 +03:00
Alibek Omarov
f437af6451
mainui: update
2024-06-03 07:57:10 +03:00
Alibek Omarov
413a0fb2e5
engine: client: improve accumulating rounding error, thanks @SNMetamorph for suggestion
2024-06-02 13:09:10 +03:00
Alibek Omarov
793adadb06
mainui: update
2024-06-02 12:51:30 +03:00
Alibek Omarov
999b43b89f
engine: implement changing cursor type in gameui
2024-06-02 12:24:14 +03:00
Alibek Omarov
bd60c88c7d
ref: soft: fix build with OpenMP under Visual Studio
2024-06-02 11:39:54 +03:00
Alibek Omarov
23b9a2eddf
waf.bat: add checks for newer pythons, remove checks for pythons below 2.7
2024-06-02 11:39:54 +03:00
Alibek Omarov
0b57d97c8c
vgui_support: update submodule
2024-06-02 11:35:57 +03:00
Alibek Omarov
6255293dd4
engine: fix using OpenMP PHS generation under Visual Studio
2024-06-02 10:34:10 +03:00
Alibek Omarov
04136d95a3
filesystem: fix build warning
2024-06-02 10:33:33 +03:00
Alibek Omarov
40aa29e42a
ci: remove freebsd-13-2 task
2024-06-02 10:04:04 +03:00
Alibek Omarov
a709f30da9
engine: soundlib: libmpg: add wrappers on top of libc read & lseek in case they don't match internal mpg123 types
...
(we better migrate to upstream libmpg at some point)
2024-06-02 09:19:17 +03:00
Alibek Omarov
0796c14e79
engine: client: fix framerate depending player move
2024-06-02 04:15:17 +03:00
Alibek Omarov
a9c0a4be23
engine: server: add cvar to disable bandwidth test on server side
2024-06-01 05:27:35 +03:00
Alibek Omarov
3e1209d3a4
engine: client: do not rely on host.downloadcount when connecting to the server with HTTP enabled
...
* Replace cl.downloadUrl by cl.http_download
2024-06-01 04:30:21 +03:00
Alibek Omarov
caf14c1b7c
engine: soundlib: libmpg: fix the inconsistent use of offset types in lseek()
2024-05-31 03:35:39 +03:00
Alibek Omarov
27f7d2c8d2
engine: common: ban few more executable types for COM_IsSafeFileToDownload
2024-05-31 00:43:28 +03:00
Alibek Omarov
8ee430eda2
engine: common: double check that resource starting with !MD5 doesn't have any extension
2024-05-31 00:42:44 +03:00
Alibek Omarov
484e4cb225
engine: common: net_ws: less verbose HTTP client, fix printing header size in case of an error
2024-05-31 00:07:14 +03:00
Alibek Omarov
b080ad9954
engine: moved link_t helpers to sv_world.c from world.c and made them static
2024-05-30 07:31:03 +03:00
Alibek Omarov
f6625d9188
engine: common: remove unused et_name array
2024-05-30 07:22:21 +03:00
Alibek Omarov
1eb2816bc4
engine: client: manually call FS_Rescan if we downloaded an archive while connecting to server
2024-05-30 06:48:17 +03:00
Alibek Omarov
077be5aaf3
engine: client: only strip DEFAULT_SOUNDPATH from t_sound resources
2024-05-30 06:47:46 +03:00
Alibek Omarov
d59875f114
engine: common: for automatic wad precache to work, we need to count the real wad usage on dedicated
2024-05-30 06:18:15 +03:00
Alibek Omarov
e89191ed39
engine: common: automatically precache wad files required by loaded map
...
Makes it easier to host server with multiplayer maps and broken .res files.
2024-05-30 05:58:41 +03:00
Alibek Omarov
ea21438637
engine: netchan: append .ztmp extension instead of replacing original extension
...
* so we don't send wrong file that has same name but different extension
* validate filename size so it won't get truncated in fragbuf_t
2024-05-30 04:50:58 +03:00
Alibek Omarov
0d2e8333e8
common: remove unused boneinfo.h header
2024-05-29 12:25:23 +03:00
Alibek Omarov
338399e622
engine: common: implement PHS calculation like in QuakeWorld/GoldSrc
2024-05-29 05:58:51 +03:00
Alibek Omarov
27cab8aad5
scripts: waifulib: compiler_optimizations: set HAVE_OPENMP=1 define if openmp feature was enabled during the build
2024-05-29 05:41:47 +03:00
Alibek Omarov
1545a49b4c
engine: client: only allocate debug hulls polygons when they're requested
...
* Make the appropriate changes in ref_gl
2024-05-29 05:41:47 +03:00
Alibek Omarov
3ca15250e8
engine: common: use Mod_PointInLeaf in Mod_GetPVSForPoint instead of traversing nodes manually
2024-05-29 05:41:47 +03:00
Alibek Omarov
6cbac51731
engine: common: add function for compressing visdata
2024-05-29 05:41:47 +03:00
Alibek Omarov
e310c666b1
engine: common: add phs flag to Mod_FatPVS, unused currently
2024-05-29 05:41:47 +03:00
Alibek Omarov
677b0170aa
engine: server: remove recalculating viewpoint for PVS hack, as it causes issues with inconsistency between real and "restored" view positions
2024-05-29 05:41:47 +03:00
Alibek Omarov
9150b770e4
engine: common: mod_bmodel: add function Mod_DecompressVisTo that will copy fat vis data into the provided buffer
2024-05-29 05:41:47 +03:00
Alibek Omarov
2ad6511c31
public: add Q_memor routine that binary OR's data from src to dst
...
Supposed to be compiled with optimizations enabled.
2024-05-29 05:41:33 +03:00
Alibek Omarov
0848f28d83
waf: upgrade to latest master
2024-05-26 19:32:14 +03:00
Alibek Omarov
5d9bc950ce
wscript: do not load msvc manually, it will be loaded by compiler_{c,cxx}
2024-05-25 22:40:25 +03:00
Alibek Omarov
714da79395
mainui: update
2024-05-25 22:25:33 +03:00
Alibek Omarov
823fe9ebbd
waf: upgrade to waf 2.1.1/waifu 1.3.0. Try to fix most optparse->argparse migration issues
2024-05-25 04:58:28 +03:00
Alibek Omarov
4bf72b5383
engine: forbid accessing cvars starting with con_ and scr_ through stufftext
...
Some stupid servers might mess up with console cvars values.
2024-05-25 02:26:42 +03:00
Alibek Omarov
51945f002b
engine: server: check for invoker entity when filtering out host client during entities thinking
2024-05-23 02:06:54 +03:00
Alibek Omarov
bcca9387de
engine: server: sv_pmove: always set FEV_NOTHOST for events coming from PMove (like GoldSrc)
2024-05-23 01:51:42 +03:00
Alibek Omarov
b8417fa46d
ref: soft: search parent in both entity lists when drawing MOVETYPE_FOLLOW entities
...
Fixes the issue in Brutal Half-Life beta 2 with invisible scientist skin.
Fixes: 6862b14e59 ("ref: soft: only draw MOVETYPE_FOLLOW studio model if it's parent is visible")
2024-05-19 06:31:46 +03:00
Alibek Omarov
85b0699288
ref: gl: search parent in both entity lists when drawing MOVETYPE_FOLLOW entities
...
Fixes the issue in Brutal Half-Life beta 2 with invisible scientist skin.
Fixes: dc1d65f621 ("ref: gl: only draw MOVETYPE_FOLLOW studio model if it's parent is visible")
2024-05-19 06:29:22 +03:00
Alibek Omarov
6c03fb0226
engine: client: first attempt to use utflib to replace Con_UtfProcessCharForce calls
2024-05-15 05:25:53 +03:00
Alibek Omarov
a084dea07c
public: add functions to convert from Unicode codepoints into CP1251 or CP1252
2024-05-15 05:07:18 +03:00
Alibek Omarov
2e0fc3e4c1
engine: client: do not repeatedly check cl_charset value, use generic Con_UtfProcessChar
2024-05-15 05:06:57 +03:00
Alibek Omarov
24f4d410ce
filesystem: take FS_Read improvements from DarkPlaces and proper fix for buffer overflow
2024-05-15 03:43:02 +03:00
Alibek Omarov
052e0445ab
engine: client: console: cleanup input buffer from line feed characters before pushing it to the console history
2024-05-15 03:08:22 +03:00
Alibek Omarov
758c908d5a
public: add buffer size parameter to COM_RemoveLineFeed
2024-05-15 03:06:57 +03:00
Alibek Omarov
3917c2589d
filesystem: fix buffer overflow in FS_Read when we pass single byte buffer to it with one character sitting in ungetc
2024-05-15 02:45:01 +03:00
Alibek Omarov
f4a77308ec
engine: soundlib: fix possible buffer overflow in Sound_ConvertUpsample
2024-05-06 15:45:49 +03:00
Alibek Omarov
103b9724f9
scripts: waifulib: compiler_optimizations: fix linking OpenMP
2024-05-06 15:36:26 +03:00
Alibek Omarov
75a315ecf0
engine: client: add optional (compile time for now) setting to reconfigure engine to use 48kHz sounds
2024-05-06 15:10:34 +03:00
Alibek Omarov
63b3b9ef6d
engine: client: fix missing upsampling for >32kHz sounds
2024-05-06 15:09:52 +03:00
Alibek Omarov
a6c2cfe89b
engine: avoid constants in Q_strncpy third argument, where possible
2024-05-06 14:27:26 +03:00
Alibek Omarov
5120657386
engine: fix possible buffer overflow in S_StreamGetCurrentState
2024-05-06 06:53:22 +03:00
Alibek Omarov
e754de46d1
engine: client: fix buffer overflow in S_FindName
2024-05-06 06:42:47 +03:00
Alibek Omarov
5d718aa0d6
scripts: waifulib: compiler_optimizations: add flag for building with OpenMP (not used anywhere in the engine but let's keep it)
2024-05-06 06:42:15 +03:00
Alibek Omarov
55fcbc8880
engine: soundlib: implement linear interpolation in Sound_ResampleInternal
...
* split resampling into three functions
* added resampling using SDL_AudioCVT, it's slow, so isn't enabled by default
2024-05-06 06:41:23 +03:00
Alibek Omarov
e19aa001b2
engine: client: ref_common: slight refactoring, reorder ref_state_t
2024-05-06 01:59:50 +03:00
Alibek Omarov
b447ea9c18
engine: client: remove unused fields in client_static_t
2024-05-06 01:59:14 +03:00
Alibek Omarov
13274655d4
engine: client: sound: slight refactoring, removed unused s_listener.velocity
2024-05-06 01:30:06 +03:00
Alibek Omarov
3723ac60ef
engine: client: s_mix: _inline -> static
2024-05-06 00:51:32 +03:00
Alibek Omarov
da578f47f1
engine: client: fix sounds being paused in menu and then blasted all at the same time in multiplayer
2024-05-06 00:41:38 +03:00
Alibek Omarov
433e7de686
engine: clean up unused soundlib flags, set SOUND_LOOPED flag on looped sounds
2024-05-05 06:16:57 +03:00
Alibek Omarov
e18e9ae2ea
engine: platform: sdl: ignore keyboard events if text mode is active
2024-05-04 11:05:17 +03:00
Alibek Omarov
27d5123a61
mainui: update
2024-05-03 16:55:17 +03:00
Alibek Omarov
89b9f9ffe2
github: update SDL to 2.30.3
2024-05-03 16:04:13 +03:00
Alibek Omarov
a17b8aaa13
public: fix parameter name omitted error for older compilers
2024-05-03 16:01:24 +03:00
Alibek Omarov
e210969612
scripts: gha: build_linux: spew config.log on build failure
2024-05-03 15:57:26 +03:00
Alibek Omarov
1208356b92
ref: gl: gl2_shim: remove unused ALLOCA_H include
2024-05-03 15:53:57 +03:00
Alibek Omarov
d7cd74fe2f
wscript: no need to pass PACKAGING into env
2024-05-03 15:45:20 +03:00
Alibek Omarov
31b63e9939
wscript: exclude executing large file test for PSVita
2024-05-03 15:44:35 +03:00
Alibek Omarov
b99c2c2df1
wscript: do not execute test for test for large files
2024-05-03 15:38:35 +03:00
Alibek Omarov
94d3eff9ce
engine: host: fix build with Q_strchrnul returning const char *
2024-05-03 15:31:20 +03:00
Alibek Omarov
b78e9961c6
public: fix build on Windows
...
stristr doesn't exist actually
2024-05-03 15:30:42 +03:00
Alibek Omarov
b0704ca5d6
mainui: update
2024-05-03 06:38:21 +03:00
Alibek Omarov
31c0934108
engine: fix parsing -bugcomp flags, assume bugcomp flags only starts with alphabetic character
2024-05-03 06:28:48 +03:00
Alibek Omarov
37083c8aef
ref: soft: mark sw_drawflat and sw_draworder as cheats
2024-05-01 00:52:45 +03:00
Alibek Omarov
af23b0c67b
public: crtlib: refactoring with new macros, use system strlcpy/strlcat if possible
2024-04-30 02:20:14 +03:00
Alibek Omarov
a9e83fb9cf
wscript: move std defining macros into libpublic's sdk_includes target, so we don't accidentally feed submodules our macros
2024-04-29 05:29:53 +03:00
Alibek Omarov
51126e1691
mainui: update
2024-04-29 05:28:41 +03:00
Alibek Omarov
dd410a2de5
engine: implement small Message Rewrite Facitility that allows to run mods that directly write internal GoldSrc messages
2024-04-28 06:59:18 +03:00
Alibek Omarov
7ccb0b5c02
public: make simple ctype functions inlined
2024-04-28 06:59:18 +03:00
Alibek Omarov
7f3e62e456
public: remove unneeded copy in Q_atov
2024-04-28 06:59:18 +03:00
Alibek Omarov
fcfc29d7ea
public: fix variables types in COM_HashKey, they are all supposed to be unsigned integers
2024-04-28 06:59:18 +03:00
Alibek Omarov
2f3429a144
engine: common: base_cmd: use flexible array to store basecmd name
2024-04-28 06:59:18 +03:00
Alibek Omarov
20782693f4
engine: server: rename symbols for svs, sv and SV_DropClient to avoid AMXModX trying to acquire their pointers
2024-04-28 06:59:18 +03:00
Alibek Omarov
0cfb354374
common: add RENAME_SYMBOL macro that renames symbol for compatibility with nasty mods (also reformat this portion, while we're at it)
2024-04-28 06:59:18 +03:00
Alibek Omarov
9be5b7c6c9
engine: physint: empty-define ALLOC_CHECK if not defined by SDK, so this header can be freely moved to another SDK
2024-04-28 06:59:18 +03:00
Alibek Omarov
e7653d2ea6
engine: soundlib: fix searching for a RIFF/WAVE chunks in streams
2024-04-27 10:51:56 +03:00
Alibek Omarov
1494887e29
engine: soundlib: snd_wav: replace strncmp by IsFourCC helper function
2024-04-26 06:29:38 +03:00
Alibek Omarov
42dab2b1a5
engine: soundlib: snd_wav: attempt to fix misleading warning about truncated file
2024-04-26 06:25:18 +03:00
Alibek Omarov
36a0c1fb17
ref: if the entity is opaque, check the renderfx too, it might become translucent
2024-04-26 04:15:21 +03:00
Alibek Omarov
60c6767337
filesystem: copy absolute path to library in FS_FindLibrary for compatibility
...
Extend fullPath for longer absolute paths.
2024-04-22 04:02:46 +03:00
Alibek Omarov
75451cc7fa
engine: client: print correct message names in legacymode
2024-04-22 04:02:46 +03:00
Alibek Omarov
db10035d9d
engine: add GoldSrc protocol definitions
2024-04-22 04:02:46 +03:00
Alibek Omarov
de21d845ec
engine: don't forget to put newline at the end of overflowed console message
2024-04-21 20:21:17 +03:00
Alibek Omarov
320f8466e6
engine: hpak: don't print error about missing custom.hpak in quiet mode
2024-04-21 20:05:37 +03:00
Alibek Omarov
f3208e95b2
engine: server: remove misleading message about interface version in case when GetEntityAPI2 has failed
...
Add message when GetEntityAPI was used instead
2024-04-21 20:05:34 +03:00
Alibek Omarov
ea34bc8652
engine: turn bugcomp into flags that can be enabled/disabled separately
2024-04-21 16:52:15 +03:00
Alibek Omarov
3daf014af8
wscript: always enable -Werror=implicit-function-declaration
2024-04-20 20:48:01 +03:00
Alibek Omarov
ca9d3d262a
engine: common: net_encode: directly call MSG_ReadSBitLong for DT_TIMEWINDOW_*, don't do the multiplier check for DT_TIMEWINDOW_BIG
2024-04-20 20:48:01 +03:00
Alibek Omarov
a08f5e439d
engine: common: net_encode: fix comparing DT_TIMEWINDOW_* fields
...
Fixes: 35783bcec2 ("engine: common: net_encode: fix inaccuracy in DT_TIMEWINDOW_* encoding")
2024-04-19 01:51:25 +03:00
Alibek Omarov
8f6771dff4
engine: common: zone: check that Mem_FindPool might return NULL (it can if Sys_Error was called inside of a Sys_Error)
2024-04-19 00:14:26 +03:00
Alibek Omarov
cd47c6b5b3
engine: common: zone: disallow migrating allocations from one pool to another, as this isn't practically used anywhere
2024-04-19 00:14:26 +03:00
Alibek Omarov
1f4f3d7fda
engine: common: zone: remove mempool sentinels as pools aren't subject to buffer overflow or double free anymore
2024-04-19 00:14:26 +03:00
Alibek Omarov
e81b5144b3
engine: common: zone: use realloc for managing mem pools
...
rearrange data in memheader_s to avoid unnecessary paddings
2024-04-19 00:14:26 +03:00
Alibek Omarov
9ec1caed53
engine: common: zone: implement dummy Q_realloc for XASH_CUSTOM_SWAP
2024-04-19 00:14:26 +03:00
Alibek Omarov
ca3b4a9d7f
engine: host: oops
2024-04-18 16:48:41 +03:00
Alibek Omarov
87ac217887
engine: common: net_encode: add bitmask operation to delta tests
2024-04-18 16:44:15 +03:00
Alibek Omarov
213650db8f
engine: exit with non-zero return code if engine tests are failed
2024-04-18 16:36:18 +03:00
Alibek Omarov
ac46164a6e
engine: common: net_encode: implement basic delta tests
2024-04-17 20:27:22 +03:00
Alibek Omarov
6d12d84e94
engine: common: net_encode: apply post_multiplier to integer fields, like GoldSrc does
2024-04-17 06:23:22 +03:00
Alibek Omarov
2a18cde60c
engine: common: net_encode: fix applying integer clamp before multiplier
...
Without this fix, data still might overflow after applying multiplier
and potentially send incorrect data.
2024-04-17 06:16:44 +03:00
Alibek Omarov
35783bcec2
engine: common: net_encode: fix inaccuracy in DT_TIMEWINDOW_* encoding
...
By avoiding double rounding, we get more accurate time on client when timebase
gets rounded down and target time gets rounded up:
```
>>> round(123.1) - round(124.51)
-2
>>> round(123.1 - 124.51)
-1
```
2024-04-17 06:09:52 +03:00
Alibek Omarov
1677835b45
engine: common: simplify bit buffer operations
...
Yields a small performance boost
2024-04-08 07:24:53 +03:00
Alibek Omarov
2f2780cb1b
ref: null: fix crashes
2024-04-08 07:23:56 +03:00
Alibek Omarov
95b134b5a6
ci: fix cirrus CI configuration file
2024-04-06 06:58:15 +03:00
Alibek Omarov
f60e856f35
engine: server: replace useless call to SV_Serverinfo to a direct access
2024-04-06 06:58:15 +03:00
Alibek Omarov
2ec0d25d85
Documentation: add note about environment variables
2024-04-05 20:15:38 +03:00
Alibek Omarov
fcd0982524
engine: server: free 64-bit string pool last when unloading library
2024-04-05 19:45:24 +03:00
Alibek Omarov
6881ee742d
engine: server: fix incorrect NULL check in pfnCvar_RegisterServerVariable
2024-04-05 18:45:15 +03:00
Alibek Omarov
f070bbef3c
engine: server: make EDICT_NUM inlined
2024-04-04 20:42:25 +03:00
Alibek Omarov
dd8c66d90e
engine: common: fix possible NULL dereference in LZSS_Compress
2024-04-04 20:42:25 +03:00
Alibek Omarov
f995d055b5
filesystem: fix possible NULL dereference
2024-04-04 20:42:25 +03:00
Alibek Omarov
fed65dd497
engine: imagelib: fix possible NULL dereference
2024-04-04 20:42:25 +03:00
Alibek Omarov
c896425ad9
engine: server: make changelevel commands compatible with GoldSrc
2024-04-04 00:21:28 +03:00
Alibek Omarov
4107bd4e0f
engine: common: quickly assume that map is valid when generating maps.lst if mpfilter is set or game is multiplayer only
2024-04-03 06:13:43 +03:00
Alibek Omarov
156b2b2b10
engine: server: remove MAP_HAS_SPAWNPOINT checks
2024-04-03 05:52:42 +03:00
Alibek Omarov
13a063bf7d
mainui: update
2024-04-02 04:05:49 +03:00
Alibek Omarov
ef786b7d79
engine: client: fix sprites transparency in Night at the Office
2024-04-02 02:18:49 +03:00
Alibek Omarov
5c0c1b1226
ref: gl: make g_posenum in alias renderer static
2024-03-30 03:52:50 +03:00
Alibek Omarov
d041b2aa27
engine: fix error_on_exit data type
2024-03-26 17:15:34 +03:00
Alibek Omarov
f6d489e038
engine: server: register str64stats command that prints string pool usage statistics
2024-03-26 17:15:15 +03:00
Alibek Omarov
d34fedea69
engine: server: cleanup unused variables
2024-03-25 05:50:04 +03:00
Alibek Omarov
80b3f90091
engine: server: more accurate SV_ParseEdict
...
* Add removing trailing spaces, like GoldSrc does
* Pass classname first to allow game to override it
* Remove FL_CUSTOMENTITY flag usage, GoldSrc doesn't set this flag for "custom"
export entities
* Fix possible memory leak
2024-03-25 05:49:59 +03:00
SNMetamorph
2a4fafc3f9
engine: voice: added voice_transmit_scale cvar to configure outcoming voice audio volume
2024-03-23 23:37:03 +03:00
SNMetamorph
9b3ccf5f04
engine: voice: output_buffer renamed to compress_buffer
2024-03-23 23:37:03 +03:00
SNMetamorph
f59ac2360a
engine: voice: made voice_scale to influence incoming voice audio volume
2024-03-23 23:37:03 +03:00
Alibek Omarov
ff21fb42e6
engine: client: create separate Opus decoders for each player
...
Turns out, we can't re-use same decoder for different streams.
2024-03-20 18:41:52 +03:00
Alibek Omarov
288cac69de
public: add small utility library for unicode stuff
2024-03-19 21:34:18 +03:00
Alibek Omarov
2640b6d869
engine: host: remove misleading message about TAB-autocompletion in dedicated mode
2024-03-19 21:24:21 +03:00
Alibek Omarov
d8910b0e38
engine: platform: linux: do not search sd_notify if NOTIFY_SOCKET isn't set
2024-03-19 21:23:53 +03:00
Alibek Omarov
049bed555e
engine: host: fit -help into 80 columns terminal
2024-03-19 21:13:28 +03:00
Alibek Omarov
fe5944720b
engine: use common strings to name the engine, makes branding easier for custom forks
2024-03-19 21:11:10 +03:00
Alibek Omarov
665c46b281
filesystem: minor logging opened archives change
2024-03-19 20:42:10 +03:00
Alibek Omarov
975ab6785e
engine: make log starting and ending messages shorter, so it fits into standard 80 columns term
2024-03-19 20:41:46 +03:00
Alibek Omarov
6fa4dbfba2
public: build: use XASH_BUILD_BRANCH define set by Waf. Expect XASH_BUILD_{BRANCH,COMMIT} to be always set.
2024-03-19 19:34:30 +03:00
SNMetamorph
0506a1dfce
engine: sys_con: added VCS branch name printing to log file header
2024-03-19 19:31:54 +03:00
SNMetamorph
908a9930e6
public: added Q_buildbranch function, needed for better logging
2024-03-19 19:31:54 +03:00
SNMetamorph
7d7e72196b
engine: host: enabled printing current developer level
2024-03-19 19:31:54 +03:00
SNMetamorph
7cc67157e5
engine: sys_con: fixed incorrect logging init messages order
2024-03-19 19:31:54 +03:00
SNMetamorph
b7ff9c7a24
engine: sys_con: added missing title for log messages
2024-03-19 19:31:54 +03:00
Alibek Omarov
aab1fa1ba2
wscript: move gitversion load to libpublic, define XASH_BUILD_BRANCH, use unknown-{commit,branch} if detecting git version was failed
2024-03-19 19:30:52 +03:00
Alibek Omarov
effeba2f44
waf: upgrade to waifu 1.2.0
2024-03-19 19:24:49 +03:00
Alibek Omarov
e039ef35c0
filesystem: don't check for SDL whether we can load Android assets, because filesystem doesn't know anything about SDL
...
Replace it with runtime check instead.
2024-03-11 23:25:10 +03:00
Alibek Omarov
599a1f026e
engine: client: fix missing comma
2024-03-11 22:56:52 +03:00
Alibek Omarov
39cba17f01
filesystem: android: try to fix compiling-in AAsset mounting code
2024-03-11 21:49:33 +03:00
SNMetamorph
17e106f96d
ref: gl: invalidate texture units state cache when texture deletes
2024-03-09 22:12:35 +03:00
Alibek Omarov
081cf9132b
engine: client: read console_history.txt as binary, skip empty and repeating lines, reimplement it through FS_Gets for fun
2024-03-08 15:25:36 +03:00
Alibek Omarov
6a7e027248
engine: common: add joy_ prefix to automatically filterable cvars
2024-03-08 15:25:36 +03:00
Alibek Omarov
27100e7751
engine: client: hook sensitivity cvar registration and make it priveleged cvar
2024-03-08 15:25:36 +03:00
Alibek Omarov
75d9ed341a
Create FUNDING.yml
2024-03-07 09:41:18 +03:00
Alibek Omarov
1a0867523d
engine: system: parent messagebox to main window when dealing with Sys_Error
2024-03-05 17:12:51 +03:00
Alibek Omarov
7584bbe47e
engine: client: fix sound mute when losing focus
2024-03-03 19:00:50 +03:00
Andrey Akhmichin
505b6cc264
utils: mdldec: boneweights fix.
2024-03-01 20:26:18 +03:00
Alibek Omarov
24f23908be
engine: platform: stub Sys_DebuggerPresent on unsupported platforms
2024-02-27 05:17:01 +03:00
Alibek Omarov
43bd73f37b
engine: platform: that's why commit --amend and/or rebase --interactive your fixes in your patches before proposing them
2024-02-27 04:59:54 +03:00
mittorn
bb2753cbfc
engine/system: add asm-based raise implementation for arm and aarch64, making Sys_DebugBreak more relevant, use tgkill instead of kill
2024-02-27 04:54:55 +03:00
mittorn
5568eccc8a
ref/r_sprite: move dframetype to inner block
2024-02-27 04:17:21 +03:00
mittorn
c3b2cc4423
waifulib/compiler_optimizations: disable no-semantic-interposition for gcc4 in release builds too
2024-02-27 04:16:14 +03:00
mittorn
d84130219f
crashhandler: set host.crashed before messagebox to allow platform code handle crashed state in different way
2024-02-27 04:14:37 +03:00
mittorn
d97d4d6c42
filesystem: add XASH_ANDROID_ASSETS macro for aassets switch
2024-02-27 04:04:54 +03:00
mittorn
15798aaf52
ref/r_sprite: move dframetype to inner block
2024-02-27 04:04:54 +03:00
mittorn
e53892e827
ref_gl: fix loop scope in ripple code
2024-02-27 04:04:54 +03:00
mittorn
cb12af69ed
gl2shim: add SOFTFP_LINK support for gles3compat
2024-02-27 04:04:54 +03:00
mittorn
e82050a4bc
gl2shim: fix gcc 4.9 build
2024-02-27 04:04:54 +03:00
mittorn
e4edd2da45
platform/posix: check for non-zero dladdr ret
2024-02-27 04:04:54 +03:00
mittorn
4f80922358
waf/compiler_optimizations: remove no-semantic-interposition for gcc4
2024-02-27 04:04:54 +03:00
mittorn
ae7ed03376
ref_soft: fix crash when y < -height
2024-02-27 04:04:54 +03:00
mittorn
c082e46662
imagelib: fix for loop scope
2024-02-27 04:04:54 +03:00
mittorn
b0bbcab6b4
ref_soft,ref_gl: fix unaligned read in sprite code
2024-02-27 04:04:54 +03:00
SNMetamorph
0fc83080ec
engine: server: allowed bandwidth test on listen servers
2024-02-26 19:41:32 +03:00
SNMetamorph
73883b504f
engine: client: improved bandwidth test logic
2024-02-26 19:41:32 +03:00
SNMetamorph
8efc9d74e8
engine: server: fixed test packet buffer was not being created
2024-02-26 19:41:32 +03:00
mittorn
373321ff00
ref/gl: do not set type on 1D textures on GLES (will fallback to 2D)
2024-02-26 16:08:37 +03:00
Alibek Omarov
a508467aac
engine: client: silently ignore if server didn't sent local player info in delta at spawn
...
The bug happens somewhere in server, not sure where or how. Remove Host_Error so mods
can be played again.
2024-02-26 11:48:46 +03:00
Alibek Omarov
abbe993e80
3rdparty: gl4es: update
2024-02-26 11:20:04 +03:00
Alibek Omarov
c644e4d569
3rdparty: nanogl: update, fix link error with missing glTexEnvfv
2024-02-26 11:06:09 +03:00
Alibek Omarov
c200e008f1
wscript: disable gl-wes-v2 renderer from Android builds
2024-02-26 10:55:42 +03:00
Alibek Omarov
e95a2da6d0
engine: platform: sdl: slightly rework previous patch to not call SDL each frame and check for NULL pointers
2024-02-23 20:55:32 +03:00
Alibek Omarov
8afca1a79c
engine: server: allow starting game from custom map
2024-02-23 20:54:32 +03:00
Alibek Omarov
827c9ca857
filesystem: restore original Xash behavior with unreferenced keys in gameinfo.txt/liblist.gam
2024-02-23 20:54:32 +03:00
Alibek Omarov
2416635ba3
common: validate extended surfaces size
2024-02-23 20:54:32 +03:00
Alibek Omarov
39eec89580
engine: increase elights limit up to 128
2024-02-23 20:54:32 +03:00
Sheridan Kane Rathbun
98d88266a6
engine: platform: sdl: fix incorrect mouse cursor positioning on high-dpi displays ( #1623 )
...
Signed-off-by: SheridanR <sheridan.rathbun@gmail.com >
2024-02-23 20:54:17 +03:00
mittorn
0f3359fc05
ref_gl: do not apply overbright color if lightscale correction used
2024-02-22 21:02:34 +03:00
mittorn
6c77608c34
ref_gl: implement color-modulate overbrigths with gl_vbo using texture GL_COMBINE
2024-02-22 21:02:34 +03:00
Alibek Omarov
abdff6eff6
mainui: update
2024-02-22 15:43:49 +03:00
Alibek Omarov
95a75465c9
common: remove FORCEINLINE and NOINLINE macros, we don't use them in engine
2024-02-22 15:43:37 +03:00
Alibek Omarov
119926805f
mainui: update
2024-02-21 03:39:11 +03:00
Alibek Omarov
f749b5cb4b
3rdparty: nanogl: update
2024-02-21 02:57:18 +03:00
Alibek Omarov
c29ad6b598
scripts: waifulib: compiler_optimizations: add option to use profiling
2024-02-21 02:57:07 +03:00
Alibek Omarov
4c5dfb963e
engine: zone: few more tunings for realloc
2024-02-21 00:59:02 +03:00
Alibek Omarov
e11f9e05d4
engine: server: add GetNativeObject to server's PhysicsAPI
2024-02-19 17:49:37 +03:00
Alibek Omarov
5c8b5b3511
Documentation: extensions: add doc about native-object
2024-02-19 17:49:37 +03:00
Alibek Omarov
2ea7162287
engine: gameui: add GetNativeObject to extended menu API
2024-02-19 17:49:37 +03:00
Alibek Omarov
e62ab51842
engine: platforms: android: platforms aren't expected to get NULL or zero sized native object names anymore
2024-02-19 17:49:37 +03:00
Bohdan Shulyar
f1bc9b87b1
platform: android: port to SDL
2024-02-19 17:47:40 +03:00
Alibek Omarov
a9bddaac64
engine: platform: win32: do not call filesystem functions if filesystem_stdio was failed to load
2024-02-19 06:27:24 +03:00
Alibek Omarov
6cef6f6a75
engine: zone: refactoring
2024-02-19 06:13:54 +03:00
Alibek Omarov
25ea6ed500
scripts: waifulib: don't use relative path while creating ZIP file (so cwd might not be equal to sources path)
2024-02-19 05:00:12 +03:00
Alibek Omarov
3d5173f257
engine: zone: implement Mem_Realloc through standard realloc
2024-02-19 04:22:16 +03:00
Alibek Omarov
05ff0d6020
engine: cmd: remove unused global variable
2024-02-17 22:17:22 +03:00
Alibek Omarov
3cea12627e
engine: client: add cl_trace_stufftext from old engine
2024-02-17 22:16:39 +03:00
Alibek Omarov
b59b7c1a8d
engine: server: better error message for missing spawn functions
2024-02-17 22:15:41 +03:00
Alibek Omarov
dd2c369df3
engine: imagelib: fix integer overflow on huge images when calculating reflectivity
2024-02-17 22:14:27 +03:00
Andrey Akhmichin
8b79e49a0f
engine: server: execute maps/<mapname>_unload.cfg on server deactivation.
2024-02-16 17:57:26 +03:00
Andrey Akhmichin
4ea6eba8f2
engine: server: execute maps/<mapname>_load.cfg before entities precaching.
2024-02-16 17:57:26 +03:00
Andrey Akhmichin
f649076bc3
engine: server: execute map change config file before entities precaching.
2024-02-16 17:57:26 +03:00
Andrey Akhmichin
8ecffa4663
engine: server: define new "disconcfgfile" cvar.
2024-02-16 17:57:26 +03:00
Andrey Akhmichin
e90b83849a
engine: server: execute map change config file in singleplayer.
2024-02-16 17:57:26 +03:00
Andrey Akhmichin
d517b9717a
engine: server: define new "_sv_override_scientist_mdl" cvar for Uplink's scientist model.
2024-02-16 17:57:26 +03:00
Bohdan Shulyar
67df4861ce
add back mittorn's exit zone
2024-02-16 12:52:03 +02:00
Alibek Omarov
2c0d6e06be
engine: server: return NULL in SV_ClientBy{Id,Name} if client array isn't allocated
2024-02-15 13:56:47 +03:00
Alibek Omarov
dec71850a1
engine: console: allow changing background filtering
2024-02-13 15:34:33 +03:00
Alibek Omarov
b1860972c6
engine: font: fix inverted check, fix potential division by zero
2024-02-13 15:33:51 +03:00
Alibek Omarov
1f4c9b67da
engine: server: don't init or send voice chat in singleplayer
2024-02-13 15:09:26 +03:00
Velaron
4ad3e52407
Fix build again
2024-02-10 00:53:46 +02:00
Alibek Omarov
c2da125358
engine: client: as an experiment, let users override default font rendermode through hud_fontrender and con_fontrender cvars
2024-02-09 07:25:47 +03:00
Alibek Omarov
31fa990d44
engine: gamma: fix gamma changes not caught if gamma cvar was set during frame
2024-02-09 06:29:30 +03:00
Alibek Omarov
d3e60c7d84
engine: gamma: higher brightness limit for compatibility
2024-02-09 06:28:31 +03:00
Velaron
b5b2e322c2
Fix build
2024-02-08 23:50:09 +02:00
Alibek Omarov
e2424b4303
engine: server: clean up userinfo and fullupdate throttle on client connect
2024-02-07 23:27:02 +03:00
Alibek Omarov
240563cd1b
engine: client: set r_lighting_modulate to 0.6 and save it to config for old Xash mods that use it internally
2024-02-07 23:22:27 +03:00
Alibek Omarov
d708cd58fb
mainui: update
2024-02-07 23:22:27 +03:00
Alibek Omarov
491b503f96
engine: common: optimize COM_LoadFile/COM_LoadFileForMe removing double allocation
2024-02-07 23:22:27 +03:00
Alibek Omarov
636a2228f6
filesystem: add new API function LoadFileMalloc that returns a pointer that can be freed using standard free()
2024-02-07 23:22:27 +03:00
Alibek Omarov
bb03e2597c
filesystem: allow to pass custom allocation functions to LoadFile
2024-02-07 23:22:27 +03:00
Alibek Omarov
21c828ee40
engine: sounds: remove extra logging
2024-02-05 15:57:59 +03:00
Alibek Omarov
132c9de142
engine: host: add the most important command line flag help string
2024-02-05 15:28:18 +03:00
Alibek Omarov
9d9507d77f
engine: change mobility API license to Unlicense, as with build.h
...
See GitHub issue: https://github.com/FWGS/hlsdk-portable/issues/259
Signed-off-by: Alibek Omarov <a1ba.omarov@gmail.com >
2024-02-05 15:01:03 +03:00
Alibek Omarov
7daa6c3451
engine: server: use soundlist to acquire random sounds for physics
2024-02-05 12:49:31 +03:00
Alibek Omarov
c8e1ffe0dd
engine: client: use soundlist to acquire random sounds for temp entities
2024-02-05 12:49:31 +03:00
Alibek Omarov
b5f02324a6
engine: add basic sounds.lst implementation
2024-02-05 12:49:27 +03:00
Alibek Omarov
47f5dfdcfd
common: define macros for color codes for easier access
2024-02-05 12:49:27 +03:00
Alibek Omarov
33da68b013
engine: client: move reseting gamma changed flag to the end of the frame for custom renderers
2024-02-05 03:41:15 +03:00
Alibek Omarov
618ec83c9d
engine: client: don't trigger CheckGamma if there is no screenshot action
2024-02-05 03:40:14 +03:00
Alibek Omarov
85de61ebc8
engine: client: fix userid not being written to player info on userinfo change
2024-02-05 02:58:46 +03:00
Alibek Omarov
2feaae59f7
engine: client: bring back r_lighting_modulate, as a compatibility cvar
2024-02-02 13:52:17 +03:00
Alibek Omarov
2550d7fbd3
public: tests: remove linuxunkabi remnants
2024-02-01 02:54:22 +03:00
Alibek Omarov
565f717804
ref: add ref_null renderer that does nothing
...
This was sitting in my git stash for months. Let's publish it now.
2024-02-01 02:45:19 +03:00
Alibek Omarov
b56c83a2f9
Documentation: add a note about musl
2024-01-31 23:59:28 +03:00
Alibek Omarov
bf17996f72
public: remove linuxunkabi
2024-01-31 23:59:28 +03:00
Alibek Omarov
a3acb1c85b
engine: gamma: validate gamma cvars in local games too
2024-01-30 17:55:36 +03:00
Alibek Omarov
d4d63301e0
mainui: update
2024-01-30 17:50:31 +03:00
Alibek Omarov
e9af0c9810
ref: gl: wscript: remove all libs dependencies from gles3compat, added by mistake
2024-01-30 17:40:59 +03:00
Alibek Omarov
131ad9c790
3rdparty: update submodules
2024-01-30 17:28:12 +03:00
Alibek Omarov
bfcaba54dc
wscript: move werror flags into uselib
2024-01-30 17:24:17 +03:00
Alibek Omarov
f67736180b
engine: client: allow nearest filtering for loading and pause icons
2024-01-29 05:59:29 +03:00
Alibek Omarov
725b7ea7f9
common: render_api: rename TF_ALLOW_NEAREST_TOGGLE to just TF_ALLOW_NEAREST, it's just shorter
2024-01-29 05:59:06 +03:00
Alibek Omarov
600d574376
ref: gl: make use of new TF_ALLOW_NEAREST_TOGGLE flag
2024-01-29 05:50:59 +03:00
Alibek Omarov
04f42df7d5
common: render_api: new flag TF_ALLOW_NEAREST_TOGGLE that allows toggling nearest filtering for TF_NOMIPMAP textures
2024-01-29 05:48:42 +03:00
Alibek Omarov
ab15662d78
ref: gl: fix toggling nearest filter on TF_NOMIPMAP textures
2024-01-29 05:48:08 +03:00
Alibek Omarov
072b0cef27
ref: gl: small refactoring on filter choosing for newly uploaded texture
2024-01-29 05:47:10 +03:00
Alibek Omarov
e274c62cfc
ref: gl: use TextureFilteringEnabled to decide whether texture will have nearest filtering or linear
2024-01-29 05:44:14 +03:00
Alibek Omarov
a28d45fdb2
engine: console: fix TF_NEAREST missing from quake fixed font
2024-01-29 05:42:22 +03:00
Alibek Omarov
6ca5f7c6fb
engine: client: request if font texture has nearest filtering from the renderer
2024-01-29 05:41:16 +03:00
Alibek Omarov
af316bff14
engine: client: add hud_scale_minimal_width to limit scaling factor and potentially avoid unsupported hud sprites resolutions
2024-01-29 04:58:07 +03:00
Alibek Omarov
c8945caefc
engine: net_buffer: remove unused MSG_SeekToByte
2024-01-28 20:01:29 +03:00
Alibek Omarov
8c61a2f021
engine: server: cleanup server.h header from unused functions prototypes
2024-01-28 11:35:53 +03:00
Alibek Omarov
0b24810927
engine: client: clean up client.h from unused function prototypes, or move them to appropriate C file
2024-01-28 11:17:06 +03:00
Alibek Omarov
b3d8fb03bf
engine: client: add generic handler for simple types of screenshots commands
2024-01-28 10:43:37 +03:00
Alibek Omarov
02c5890c2f
ref: soft: cleanup after RefAPI changes, remove unused functions
2024-01-28 10:00:51 +03:00
Alibek Omarov
0579e40857
engine: server: remove unused DumpHashString function
2024-01-28 10:00:51 +03:00
Alibek Omarov
c77f290bc6
engine: remove Netsplit_SendLong, as we're not planning to support old protocol on server side
2024-01-28 10:00:51 +03:00
Alibek Omarov
7bf9407177
ref: gl: remove R_TextureRandomTiling, it's handled by R_TextureAnimation (random tiling as a feature still broken)
2024-01-28 10:00:51 +03:00
Alibek Omarov
b41fe076ae
engine: server: exclude expired IP filters from check
2024-01-28 10:00:51 +03:00
Alibek Omarov
a7c422fde6
engine: platform: make Platform_SetTimer static inline to not fix unused-function
2024-01-28 10:00:51 +03:00
Alibek Omarov
568a394a40
wscript: enable -Wunused-functions
2024-01-28 10:00:51 +03:00
Alibek Omarov
2b6a550405
engine: clean up common.h header from unused function prototypes, or move them to appropriate header or C file
2024-01-28 10:00:17 +03:00
Alibek Omarov
7200f0da7e
3rdparty: gl-wes-v2: update
2024-01-28 09:55:18 +03:00
Alibek Omarov
d3c3c26618
ref: gl: vgl_shim: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
7152393089
ref: soft: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
661e60720d
ref: gl: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
bf959da7ff
engine: libmpg: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
75d476f9df
engine: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
b077822f4d
filesystem: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
6d3f188675
public: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
Alibek Omarov
0231f5e8ac
wscript: warn about missing-prototypes by default for C
2024-01-28 09:55:18 +03:00
Alibek Omarov
901b35d4b1
ref: soft: rework @SNMetamorph's fix for avoiding crash when no world is set (like Customize menu with enabled 3D view)
2024-01-27 17:31:34 +03:00
Alibek Omarov
eaafd0ff13
ref: gl: rework @SNMetamorph's fix for avoiding crash when no world is set (like Customize menu with enabled 3D view)
2024-01-27 17:31:26 +03:00
Alibek Omarov
963d9b8f2a
ref: soft: remove useless R_CountDynamicLights function
2024-01-27 17:16:01 +03:00
Alibek Omarov
5696c9c96a
ref: gl: remove useless R_CountDynamicLights function
2024-01-27 17:15:57 +03:00
Alibek Omarov
862b9e68be
engine: server: fix possible null pointer dereference
2024-01-25 16:21:55 +03:00
Alibek Omarov
2f2890cd11
engine: client: use PARM_TEX_FILTERING to figure out whether we should apply half-texel trick to HUD textures when scaling
2024-01-25 05:50:11 +03:00
Alibek Omarov
482aa840e7
ref: soft: add PARM_TEX_FILTERING handler (stub)
2024-01-25 05:47:12 +03:00
Alibek Omarov
4599983c8e
ref: gl: add PARM_TEX_FILTERING handler
2024-01-25 05:46:54 +03:00
Alibek Omarov
11172838f2
engine: ref_api: add PARM_TEX_FILTERING into RefAPI to query if filtering is enabled for selected texture
2024-01-25 05:43:51 +03:00
Alibek Omarov
47bc50b8c6
engine: client: fix taking console color from colors.lst
2024-01-25 04:22:20 +03:00
Alibek Omarov
7c82766a5c
readme: add sourcehut builds badge [skip ci]
2024-01-24 21:10:21 +03:00
Alibek Omarov
5d6cf62405
engine: client: voice: open microphone only after server sends svc_voiceinit to us and shutdown immediately after disconnect
2024-01-24 20:52:21 +03:00
Alibek Omarov
edc08e39ef
common: move FORCEINLINE from port.h to xash3d_types.h, alongside other compiler-specific attributes
2024-01-24 20:51:34 +03:00
Alibek Omarov
a9846e765d
waf: upgrade to latest waifu
2024-01-23 21:34:49 +03:00
Alibek Omarov
aa54309d5c
engine: wscript: fix pthreads check by explicitly checking it in C mode
2024-01-23 21:23:23 +03:00
Alibek Omarov
443317bedf
wscript: fix RPATH under OpenBSD
2024-01-23 21:03:10 +03:00
Alibek Omarov
ffd320507f
ci: enable builds.sr.ht
2024-01-23 20:42:09 +03:00
Alibek Omarov
60df08c11c
engine: crashhandler: fix build for NetBSD AMD64
2024-01-23 20:25:17 +03:00
Alibek Omarov
7d464df107
engine: platform: linux: define portability macro for sigevent (oh, glibc...)
2024-01-23 19:22:56 +03:00
Alibek Omarov
296f89acf9
engine: platform: linux: fix build with musl (and probably other libcs) using portability macro
2024-01-23 18:57:33 +03:00
mittorn
5f31417bae
ref_gl: fix missing vboarray split transition on some maps
2024-01-19 21:28:49 +03:00
Alibek Omarov
150d98bd15
ref: gl: fix stuck single lightmap texture object when using VBO after updating lightmap
2024-01-19 09:57:11 +03:00
Alibek Omarov
f162fbd806
ref: gl: fix fog with enabled overbrights and no vbo
2024-01-19 06:19:42 +03:00
Alibek Omarov
7d8ea61ac2
ref: gl: move glBegin/glEnd outside of the loop in CL_DrawTracers
2024-01-17 02:46:38 +03:00
Alibek Omarov
40041e30eb
engine: console: add cvar con_oldfont to toggle usage between fonts.wad fonts or gfx.wad legacy font
2024-01-15 18:11:08 +03:00
Alibek Omarov
a247e139bf
engine: fix dedicated build
2024-01-15 02:08:30 +03:00
Alibek Omarov
00b2ca7f5a
ref: gl: remove duplicates from gl_export.h
2024-01-15 02:08:30 +03:00
Alibek Omarov
e58007aab3
wscript: disable /showIncludes based msvcdeps for now, it causes issues with non-English locales
2024-01-14 13:36:49 +03:00
Alibek Omarov
dca862a838
engine: host: execute valid rc script if game was started from -game parameter using default launcher
2024-01-14 10:58:27 +03:00
Alibek Omarov
7e71e20714
engine: client: add cvar scr_drawversion to hide engine version in screenshots (sorry, Uncle Mike!)
2024-01-14 10:58:04 +03:00
Alibek Omarov
cee6862924
engine: client: try to prepend media/ if audio stream couldn't be opened
2024-01-14 10:58:04 +03:00
Alibek Omarov
a8cc68f6b9
ref: gl: fix ripple water is being blurry with gl_texture_nearest after startup
2024-01-14 10:56:58 +03:00
Alibek Omarov
2af0adb629
mainui: update
2024-01-13 05:51:39 +03:00
Alibek Omarov
628ac376ed
engine: client: s_dsp: refactoring from hldsp
2024-01-13 05:29:43 +03:00
Alibek Omarov
251e6ac1dc
engine: client: s_dsp: use Cvar_DirectSet
2024-01-13 05:29:12 +03:00
Alibek Omarov
9b6518376c
engine: cvar: add Cvar_DirectSetValue function
2024-01-13 05:18:30 +03:00
Alibek Omarov
6c3fee7f27
engine: cvar: move common checks if cvar can be updated into generic function
2024-01-13 05:18:09 +03:00
Alibek Omarov
c111a59639
github: set 32-bit windows builds to vs2019, upgrade SDL2
2024-01-13 05:05:54 +03:00
Alibek Omarov
ba9bb70924
common: remove unused gamma definitions
2024-01-13 05:03:58 +03:00
Alibek Omarov
6acc97b0ef
engine: client: restore my copyright on my DSP implementation from old engine branch
2024-01-13 00:56:03 +03:00
Alibek Omarov
cd681d4303
engine: replace anorms.h with compatible header from GPL WinQuake sources
2024-01-12 23:13:22 +03:00
Alibek Omarov
46f30e215c
common: replace netadr.h with compatible definition from GPL Quake-2 sources
2024-01-12 23:09:38 +03:00
Alibek Omarov
2ae038c01c
common: fix broken STATIC_ASSERT macro again
2024-01-12 23:00:56 +03:00
Alibek Omarov
aaa9fbd50f
common: replace kbutton.h with compatible defintion from GPL WinQuake sources
2024-01-12 17:20:30 +03:00
Alibek Omarov
51d4716bcb
engine: client: rewrite trimming silence at the beginning and ending of the VOX word from scratch
2024-01-12 03:27:05 +03:00
Alibek Omarov
045caacfee
engine: client: drop skipping random 0.1 second of an ambient sound
2024-01-12 03:27:05 +03:00
Andrey Akhmichin
95a5c670a2
utils: mdldec: res: activities.txt: remove completely useless ACT_VM_* activities.
2024-01-10 14:38:01 +03:00
Andrey Akhmichin
30259e1573
Documentation: opensource-mods.md: update.
2024-01-10 14:37:52 +03:00
Bohdan Shulyar
8b884132b7
ci: fix missing libs on nswitch
2024-01-10 14:37:43 +03:00
Alibek Omarov
266f9a6bc6
engine: client: add support for parsing IPv6 server list
2024-01-09 16:59:06 +03:00
Alibek Omarov
58177d9251
mainui: update
2024-01-09 04:58:11 +03:00
Alibek Omarov
69e801d6b8
engine: fix bug where user stucks after loading map/save while being connected to remote server
2024-01-09 04:16:52 +03:00
Alibek Omarov
388cc3061f
mainui: update
2024-01-09 03:55:28 +03:00
Alibek Omarov
c9d29b3955
ref: gl: fix overbrights with VBO
2024-01-09 03:55:07 +03:00
Alibek Omarov
371025dc8e
engine: dedicated: add TextureToGamma stub for imagelib
2024-01-09 03:55:07 +03:00
Alibek Omarov
cf7a79bff3
ref: gl: particles aren't supposed to care about gamma
2024-01-09 03:55:07 +03:00
Alibek Omarov
55dfa1bf44
ref: soft: reorder applying light gamma
2024-01-09 03:55:07 +03:00
Alibek Omarov
519c8a032a
ref: soft: adapt studio renderer to new gamma implementation
2024-01-09 03:55:07 +03:00
Alibek Omarov
c15822f375
ref: soft: don't depend on light gamma in recursive light point
2024-01-09 03:55:07 +03:00
Alibek Omarov
0e91deec19
ref: soft: remove unused scale (remnants of r_lightmap_modulate), use integer values for non-interpolated lightstyles
2024-01-09 03:55:07 +03:00
Alibek Omarov
87b204c661
ref: gl: remove unused scale (remnants of r_lightmap_modulate), use integer values for non-interpolated lightstyles
2024-01-09 03:55:07 +03:00
Alibek Omarov
caefa0b7b9
engine: remove cvar r_lighting_modulate, it's some unindentifiable legacy
2024-01-09 03:55:07 +03:00
Alibek Omarov
a311923d4e
engine: imagelib: apply texgamma to palette (ideally should be applied only to BSP/WAD textures)
2024-01-09 03:55:07 +03:00
Alibek Omarov
ee4cb39f3e
ref: gl: adapt alias renderer to new gamma implementation (untested)
2024-01-09 03:55:07 +03:00
Alibek Omarov
18436a70eb
ref: gl: support overbrights, change the gamma applying order closer to the original renderer
2024-01-09 03:55:00 +03:00
Alibek Omarov
8298053e6a
ref: gl: don't depend on lightgamma in recursive light point
2024-01-09 03:33:39 +03:00
Alibek Omarov
9304a0041d
ref: gl: support kRenderFxLightMultiplier
...
* add undocumented kRenderFxLightMultiplier to const.h
2024-01-09 03:33:39 +03:00
Alibek Omarov
64f92003fa
ref: gl: adapt studio lightning to new gamma
...
* more accurate SHADE_LAMBERT value (extracted from v_lambert1 global variable)
2024-01-09 03:33:39 +03:00
Alibek Omarov
be0a241244
engine: client: add tests for new gamma implementation
2024-01-09 03:33:39 +03:00
Alibek Omarov
df6546d5b1
engine: client: add new gamma implementation
...
* immediately expose it in RefAPI. Bump RefAPI to version 7.
* remove VID_StartupGamma, it's not used anymore
* remove stub lightgamma and direct cvars
* add a temporary check for v_direct and v_lightgamma default values
2024-01-09 03:33:24 +03:00
Alibek Omarov
a0c31120d9
ref: add R_GammaChanged function that engine calls on every gamma change
2024-01-07 03:35:23 +03:00
Alibek Omarov
c0757bd84c
ref: gl: remove vid_gamma/vid_brightness changed cvar value check
2024-01-07 03:35:23 +03:00
Alibek Omarov
9fa32a9cf4
ref: soft: remove vid_gamma/vid_brightness changed cvar value check
2024-01-07 03:35:23 +03:00
Ruslan Piasetskyi
15bc09b06b
engine: platform: linux: Add gettid definition for old systems
...
The gettid() library support was added in glibc 2.30. Earlier glibc
versions did not provide a wrapper for this system call, necessitating
the use of syscall(2).
Also, put _GNU_SOURCE definition in the guard to avoid the warning:
../engine/platform/linux/sys_linux.c:16: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE
<command-line>: note: this is the location of the previous definition
2024-01-06 13:43:35 +03:00
Alibek Omarov
315aea1991
filesystem: support mods liblist.gam/gameinfo.txt with relative paths to game libs
2024-01-05 04:34:33 +03:00
Alibek Omarov
380422a6dc
engine: client: refactor CL_AddEntityEffects, bring everything to GoldSrc behavior
...
Some effects are meant only for playeres, others only for normal entities
2024-01-05 04:10:45 +03:00
Alibek Omarov
be26ecf1c9
engine: client: don't spawn model effects for players, like GoldSrc
2024-01-05 04:09:20 +03:00
Alibek Omarov
d2bbe9dfd2
engine: client: don't spawn multiple model effects
2024-01-05 04:08:52 +03:00
Alibek Omarov
9c929c1405
engine: client: don't spawn particles if time is stopped
2024-01-05 02:59:47 +03:00
Alibek Omarov
9551240680
engine: host: fix -Werror=parentheses
2024-01-05 02:35:16 +03:00
Alibek Omarov
6605d0456c
engine: host: force ENGINE_STEP_POSHISTORY_LERP for Counter-Strike and Condition Zero
2024-01-05 02:27:37 +03:00
Alibek Omarov
99e8f7b486
engine: host: fix warning about incompatible features bits
2024-01-05 02:26:25 +03:00
Alibek Omarov
5ac8f63741
ref: soft: replace skin texture num bound by a proper check, fixes wrong skin on flags in Adrenaline Gamer
2024-01-05 02:25:18 +03:00
Alibek Omarov
9d3949a948
ref: gl: replace skin texture num bound by a proper check, fixes wrong skin on flags in Adrenaline Gamer
2024-01-05 02:25:10 +03:00
Alibek Omarov
5bd1dd34b3
ci: disable freebsd-12 task
2024-01-04 22:15:08 +03:00
Alibek Omarov
6862b14e59
ref: soft: only draw MOVETYPE_FOLLOW studio model if it's parent is visible
2024-01-04 22:02:14 +03:00
Alibek Omarov
dc1d65f621
ref: gl: only draw MOVETYPE_FOLLOW studio model if it's parent is visible
2024-01-04 22:02:09 +03:00
Alibek Omarov
fba3a2b67f
ref: soft: return NULL in GetEntityByIndex and ModelHandle
2024-01-04 21:47:03 +03:00
Alibek Omarov
b946c8455d
ref: gl: return NULL in GetEntityByIndex and ModelHandle just in case
2024-01-04 21:46:44 +03:00
Alibek Omarov
c56e876043
engine: client: don't reset runfuncs for demoplayback
2024-01-04 06:11:15 +03:00
Alibek Omarov
9773d11464
engine: client: disable MOVETYPE_TOSS interpolation in old protocol, but keep animtime hack for them
2024-01-04 05:53:04 +03:00
Alibek Omarov
3c28b11754
engine: client: cl_demo: fix usercmd in demo playback
...
I have no explanation why this works but it kinda does?
2024-01-04 05:48:45 +03:00
Alibek Omarov
f2584dcb9d
engine: host: better engine features print
2024-01-04 05:31:01 +03:00
Alibek Omarov
ce73838f1b
engine: add a function that validates requested features bits
2024-01-04 05:30:18 +03:00
Alibek Omarov
49f972a7c9
engine: add new engine feature ENGINE_STEP_POSHISTORY_LERP that enables CStrike's MOVETYPE_STEP lerp based on position history
2024-01-04 05:05:03 +03:00
Alibek Omarov
1ae01d89de
engine: client: correctly support ENGINE_COMPUTE_STUDIO_LERP feature flag without STUDIO_INTERPOLATION_FIX enabled
2024-01-04 03:35:16 +03:00
Alibek Omarov
8e54e18c8f
engine: client: disable STUDIO_INTERPOLATION_FIX
2024-01-04 03:32:59 +03:00
Alibek Omarov
18136e5320
engine: client: implement HL25's cl_fixmodelinterpolationartifacts cvar
2024-01-04 03:32:36 +03:00
Alibek Omarov
a29f1899d3
engine: client: remove unused extrapolate variable in CL_PureOrigin
2024-01-03 19:06:46 +03:00
Alibek Omarov
0f804ffc30
engine: client: use extra precision for interpolation
2024-01-03 19:02:09 +03:00
Alibek Omarov
620a4b4894
engine: client: wrong check order, fix previous commit
2023-12-31 06:35:38 +03:00
Alibek Omarov
4cf87c2c23
engine: client: prevent memory corruption on old protocol when server didn't sent local player info in delta at spawn
2023-12-31 06:24:53 +03:00
Alibek Omarov
f031c31b77
engine: client: try another workaround for backwards animtime
2023-12-31 06:12:00 +03:00
Alibek Omarov
c2447d8634
engine: client: stupid hack to allow monsters interpolation on a very specific old protocol engine mod
2023-12-31 05:03:10 +03:00
Alibek Omarov
ae9c1d9f18
engine: remove single-binary option. Now platforms that don't need external launcher, shall set env.DISABLE_LAUNCHER
2023-12-30 23:45:17 +03:00
Alibek Omarov
0132eb6e44
ref: gl: restore usage of FWORLD_CUSTOM_SKYBOX flag, do direct checks instead of PARM check, remove unused tr.fCustomSkybox
2023-12-30 16:55:31 +03:00
Alibek Omarov
f12df54226
ref: soft: remove unused tr.fCustomSkybox
2023-12-30 16:54:56 +03:00
Alibek Omarov
d971055927
engine: move PARM_SKY_SPHERE handling out of engine to renderer, after all renderers might or might not support sky spheres
2023-12-30 16:54:37 +03:00
Alibek Omarov
6059538d77
ref: gl: use direct host.features instead of PARM_FEATURES
2023-12-30 16:41:51 +03:00
Alibek Omarov
17deba0606
ref: gl: use direct cl.paused instead of PARM_GAMEPAUSED
2023-12-30 16:41:39 +03:00
Alibek Omarov
82a2d272ad
ref: gl: use direct host.features instead of PARM_FEATURES
2023-12-30 16:41:22 +03:00
Alibek Omarov
707a9228e1
engine: ref_api: draft RefAPI 6.
...
Remove timings from ref_globals_t struct
Remove R_UpdateRefState accordingly.
Remove unused PARMs
Remove reduntant functions
2023-12-30 16:36:13 +03:00
Alibek Omarov
59ddfb787f
ref: soft: remove GetPredictedOrigin() call
2023-12-30 16:36:13 +03:00
Alibek Omarov
acdf1da995
ref: soft: remove GetMoveVars() call
2023-12-30 16:36:13 +03:00
Alibek Omarov
f1cdab91eb
ref: soft: remove usage of PARM_VIEWENT_INDEX and PARM_PLAYER_INDEX
2023-12-30 16:36:13 +03:00
Alibek Omarov
05d5abe4db
ref: soft: remove usage of PARM_MAX_CLIENTS
2023-12-30 16:36:13 +03:00
Alibek Omarov
44e017a410
ref: soft: convert to usage of ref_host_t to get real engine time
2023-12-30 16:36:13 +03:00
Alibek Omarov
64f3884f23
ref: soft: convert to usage of ref_client_t to get client time
2023-12-30 16:36:13 +03:00
Alibek Omarov
6386782674
ref: soft: acquire engine pointers
2023-12-30 16:36:13 +03:00
Alibek Omarov
8084687e50
ref: gl: remove GetPredictedOrigin call
2023-12-30 16:36:13 +03:00
Alibek Omarov
6c16de55c0
ref: gl: remove GetMoveVars() call
2023-12-30 16:36:13 +03:00
Alibek Omarov
537237ef62
ref: gl: remove usage of PARM_VIEWENT_INDEX and PARM_PLAYER_INDEX
2023-12-30 16:36:13 +03:00
Alibek Omarov
4dfc3f34cb
ref: gl: remove usage of PARM_MAX_CLIENTS
2023-12-30 16:36:13 +03:00
Alibek Omarov
d22bbb4213
ref: gl: remove usage of PARM_WORLD_VERSION
2023-12-30 16:36:13 +03:00
Alibek Omarov
0e3b14e9a5
ref: gl: remove usage of PARM_NUMMODELS
2023-12-30 16:36:13 +03:00
Alibek Omarov
afb0540aa3
ref: gl: convert to usage of ref_host_t to get real engine time
2023-12-30 16:36:13 +03:00
Alibek Omarov
4d802d8901
ref: gl: convert to usage of ref_client_t to get client time
2023-12-30 16:36:13 +03:00
Alibek Omarov
6a4bf4965f
ref: gl: acquire engine pointers
2023-12-30 16:36:13 +03:00
Alibek Omarov
a3c9538d12
engine: client: add support for new PARMs
...
Reorganize internal engine structs, carefully check structs compatibility before casting types
2023-12-30 16:36:13 +03:00
Alibek Omarov
632264809f
engine: ref_api: add PARMs to get pointers to engine data like cl, host, world, etc. Partially expose cl and host.
2023-12-30 16:36:13 +03:00
Alibek Omarov
bcfabbe802
engine: do not save configs when we closing because of the errors
2023-12-28 22:42:12 +03:00
Alibek Omarov
c244cfc937
engine: do not save configs when we closing because of the errors
2023-12-28 22:40:10 +03:00
Andrey Akhmichin
520fc33394
utils: mdldec: fix wrong conditions.
2023-12-28 20:36:39 +03:00
Alibek Omarov
f705a7cd26
common: xash3d_types: another attempt to properly check static asserts availability
2023-12-28 17:32:07 +03:00
Alibek Omarov
65bfff69d0
engine: wscript: always require librt on Linux since we need it for Platform_SetTimer implementation
2023-12-27 04:14:19 +03:00
Alibek Omarov
9d8ba03f5e
common: xash3d_types: fix static_assert macro
2023-12-27 03:10:41 +03:00
Alibek Omarov
778b8ede58
engine: platform: linux: add forgotten _GNU_SOURCE at the top of the file to enable gettid extension
2023-12-27 03:10:20 +03:00
Alibek Omarov
f8a1a2ed71
engine: platform: linux: add missing math.h include
2023-12-26 18:56:30 +03:00
mittorn
b4a7c266b5
platform/linux: implement debug timers and cl_maxframetime to catch very long frames on debugger
2023-12-25 14:22:20 +03:00
mittorn
a488f79852
ref_gl: workaround freezes on adreno with vbo on dlighted decals
2023-12-25 14:21:21 +03:00
Alibek Omarov
b290046503
ref: gl: remove hidden parm -gl-allow-vbo-dontuse needed to activate VBO renderer
2023-12-19 17:55:10 +03:00
Dmitry Toroshchin
e8409cee8b
ref_gl: vbo: do not do zero-length drawcalls (fix glError on vivante)
2023-12-19 17:55:10 +03:00
mittorn
1d4d355b38
ref_gl: vbo: fix binding garbade texture after changelevel, fix wpoly counter
2023-12-19 17:55:10 +03:00
mittorn
dfe12535a5
ref_gl: vbo: disable R_TextureRandomTiling implementation until will be fixed
2023-12-19 17:55:10 +03:00
mittorn
74946100f1
ref_gl: fix not restoring static lightmap after decals
2023-12-19 17:55:10 +03:00
mittorn
9a1717915c
ref_gl: vbo: apply a1batross's patch for uint index switch
2023-12-19 17:55:10 +03:00
mittorn
3691eb6e48
ref_gl: vbo: fix incorrect lightmap index, optimize loading maps with very big lightmap count, fix clouds drawing after VBO
2023-12-19 17:55:10 +03:00
mittorn
3bb7471fd3
ref_gl: vbo: fix lightmap0 processing, remove ilightmap
2023-12-19 17:55:10 +03:00
mittorn
74e09ddb12
ref_gl: change state management in vbo renderer
2023-12-19 17:55:10 +03:00
mittorn
6b73d056b2
ref_gl: vbo dlights refactiring
2023-12-19 17:55:10 +03:00
mittorn
3e7847551a
ref_gl: add ability to skip uploading unused data (disabled)
2023-12-19 17:55:10 +03:00
mittorn
91d92935fa
ref_gl: try avoid gpu locking on dlights in vbo renderer
2023-12-19 17:55:10 +03:00
mittorn
eff033298a
ref_gl: disable singlepass detail renderer, use correct fog color multipliers in VBO
2023-12-19 17:55:10 +03:00
mittorn
3a8f4961bc
ref_gl: fix rarely broken texturechain on some big maps
2023-12-19 17:55:10 +03:00
mittorn
b81f94518a
ref_gl: fix out-by-one when all lightstyles are used. Also fix broken in this case in vbo after previous fix
2023-12-19 17:55:10 +03:00
Alibek Omarov
96f7f5457d
engine: print all supported and enabled features
2023-12-17 17:51:15 +03:00
Alibek Omarov
498ec6b4f1
engine: client: print enabled features after server connect if it's not a local game
2023-12-17 17:44:05 +03:00
Alibek Omarov
607e62a1ae
engine: client: sanitize legacy protocol supported engine features flags
...
Do not enable what can't be enabled in current protocol.
2023-12-17 17:44:05 +03:00
Alibek Omarov
d41a80bc2c
engine: add mask to sanitize possible engine features bits
2023-12-17 17:43:51 +03:00
Alibek Omarov
643bec4071
engine: client: set max FPS when recording with fps_max 0
2023-12-16 22:02:26 +03:00
Alibek Omarov
a7e84230c3
ref: gl: use world version to enable large lightmaps for BSP2 automatically
2023-12-15 07:38:25 +03:00
Alibek Omarov
c96cf7e22d
engine: expose world version through RefAPI
2023-12-15 07:38:07 +03:00
Alibek Omarov
46c61660cf
engine: expose world BSP version through world global structure
2023-12-15 07:37:40 +03:00
Alibek Omarov
f6fecce52b
wscript: do not recurse into ref_soft when BSP2 is enabled
2023-12-15 07:29:38 +03:00
Alibek Omarov
54a5947a3c
engine: remove MSGBOX macro
2023-12-15 06:40:04 +03:00
Andrey Akhmichin
521bc675a2
utils: mdldec: smd.c: simplify proper bone rotation code.
2023-12-14 14:55:40 +03:00
Andrey Akhmichin
845cee2578
utils: mdldec: smd.c: prevent division by zero.
2023-12-14 14:54:49 +03:00
Alibek Omarov
93ceb0e4ed
engine: client: split the sprites indices only when loading new sprite. Scan the whole array when searching.
...
Fixes incorrect sprite loading in XDM
2023-12-14 03:12:47 +03:00
Alibek Omarov
13aab4e59c
engine: server: fix off-by-one error in Voice_Set/GetClientListening
2023-12-13 14:56:55 +03:00
Alibek Omarov
36c2f9e9f2
engine: refactor rcon redirect, don't make it depend on global object
2023-12-13 14:56:27 +03:00
Alibek Omarov
514da0ffa9
engine: host: do not depend on Sys_Sleep accuracy, instead allocate a timewindow that decrases with each skipped frame
2023-12-11 07:12:44 +03:00
Alibek Omarov
37b8d5da79
mainui: update
2023-12-11 07:12:30 +03:00
Alibek Omarov
b5d602d953
wscript: enable -Werror=alloc-size and -Walloc-zero
2023-12-11 07:11:40 +03:00
Alibek Omarov
c926fee13c
filesystem: report an error when opening file was unsuccessful, with the exception for non-existent files
2023-12-11 07:10:51 +03:00
Alibek Omarov
a675806c91
engine: imagelib: img_ktx2: don't allow to load images with no mip levels
2023-12-11 07:06:12 +03:00
Alibek Omarov
683c4874f8
common: add ALLOC_CHECK macro that enables attribute alloc_size on GCC that allows to prevent suspicious allocation sizes
2023-12-09 19:00:25 +03:00
Alibek Omarov
20ced857b4
engine: client: use physents array when tracing physents =/
2023-12-09 16:45:35 +03:00
Alibek Omarov
c6c86f9665
public: make hash case-insensitive again
2023-12-07 06:46:49 +03:00
Alibek Omarov
1e0107944f
engine: make sys_timescale non-cheat, like host_framerate
2023-12-07 00:50:56 +03:00
Alibek Omarov
21797f9ac8
ref: gl: fix solor to color
2023-12-06 05:22:02 +03:00
mittorn
c800b34cd4
ref_api: add R_Flush method
2023-12-06 04:13:27 +03:00
Alibek Omarov
1612e2d669
engine: client: GetRefAPI now must return REF_API_VERSION to prevent possible issue when ref library wasn't recompiled on version bump
2023-12-06 04:13:27 +03:00
Alibek Omarov
26d229c8ca
engine, ref: RefAPI 5. Simplify remap calls
2023-12-06 04:13:03 +03:00
Alibek Omarov
9c66e86be1
engine, ref: RefAPI 5. Remove unused calls
2023-12-06 04:13:03 +03:00
Alibek Omarov
7e9f87de2d
engine, ref: eliminate calls to global arrays, instead store array pointers at renderer side
2023-12-06 04:13:03 +03:00
Alibek Omarov
67737446ac
mainui: update
2023-12-06 04:12:33 +03:00
Andrey Akhmichin
dabed4f9eb
utils: mdldec: add separate directories creation for sequences and textures.
2023-12-05 11:18:47 +03:00
Andrey Akhmichin
f9b6389248
utils: mdldec: create full destination path into "Kratisto's mdldec" maner.
2023-12-05 11:18:47 +03:00
Alibek Omarov
9ec1e259b4
engine: platform: sdl: unused variable cleanup
2023-12-05 10:48:47 +03:00
Alibek Omarov
0c2d480d89
engine: client: unused variables cleanup
2023-12-05 10:47:55 +03:00
Alibek Omarov
350d8ccb7b
engine: common: cvar: unused variables cleanup
2023-12-05 10:46:26 +03:00
Alibek Omarov
0c512d0431
engine: server: unused variables cleanup
2023-12-05 10:46:03 +03:00
Alibek Omarov
3bf55c9ea4
filesystem: zip: hide CRC checks under common macro
2023-12-04 03:01:11 +03:00
Alibek Omarov
9994c57796
filesystem: fix updating gameinfo.txt from rodir
2023-12-04 03:00:51 +03:00
Alibek Omarov
3f724b6b17
filesystem: remove some really unused variables
2023-12-04 03:00:29 +03:00
Alibek Omarov
255773b4de
ref: gl: remove useless calls to glGetString if we're running under GL4ES
2023-12-04 02:53:51 +03:00
Alibek Omarov
5b73a788da
ref: gl: disable unused variable warning for GL functions defintions
2023-12-04 02:53:27 +03:00
Alibek Omarov
748b06a00e
wscript: warn about unused variables
2023-12-04 02:53:07 +03:00
Alibek Omarov
273bccdc9a
engine: nswitch: fix compiling by removing stdc++ from SDL2 dependencies as we link it later ( #1519 )
2023-12-02 20:25:51 +03:00
Alibek Omarov
f0a2362da3
engine: wscript: another try, link nswitch port using gcc and not g++
2023-12-02 19:29:30 +03:00
Alibek Omarov
be8ade23e8
engine: wscript: add -nostdlib++ for nswitch so we avoid implicit linking to standard C++ library (we link it explicitly ourselves)
2023-12-02 19:21:44 +03:00
Alibek Omarov
6814908d80
scripts: gha: enable verbose build for nswitch port
2023-12-02 19:08:34 +03:00
Alibek Omarov
08dbfc45d3
ref: gl: refactor getting edge position, texture and lightmap coords
2023-12-02 18:02:18 +03:00
Alibek Omarov
89f9b3df68
public: make simple bbox functions inline
2023-12-02 18:01:57 +03:00
Alibek Omarov
40c9a2fb82
engine: make Mod_SampleSizeForFace accept const surface
2023-12-02 18:01:57 +03:00
Andrey Akhmichin
a34c22fb10
engine: client: add support for "mp3 playfile/loopfile" commands.
2023-12-02 01:10:38 +03:00
Alibek Omarov
e161ff0f7a
mainui: update
2023-11-27 19:25:36 +03:00
Alibek Omarov
fee42eab5a
mainui: update
2023-11-27 19:05:48 +03:00
Alibek Omarov
2d2e03f235
engine: server: reset edict in ParseSaveTables like GoldSrc does which fixes messed up entities in mods that have advanced save-restore system (thanks to vasiavasiavasia95 for figuring out this bug)
2023-11-27 18:42:50 +03:00
Alibek Omarov
4c3c3529e9
engine: network: rename length variable to something that makes sense. Add usage line to http_addcustomserver
2023-11-26 23:20:46 +03:00
Alibek Omarov
7051b844ff
engine: network: set HTTP buffer to 8kb on all systems, without depending on random constant like BUFSIZ
2023-11-26 23:19:49 +03:00
Alibek Omarov
68377435c8
engine: server: remove legacy light -> light_level entity key rewrite
2023-11-26 02:23:52 +03:00
Henry Ford
652b1804a8
wscript: make libdl optional for systems that include it in libc
2023-11-25 14:29:52 +03:00
Henry Ford
e7e1677786
engine: common: comply with C89 in OpenBSD wai_getExecutablePath
2023-11-25 14:29:52 +03:00
Henry Ford
f330aac113
engine: common: dont inlcude ucontext.h on OpenBSD where it doesnt exist
2023-11-25 14:29:52 +03:00
Henry Ford
dbdd330cf7
wscript: try to find alloca in stdlib.h on platforms without alloca.h or malloc.h
2023-11-25 14:29:52 +03:00
Velaron
2e39432e04
Support hd background
2023-11-23 15:03:08 +02:00
Andrey Akhmichin
c448c7b0b1
utils: mdldec: avoid double ".smd" extension output.
2023-11-22 11:05:34 +03:00
Andrey Akhmichin
8d7b9c2f01
utils: mdldec: always write trailing slash for non-empty destination path.
2023-11-22 11:03:28 +03:00
Alibek Omarov
b6a235445a
vgui_support: update submodule
2023-11-22 11:02:25 +03:00
Alibek Omarov
9fcd4baa87
engine: client: gameui: expose animated_title and hd_background flags to main menu API
2023-11-22 11:01:18 +03:00
Alibek Omarov
fb0102eb8e
filesystem: add support for two new liblist.gam keys: animated_title and hd_background
2023-11-22 11:01:18 +03:00
Alibek Omarov
9c1afaa372
filesystem: fix noskills being written as nomodels in gameinfo.txt
2023-11-22 11:01:18 +03:00
Alibek Omarov
1d1a6badb5
filesystem: VFileSystem009: HL25 compatibility (one single new method)
2023-11-22 11:01:18 +03:00
Andrey Akhmichin
2d41c9cb15
utils: mdldec: texture.c: add Targa image format output support.
2023-11-22 10:56:57 +03:00
Alibek Omarov
722cbe1f02
filesystem: forgot to add defaults.h include
2023-11-20 18:52:05 +03:00
Alibek Omarov
8ac2c241c4
mainui: update
2023-11-20 17:33:40 +03:00
Alibek Omarov
dd11f73951
filesystem: respect DEFAULT_MAX_EDICTS value
2023-11-20 17:32:35 +03:00
Alibek Omarov
a443547d4d
common: defaults: add default macro for default gameinfo max_edicts value
2023-11-20 17:32:19 +03:00
Andrey Akhmichin
7a795edeb5
utils: mdldec: better validation checks.
2023-11-20 00:19:14 +03:00
Andrey Akhmichin
a8cbfb8dda
Documentation: opensource-mods.md: update link to cs16-client.
2023-11-20 00:15:26 +03:00
SNMetamorph
5216cccef4
engine: server: added singleplayer check for userinfo update
2023-11-20 00:14:30 +03:00
SNMetamorph
a87f399e68
engine: client: revert export for pfnSPR_Load and pfnSPR_Frames functions
...
This needed for native support GoldSrc Monitor utility.
2023-11-20 00:14:06 +03:00
Andrey Akhmichin
dd310ab851
ci: upgrade freebsd tasks.
2023-11-20 00:13:42 +03:00
Andrey Akhmichin
16cc0ca0fe
ref: gl: gl2_shim: replace "malloc.h" header with ALLOCA_H macro.
2023-11-20 00:13:04 +03:00
Alibek Omarov
83d26ad233
engine: server: add sv_allow_autoaim cvar
2023-11-20 00:11:10 +03:00
Alibek Omarov
d1f9a8f2db
mainui: updates for HL25
2023-11-19 23:43:46 +03:00
Alibek Omarov
a2e1071808
game_launch: force link libm on Linux to workaround HL25 bug
...
HL25 doesn't link libm probably because of toolchain updates, where
--Wl,--as-needed became the default.
hl_linux is linked to libm which is why they probably didn't noticed this bug.
Workaround until Valve fixes it: https://github.com/ValveSoftware/halflife/issues/3492
2023-11-19 23:43:46 +03:00
Alibek Omarov
0aa8a2891c
engine: client: add gles3compat to renderers list
2023-11-03 17:03:27 +03:00
Alibek Omarov
c0ceab7513
wscript: enable ref_gles3compat for Android
2023-11-03 17:01:47 +03:00
Velaron
5c90e716cb
engine: platform: android: refactoring
2023-11-03 16:40:06 +03:00
Velaron
0073225549
scripts: gha: Android deps and build scripts
2023-11-03 16:36:55 +03:00
Alibek Omarov
d03a64602b
wscript: change defaults for Android
2023-11-03 16:34:21 +03:00
Alibek Omarov
d67a4234cc
filesystem: android: simplify code, get getAssets method only once, remove unneeded casts and memsets (where Mem_Calloc is used)
2023-11-03 16:29:57 +03:00
Alibek Omarov
0d37244490
filesystem: add missing const to 2nd argument of stringlistappend
2023-11-03 16:23:52 +03:00
Velaron
6426919cb5
filesystem: add Android assets support
2023-11-03 16:23:03 +03:00
Alibek Omarov
0a0d63663a
filesystem: link with libandroid
2023-11-03 16:22:59 +03:00
Alibek Omarov
71b06801ef
engine: platform: android: remove dead code
2023-11-03 14:48:28 +03:00
Alibek Omarov
cfc7b35927
engine: client: don't leave the user without mouse cursor if they enabled m_ignore
2023-11-03 14:48:28 +03:00
Alibek Omarov
76564958d1
engine: host: hide -nativeegl for Android SDL builds
2023-11-03 14:48:28 +03:00
Alibek Omarov
a464c3dd66
scripts: waifulib: compiler_optimizations: rename release build type to humanrights with kept compatibility
2023-11-02 14:33:00 +03:00
Alibek Omarov
bd969f3594
wscript: fix system opus detection, it didn't compile due to nonnull argument
2023-11-01 01:35:39 +03:00
Alibek Omarov
fb87d7c0b3
readme: wording, add icon, add donate.md link [skip ci]
2023-10-31 21:54:23 +03:00
Alibek Omarov
a69fc87940
Documentation: donate: add sponsorship information
2023-10-31 21:54:23 +03:00
Alibek Omarov
e481e1d73e
ref: gl: enable GL waves with r_ripple
2023-10-31 21:52:00 +03:00
Alibek Omarov
6c0eed1b2b
ref: gl: allow viewing water textures in their full glory with enabled r_ripple 2
2023-10-31 21:52:00 +03:00
Alibek Omarov
a6c67fdf9f
ref: gl: upload only part of texture we're using, i.e. 64x64 for 64x64, 128x128 for 128x128
2023-10-31 21:52:00 +03:00
Alibek Omarov
03f838e37e
mainui: update
2023-10-31 21:52:00 +03:00
Alibek Omarov
e21fa4a910
engine: add cvar r_refdll_loaded to indicate currently loaded renderer (for menu options and etc)
2023-10-31 21:52:00 +03:00
Alibek Omarov
46889ed453
ref: gl: libc rand() does better job at randomizing
2023-10-31 21:52:00 +03:00
Alibek Omarov
882fcc152c
ref: gl: always scale down texture to 64x64, like sw.dll does
2023-10-31 21:52:00 +03:00
Alibek Omarov
a41902bd46
engine: mod_bmodel: detect water textures by texture name like LoadSurfaces does
2023-10-31 21:52:00 +03:00
Alibek Omarov
a6af32dafd
ref: gl: connect ripply water to others parts of renderer (init, reset, animation and rendering)
2023-10-31 21:52:00 +03:00
Alibek Omarov
d6dfb83be7
ref: gl: ripply water implementation (bugfixed version from my Quake-2 patches)
2023-10-31 21:52:00 +03:00
Alibek Omarov
597429cf41
engine, filesystem: unify GetNativeObject between all the APIs. Allow getting filesystem APIs through GetNativeObject
2023-10-31 21:25:11 +03:00
Alibek Omarov
5ea074a1fd
engine: fix build issues pointed by @Velaron
2023-10-31 21:01:42 +03:00
Alibek Omarov
29c9393da3
wscript: enable faster builds with gccdeps/msvcdeps
2023-10-31 04:30:27 +03:00
Alibek Omarov
bf6829189e
wscript: move XASH_BUILD_COMMIT definition to libpublic, as this is the only place where it's used, for faster builds
2023-10-31 04:30:27 +03:00
Alibek Omarov
a62a9429c9
engine: launcher: remove Windows code from single binary launcher, as Windows completely supports running from external launcher and don't need dedicated builds
2023-10-31 04:30:22 +03:00
mittorn
f2c080e736
gl2shim: fix broken matrix update when fog attribute enabled (32 bit shift overflow)
2023-10-30 22:34:34 +03:00
Alibek Omarov
ea55e78855
ref: _inline -> static
2023-10-29 23:38:43 +03:00
Alibek Omarov
f7c536b81c
engine: server: allow loading maps from subdirectories as this is used by some Half-Life mods
2023-10-29 02:44:46 +03:00
Alibek Omarov
6c40104c66
public: better fix for ExtractFilePath
2023-10-28 19:31:17 +03:00
Alibek Omarov
4d7d592918
engine: mod_bmodel: completely get rid of global loadmodel pointer
2023-10-28 16:06:00 +03:00
Alibek Omarov
c5e91f299b
engine: mod_studio: reduce dependency on global loadmodel pointer, make it private for brush model loader
2023-10-28 15:38:40 +03:00
Alibek Omarov
cff276db71
engine: client: mod_dbghulls: reduce dependency on global loadmodel pointer
2023-10-28 15:35:20 +03:00
Alibek Omarov
30d1492b93
engine: remove Set/GetCurrentLoadingModel from RefAPI
2023-10-28 15:22:21 +03:00
Alibek Omarov
f07eea5073
engine: server: allow server unloading for Win32 targets until we figure out the issues with MetaMod
2023-10-28 11:14:12 +03:00
Alibek Omarov
fe407fbe00
public: workaround when empty string is passed to COM_ExtractFilePath (should make safe COM_ExtractFilePath)
2023-10-28 11:06:18 +03:00
Alibek Omarov
78bc177e05
engine: server: remove unused host struct field
2023-10-28 11:06:18 +03:00
Alibek Omarov
8fb908e3d4
engine: server: disable SV_UnloadProgs, only call it when shutting down engine
2023-10-28 11:06:18 +03:00
Alibek Omarov
d8b261370a
engine: common: do not probe server to collect cvars for game.cfg (CHECK THIS)
2023-10-28 11:06:18 +03:00
Alibek Omarov
a2c9ac5b1f
engine: client: disable server DLL probe for GameUI, check it's existence instead
2023-10-28 11:06:18 +03:00
Alibek Omarov
7f9025e178
engine: server: sv_pmove: use model name for physent name to avoid crash when classname isn't initialized yet
2023-10-28 11:04:43 +03:00
Alibek Omarov
8647110a10
Revert "engine: wscript: move libasound uselib under linux condition, as the ALSA interface is only relevant for Linux"
...
This reverts commit 48e44f0057 .
2023-10-28 10:10:03 +03:00
Alibek Omarov
48e44f0057
engine: wscript: move libasound uselib under linux condition, as the ALSA interface is only relevant for Linux
2023-10-27 17:03:04 +03:00
Alibek Omarov
e3934af7d1
wscript: always load cmakelists generation tool
2023-10-27 16:57:22 +03:00
Alibek Omarov
a5ee631191
engine: server: sv_game: disable searching closer to server library memory region for Android
2023-10-27 14:31:16 +03:00
Alibek Omarov
ce39255ef0
engine: host: set rootdir on Android SDL port
2023-10-27 14:25:16 +03:00
Alibek Omarov
5aac5d2a52
filesystem: VFileSystem009: add pathid support to RemoveFile method
2023-10-27 08:02:45 +03:00
Alibek Omarov
061b50404d
engine: server: register dummy cvar sv_allow_dlfile for GoldSrc compatibility
2023-10-27 08:02:10 +03:00
Alibek Omarov
279cec5ae9
engine: rename cl/sv_allowdownload for GoldSrc compatibility
2023-10-27 07:25:09 +03:00
Alibek Omarov
83a5648335
filesystem: only allow setting true or false for boolean type keys in gameinfo/liblist.gam
2023-10-27 07:24:42 +03:00
Alibek Omarov
a8fc9a4c5a
waf: update to latest waifu
2023-10-27 07:24:18 +03:00
Alibek Omarov
6f6ddbce28
engine: add argument -timedemo that makes engine run timedemo and exit
2023-10-27 03:49:00 +03:00
Alibek Omarov
4cb425d2bb
engine: console: do not draw console and do not draw notify in timedemo
2023-10-27 03:47:52 +03:00
mittorn
bf5fd40d64
gl2shim: workaround empty rgb5/rgb8 textures
2023-10-26 23:08:02 +03:00
mittorn
6bc613bdb4
ref_gl: force gles2 on non-nanogl until we support gles1 directly
2023-10-26 23:07:39 +03:00
mittorn
a982562658
ref_gl: Fix missing DebugOutput functions on GLES
2023-10-26 23:07:22 +03:00
Alibek Omarov
96a9172e36
engine: platform: sdl: check that we're handling SDL errors according to it's documentation
2023-10-26 23:06:50 +03:00
Velaron
75e0eb8f7d
android: move to gradle
2023-10-26 14:25:18 +03:00
Alibek Omarov
34d7664342
ref: gl: disable TGA flip for detail textures, GoldSrc ignores it, so we will too
2023-10-26 05:12:38 +03:00
Alibek Omarov
b0a79df86f
ref: change r_traceglow to 0, as GoldSrc does
2023-10-26 04:59:01 +03:00
Alibek Omarov
9e107e900c
engine: network: fix async NS resolve
...
If we're currently running NS resolving thread, any request would block.
Co-Authored-by: mittorn <mittorn@sibmail.com >
2023-10-24 18:11:31 +03:00
Alibek Omarov
8f819a2fde
engine: platform: sdl: fix forgotten icon setup call
2023-10-23 00:31:30 +03:00
Alibek Omarov
3251b68df5
ref: gl: more simple search of GL func with alternative name (EXT, OES suffixes or no suffix)
2023-10-22 20:02:14 +03:00
Alibek Omarov
3ac8ad9484
engine: fixup endianness found by -Werror=strict-aliasing in old armv7hf compiler ( d259421111)
2023-10-22 20:02:14 +03:00
Alibek Omarov
b9ca0d4563
engine: common: network: more simple IP address copying from sockaddr to netadr_t and back
2023-10-22 20:02:14 +03:00
mittorn
dcb3da53b0
engine/client: fallback to defaults in touch_reloadconfig if config not exist
2023-10-22 20:02:14 +03:00
mittorn
e68b19ed1a
engine/client: handle touch config aspect ratio, try correctly handle touch aspect on resizeable windows
2023-10-22 20:02:14 +03:00
mittorn
14c7a84482
engine/client: always save touch config if it was resetted manually (helps after writing broken/empty config)
2023-10-22 20:02:14 +03:00
mittorn
c1d1aa6787
ref_gl: rewrite ARB workaround to check EXT/OES names, notify user that function found with different name
2023-10-22 20:02:14 +03:00
mittorn
bee81e9723
engine: Make SDL_GetBasePath error not fatal
2023-10-22 20:02:14 +03:00
mittorn
1bfb6c560a
platform/sdl: add check for missing hint defines
2023-10-22 20:02:14 +03:00
mittorn
24d6f1788a
platform/sdl: workaround ubuntu SDL2 bug preventing resolving any extensions on EGL
2023-10-22 20:02:14 +03:00
mittorn
fb95cc9a97
engine/client: respect m_ignore in mouse client code as grabbing window breaks touch input
2023-10-22 20:02:14 +03:00
mittorn
b949da291e
engine: fix strict aliasing issues found by an old armv7hf compiler
2023-10-22 20:02:14 +03:00
Alibek Omarov
2ecbe5b67e
engine: add testing master server at mentality.rip:27011
2023-10-22 19:39:58 +03:00
Andrey Akhmichin
6634e0487c
Documentation: opensource-mods.md: update.
2023-10-22 19:21:13 +03:00
Alibek Omarov
7d61b5317c
engine: client: add random key to the query, so we can validate master server response
2023-10-22 18:16:42 +03:00
Alibek Omarov
201258dc9e
engine: client: allow passing additional filter through internetservers command arguments
2023-10-22 17:58:28 +03:00
Alibek Omarov
0330569537
engine: client: remove master server queries from NetAPI, they are never used by mods
2023-10-22 17:49:52 +03:00
Alibek Omarov
a1ab84a2ca
mainui: update
2023-10-22 17:38:44 +03:00
Alibek Omarov
2d79f3ef7a
engine: common: sys_con: enable writing build commit, os and arch to the engine.log
2023-10-22 17:37:09 +03:00
Alibek Omarov
99a7e9ad87
wscript: enable -Werror=nonnull
2023-10-22 17:37:09 +03:00
Alibek Omarov
02b8037f33
common: xash3d_types: add NONNULL attribute
2023-10-22 17:37:09 +03:00
Andrey Akhmichin
fc55a685e3
utils: mdldec: small optimizations.
2023-10-22 16:00:01 +03:00
Alibek Omarov
b76a75d6b4
ref: gl: respect gl_texture_nearest value for skyboxes
2023-10-20 18:55:22 +03:00
Ivan Avdeev
a251600c8a
engine: common: imagelib: add KTX2 support ( #1455 )
...
* engine: common: imagelib: add KTX2 support
Adds basic KTX2 support for a few compressed formats. KTX2 essentially
is a Vulkan-centric texture format that supports literally hundreds of
pixel formats.
For now only support for these is added:
- `VK_FORMAT_BC4_UNORM_BLOCK`
- `VK_FORMAT_BC4_SNORM_BLOCK`
- `VK_FORMAT_BC5_UNORM_BLOCK`
- `VK_FORMAT_BC5_SNORM_BLOCK`
- `VK_FORMAT_BC6H_UFLOAT_BLOCK`
- `VK_FORMAT_BC6H_SFLOAT_BLOCK`
- `VK_FORMAT_BC7_UNORM_BLOCK`
- `VK_FORMAT_BC7_SRGB_BLOCK`
Adding more formats is relatively straightforward:
- Copy format definition from `VkFormat` enum in `vulkan_core.h`
- Add a new definition into `pixformat_t` enum.
- Add format size calculation into `Image_ComputeSize()`
While we're at it, also adds a few new formats to DDS:
- BC4_UNORM -- PF_BC4_UNSIGNED
- BC4_SNORM -- PF_BC4_SIGNED
- BC5_UNORM -- PF_BC5_UNSIGNED
- BC5_SNORM -- PF_BC5_SIGNED
- BC7 is expanded into BC7_UNORM and BC7_SRGB
ref_gl and ref_soft code is updated where it made sense. But not tested
really. Support for these formats has been tested with ref_vk.
* address spaces-vs-parentheses formatting where noticed
* parenthesize sizeofs
* move ktx2.h to imagelib as img_ktx2.h; massage it a bit
* use SetBits() instead of |=
* remove stale TODO comments
2023-10-18 10:31:40 +03:00
Andrey Akhmichin
c551aefd77
utils: mdldec: add boneweights support.
2023-10-18 10:12:48 +03:00
Andrey Akhmichin
f343f0da41
utils: mdldec: return different errorcodes on error.
2023-10-16 09:36:26 +03:00
Andrey Akhmichin
6d318a4102
utils: mdldec: smd.c: replace loop with VectorMA.
2023-10-16 09:35:51 +03:00
mittorn
a2b992d865
ref_gl: fix codestyle
2023-10-16 06:47:55 +03:00
mittorn
ddf3f2ffdb
gl2shim: Allow drawing huge QUADS sequences by splitting drawcalls on overflow
2023-10-16 06:47:55 +03:00
Alibek Omarov
2454e87509
ref_gl: gl2shim: refactoring, add missing spaces in parentheses and ternary ops, remove singleline multiple assignments, use bitset macros
2023-10-16 06:47:55 +03:00
mittorn
0dc44249a2
ref_gl: fix XASH_GL_STATIC build
2023-10-16 06:47:55 +03:00
mittorn
150cbfa4de
ref_gl: do not trust REFAPI context version, get it from OpenGL anyway
2023-10-16 06:47:55 +03:00
mittorn
c0b068d81b
ref_gl: add workarounds for detecting extensions correctly on gles1/gles2 without wrapper (swiftshader works now)
2023-10-16 06:47:55 +03:00
mittorn
fbc312b6cf
gl2shim: remove float suffix in shaders, that makes glsl100 work in swiftshader
2023-10-16 06:47:55 +03:00
mittorn
342e0d3e2e
gl2shim: add glsl100 support
2023-10-16 06:47:55 +03:00
mittorn
202b228691
gl2shim: correct allocation/cleanup
2023-10-16 06:47:55 +03:00
mittorn
c9c1286803
ref_gl: fix typo
2023-10-16 06:47:55 +03:00
mittorn
eab98b0eda
gl2shim: dynamic extension checking and autoconfiguration
2023-10-16 06:47:55 +03:00
mittorn
35be80fc21
ref_gl: request gl1.1 if compatibility profile unavailiable, this fixes launching with GL <= 2.0, improve old version extension detection
2023-10-16 06:47:55 +03:00
mittorn
6041bb0a43
platform/sdl: fix safegl
2023-10-16 06:47:55 +03:00
mittorn
c7dd9d6437
ref_gl: init r_temppool before InitExtensions, fix extension string allocation
2023-10-16 06:47:55 +03:00
mittorn
d378878c91
gl2shim: try fix getting program link log
2023-10-16 06:47:55 +03:00
mittorn
4a2f8cafcd
gl2shim: try fix errors in ViZual ZtudiO
2023-10-16 06:47:55 +03:00
mittorn
d254bac16b
ref_gl: integrate gl2shim extensions
2023-10-16 06:47:55 +03:00
mittorn
e23b632ce5
ref_gl: add missing non-arb shader functions
2023-10-16 06:47:55 +03:00
mittorn
2f321b1471
ref_gl: implement minimum inclusion version for GL extensions, implement quering extensions on core profile
2023-10-16 06:47:55 +03:00
mittorn
0265e88d8f
gl2shim: fix wrong color vertex
2023-10-16 06:47:55 +03:00
mittorn
4114d2f24d
gl2shim: more refactoring
2023-10-16 06:47:55 +03:00
mittorn
8124035763
ref_gl: try fix psvita
2023-10-16 06:47:55 +03:00
mittorn
96127c6eb0
gl2shim: make shaders code more portable
2023-10-16 06:47:55 +03:00
mittorn
cf65a39b83
gl2shim: refactoring
2023-10-16 06:47:55 +03:00
mittorn
0341f96b70
gl2shim: use IBO for quads
2023-10-16 06:47:55 +03:00
mittorn
c95d91cfe3
gl2shim: limit begin-end chain length, cycle incremental buffers
2023-10-16 06:47:55 +03:00
mittorn
cbd10c6279
gl2shim: improve shader version handling, fix particle issues
2023-10-16 06:47:55 +03:00
mittorn
5df9e57743
gl2shim: support incremental non-persistent buffers for arrays
2023-10-16 06:47:55 +03:00
mittorn
c178022fb5
gl2shim: persistent incremental streaming buffers, buffer cycling support
2023-10-16 06:47:55 +03:00
mittorn
724c29d711
gl2shim: implement fallback vbo, glDrawRangeElements with non-vbo buffer works now on core contexts
2023-10-16 06:47:55 +03:00
mittorn
74a2dbeb91
gl2shim: batcher experiments (UGLY, DO NOT USE), fix bad shader bindings, Draw QUADS with TRIFAN when possible
2023-10-16 06:47:55 +03:00
mittorn
5d20d24ebc
gl2shim: simple matrix invalidation, do not calculate MVP every drawcall
2023-10-16 06:47:55 +03:00
mittorn
0e2fc277c8
gl2shim: bind dummy VAO on DrawElements implementation on glcore, this generates GL Errors, but renders fine on mesa
2023-10-16 06:47:55 +03:00
mittorn
1505740b73
ref_gl: fix enabling multitexturing on GLES
2023-10-16 06:47:55 +03:00
mittorn
6bad07b39d
gl2shim: support low (<130) shaders
2023-10-16 06:47:55 +03:00
mittorn
f85437dfc5
gl2shim: implement client arrays (not in glcore/vao mode), make studio/world array render work
2023-10-16 06:47:55 +03:00
mittorn
c765261db6
ref_gl: fix late studio cvars registration, enable DrawRangeElements in GLES contexts
2023-10-16 06:47:55 +03:00
mittorn
73087ead2d
ref_gl: fix build with XASH_GL_STATIC, avoid using ARB shader extension on core context
2023-10-16 06:47:55 +03:00
mittorn
8c88e82709
gl2shim: support more GLSL versions
2023-10-16 06:47:55 +03:00
mittorn
40dd6e0234
gl2shim: Cleanup warnings, use APIENTRY declarations, stub unsupported functions
2023-10-16 06:47:55 +03:00
mittorn
eb23b226cc
Workaround core context issues
2023-10-16 06:47:55 +03:00
mittorn
676526a518
ref_gl: fix creating core context, support core in gl2shim by creating dumb array object
2023-10-16 06:47:55 +03:00
mittorn
7e0bd86b65
ref_gl: allow enabling XASH_GLES without wrapper, add ref_gles3compat, wrap gles functions in gl2wrap when XASH_GLES enabled
2023-10-16 06:47:55 +03:00
mittorn
97489635af
gl2shim: limited matrix support
2023-10-16 06:47:55 +03:00
mittorn
a9ea3976a7
ref_gl: introduce gl2_shim based on vgl_shim for future limited core/gles context support (SLOW, still needs ffp for matrix operations)
2023-10-16 06:47:55 +03:00
Alibek Omarov
5501ca927a
engine: client: respect cl_allow_download and cl_download_ingame for legacy servers
2023-10-16 06:47:55 +03:00
Andrey Akhmichin
a19fb82d66
utils: mdldec: smd.c: add leading zero to number in sequence filenames.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
9d032e953f
utils: mdldec: qc.c: avoid to use brackets with conclusions.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
38587151a9
utils: mdldec: qc.c: add missing refence meshes count.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
02d5bab04b
utils: mdldec: qc.c: put every sequence property to separate line.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
d8f3e53b1f
utils: mdldec: qc.c: add missing quotes.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
877ed8a92a
utils: mdldec: qc.c: put every texture name to separate line.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
487a652aa8
utils: mdldec: qc.c: calculate sequence group size.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
64c5d141af
utils: mdldec: qc.c: put controller name instead of index for mouth controller.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
16db8a8008
utils: mdldec: qc.c: put tabs where possible.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
b6b14da102
utils: mdldec: qc.c: reorder output.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
a575605c75
utils: mdldec: qc.c: always put $flags keyword with value.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
a205a3e878
utils: mdldec: qc.c: remove useless backward slashes from output.
2023-10-16 06:18:06 +03:00
Andrey Akhmichin
26ef3e274c
utils: mdldec: smd.c: linear movement loss fix.
2023-10-14 17:38:48 +03:00
Alibek Omarov
33be1b7591
engine: client: let time flow in Xash demos
2023-10-14 15:11:26 +03:00
Alibek Omarov
de19d78571
ref: fix late registration of studio cvars (thanks, @mittorn)
2023-10-14 08:11:25 +03:00
mittorn
287381d5ca
ref_gl: remove complete useless macro, enable VBO under option
2023-10-14 08:04:17 +03:00
Alibek Omarov
4acd0e5304
engine: platform: sdl: grab input only in true fullscreen mode
2023-10-11 16:49:49 +03:00
Alibek Omarov
cb1063c305
engine: platform: sdl: fix qboolean to window_mode_t conversions
2023-10-10 14:41:39 +03:00
Alibek Omarov
59bfc8c32f
engine: platform: sdl: fix qboolean to window_mode_t conversions
2023-10-10 14:41:05 +03:00
Alibek Omarov
23494f4e20
mainui: update
2023-10-10 14:36:59 +03:00
Alibek Omarov
b58fbc0c94
engine: platform: linux: fix according to platform.h changes
2023-10-10 14:12:53 +03:00
Alibek Omarov
46f38c84b5
engine: platform: dos: fix according to platform.h changes
2023-10-10 14:12:42 +03:00
Alibek Omarov
99f290b622
engine: platform: sdl: support borderless mode, slight refactoring
2023-10-10 14:11:28 +03:00
Alibek Omarov
680ecfefab
engine: platform: pass desired window mode through R_ChangeDisplaySettings
2023-10-10 14:11:06 +03:00
Alibek Omarov
7222c74000
engine: host: expose new -borderless flag in command line help
2023-10-10 14:09:05 +03:00
Alibek Omarov
1e43cb734b
engine: client: add definitions for borderless fullscreen mode
2023-10-10 14:08:06 +03:00
Alibek Omarov
cb19fa2f6d
engine: client: restore window maximized state after engine restart
2023-10-09 05:26:17 +03:00
Alibek Omarov
73fcb84b62
engine: client: console: remove unneeded return from Con_DrawConsoleLen
2023-10-09 05:24:58 +03:00
Alibek Omarov
3584d3d1a6
engine: client: yet another BloodStream fix, normalize input velocity vector
2023-10-09 05:24:29 +03:00
Alibek Omarov
e95139af94
engine: client: avoid unneeded comparisons in CL_UpdateFlashlight
2023-10-09 03:20:43 +03:00
Alibek Omarov
962f88d31b
engine: client: use physents for flashlight tracing, as GoldSrc does
2023-10-08 01:52:42 +03:00
Alibek Omarov
a738b2a50b
ref: restore missing PARM_TEX_MEMORY RenderAPI parameter
2023-10-06 19:24:02 +03:00
Alibek Omarov
34fa1b5ec8
engine: remove PORT_CLIENT, we should randomize client port by default, thus allowing easier connections from same IP address
2023-10-05 11:06:04 +03:00
Alibek Omarov
2fdd080eef
mainui: update
2023-10-02 19:31:35 +03:00
Alibek Omarov
95f87e24ee
ref: soft: do not register cl_righthand cvar
2023-09-29 13:45:24 +03:00
Alibek Omarov
bfe17fa241
Documentation: update ports list, remove old engine ports that has new engine alternatives, re-sort it by status and platform
2023-09-17 08:50:37 +03:00
sofakng
a94a5f1f29
Update port maintainer list ( #1427 )
...
* Update ports.md
* Update ports.md
2023-09-17 08:40:40 +03:00
Alibek Omarov
dc71456174
scripts: flatpak: upgrade to Freedesktop SDK 23.08
2023-09-15 22:32:52 +03:00
Alibek Omarov
c6b6938e14
wscript: fix RPATH usage on OSX (by @sofakng)
2023-09-15 20:35:51 +03:00
Alibek Omarov
2823a6d269
filesystem: VFileSystem009: just in case, always rewrite fs_api_t requested through CreateInterface export
2023-09-14 00:20:28 +03:00
Alibek Omarov
bee35a1873
engine: client: do not check screenshots in base directory to guess the name
2023-09-13 18:49:10 +03:00
Alibek Omarov
e4ae386964
engine: network: fix incorrect usage of qboolean, when it should be net_gai_state_t
2023-09-12 20:40:14 +03:00
Alibek Omarov
36831555b9
waf: upgrade to latest waifu
2023-09-12 19:23:30 +03:00
Alibek Omarov
8eef212726
ref: gl: fix compile
2023-09-11 21:22:53 +03:00
Velaron
1589defda1
ref: gl: don't create cl_righthand cvar
2023-09-08 15:52:07 +03:00
Velaron
df921d8664
some cleaner code
2023-09-08 15:52:07 +03:00
Velaron
f3949474b9
ref: gl: fix cl_righthand behaviour
2023-09-08 15:52:07 +03:00
Alibek Omarov
706ef65208
engine: client: make unprefixed important userinfo cvars filterable, so servers won't be able to change them, for security
2023-09-04 02:39:34 +03:00
Alibek Omarov
435b95fc5a
engine: client: don't write download notify outside of window
2023-08-31 08:40:24 +03:00
Alibek Omarov
aeece35291
engine: soundlib: mp3: fix check for Unicode in ID3v2.4 TXXX tag
2023-08-30 22:57:39 +03:00
Emil Tomczyk
abd7f3dca3
engine: crashhandler: changed register names for NetBSD x86 ( #1414 )
...
Probably also needs change for x86_64
2023-08-30 18:53:41 +03:00
Alibek Omarov
1c9f333420
engine: server: fix attempting to free pool instead of an allocated memory
2023-08-30 18:52:44 +03:00
Alibek Omarov
75e5da071c
engine: platform: win32: fix calculating RVAs for LLP64
2023-08-29 19:18:22 +03:00
Alibek Omarov
52bd923d9d
engine: server: use generic host pool for temporary string allocation in case of PhysicAPI
2023-08-29 19:10:33 +03:00
Alibek Omarov
ab5a9eec53
engine: soundlib: snd_mp3: fix extra-format-args
2023-08-21 10:02:43 +03:00
Alibek Omarov
88916fdac4
engine: ref_api: remove dead XASH_TEXTURE4 definition
2023-08-21 10:02:18 +03:00
Alibek Omarov
22f60d50ac
ref: gl: only enable/disable texture units in fixed-function pipeline rendering, in our case, low TMUs
2023-08-21 10:01:59 +03:00
Alibek Omarov
4ed562697b
engine: soundlib: fix sizeof parameter in previous commit, I'm an idiot
2023-08-18 11:50:58 +03:00
Alibek Omarov
64166c7d82
engine: soundlib: fix slashes in Sound_GetApproxWavePlayLen, as it can be called from game DLL
2023-08-18 11:47:01 +03:00
Alibek Omarov
0df89bddeb
engine: common: ipv6text: accept changes from upstream GameNetworkingSockets
2023-08-08 19:38:57 +03:00
Alibek Omarov
3168e5ccf0
wscript: add an option to request and accept any servers
2023-08-08 09:24:10 +03:00
Alibek Omarov
72fe214f49
engine: server: pre-process string before passing it to PhysicAPI AllocString, for compatibility with existing Xash3D games
2023-08-07 21:11:20 +03:00
Alibek Omarov
e1cbf96100
wscript: make stringop-overflow non-fatal
2023-08-07 19:45:03 +03:00
Alibek Omarov
1d6f695749
wscript: disable stringop-overflow for NSW to workaround buggy toolchain
2023-08-07 19:26:04 +03:00
Alibek Omarov
08a2d431da
engine: client: cl_qparse: refactor quake baseline parser, so we don't call memset for nothing
2023-08-07 19:11:47 +03:00
Alibek Omarov
8bdb49516d
filesystem: fix stringop-overflow
2023-08-06 00:44:32 +03:00
Alibek Omarov
e7f5cb6910
wscript: add stringop-overflow to our Werror list
2023-08-06 00:41:12 +03:00
Alibek Omarov
9968b192c3
engine: server: fix buffer overflow in invalid Q_strncpy call
2023-08-06 00:39:41 +03:00
Alibek Omarov
79f2c69963
engine: soundlib: missing newline in warning message about truncated WAV file
2023-08-05 04:05:23 +03:00
Alibek Omarov
2067667c9c
engine: fix inverted check in DLL unloading in settings.scr parsing
...
Fixes: aee99f6094
2023-08-03 02:40:02 +03:00
Alibek Omarov
e017b9145f
engine: common: cvar: fix buffer overflow in Cvar_ValidateString
2023-08-03 01:12:16 +03:00
Alibek Omarov
c1c27c5f18
engine: net_ws: fix printing multicast IPv6 address
2023-08-03 01:11:54 +03:00
Alibek Omarov
87a56a5fa1
engine: client: initialize netadr_t structure in LAN games scan
2023-08-03 01:11:31 +03:00
Alibek Omarov
aee99f6094
engine: don't release DLL that wasn't loaded during settings.scr parsing. This should be deleted as soon as possible!
2023-08-03 01:11:06 +03:00
Alibek Omarov
bf03f739bb
engine: soundlib: snd_wav: take FindNextChunk fixes from FTEQW
2023-08-03 01:05:46 +03:00
Alibek Omarov
e23580c1de
engine: remove czeror sequence parser
...
This file initially came from HLND, a Chinese GoldSrc recreation.
It turned out to be suspiciously close to the original version, down
to the comments and code style. We don't work with leaked sources here,
so remove it.
A proper parser should be reimplemented from ground-up, when we will
start working on CZDS support.
2023-07-26 19:40:03 +03:00
Alibek Omarov
e49848d090
github: bump SDL2 version to 2.28.1
2023-07-23 03:16:03 +03:00
Alibek Omarov
1bfc6e6705
filesystem: try to fix case of library filename in FindLibrary
2023-07-22 07:04:26 +03:00
Alibek Omarov
e7c41759fb
Revert "filesystem: allow to reference game libraries in different case"
...
This reverts commit 43fde38d88 .
2023-07-22 06:39:23 +03:00
Alibek Omarov
a07f81820c
engine: client: ref_common: fix missing newline in Host_Error
2023-07-22 05:51:18 +03:00
Alibek Omarov
b39378a6da
engine: common: fix warning about read-only cvar. In fact, we should force set them.
2023-07-22 05:50:38 +03:00
Alibek Omarov
5c6b9d3235
scripts: flatpak: set correct bindir for flatpak installation
2023-07-22 04:49:48 +03:00
Alibek Omarov
3d49ca25b3
scripts: flatpak: disable LTO for Flatpak for now, it causes linker errors
2023-07-22 00:23:03 +03:00
Alibek Omarov
43fde38d88
filesystem: allow to reference game libraries in different case
2023-07-22 00:19:37 +03:00
Alibek Omarov
6461fa5042
engine: client: make ref params static so client.dll can save address of it and don't trigger ASan
2023-07-17 05:52:45 +03:00
Alibek Omarov
788bc820c8
filesystem: automatically fixup directory name case for base directories
2023-07-17 05:52:06 +03:00
Alibek Omarov
36ff819daf
engine: client: fix heap-buffer-overflow in remap when we switch model that have more remap textures than previous
2023-07-17 04:48:02 +03:00
Alibek Omarov
8905883225
utils: xar: add new utility called Xar that helps interacting with Xash3D FWGS archives using filesystem_stdio C API
...
The utility is not yet finalized, disable from wscript for now
2023-07-05 07:00:39 +03:00
Alibek Omarov
4031f5cb01
public: allow matching anything in matchpattern
2023-07-05 07:00:39 +03:00
Alibek Omarov
cd46ad19a3
filesystem: expose a special flag for archive mounter to skip included WADs
2023-07-05 07:00:39 +03:00
Alibek Omarov
6f7b1695d7
filesystem: expose archive mount generic function for Xar
2023-07-05 07:00:39 +03:00
Alibek Omarov
28a4b51939
Documentation: gameinfo: wording
2023-07-04 03:39:17 +03:00
Alibek Omarov
5e878aae89
mainui: upgrade
2023-07-03 02:25:31 +03:00
Alibek Omarov
7e05562c14
engine: platform: sdl: check SDL version in Platform_Vibrate
2023-07-03 02:18:49 +03:00
Alibek Omarov
777dd3a03c
public: add definitions for PowerPC
...
This doesn't mean we have a port but at least it allows building for ppc64el
2023-07-03 01:40:47 +03:00
Alibek Omarov
9977cb20c0
Documentation: gameinfo: clarify internal_vgui_support is intended to be used only for developers and that it's required for PrimeXT
2023-07-02 08:14:26 +03:00
Alibek Omarov
5661766c79
Documentation: gameinfo: wording
2023-07-02 06:45:29 +03:00
Alibek Omarov
60d65d368a
Documentation: add basic document on gameinfo.txt keys and liblist.gam conversion
2023-07-02 06:36:57 +03:00
Alibek Omarov
031594cc99
filesystem: update max_particles limits based on Unkle Mike's latest engine version
2023-07-02 06:36:35 +03:00
Alibek Omarov
d4bf57c7c2
filesystem: delete unused edicts key handler in liblist.gam parsing
2023-07-02 06:36:09 +03:00
Alibek Omarov
8e16c0e410
filesystem: simplify common parsing of type key for liblist.gam and gameinfo.txt
2023-07-02 06:35:34 +03:00
Alibek Omarov
d5f4b409e8
engine: server: sv_save: use new quicksave_aged_count and autosave_aged_count gameinfo.txt keys
2023-07-02 04:53:39 +03:00
Alibek Omarov
88c560aac4
filesystem: add two new gameinfo.txt keys quicksave_aged_count and autosave_aged_count that control the amount of quick/autosaves rotated
2023-07-02 04:53:16 +03:00
Alibek Omarov
c3a6cad0c1
filesystem: do not print error in FS_Delete if file doesn't exist
2023-07-02 04:49:33 +03:00
Alibek Omarov
a862446072
engine: client: restore cl_trace_events from old engine branch
2023-07-02 04:48:43 +03:00
Alibek Omarov
8d04ae8802
engine: client: fix appending extra .dem in record command
2023-07-02 02:44:25 +03:00
Alibek Omarov
0de0615eeb
engine: client: implement map CRC32 checking on client side
2023-07-02 01:20:24 +03:00
Alibek Omarov
ea24b5f3ca
engine: server: make CRC32_MapFile public
2023-07-02 01:19:38 +03:00
Alibek Omarov
eb7f19d3cf
engine: server: properly remove remaining server operator commands
2023-07-02 01:19:21 +03:00
Alibek Omarov
ca134a85ee
engine: client: make it more obvious that CL_InitEdicts depends on maxclients value
2023-06-30 02:51:47 +03:00
Alibek Omarov
00765f1ff2
engine: client: cl_parse_48: add a temporary hack to avoid the lag issues after changelevel on legacy servers
2023-06-30 02:35:36 +03:00
Alibek Omarov
013bfe5c34
engine: common: sys_con: always read from stdin when engine is in dedicated mode
2023-06-30 01:44:03 +03:00
Alibek Omarov
5f625bb6e1
wscript: remove option --enable-stdin-input, it's enabled by default in dedicated mode sys_con now
2023-06-30 01:43:26 +03:00
Alibek Omarov
547a862024
engine: client: split protocol 48 support to separate file
2023-06-29 04:09:36 +03:00
Alibek Omarov
6ea8d141d9
engine: common: net_encode: fix usage of new Delta_ClampIntegerField, minor fixes
2023-06-28 14:30:06 +03:00
Alibek Omarov
bdc2390d41
Revert "engine: common: net_encode: rewrite Delta_CompareField to be more efficient"
...
This reverts commit 82addf11bb .
2023-06-28 14:26:42 +03:00
Alibek Omarov
acc113309c
Revert "engine: common: net_encode: fix Delta_CompareField to include integer clamping, in case if no updates happen in significant bits"
...
This reverts commit 6a7b330463 .
2023-06-28 14:26:40 +03:00
Alibek Omarov
5afda72290
engine: common: net_encode: simplify Delta_ClampIntegerField
2023-06-28 05:07:53 +03:00
Alibek Omarov
6a7b330463
engine: common: net_encode: fix Delta_CompareField to include integer clamping, in case if no updates happen in significant bits
2023-06-28 04:47:12 +03:00
Alibek Omarov
f5b9826fd9
engine: common: net_encode: directly access delta description struct than searching for it every time
2023-06-27 19:56:32 +03:00
Alibek Omarov
82addf11bb
engine: common: net_encode: rewrite Delta_CompareField to be more efficient
2023-06-27 18:06:24 +03:00
Alibek Omarov
aee5e46516
public: rewrite Q_strncpy with standard C functions, make it inlined to allow compiler remove unneeded checks
...
So far, passes all tests.
2023-06-27 17:30:09 +03:00
Alibek Omarov
40e248aa63
engine: common: remove unused tentlist_t definition
2023-06-27 17:30:09 +03:00
fgsfds
24ee3ae318
scripts: psvita: bump vitaGL version
2023-06-25 18:15:18 +03:00
fgsfds
f79aaf93f8
ref: gl: psvita: disable NPOT textures, they're broken again
2023-06-25 18:15:18 +03:00
Alibek Omarov
0d89849cab
public: move some simple functions to mathlib header. Remove assembler version specific for MSVC6
2023-06-25 13:32:06 +03:00
Alibek Omarov
d962255ebe
public: mathlib: remove unused RemapVal, ApproachVal
2023-06-25 13:25:51 +03:00
Alibek Omarov
21b47dff32
ref: gl: static-ize globals and functions in gl_warp
2023-06-25 13:17:46 +03:00
Alibek Omarov
1905782c41
3rdparty: vgui_support: update submodule
2023-06-23 06:10:27 +03:00
Alibek Omarov
b29b3d5859
wscript: clarify that higher versions of opus also accepted in a comment
2023-06-21 13:21:19 +03:00
Alibek Omarov
3533b0d284
wscript: check for opus 1.4, which fixes an assertion in custom modes decoder initialize
2023-06-21 13:19:03 +03:00
Alibek Omarov
7e06d049f5
engine: common: static-ize common.c functions, set GAME_EXPORT to API functions
2023-06-20 14:19:44 +03:00
Alibek Omarov
5a4c443c79
filesystem: fix regression in FS_LoadFile not skipping leading slashes
...
Earlier it used FS_Open which handles this, but because we don't call
that anymore, just skip it ourselves for compatibility.
2023-06-20 14:11:55 +03:00
Alibek Omarov
4bbd1e59a4
engine: server: static-ize world functions
2023-06-19 07:47:38 +03:00
Alibek Omarov
0809453b2c
engine: server: static-ize sv_query functions
2023-06-19 07:39:00 +03:00
Alibek Omarov
8350d81c18
engine: server: static-ize sv_pmove functions
2023-06-19 07:38:18 +03:00
Alibek Omarov
57499dea33
engine: server: static-ize sv_phys functions, set GAME_EXPORT attribute for PhysicAPI functions
2023-06-19 07:32:22 +03:00
Alibek Omarov
6b223f1325
engine: server: static-ize functions in sv_game. Set GAME_EXPORT attribute to server GameAPI functions
2023-06-19 07:11:49 +03:00
Alibek Omarov
03a85e0caa
engine: platform: psvita: add unused data to workaround bug in vita-elf-create (thanks @fgsfdsfgs)
2023-06-18 22:49:44 +03:00
Alibek Omarov
01ad3dda2a
engine: server: escape rcon arguments before passing it to command buffer, also use more efficient concatenation
2023-06-18 04:44:28 +03:00
Alibek Omarov
2a05624615
engine: server: keep silence in case of unset or invalid rcon password
2023-06-18 04:30:21 +03:00
Alibek Omarov
f3ed9b21c0
scripts: add sample systemd service
2023-06-16 08:47:25 +03:00
Alibek Omarov
16c87ae2c9
engine: platform: reorganize UpdateStatusLine, make it shared but implemented only if platform has SetStatus. Implement SetStatus for systemd/Linux
2023-06-16 08:43:16 +03:00
Alibek Omarov
c16a10e6f3
engine: platform: refactor Platform_Init/Shutdown/GetNativeObject functions. They are now defined in the header, and call platform-specific functios that defined in platform code
2023-06-16 07:32:19 +03:00
Alibek Omarov
c7d748e8df
engine: server: add sv_log_outofband cvar that controls whether connectionless packets should be printed or not
2023-06-16 07:19:17 +03:00
Alibek Omarov
0e16110c3a
github: use ubuntu-latest for PSVita and NSwitch CI
2023-06-15 19:26:19 +03:00
Alibek Omarov
c966589a50
engine: server: static-ize few game API functions, set GAME_EXPORT attribute
2023-06-15 19:22:13 +03:00
Alibek Omarov
4c02c25506
engine: server: do not assert if SetFatPVS/PAS were called without active player
...
Fixes issues with POD-Bot based bots.
2023-06-15 19:17:34 +03:00
Alibek Omarov
a4997d0647
engine: server: port old engine's fullupdate ratelimit, but simplify it
2023-06-15 18:09:59 +03:00
Alibek Omarov
243c3cc80f
engine: server: port old engine's userinfo penalty
2023-06-15 04:46:22 +03:00
Alibek Omarov
a8dbec56c3
mainui: update
2023-06-14 01:38:41 +03:00
Alibek Omarov
9c62fa901f
engine: server: pregenerate CRC table and testpacket data
2023-06-14 00:35:07 +03:00
Alibek Omarov
996897e30e
public: use standard uint32_t in place of dword
2023-06-13 06:57:24 +03:00
Alibek Omarov
93ee5b9446
public: crclib: simplify CRC32_ProcessByte
2023-06-13 06:57:24 +03:00
Alibek Omarov
c0c8119040
public: crclib: rework CRC32 code (thanks to @Mr0maks for implementation)
2023-06-13 06:57:24 +03:00
jeefo
61c75b9809
engine: server: log: use S_USAGE in logaddress for consistency with existing code
2023-06-11 16:28:36 +03:00
jeefo
868d10a842
engine: server: log: allow to disable logaddress without turning off logs completely
2023-06-11 16:28:36 +03:00
jeefo
699f3579fe
engine: server: log: fix log off command not disabling logging to console ( fixes #1340 )
2023-06-11 16:28:36 +03:00
jeefo
873ce0ce48
engine: server: query: A2S_PLAYER response should contain bots and normal players
2023-06-11 14:14:59 +03:00
Alibek Omarov
450f77443d
engine: client: ignore some out of band packets if we're not connecting to server
2023-06-11 07:06:01 +03:00
Alibek Omarov
278ff22ba9
engine: server: query: use common SV_GetPlayerCount, fix random styling issues
2023-06-10 02:47:52 +03:00
jeefo
d9ef1d4608
server: implement correct answers to TSourceEngineQuery server queries
...
* count bots as clients as in goldsrc
* handle source-style packets after xash's built-in packets to not interfere with them
2023-06-10 02:06:45 +03:00
Alibek Omarov
58df771c9e
filesystem: implement .pk3dir convention
2023-06-08 22:58:24 +03:00
Alibek Omarov
a6ecc778fc
filesystem: dir: fix FS_FixFileCase when empty string is passed. Always append slash to searchpath.
2023-06-08 22:58:24 +03:00
Alibek Omarov
37e890f326
filesystem: make fs_searchpaths completely private to the filesystem core
2023-06-08 22:30:45 +03:00
Alibek Omarov
0d6137ee40
filesystem: make generic archive loading functions (with the exception of WADs). Do not alter global searchpath from archives.
2023-06-08 22:14:30 +03:00
Alibek Omarov
653eb00cc6
filesystem: unify prototypes of archive opening functions
2023-06-08 20:02:48 +03:00
Alibek Omarov
b84aba68fa
engine: platform: implement generic GetNativeObject for POSIX systems without SDL2
2023-06-07 04:07:53 +03:00
Alibek Omarov
1855fab80b
filesystem: fix Platform_GetNativeObject macro definition
2023-06-06 17:46:38 +03:00
Alibek Omarov
23f1c43282
engine: common: net_buffer: use uint32_t in place of dword
2023-06-06 00:28:23 +03:00
Alibek Omarov
a7c76ac0bf
engine: common: net_buffer: use stdint.h types in sizebuf_t reading/writing funcs
2023-06-06 00:26:54 +03:00
Alibek Omarov
26959cd280
engine: common: net_encode: use stdint.h types in Delta_CompareField
2023-06-06 00:20:56 +03:00
Alibek Omarov
1fdf6180e6
engine: platform: sdl: merge required SDL2 platform changes for new Android port from @Velaron's tree
2023-06-05 21:51:59 +03:00
Alibek Omarov
d2237fa144
engine: platform: android: merge new SDL2 based Android port from @Velaron's tree
2023-06-05 21:35:58 +03:00
Alibek Omarov
febdfacbd3
wscript: merge CMakeLists generating tool from Velaron's tree
2023-06-05 21:30:07 +03:00
Alibek Omarov
ef663a8790
engine: partially remove legacy Android port, in preparation of new port merge
2023-06-05 20:30:18 +03:00
Alibek Omarov
ba039b8e71
engine: drop XASH_DYNAMIC_DLADDR
2023-06-05 20:30:18 +03:00
Alibek Omarov
02ce80981c
filesystem: update optional funcs interface, add platform-specific GetNativeObject call
2023-06-05 20:30:18 +03:00
Alibek Omarov
a40a325d3c
3rdparty: mainui: update
2023-06-03 03:54:49 +03:00
Alibek Omarov
85cc942a3c
wscript: fix Sailfish misdetection
2023-06-02 06:35:51 +03:00
Alibek Omarov
a23e17c6d7
engine: platform: sdl: set QtWayland hints
2023-06-02 06:18:47 +03:00
Alibek Omarov
59412f3d92
public: define XASH_MOBILE_PLATFORM by XASH_SAILFISH (defined externally)
2023-06-02 06:18:17 +03:00
Alibek Omarov
0a15cc389d
mainui: update
2023-06-02 06:17:14 +03:00
Alibek Omarov
13f8a02cdf
wscript: better Sailfish/AuroraOS macros
2023-06-02 06:16:40 +03:00
Alibek Omarov
8caa2d142f
scripts: sailfish: initial SailfishOS support
2023-06-02 05:37:13 +03:00
Alibek Omarov
3b8009917a
3rdparty: upgrade GL wrappers submodules
2023-06-02 04:10:24 +03:00
Alibek Omarov
e2e14945e4
contrib: delete outdated files
2023-06-02 00:28:31 +03:00
Alibek Omarov
16595bf2c0
ref: gl: fix r_showhull check
2023-05-29 14:42:16 +03:00
Alibek Omarov
f49a2bc8f3
engine: server: move pfnWriteString character replacement hack to the ALLOC_STRING, the same way as GoldSrc does
2023-05-29 14:40:54 +03:00
Alibek Omarov
d994c6df9a
ref: a bit more verbosity if UserTracer color exceed limit
2023-05-27 22:06:33 +03:00
Alibek Omarov
3a57f26351
ref: gl: move ref_gl cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
7fd1534753
engine: common: cvar: remove unused CVAR_TO_BOOL macro
2023-05-27 21:52:58 +03:00
Alibek Omarov
bd52a9ec2d
engine: platform: linux: move evdev_keydebug cvar to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
9e0d389d9e
engine: server: moved server cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
8680757844
ref: soft: move ref_soft cvars to static allocation, remove dead cvars
2023-05-27 21:52:58 +03:00
Alibek Omarov
95a8d2f51f
ref: soft: attempt to fix freeze in decals on software renderer
2023-05-27 21:52:58 +03:00
Alibek Omarov
70b26a13c2
engine: allow ref dlls to use convar_t
2023-05-27 21:52:58 +03:00
Alibek Omarov
6a1f96a2c6
engine: always unlink variables and commands BEFORE all pointers to them would be lost
2023-05-27 21:52:58 +03:00
Alibek Omarov
4ce2475602
engine: common: move network cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
e7ece41ba0
engine: common: move model cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
05579927a5
engine: client: sound: move dsp cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
2f5b359c99
engine: client: move tracer cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
214fc7e827
engine: common: move host cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
df173a83ed
engine: client: move touch cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
3918bcd71c
engine: client: move console cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
f19ed1c1c2
engine: client: move joystick cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
03ec2f603b
engine: client: move netgraph cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
1ee01163b7
engine: client: move scrn cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
b1d60c248d
engine: client: move main client cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
d9cbf1fa89
engine: client: move input cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
cd022bdac7
engine: client: move keys cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
5d7d5319fd
engine: move ref cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
d4470402ee
engine: move vid cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
05560c7607
engine: always read and set vid_fullscreen value directly with it's object
2023-05-27 21:52:58 +03:00
Alibek Omarov
81c752da2b
filesystem: wad: static-ize WAD functions
2023-05-27 20:51:00 +03:00
Alibek Omarov
fd2ad447a8
filesystem: zip: static-ize ZIP functions
2023-05-27 20:49:06 +03:00
Alibek Omarov
18d55c1de2
filesystem: zip: adapt to new interface
2023-05-27 20:48:48 +03:00
Alibek Omarov
d0d09c878f
filesystem: wad: adapt to new interface
2023-05-27 20:47:49 +03:00
Alibek Omarov
e791d44dd8
filesystem: properly support compressed archives in FS_LoadFile
2023-05-27 20:46:48 +03:00
Alibek Omarov
152f6d154c
filesystem: remove unused argument from FS_CheckNastyPath
2023-05-27 20:22:12 +03:00
Alibek Omarov
5627dbbf34
engine: server: greatly simplify pfnWriteString implementation, it shouldn't modify input string
2023-05-27 20:02:09 +03:00
Alibek Omarov
9cd9744407
filesystem: fix Windows build
2023-05-27 19:40:44 +03:00
Alibek Omarov
f13c285287
filesystem: verbose error printing in FS_SetCurrentDirectory, move error reporting from engine
2023-05-26 22:29:34 +03:00
Alibek Omarov
cca7744f1c
filesystem: make some calls from API safe to use without initialize
2023-05-26 18:31:00 +03:00
Alibek Omarov
31ae22961b
filesystem: add base test case to call ShutdownStdio without calling Init prior
2023-05-26 18:30:13 +03:00
Alibek Omarov
a3603f497d
scripts: waifulib: compiler_optimizations: fix -march applying on x86_64 toolchains forced to compile in 32-bit mode
2023-05-24 04:30:28 +03:00
Alibek Omarov
d36cb62a2e
mainui: update
2023-05-24 04:25:25 +03:00
Alibek Omarov
2ca6029e03
Revert "github: don't wait for flatpak build finish, it's broken for us anyway"
...
This reverts commit eb61bcf76a .
2023-05-24 04:24:55 +03:00
Alibek Omarov
dee5cae5f3
scripts: waifulib: compiler_optimizations: set pentium-m minimum cpu requirement for Intel 32-bits, like HLSDK
2023-05-24 04:19:08 +03:00
Alibek Omarov
ef4bc2acf2
scripts: flatpak: try to fix flatpak build on GitHub Actions
2023-05-24 04:18:33 +03:00
Alibek Omarov
eb61bcf76a
github: don't wait for flatpak build finish, it's broken for us anyway
2023-05-24 03:52:38 +03:00
Alibek Omarov
cb43df43ef
engine: common: cvar: do not check if cvar was registered in DirectSet when it has valid next pointer
2023-05-24 03:51:16 +03:00
Alibek Omarov
356f78ee81
engine: platform: sdl: fix possible buffer overrun in SDL port audio code
2023-05-24 03:49:13 +03:00
Alibek Omarov
275cd73ade
engine: server: do not trigger speedhack detection for fakeclients
2023-05-24 00:36:54 +03:00
Velaron
bb1b9dad23
ref: gl: Goldsrc compatible fog implementation
2023-05-20 23:36:04 +03:00
Velaron
e27ac6b092
platform: win32: properly change icon
2023-05-20 23:32:19 +03:00
Alibek Omarov
7333ddc1d9
engine: client: move some RenderAPI GetParm queries to engine
2023-05-19 05:03:25 +03:00
Alibek Omarov
fbd7d8f58a
engine: server: use sv_speedhack_kick cvar value as a number of speedhack warns before automatic kick
...
Thanks to @tyabus for suggestion
2023-05-19 04:49:29 +03:00
Alibek Omarov
3415185dde
engine: server: implement simple anti-speedhack
2023-05-19 04:44:42 +03:00
Alibek Omarov
551ea71906
engine: server: make generic function to kick players with a reason
2023-05-19 04:44:42 +03:00
Alibek Omarov
1d965d7543
ref: gl: ignore GenTextures objects that fall into reserved space for skyboxes
2023-05-19 04:37:53 +03:00
Alibek Omarov
1d62df0e2d
ref: gl: turn magic skybox numbers into defined macros
2023-05-19 04:36:05 +03:00
Alibek Omarov
b0f52236bc
engine: platform: psvita: use _impure_ptr declaration from sys/reent.h
2023-05-17 17:45:17 +03:00
Alibek Omarov
7dcddc559c
engine: platform: sdl: set PulseAudio role only on POSIX systems
2023-05-17 17:38:18 +03:00
Alibek Omarov
277bead9b7
ref: remove SetCullState function from StudioAPI. It does nothing on GoldSrc.
2023-05-17 17:23:35 +03:00
Alibek Omarov
d8093ec587
engine: platform: psvita: attempt to fix PSVita builds by exporting _impure_ptr
2023-05-17 17:17:25 +03:00
Alibek Omarov
323626c308
engine: platform: sdl: try to avoid random crash in SDL pulse audio driver
2023-05-17 05:02:12 +03:00
Alibek Omarov
68ff265e8d
ref: gl: switch texture object allocation to GenTextures usage
...
This should fix most overlay programs but I only tested it on MangoHud
2023-05-16 23:47:05 +03:00
Alibek Omarov
a3ab04e0cb
ref: gl: track current bound texture index in gl_textures array in separate glState field
2023-05-16 23:44:52 +03:00
Alibek Omarov
7d2bf93c72
engine: client: voice: do not reinitialize voice with same parameters
2023-05-15 17:48:15 +03:00
Alibek Omarov
04107d384e
engine: client: fix incorrectly parsed timings for TE_TEXTMESSAGE
2023-05-15 02:11:44 +03:00
Alibek Omarov
3a0f1763fb
engine: whereami: update from our downstream fork (only cosmetic changes)
2023-05-15 01:51:14 +03:00
Alibek Omarov
377dd9a255
engine: client: bring back NetAPI infostring options, as they conform to the API definitions
2023-05-14 12:24:40 +03:00
Alibek Omarov
8961e37d7c
github: update flatpak-builder action to latest version
2023-05-14 12:10:39 +03:00
Alibek Omarov
de1e53311a
engine: client: cl_game: static-ize engine functions in client API
2023-05-14 12:10:14 +03:00
Alibek Omarov
19582cdf11
engine: simplify force version drawing logic
2023-05-14 09:50:17 +03:00
Alibek Omarov
fa0e7e4369
scripts: enable LTO for Linux builds too
2023-05-14 09:49:39 +03:00
Alibek Omarov
2378331e47
wscript: enable -Werror=unsequenced, Clang's analogue of -Werror=sequence-point
2023-05-14 09:39:15 +03:00
Alibek Omarov
5549e7301c
scripts: gha: win32: enable LTO by default
2023-05-14 09:36:46 +03:00
Alibek Omarov
5ab7d09a00
scripts: waifulib: compiler_optimizations: allow -fno-semantic-interposition for GCC (less overhead on PIC binaries)
2023-05-14 09:35:00 +03:00
Alibek Omarov
c54e1625d1
scripts: waifulib: compiler_optimizations: fixes for LTO
2023-05-14 09:34:29 +03:00
Alibek Omarov
d0127e5e14
filesystem: fix FS_GetDiskPath, it was broken since implementing caseinsensitive emulation, oops
...
Anyway, FS_GetFullDiskPath is a proper safe version that lacks this bug
2023-05-14 08:21:17 +03:00
Andrey Akhmichin
0f643f1f87
Documentation: opensource-mods.md: update link to "bubblemod".
2023-05-13 23:19:30 +03:00
Andrey Akhmichin
16eb12b1e0
Documentation: opensource-mods.md: add "HL: Rally".
2023-05-13 23:19:30 +03:00
Alibek Omarov
4856a3c084
Revert "engine: soundlib: wav: attempt to make FindNextChunk more safe"
...
This reverts commit 78e239d883 .
2023-05-05 21:19:58 +03:00
Alibek Omarov
78e239d883
engine: soundlib: wav: attempt to make FindNextChunk more safe
2023-05-02 08:54:37 +03:00
Alibek Omarov
5a7b68fcc1
filesystem: add new export FS_GetFullDiskPath, similar to FS_GetDiskPath, but generates full path to the file, including searchpath
2023-05-02 08:52:54 +03:00
Alibek Omarov
c33a384975
engine: client: s_vox: do not crash in VOX if sentence wasn't sound in sequences
2023-05-02 08:51:53 +03:00
Alibek Omarov
5b582b744a
engine: client: check if filesystem was initialized during client shutdown
2023-04-30 10:14:02 +03:00
Alibek Omarov
c96f8ba722
engine: client: in_joy: do not create cvar on shutdown
2023-04-30 10:14:02 +03:00
Alibek Omarov
9f92e2a1f7
engine: client: console: do not save history if nothing was executed in console
2023-04-30 10:14:02 +03:00
Alibek Omarov
710b234493
engine: add new pretty --help output
2023-04-30 10:14:02 +03:00
Alibek Omarov
75759530e3
engine: remove doublecolons from MSGBOX macros
2023-04-30 10:14:02 +03:00
Alibek Omarov
5162ab62fd
engine: filesystem: do not crash if engine was shutdown before filesystem was loaded
2023-04-30 10:14:02 +03:00
Alibek Omarov
3e2a215c15
engine: client: in_joy: rename -nojoy to -noenginejoy to avoid conflict with client.dll's joystick support
2023-04-30 10:14:02 +03:00
Alibek Omarov
e2540bd446
filesystem: turn unused caseinsensitive argument in InitStdio into a reserved argument (set to true by default)
2023-04-30 10:14:02 +03:00
Alibek Omarov
07fd4f37ef
engine: remove unused -caseinsensitive command line argument
2023-04-30 10:14:02 +03:00
Alibek Omarov
92b72a7d33
game_launch: add icons that were used for Android port
2023-04-30 00:56:28 +03:00
Alibek Omarov
cb3b16e2ec
engine: client: implement v_dark in engine, instead of making it ref-specific
2023-04-28 16:52:22 +03:00
Alibek Omarov
bd3dc71f39
engine: server: refactor banid, explicitly does not allow ban using userid for now
2023-04-28 16:24:41 +03:00
Alibek Omarov
48176233bd
public: move FOV calculating functions out of libpublic, as they are very specific to engine view
2023-04-26 05:22:34 +03:00
Alibek Omarov
a292d2fd53
platform: win32: replace Q_sprintf calls by Q_snprintf
2023-04-26 05:20:45 +03:00
Alibek Omarov
27aad9f4a0
ref: gl: add size argument to COM_Default/ReplaceExtension calls
2023-04-26 05:20:45 +03:00
Alibek Omarov
71a3cedba8
filesystem: add size argument to COM_Default/ReplaceExtension calls
2023-04-26 05:20:45 +03:00
Alibek Omarov
ec2951cf45
engine: add size argument to COM_Default/ReplaceExtension calls
2023-04-26 05:20:45 +03:00
Alibek Omarov
ff436ae100
public: crtlib: add safe COM_DefaultExtension and COM_ReplaceExtension
2023-04-26 05:20:45 +03:00
Alibek Omarov
cfdfdd5c93
utils: mdldec: add size argument to COM_FileBase calls
2023-04-26 05:20:45 +03:00
Alibek Omarov
8b96e7ca87
ref: add size argument to COM_FileBase calls
2023-04-26 05:20:45 +03:00
Alibek Omarov
1603b8028c
filesystem: add size argument to COM_FileBase calls
2023-04-26 05:20:45 +03:00
Alibek Omarov
8c7db8499f
engine: add size argument to COM_FileBase calls
2023-04-26 05:20:45 +03:00
Alibek Omarov
fbdd79644b
public: test new COM_FileBase and compare it's results with old implementation (embedded into test itself)
2023-04-26 05:20:45 +03:00
Alibek Omarov
ac39090f6e
public: crtlib: add safe COM_FileBase implementation
2023-04-26 05:20:45 +03:00
Alibek Omarov
8f207362a5
public: remove Q_sprintf, and patch all code that used it to use Q_snprintf instead
2023-04-26 05:20:45 +03:00
Alibek Omarov
b16fa8eddc
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
2023-04-26 05:20:45 +03:00
Alibek Omarov
2261b0dcab
scripts: gha: set --disable-werror for building HLSDK
2023-04-25 13:10:12 +03:00
Alibek Omarov
9eb49fc673
scripts: gha: win32: finally use destdir instead of prefix on Windows
2023-04-25 13:05:34 +03:00
Alibek Omarov
c61c84ad4f
Revert "wscript: check malloc.h first to make checks on Windows slightly faster"
...
This reverts commit 1464e1e2be .
2023-04-25 12:39:47 +03:00
Alibek Omarov
71c9fd2772
wscript: do not check for --prefix without --enable-packaging, as it's still valid to use
2023-04-25 03:01:35 +03:00
Alibek Omarov
1464e1e2be
wscript: check malloc.h first to make checks on Windows slightly faster
2023-04-25 02:39:07 +03:00
Alibek Omarov
cf557d191a
wscript: make prefix vs destdir installing more safe and predictable
2023-04-25 02:38:36 +03:00
Alibek Omarov
b72033eb74
engine: client: fix master server query through NetAPI
2023-04-23 22:05:11 +03:00
Alibek Omarov
cec903fd10
mainui: update
2023-04-23 18:44:17 +03:00
Alibek Omarov
b333edeefe
public: crtlib: remove unused Q_strlwr macro
2023-04-23 18:31:08 +03:00
Alibek Omarov
76c7273600
utils: mdldec: remove usage of string functions with unspecified size
2023-04-23 18:30:44 +03:00
Alibek Omarov
096ee34f67
public: remove Q_vsprintf, replace by proper Q_vsnprintf proper calls
...
Fixes weird off by one error caused by glibc updates? I didn't tracked
what causes it exactly but replacing it seems to work. Anyway, we should
remove all 99999 hacks in libpublic.
2023-04-23 18:19:28 +03:00
Alibek Omarov
5b52a9a19f
engine: protocol: increase MAX_LIGHTSTYLES from 64 to 256, protocol limit as it encoded as unsigned byte
2023-04-20 10:35:21 +03:00
Alibek Omarov
cacfff008f
engine: common: enable autocomplete for mp3 command
2023-04-19 17:54:45 +03:00
Alibek Omarov
398cec626e
engine: client: remove media/ prefix for CD tracks, add it while parsing cdaudio.txt for compatibility
2023-04-19 17:54:28 +03:00
Alibek Omarov
cadad6ce34
github: attempt to avoid release draft issue by sleeping for 20s
2023-04-19 16:32:21 +03:00
Alibek Omarov
588d080a63
github: migrate to softprops/action-gh-release to avoid drafts being randomly created (thanks @SNMetamorph)
2023-04-19 15:05:41 +03:00
Alibek Omarov
1affc36f06
engine: client: more accurate ScreenShake implementation, thanks @vasiavasiavasia95 for sharing it
2023-04-18 17:28:27 +03:00
Alibek Omarov
8d6ac3fad4
engine: common: net_encode: cosmetic changes, static-ize functions, move private macros
2023-04-18 05:16:57 +03:00
Alibek Omarov
0d5d30398b
filesystem: VFileSystem009: refactoring
2023-04-18 04:50:47 +03:00
Alibek Omarov
eb0686fca1
filesystem: fix wrong data type for character in Gets and Ungetc
2023-04-18 04:47:55 +03:00
Alibek Omarov
41025c0049
engine: client: reset connection retries counter on changelevel
...
Fixes an issue when connection retry counter near the failure state
and the server changes level
2023-04-18 04:45:27 +03:00
Tim Schumacher
6518a5cf8b
engine: whereami: Add SerenityOS
2023-04-17 19:30:11 +03:00
Alibek Omarov
49936120ca
public: tests: add new test to check return values of Q_Architecture/PlatformStringByID and Q_buildnum
2023-04-17 19:11:16 +03:00
Alibek Omarov
e4a5b95e81
public: build: split Q_buildnum to separate function that calculates build number from arbitrary date string
2023-04-17 19:10:40 +03:00
Alibek Omarov
84fc8d4281
public: build: fix naming for 32-bit RISCV with double precision float ABI
2023-04-17 19:09:59 +03:00
Alibek Omarov
e9da3e2976
public: build: reorder enums by probability, rename ARCHITECTURE_ ABI macros to just ARCH_ for easier matching
2023-04-17 06:37:08 +03:00
Alibek Omarov
c1252b5642
scripts: waifulib: vgui: fix Logs aren't being imported
2023-04-17 06:36:58 +03:00
Alibek Omarov
7d54952422
3rdparty: vgui_support: update submodule
2023-04-17 05:22:02 +03:00
Alibek Omarov
b28d10f69f
scripts: waifulib: split vgui_support VGUI detection to separate module
2023-04-17 05:20:22 +03:00
Alibek Omarov
6cb3b2f01a
wscript: print modules help before engine common options
2023-04-17 05:19:56 +03:00
Alibek Omarov
248be5458f
engine: common: hpak: do not print hashpak contents in quiet mode
2023-04-17 04:39:21 +03:00
Alibek Omarov
2e7306e96a
engine: network: fix missing newline in IP port allocation error message
2023-04-17 04:37:16 +03:00
Alibek Omarov
558ded6d6a
filesystem: tests: interface: use correct type for module on Win32
2023-04-15 04:58:29 +03:00
Alibek Omarov
c52dc69360
scripts: gha, cirrus: fix failing workflows because of --enable-fs-tests flag removal
2023-04-15 04:24:45 +03:00
Alibek Omarov
ba1648c689
mainui: update
2023-04-15 04:19:14 +03:00
Alibek Omarov
101a7a1240
engine: client: try to fix random crash in CL_ClearWorld when using legacy protocol
2023-04-15 04:08:40 +03:00
Alibek Omarov
25d6b2b069
engine: client: fix FlushEntityPacket message overflow on legacy servers
2023-04-15 04:08:40 +03:00
Alibek Omarov
f67b97e63c
engine: common: mod_bmodel: remove useless copy before Q_strnlwr, as Q_strnlwr already copies string
2023-04-15 04:08:40 +03:00
Alibek Omarov
9a24cb8c96
engine: client: console: remove useless function Con_StringLength
2023-04-15 04:08:40 +03:00
Alibek Omarov
c157b7def3
filesystem: tests: interface: various fixes
...
* correctly check success variable value in CreateInterface
* get rid of C language quirks because this file is C++
* check that globals were filled
2023-04-15 04:08:12 +03:00
Alibek Omarov
de88aec958
filesystem: restore DarkPlaces contributors copyrights lost in filesystem_stdio
...
* Add Xash3D FWGS contributors copyrights
2023-04-15 02:39:38 +03:00
Alibek Omarov
7f31871b5a
engine: common: zone: restore Id Software and Darkplaces copyrights, add Xash3D FWGS copyrights
2023-04-15 02:39:16 +03:00
Alibek Omarov
f55ef63e26
ref: optimize R_LightLambert function
...
* Quick exit if no local lights
* Try to minimize Q_min() checks by apply it on temp variables
* Cap final light values only once, after all local lights are calculated
2023-04-14 20:33:07 +03:00
Alibek Omarov
824a34ee1e
engine: common: imgelib: fix declaration after statement in test code
2023-04-14 18:58:43 +03:00
Alibek Omarov
46e2ccd2bf
filesystem: wscript: check interface test before everything else
...
It makes sense since we're using sequential execution here anyway
2023-04-13 20:07:58 +03:00
Alibek Omarov
339c08d89f
public: add basic test for our strcpy, strcmp and strcat functions
2023-04-13 19:56:31 +03:00
Alibek Omarov
2db2375b4d
waifu: upgrade to latest revision
2023-04-13 18:43:08 +03:00
Alibek Omarov
d86ab19351
wscript: refactoring, replace --enable-fs-tests with --enable-tests
...
* Run filesystem tests in sequential order, to avoid tests being run
before filesystem_stdio DLL is linked
* Include new interface test in filesystem
2023-04-13 18:40:27 +03:00
Alibek Omarov
db40d58208
filesystem: add test for probing all interfaces
2023-04-13 18:39:21 +03:00
Alibek Omarov
33ff7bbd61
scripts: waifulib: compiler_optimizations: set default build type to release
...
I think this will make configuration less confusing, also we're stable enough to be built
with optimizations and without debug information
2023-04-13 16:14:09 +03:00
Alibek Omarov
4d4162336a
engine: common: mod_bmodel: apply code style fixes to match existing code, for consistency
2023-04-11 03:11:23 +03:00
Jonathan Poncelet
372514151d
engine: common: mod_bmodel: Fixed default texture name check
...
REF_DEFAULT_TEXTURE defines the canonical name, so is used
instead of a string literal.
2023-04-11 01:41:20 +03:00
Jonathan Poncelet
6c9ce478a9
engine: common: mod_bmodel: Fixed Con_Printf warnings
...
Some formatting characters did not match up with their
values.
2023-04-11 01:41:20 +03:00
Jonathan Poncelet
78555ab125
engine: common: mod_bmodel: Tidied texture loading procedure
2023-04-11 01:41:20 +03:00
Andrey Akhmichin
f2c671d809
utils: mdldec: Fix typo.
2023-04-10 01:03:52 +03:00
Alibek Omarov
4bce193645
mainui: update
2023-04-03 06:45:05 +03:00
Alibek Omarov
129de871e3
engine: common: hpak: use statically allocated hpk_maxsize cvar because gamedll can re-register it for some reason
2023-04-03 06:22:55 +03:00
Alibek Omarov
c24a1fafc5
engine: add missing HPAK_CheckSize/Integrity calls
2023-04-03 06:04:48 +03:00
Alibek Omarov
cee3757e6f
engine: common: hpak: add hpak deletion in validate function
2023-04-03 06:04:18 +03:00
Alibek Omarov
12ed092446
engine: client: register VGui surface cvars
2023-04-03 06:03:29 +03:00
Alibek Omarov
2fb19a0cfd
public: matrixlib: cleanup unused functions
2023-04-03 05:14:59 +03:00
Alibek Omarov
79624fa400
ref: gl: cleanup unused functions
2023-04-03 05:09:33 +03:00
Alibek Omarov
550ced9c36
ref: gl: cleanup unused functions in frustum
2023-04-03 05:05:32 +03:00
Alibek Omarov
fd795d5612
ref: soft: cleanup unused functions
2023-04-03 04:57:41 +03:00
Alibek Omarov
dc0982932b
engine: common: sequence: static-ize private functions
2023-04-03 04:33:19 +03:00
Alibek Omarov
5d387101b9
engine: client: remove unused Key_IsBind
2023-04-03 04:33:19 +03:00
Alibek Omarov
eef1e1868a
engine: common: remove unused BaseCmd_Replace
2023-04-03 04:33:19 +03:00
Alibek Omarov
4005ef831a
engine: common: remove unused IsBackgroundMap/Demo calls, remove unused gamma function
2023-04-03 04:33:19 +03:00
Alibek Omarov
b0c71c598f
engine: common: remove unused Mod_AmbientLevels
2023-04-03 04:33:19 +03:00
Alibek Omarov
d7848b7b8d
engine: client: efx: remove unused CL_FreeParticle
2023-04-03 04:33:19 +03:00
Alibek Omarov
9cdce1ce69
engine: network: remove unused MSG_Read/WriteBitFloat
2023-04-03 04:17:54 +03:00
Alibek Omarov
84edd9d0c4
engine: client: use ReadVec3Angles in svc_setangle, as server uses WriteVec3Angles
2023-04-03 04:17:02 +03:00
Alibek Omarov
d8355a651f
engine: add missing Sequence_Init and Sequence_OnLevelLoad calls
2023-04-03 04:12:47 +03:00
Alibek Omarov
004ac8105e
engine: common: identification: static-ize all functions
2023-04-03 04:04:25 +03:00
Alibek Omarov
2e8ab13242
engine: client: fix parsing svc_spawnentity on old protocol
2023-04-03 03:56:31 +03:00
Alibek Omarov
27d9fc0afe
engine: client: sound: remove unused functions
2023-04-03 03:55:57 +03:00
Alibek Omarov
192d510924
engine: client: remove unused function CL_FreeEntity and everything that used it
2023-04-03 03:55:57 +03:00
Alibek Omarov
3614cfa878
engine: client: avi: remove unused function
2023-04-03 03:55:57 +03:00
Alibek Omarov
12efcf1c44
engine: network: remove some totally ununsed functions
2023-04-03 03:13:50 +03:00
Alibek Omarov
a8de11643c
engine: platform: sdl: make GL_CreateContext and GL_DeleteContext functions static
2023-04-03 03:13:33 +03:00
Alibek Omarov
597027277c
engine: server: remove some totally unused functions
2023-04-03 03:12:52 +03:00
Alibek Omarov
48988e66bd
engine: client: fix missing HTTP_ResetProcessState call
2023-04-03 03:11:39 +03:00
Alibek Omarov
37e3cf7e86
public: crtlib: remove unused functions
2023-04-03 02:46:23 +03:00
Alibek Omarov
01e0542223
engine: server: move master announce logic to masterlist, keep unique heartbeat challenge and heartbeat timer for each master
2023-04-03 00:57:47 +03:00
Alibek Omarov
93a7ccd14f
engine: network: add net_gai_state_t enum for NET_StringToAdrNB result value
2023-04-03 00:15:35 +03:00
Alibek Omarov
892e5c59eb
engine: server: convert public_server cvar to static allocation
2023-04-02 22:48:47 +03:00
Alibek Omarov
c2992afb4a
engine: network: make all HTTP commands and cvars restricted, except http_addcustomserver. Also zero http_useragent by default (it's autogenerated now)
2023-03-31 01:22:41 +03:00
Alibek Omarov
b99e7a6304
engine: network: include build info to default HTTP useragent
2023-03-31 01:16:17 +03:00
Alibek Omarov
8888b456df
engine: client: cl_tent: rewrite R_Sprite_Explode to be closer to original function but support Xash extensions
2023-03-30 04:42:48 +03:00
Alibek Omarov
53987f47e2
engine: client: use alternative ease-in ease-out function in sound fade
2023-03-30 04:40:54 +03:00
Alibek Omarov
7cac1d290d
scripts: gha: it's pretty safe to not do clean on Waf, since it's much better at tracking modified files
2023-03-29 00:22:47 +03:00
Alibek Omarov
55b048aab9
github: enable nswitch and psvita CI builds back, test if continuous tag gets correctly deleted
2023-03-29 00:05:40 +03:00
Alibek Omarov
881a7edb9f
github: try to fix uploading release again
2023-03-28 23:54:49 +03:00
Alibek Omarov
6c62136f11
engine: client: avi: convert filename to wide characters before passing it into VFW API
2023-03-28 22:42:16 +03:00
Alibek Omarov
f34b35be5a
engine: client: avi: re-attribute AVI support code by restoring original author copyright
2023-03-28 22:42:16 +03:00
Alibek Omarov
4b5ee87de1
engine: client: adapt to RefAPI 4 changes. Fix interpolation issue after reloading a save
2023-03-28 21:34:51 +03:00
Alibek Omarov
67903b55cc
ref: soft: adapt to RefAPI 4 changes
2023-03-28 21:34:43 +03:00
Alibek Omarov
55bf0e8a53
ref: gl: adapt to RefAPI 4 changes
2023-03-28 20:45:26 +03:00
Alibek Omarov
f1487cf576
engine: ref_api: bump RefAPI version to 4, R_StudioEstimateFrame now has time argument
2023-03-28 20:42:18 +03:00
Alibek Omarov
29e32310cf
github: update linux builds to ubuntu-20.04
2023-03-28 20:08:42 +03:00
Alibek Omarov
2ea549f250
github: update upload-release-action to 2.5.0, print outputs in repackage binaries step
2023-03-28 19:49:35 +03:00
SNMetamorph
b2ea8c9d18
engine: platform: win32: enabled attaching to existing console instead of creating new
2023-03-27 20:31:52 +03:00
Alibek Omarov
6e27926a10
engine: simplify XASH_USE_EVDEV macro usage by giving it's defined positive value
2023-03-27 17:28:19 +03:00
Alibek Omarov
96c30371b7
engine: client: better specify rawinput enabling condition on Win32
2023-03-27 17:22:48 +03:00
Alibek Omarov
9a42f4149f
engine: client: disable enabling mouse cursor in key_message (typing in chat)
2023-03-27 17:22:48 +03:00
Alibek Omarov
dca4226e4b
github: re-use PrimeXT's actions to upload artifacts to GitHub Releases
2023-03-27 06:01:19 +03:00
Alibek Omarov
b3c1c173a9
scripts: gha: exit if we can't move to a specified directory
2023-03-27 04:30:21 +03:00
Alibek Omarov
3e67445ef3
scripts: gha: psvita: fix building HLSDK, exit if we can't move to a directory
2023-03-27 04:27:55 +03:00
Alibek Omarov
127bd89b44
filesystem: remove unused watch.c file, added by mistake from inotify branch
2023-03-27 03:56:57 +03:00
SNMetamorph
3361e74f54
engine: client: console: fixed console scrolling on psvita platform
2023-03-27 03:52:51 +03:00
SNMetamorph
48e199bfa1
engine: common: enabled printing logs to stderr for psvita platform only in developer mode
2023-03-27 03:52:51 +03:00
SNMetamorph
575179dbf5
engine: client: added default dead zone values for psvita platform
2023-03-27 03:52:51 +03:00
SNMetamorph
e024a67436
engine: platform: psvita: fixed vrtld error reporting
2023-03-27 03:52:51 +03:00
SNMetamorph
e3103249f4
engine: platform: psvita: added developer mode button to launcher
2023-03-27 03:52:51 +03:00
SNMetamorph
0746cb5365
engine: platform: psvita: disabled back touch sensor
2023-03-27 03:52:51 +03:00
Alibek Omarov
fcda7517fe
engine: common: soundlib: add support for MP3 looping through custom ID3v2.4.0 tagging
2023-03-27 03:51:42 +03:00
Alibek Omarov
2c77f4c566
engine: client: notify client.dll about local player in firstplayer mode for use in custom renderers
2023-03-27 03:47:42 +03:00
Alibek Omarov
1caa276531
engine: common: imagelib: fix loading cubemaps
...
Loop break was a bug that was added after refactoring imagelib loader.
In fact, it was mindlessly copypasted from old code, where same break was
used to quickly exit from inner format bruteforcing loop, than outer cubemap
loading loop.
2023-03-25 07:02:29 +03:00
Alibek Omarov
e673fe9a02
filesystem: only create readwrite directories if they look like a gamedirectory in rodir
2023-03-25 03:27:32 +03:00
Alibek Omarov
3ccbc7a28c
engine: client: ref_common: r_refdll is not a VIDRESTART cvar
2023-03-24 18:03:06 +03:00
Alibek Omarov
8bb5ec5e26
ref: remove renderer description export, it's unused now
2023-03-24 02:54:14 +03:00
Alibek Omarov
35ff062407
wscript: restore NSwitch and PSVita specific link and compiler flags
2023-03-24 02:28:25 +03:00
Alibek Omarov
ec355a83d1
engine: client: ref_common: eliminate COM_FreeLibrary in renderer names query, hardcoding them instead
2023-03-24 01:52:14 +03:00
Alibek Omarov
182d8edb42
engine: wscript: define enabled renderers as macros
2023-03-24 01:50:53 +03:00
Alibek Omarov
762e4da7a0
wscript: generic refactoring
...
* Add RefDll class to aid in enabling renderers, creating help options, etc
* Fix optimization flags and werrors are being added twice
* Rewrite if not win32: if elif elif into a set of elifs
* Remove mandatory=True in checks, as it's a default option
2023-03-24 01:50:21 +03:00
Alibek Omarov
098c4c009b
engine: platform: sdl: fix incorrect HICON cast in SetClassLongPtr call
2023-03-21 05:16:07 +03:00
Alibek Omarov
f8cf2c8953
scripts: continious_upload: retry if upload failed
2023-03-21 05:15:30 +03:00
Alibek Omarov
cc6838ec97
scripts: gha: psvita: try to fix vitaGL dependency fetching
2023-03-21 04:32:37 +03:00
Alibek Omarov
dca637d4bb
engine: client: eliminate pfnServerCmd limit and, like GoldSrc, send our server command immediately to netchan
2023-03-21 04:25:32 +03:00
Alibek Omarov
3949422430
scripts: gha: psvita: fix HLSDK branches names, as all needed PSVita changes have been merged to hlsdk-portable
2023-03-20 18:14:51 +03:00
Alibek Omarov
2c8488f07a
scripts: gha: psvita: disable SINGLE_THREADED_GC for vitaGL as it was fixed in upstream (thanks, @fgsfds)
2023-03-20 18:05:24 +03:00
Alibek Omarov
1df1fc32df
scripts: gha: psvita: lock vitaGL revision, use --depth=1 in git clone
2023-03-20 18:05:24 +03:00
SNMetamorph
eac8c116a8
engine: server: sv_init: compiling error fix & minor cleanup
2023-03-20 16:29:43 +03:00
SNMetamorph
a03019f5e4
engine: server: sv_init: enabled handling sound resources specifically
...
This is for timely precaching on client side. Otherwise, files are being downloaded to client, but not precached immediatly after it, and therefore causing a late precaching of sound (obvious, this is bad)
2023-03-20 16:29:43 +03:00
SNMetamorph
714b4f45e4
engine: common: added COM_GetResourceTypeName function
2023-03-20 16:29:43 +03:00
SNMetamorph
68be8157ea
engine: common: soundlib: added Sound_SupportedFileFormat function
2023-03-20 16:29:43 +03:00
Alibek Omarov
ea2a8b6785
3rdparty: update submodules (extras, mainui, opus)
2023-03-20 16:03:36 +03:00
Alibek Omarov
8c80d3b85d
engine: common: cvar: add exception for cl_dodmusic cvar to fix Day of Defeat Beta 1.3 music issue
2023-03-18 20:34:30 +03:00
Alibek Omarov
33c0764e65
engine: common: system: fix inverted COM_CheckStringEmpty in Sys_GetCurrentUser for Vita
...
Thanks @fgsfdsfgs for pointing out
2023-03-17 17:29:40 +03:00
Alibek Omarov
d085c5a843
ref: gl: gl_cull: remove thirdperson check, as it handled in client instead
2023-03-15 06:29:29 +03:00
Alibek Omarov
4ada40e8a8
engine: client: check if we should discard local player entity before HUD_AddEntity call, allowing CL_IsThirdPerson hack used in MMod
2023-03-15 06:28:20 +03:00
Alibek Omarov
1630d87c0d
engine: client: do not alter the state if invalid HANDLE was passed to pfnSPR_Set. Fixes Half-Life: MMod
2023-03-15 04:58:33 +03:00
Alibek Omarov
3a956a1ad3
engine: client: initialize variables in SPR_Width/Height/Frames functions, in case R_GetSpriteParms fails
2023-03-15 04:58:00 +03:00
Alibek Omarov
774ced312f
wscript: enforce -Werror=strict-aliasing
2023-03-14 21:29:35 +03:00
Alibek Omarov
fec3d33dcf
engine: client: cl_securedstub: fix strict aliasing in secured module initializing
2023-03-14 21:29:35 +03:00
Alibek Omarov
d4610e30fd
engine: common: net_encode: fix strict aliasing by converting it to use float_bits_t union
2023-03-14 21:29:35 +03:00
Alibek Omarov
885cda971d
engine: common: net_buffer: fix strict aliasing by converting it to use float_bits_t union
2023-03-14 21:29:35 +03:00
Alibek Omarov
ef0b227967
ref: gl: alias: fix strict aliasing by converting it to use float_bits_t union
2023-03-14 21:29:35 +03:00
Alibek Omarov
19a785a98a
public: mathlib: convert rsqrt to use float_bits_t union
2023-03-14 21:29:35 +03:00
Alibek Omarov
b96bfcfe7a
public: mathlib: convert FloatToHalf and HalfToFloat to use float_bits_t union
2023-03-14 21:29:35 +03:00
Alibek Omarov
412c635499
public: add float_bits_t union to access float as 32-bit signed or unsigned integer
2023-03-14 21:29:35 +03:00
Alibek Omarov
da5ec56567
engine: common: con_utils: fix const qualifier discard in Con_CheckName
2023-03-14 00:35:07 +03:00
Alibek Omarov
e664e80b27
engine: common: mod_bmodel: replace few more obvious va calls by temp buffer and Q_snprintf
2023-03-13 06:25:57 +03:00
Alibek Omarov
d177b6f528
engine: cvar: consolidate auto description for GLCONFIG cvars
...
Fix bug when GLCONFIG cvars didn't had it's respective CLIENTDLL or GAMEUIDLL flags
2023-03-13 06:22:54 +03:00
Alibek Omarov
2ef3d78d9f
engine: client: netgraph: replace CL_DrawString with va calls by CL_DrawStringf
2023-03-13 06:16:17 +03:00
Alibek Omarov
5ea5e1167b
engine: client: font: add CL_DrawStringf wrapper
2023-03-13 06:15:45 +03:00
Alibek Omarov
116a605248
engine: common: replace some obvious va uses by temp buffer and Q_snprintf or equivalent code
2023-03-13 06:08:36 +03:00
Alibek Omarov
9690fe9334
engine: client: replace some obvious va uses by temp buffer and Q_snprintf
2023-03-13 06:03:44 +03:00
Alibek Omarov
a81fa84321
engine: server: replace some obvious va uses to temp buffer and Q_snprintf
2023-03-13 06:00:38 +03:00
Alibek Omarov
5ef97ae99e
engine: convert Info_SetValueForKey with va to Info_SetValueForKeyf
2023-03-13 05:37:45 +03:00
Alibek Omarov
d667845777
engine: convert Cbuf_AddText with va to Cbuf_AddTextf
2023-03-13 05:31:27 +03:00
Alibek Omarov
b12b2aaf79
engine: common: cmd: add Cbuf_AddTextf wrapper
2023-03-13 05:28:53 +03:00
Alibek Omarov
6b62f9c1b9
engine: convert Cvar_Get with va to Cvar_Getf
2023-03-13 05:19:32 +03:00
Alibek Omarov
ba1cf25314
engine: convert MSG_WriteString with va to MSG_WriteStringf
2023-03-13 05:13:52 +03:00
Alibek Omarov
fb2ba6a6e2
engine: common: net_buffer: add MSG_WriteStringf wrapper
2023-03-13 05:12:46 +03:00
Alibek Omarov
fb6e310eab
public: move va() function back to engine, it's not recommended to use in shared modules
2023-03-13 02:44:59 +03:00
Alibek Omarov
bcbd1a59c6
engine: common: base_cmd: add a simple benchmark within basecmd_test command
2023-03-13 02:40:48 +03:00
Alibek Omarov
8e45a43ad2
engine: common: base_cmd: alphabetically order inserts for faster lookups
2023-03-13 02:39:54 +03:00
Alibek Omarov
115ed82c19
engine: common: base_cmd: static-ize internal fuctions
2023-03-13 02:39:02 +03:00
Alibek Omarov
5c1e06ae74
public: crclib: optimize COM_HashKey, implement typical djb hashing as this function is used for hashtables with string lookup
2023-03-13 02:37:19 +03:00
SNMetamorph
f9205825b6
engine: platform: sdl: fixed psvita & nswitch platform initializing
2023-03-12 16:09:20 +03:00
Andrey Akhmichin
9040c34f48
ref: gl: replace va function calls.
2023-03-11 17:56:05 +03:00
Andrey Akhmichin
9e9703e6de
engine: common: imagelib: replace va function calls.
2023-03-11 17:37:16 +03:00
Andrey Akhmichin
6486533355
engine: platform: android: replace va function calls.
2023-03-11 16:29:55 +03:00
Andrey Akhmichin
34160151a4
filesystem: replace va function calls.
2023-03-11 16:28:54 +03:00
Andrey Akhmichin
daaaa324bd
engine: platform: emscripten: replace va function calls.
2023-03-11 15:32:14 +03:00
Andrey Akhmichin
af5c74981b
ref: soft: replace va function calls.
2023-03-11 15:31:17 +03:00
Andrey Akhmichin
249ce6bca1
engine: platform: win32: replace va function calls.
2023-03-11 15:30:56 +03:00
Andrey Akhmichin
b648c74815
engine: platform: posix: replace va function calls.
2023-03-11 15:30:29 +03:00
Andrey Akhmichin
a2d459ae84
engine: common: add printf-like version of Cvar_Get function.
2023-03-11 15:29:54 +03:00
Andrey Akhmichin
573781b45d
engine: platform: sdl: replace va function calls.
2023-03-11 15:29:34 +03:00
Andrey Akhmichin
3299999f3d
engine: common: add printf-like version of Info_SetValueForKey function.
2023-03-11 15:28:54 +03:00
Alibek Omarov
91be4f6521
engine: common: cmd: fix inverted check in apropos
2023-03-11 07:50:33 +03:00
fgsfds
f2f21b24a1
scripts: psvita: no need for fsigned-char either
2023-03-11 07:09:19 +03:00
fgsfds
9ef43a4794
scripts: psvita: no need to force GNU_SOURCE everywhere
2023-03-11 07:09:19 +03:00
fgsfds
fc02a69686
docs: add nswitch and psvita to ports.md
2023-03-11 07:09:19 +03:00
fgsfds
b10a0dc5c5
ci: psvita: build bshift libraries
2023-03-11 07:09:19 +03:00
fgsfds
e5f0d1557c
docs: psvita: add install/build instructions
2023-03-11 07:09:19 +03:00
fgsfds
d8a3f4850a
ci: psvita: libk is not required
2023-03-11 07:09:19 +03:00
fgsfds
882d957b5c
ci: psvita: vdpm is in the current directory
2023-03-11 07:09:19 +03:00
fgsfds
afd1727898
ci: psvita: only download necessary packages
2023-03-11 07:09:19 +03:00
fgsfds
70a73e47a7
psvita: use crtlib where possible
2023-03-11 07:09:19 +03:00
fgsfds
fe3f15ad33
engine: input: psvita: reimplement OSK manually
2023-03-11 07:09:19 +03:00
fgsfds
66f625f840
engine: psvita: use a macro for ioctlsocket like on all other platforms
2023-03-11 07:09:19 +03:00
fgsfds
3e1833722f
engine: psvita: check req in ioctlsocket()
2023-03-11 07:09:19 +03:00
fgsfds
4b8e11f561
engine: remove stray #if XASH_PSVITA
2023-03-11 07:09:19 +03:00
fgsfds
0d04c20578
ref: gl: psvita: skip deleting the shaders since glDeleteProgram can block for a long time
2023-03-11 07:09:19 +03:00
fgsfds
41c819f3d3
engine: psvita: keep old arguments in Sys_NewInstance
2023-03-11 07:09:19 +03:00
fgsfds
957154f097
scripts: psvita: move TITLEID and APPNAME to engine elf build arguments
2023-03-11 07:09:19 +03:00
fgsfds
fad506ef03
ref: gl: vgl_shim: remove normal support, it's not necessary
2023-03-11 07:09:19 +03:00
fgsfds
9150bbdfd8
ref: gl: psvita: remove the GL_CheckExtension hack
2023-03-11 07:09:19 +03:00
fgsfds
aa4e2f0ae4
ref: gl: psvita: use Cvar_FullSet to disable r_studio_drawelements
2023-03-11 07:09:19 +03:00
fgsfds
2bacc91922
ref: gl: move vgl_shim to ref/gl
2023-03-11 07:09:19 +03:00
fgsfds
458aa6d8b8
ci: psvita: copy the vpk as well
2023-03-11 07:09:19 +03:00
fgsfds
6963741020
ci: psvita: fix copypaste error
2023-03-11 07:09:19 +03:00
fgsfds
b55aa982b0
ci: psvita: vrtld uses cmake
2023-03-11 07:09:19 +03:00
fgsfds
492481eea8
ci: basic psvita scripts
2023-03-11 07:09:19 +03:00
fgsfds
76bff9cd4b
ref: gl: psvita: fix long hang on shutdown
2023-03-11 07:09:19 +03:00
fgsfds
47a6be86b1
engine: psvita: export stpcpy
2023-03-11 07:09:18 +03:00
fgsfds
287688d985
engine: psvita: implement Sys_NewInstance
2023-03-11 07:09:18 +03:00
fgsfds
610d528042
engine: psvita: implement Sys_GetCurrentUser
2023-03-11 07:09:18 +03:00
fgsfds
89ec39821e
ref: gl: psvita: add fog support; bump max verts to 32768
2023-03-11 07:09:18 +03:00
fgsfds
82cfd3ecc3
ref: gl: psvita: revert arrayverts change, it doesn't matter that much
2023-03-11 07:09:18 +03:00
fgsfds
5a3e3b3977
ref: gl: add immediate mode shim for psvita
2023-03-11 07:09:18 +03:00
fgsfds
9cf6e421cb
ref: gl: psvita: force-enable NPOT textures
2023-03-11 07:09:18 +03:00
fgsfds
5c56b51044
engine: client: don't pop up OSK during loading screens on the PSVita either
2023-03-11 07:09:18 +03:00
fgsfds
577add56f1
filesystem: fs is non case sensitive on nswitch and psvita
2023-03-11 07:09:18 +03:00
fgsfds
adc5aa4659
psvita: don't default to -dev 255
2023-03-11 07:09:18 +03:00
fgsfds
5beed5ab29
engine: psvita: rebalance memory pools a bit
2023-03-11 07:09:18 +03:00
fgsfds
34dd52ca90
ref: gl: trust the GL_EXTENSIONS string on psvita
2023-03-11 07:09:18 +03:00
fgsfds
6304b51f32
psvita: fno-short-enums, make ref_gl function somewhat
2023-03-11 07:09:18 +03:00
fgsfds
97a7de3377
engine: server: remove duplicate registration for sv_autosave
2023-03-11 07:09:18 +03:00
fgsfds
7424b29e56
engine: initial psvita build support
2023-03-11 07:09:14 +03:00
Alibek Omarov
3c64d2ad80
public: build: don't confuse other libcs with built with glibc game libraries by specifying them into separate platform, like Android
2023-03-11 05:45:11 +03:00
Alibek Omarov
1274fa13c8
engine: common: cmd: slightly simplify apropos taking all arguments and checking for filtering symbols
2023-03-11 05:38:28 +03:00
Alibek Omarov
3765686077
public: make va() buffer size public
2023-03-11 05:28:17 +03:00
SNMetamorph
9fffd7a270
Documentation: added page about debugging mods using minidump files
2023-03-11 04:28:25 +03:00
SNMetamorph
e37c07f44f
engine: crashhandler: added support for minidumps generation
2023-03-11 04:28:25 +03:00
SNMetamorph
214a3cce73
engine: host: added -minidumps startup parameter for win32 platform
2023-03-11 04:28:25 +03:00
Andrey Akhmichin
d738b07660
Documentation: mod-porting-guide.md: Update.
2023-03-11 04:22:30 +03:00
Alibek Omarov
48ca8f9a70
engine: server: fix call to non existent function, in this tree it's called IsMasterAdr
2023-03-02 17:36:56 +03:00
Alibek Omarov
c565b0a505
mainui: update
2023-03-02 17:35:50 +03:00
Alibek Omarov
474833a3bf
engine: server: send heartbeats to master server if sv_nat is active, despite public cvar value
2023-03-01 15:57:30 +03:00
Alibek Omarov
602f23fbdf
engine: server: check if we got info request from master server, that acts as a bridge for NAT servers
2023-03-01 15:57:30 +03:00
Alibek Omarov
7e9d46689c
engine: client: fix multiline CenterPrint
2023-02-24 19:46:02 +03:00
Alibek Omarov
b6347d17c9
engine: client: sound: don't print sound/ twice in soundlist command
2023-02-19 12:25:03 +03:00
Alibek Omarov
8293bc91d4
engine: client: sound: fix PickDynamicChannel to correctly find channel with minimum time left
2023-02-18 03:37:20 +03:00
Alibek Omarov
fb0f184d6b
engine: common: lib_common: fix offset by one UB
2023-02-17 22:51:56 +03:00
Alibek Omarov
58e95c7d6f
engine: client: console: elinimate unneeded Sys_DoubleTime call in Con_DrawDebug
2023-02-17 22:50:42 +03:00
Alibek Omarov
7a5381e658
engine: common: mod_studio: fix uninitialized adj array
2023-02-17 22:50:12 +03:00
Alibek Omarov
375c06400c
engine: server: avoid unaligned access in pfnMessageEnd
2023-02-17 22:48:56 +03:00
Alibek Omarov
e481c86ba2
engine: client: console: fix NXPrintf newlines, small refactoring
2023-02-15 05:53:39 +03:00
Alibek Omarov
21b9f07323
engine: platform: sdl: remove legacy XASH_NANOGL macro from vid code, it's only relevant for ref_gl
2023-02-14 18:52:51 +03:00
Alibek Omarov
0bff62e696
engine: sprite: migrate header to stdint.h, remove usage of enums in data structs for portability, add static sizeof checks
2023-02-14 18:29:27 +03:00
Alibek Omarov
858597832d
engine: alias: migrate header to stdint.h, remove usage of enums in data structs for portability, add static sizeof checks
2023-02-14 18:29:18 +03:00
Alibek Omarov
9b0ac7cb32
common: add shared synctype_t definition header, borrowed from Quake's modelgen.h
2023-02-14 18:18:16 +03:00
Alibek Omarov
3c27384b6b
filesystem: speedup fs_ext_path case in FS_FindFile
2023-02-13 06:49:52 +03:00
Alibek Omarov
1e8c26a527
filesystem: wad: fix loading WADs by absolute paths
2023-02-13 06:49:29 +03:00
Alibek Omarov
f4069de7f2
engine: move SlerpBones, CalcBonePosition/Quaternion from engine to libpublic
2023-02-13 05:23:13 +03:00
Alibek Omarov
e95161aa14
filesystem: fix ClearSearchPath
2023-02-12 17:09:53 +03:00
Alibek Omarov
0984368a31
engine: server: GoldSrc compliant pfnServerExecute(), don't execute config.cfg for server!
2023-02-11 07:22:04 +03:00
Alibek Omarov
f4961d9da7
engine: client: return empty string in pfnGetLevelName if no map is loaded yet
2023-02-11 06:50:46 +03:00
Alibek Omarov
f42a174482
engine: client: empty current map name in CL_ClearState
2023-02-11 06:45:20 +03:00
Alibek Omarov
13bf607031
engine: client: call VidInit early in svc_serverdata parsing, GoldSrc compatibility
2023-02-11 06:43:38 +03:00
Alibek Omarov
3cfdb1213b
engine: client: consolidate modern and legacy protocol parsing functions, if possible
2023-02-11 06:06:21 +03:00
Alibek Omarov
d58105d64d
scripts: flatpak: fix Half-Life directory detection
2023-02-11 03:56:40 +03:00
Alibek Omarov
1bdd844860
scripts: flatpak: minimize filesystem permissions, add Steam Flatpak data directory
2023-02-11 03:36:40 +03:00
Alibek Omarov
11f3d97cd7
scripts: flatpak: respect XDG data home in launcher script, add Steam Flatpak data directory
2023-02-11 03:36:40 +03:00
Alibek Omarov
fccf044976
engine: initialize network buffers used on player connect and after
2023-02-09 17:57:45 +03:00
Alibek Omarov
c23396f533
engine: client: keys: hardcode K_START_BUTTON as escape button, cancelselect doesn't exist anymore and many games seems to use this button for menu access, and back for pause
2023-02-09 06:32:14 +03:00
Alibek Omarov
33c9f7118b
engine: platform: sdl: sanitize buttons/axes from SDL, add ABXY->BAYX swap for NSwitch
2023-02-09 06:31:19 +03:00
Alibek Omarov
c741ec223f
engine: client: keys: reserve some more buttons as gamepad buttons according to latest SDL2 GameController header
2023-02-09 06:30:08 +03:00
Alibek Omarov
d6d98bd297
engine: platform: sdl: minor style changes
2023-02-09 05:59:34 +03:00
Alibek Omarov
5e1b5d89f7
engine: client: console: allow opening OSK and existing console with gamepads for all platforms
2023-02-09 05:58:54 +03:00
Alibek Omarov
a0edfd28b2
engine: common: host: use DEFAULT_ALLOWCONSOLE macro to set default console state
2023-02-09 05:56:11 +03:00
Alibek Omarov
555fd02407
defaults: reorganize platform default overrides, disable touch for nswitch
2023-02-09 05:55:35 +03:00
Alibek Omarov
f7f9cfecfc
ci: nswitch: use waf install to copy build artifacts
2023-02-09 05:35:30 +03:00
Alibek Omarov
2aeee59a31
Merge remote-tracking branch 'fgsfds/switch_newer'
2023-02-09 05:18:06 +03:00
Alibek Omarov
12b8965a8c
mainui: update
2023-02-08 20:01:06 +03:00
Alibek Omarov
b5b6b8b785
engine: network: fix some unitialized sockaddr_storage's
2023-02-08 20:00:51 +03:00
fgsfds
35e073ceff
ci: nswitch: don't forget filesystem_stdio
2023-02-08 01:53:26 +01:00
fgsfds
b2cc96cf0d
scripts: wscript: nswitch: do the libstdc++ hack right before build to not pollute the environment
2023-02-08 01:37:35 +01:00
fgsfds
f7489a3747
scripts: nswitch: it's arm64, not aarch64
2023-02-08 01:04:31 +01:00
fgsfds
0e7ebf6d44
Merge branch 'master' of https://github.com/FWGS/xash3d-fwgs into switch_newer
2023-02-08 00:56:20 +01:00
fgsfds
69607d7890
nswitch: do not link libstdc++ into dynamic libraries
...
instead only link it to the main executable with --whole-archive, letting the dynamic libs import anything they want from it
2023-02-08 00:52:48 +01:00
fgsfds
4e87eb068a
engine: common: nswitch: use #if instead of #ifdef
2023-02-07 23:03:59 +01:00
Alibek Omarov
03a7c67731
public: build: revert arm64 renaming to aarch64, we shouldn't enforce naming changes without a reason
2023-02-08 00:03:15 +03:00
Alibek Omarov
5ba2449d10
engine: common: static-ify functions in mod_studio.c
2023-02-08 00:03:15 +03:00
fgsfds
0ee2fd8a8a
ci: nswitch: do not dumb, 00 penalty
2023-02-07 20:52:23 +01:00
fgsfds
080b9b30a1
ci: nswitch: do not put the pkgtemp folder into the .7z
2023-02-07 20:45:42 +01:00
fgsfds
749ac5ed54
ci: nswitch: do not rely on dkp-pacman at all
2023-02-07 20:38:40 +01:00
fgsfds
6c8b9af6bb
ci: nswitch: fix artifact packaging
2023-02-07 20:35:24 +01:00
fgsfds
07922c0239
ci: nswitch: actually set env vars properly
2023-02-07 20:26:24 +01:00
fgsfds
1a54ec92e0
github: ref name not required
2023-02-07 20:26:13 +01:00
fgsfds
663b574b8b
github: checkout the switch_newer branch for now
2023-02-07 20:22:30 +01:00
fgsfds
430c51b71a
ci: nswitch: there is no python-is-python3 where we're going
2023-02-07 20:14:11 +01:00
fgsfds
20bcd03f19
ci: nswitch: ...and set it to be the default python install
2023-02-07 20:07:48 +01:00
fgsfds
dab959fc32
ci: nswitch: the docker container is missing python, install it
2023-02-07 20:04:36 +01:00
fgsfds
eff75e5d50
ci: nswitch: the docker container is missing dkp-toolchain-vars, install it
2023-02-07 20:00:49 +01:00
fgsfds
d103f022b4
ci: nswitch: forgot run
2023-02-07 19:55:33 +01:00
fgsfds
72b8246969
ci: nswitch: attempt to use dkp's docker image
...
because they banned the ci server from accessing their pacman repo
2023-02-07 19:54:00 +01:00
fgsfds
030d05f018
ci: nswitch: make install with sudo
2023-02-07 18:38:18 +01:00
fgsfds
59cd5493e7
github: add nswitch build target
2023-02-07 18:35:08 +01:00
fgsfds
98a7f6fa3f
ci: add nswitch build scripts
2023-02-07 18:34:58 +01:00
fgsfds
65095df124
Merge branch 'master' of https://github.com/FWGS/xash3d-fwgs into switch_newer
2023-02-07 17:15:01 +01:00
fgsfds
ee370ea007
Merge branch 'master' of https://github.com/FWGS/xash3d-fwgs into switch_newer
2023-02-07 17:14:47 +01:00
Alibek Omarov
05016f8639
engine: vgui: add EnableTextInput to the API
2023-02-06 16:42:09 +03:00
Alibek Omarov
12154de6f5
ref: soft: fix -Wsequence-point
2023-02-06 16:42:09 +03:00
Alibek Omarov
3fca567b81
wscript: few more warnings-as-errors
2023-02-06 16:42:09 +03:00
Alibek Omarov
634574f249
engine: platform: sdl: don't enable text mode with cursor???
2023-02-06 00:29:14 +03:00
fgsfds
f782d444a8
engine: platform: posix: don't redefine _GNU_SOURCE
2023-02-06 00:05:41 +03:00
fgsfds
b68def2b9c
engine: touch: only pop up touch keyboard on FINGERDOWN events
2023-02-06 00:05:32 +03:00
fgsfds
d944301a60
engine: client: add barebones gamepad controls to input fields
2023-02-06 00:05:28 +03:00
fgsfds
15ba932046
engine: server: add sv_autosave cvar
...
* a1ba: added FCVAR_PRIVILEGED just in case
2023-02-06 00:05:20 +03:00
fgsfds
b73c16c216
engine: net_ws: pass correct sockaddr lengths where needed
2023-02-05 23:51:48 +03:00
fgsfds
0ba4ef678c
engine: net_ws: pass correct sockaddr lengths where needed
2023-02-05 03:39:32 +01:00
fgsfds
919d510f63
Merge branch 'master' of https://github.com/FWGS/xash3d-fwgs into switch_newer
2023-02-05 02:37:40 +01:00
fgsfds
6557ac7fb4
server: add sv_autosave cvar
2023-02-05 02:29:22 +01:00
Alibek Omarov
87c307f47e
scripts: flatpak: install vgui
2023-02-05 04:27:58 +03:00
fgsfds
f3e50b5500
add barebones gamepad controls for input fields and console
2023-02-05 02:27:12 +01:00
fgsfds
705f252ed8
nswitch: don't automatically pop up OSK when opening console
2023-02-05 02:26:48 +01:00
fgsfds
cb28101732
touch: only pop up OSK on FINGERDOWN events
2023-02-05 02:26:17 +01:00
fgsfds
f87863b8bc
nswitch: always enable console
2023-02-05 02:18:11 +01:00
fgsfds
25fb89f717
nswitch: don't redefine O_BINARY
2023-02-05 02:16:56 +01:00
fgsfds
36e7856b9c
don't redefine _GNU_SOURCE
2023-02-05 02:16:38 +01:00
Alibek Omarov
34b0cdc125
scripts: flatpak: use relative paths as RoDir doesn't allow absolute paths for now
2023-02-05 04:13:45 +03:00
fgsfds
25a1cb8ce7
Nintendo Switch support (again)
2023-02-05 02:09:32 +01:00
Alibek Omarov
a610b1545b
scripts: flatpak: check .local directory for steam library
2023-02-05 03:44:58 +03:00
Alibek Omarov
30b698067a
scripts: flatpak: allow easy debugger attach
2023-02-05 03:25:07 +03:00
Alibek Omarov
f63f1a0dc6
scripts: flatpak: add another default Steam library path
2023-02-05 02:43:36 +03:00
Alibek Omarov
9cb867a7d4
filesystem: wad: print errno if wad can't be opened
2023-02-05 02:42:35 +03:00
Alibek Omarov
00ddd95c27
scripts: flatpak: try to add ourselves to desktop menu entries
2023-02-05 02:25:21 +03:00
Alibek Omarov
0ffd1b9ff1
github: try to enable building flatpak bundle
2023-02-05 00:40:08 +03:00
Alibek Omarov
2109d49aa3
ci: disable xash-extras fetching, it's a submodule now
2023-02-05 00:06:19 +03:00
Alibek Omarov
f910f4896c
engine: client: font: finally add support for tab character in engine
2023-02-04 22:53:10 +03:00
Alibek Omarov
6eae3471cf
engine: client: font: fix consecutive newlines skipped, add flag to reset color after a newline
2023-02-04 21:59:46 +03:00
Alibek Omarov
c0fa91bec9
engine: client: consolidate client and menu scissor functions
2023-02-04 21:24:19 +03:00
Alibek Omarov
ba6dd3c751
engine: client: font: fix another inverted check
2023-02-04 21:23:51 +03:00
Alibek Omarov
fd63018fb5
engine: client: make client string drawing functions ignore linefeeds
2023-02-04 20:58:33 +03:00
Alibek Omarov
2225915702
engine: client: font: fix CL_DrawStringLen
2023-02-04 20:54:17 +03:00
Alibek Omarov
d14e486721
engine: client: font: add special flag to ignore linefeeds when drawing strings
2023-02-04 20:53:52 +03:00
Alibek Omarov
82b6da493a
wscript: enforce GCC suspicious sizeof operations warnings as errors
2023-02-03 18:51:50 +03:00
Alibek Omarov
bec0b36bb9
engine: client: font: fix colorcodes, don't reset Colo4ub, it will be reset by consequent draw calls anyway
2023-02-03 18:20:02 +03:00
Alibek Omarov
e2c2821191
engine: client: font: do not apply filtering hack when fonts aren't upscaled
2023-02-03 18:06:07 +03:00
Alibek Omarov
a19d34035d
engine: client: font: do not use OpenFile on WADs >_<
2023-02-03 17:49:06 +03:00
Alibek Omarov
77ea03a62c
engine: client: introduce bare-bones font manager and text drawing manager
...
* wire hud_fontscale so HUD font scaling can be used independently from
hud_scale
* allow small optimizatinons, like optional UTF-8 decoding, or not calling
SetRenderMode for each character
* even less copypasted code in text drawing between client code and console
* get rid of direct DrawCharacter calls when it can be just DrawString
* fix net_speeds, r_speeds with scaled console fonts
* try to fix MobilityAPI's pfnDrawCharacterScaled
* center keyboard keys in OSK code
2023-02-03 08:51:18 +03:00
Alibek Omarov
402a0f129d
engine: platform: sdl: use SDL joystick rumble for Platform_Vibrate
2023-02-03 08:50:41 +03:00
Alibek Omarov
d7116afc92
engine: client: add hud_fontscale cvar to control HUD font scaling (not wired to any logic yet)
2023-02-02 04:57:53 +03:00
Alibek Omarov
d5fe491c14
engine: client: add a little auto-disconnect message in case of server timeout
2023-02-02 02:49:25 +03:00
Alibek Omarov
92138428c5
engine: touch: don't emulate touch and mouse through SDL2 (taken from @Velaron branch)
2023-02-01 06:42:31 +03:00
Alibek Omarov
f3ff942ea9
scripts: flatpak: add basic i386 flatpak script
2023-02-01 04:58:12 +03:00
Alibek Omarov
ced6e8869a
ref: fix chrome texture being misaligned
2023-02-01 04:55:47 +03:00
Alibek Omarov
d7af50ea6c
engine: ref: remove direction vectors from Ref API, renderers calculate them from viewangles to local data anyway
2023-01-31 07:18:23 +03:00
Alibek Omarov
f7d4e5a2ea
engine: server: don't show GAMESAVED message in autosaves, small refactoring
2023-01-31 07:16:08 +03:00
Alibek Omarov
2e3788f23d
engine: dedicated: add CL_HudMessage to dedicated stubs
2023-01-31 07:14:26 +03:00
Alibek Omarov
eaf9a9283a
Revert "engine: network: do not read from uninitialized sockaddr storage"
...
This reverts commit 4f78ec01cf .
2023-01-31 04:33:27 +03:00
Alibek Omarov
ae66291272
scripts: compiler_optimizations: added MSan target
2023-01-31 04:28:08 +03:00
Alibek Omarov
4f78ec01cf
engine: network: do not read from uninitialized sockaddr storage
2023-01-31 04:14:18 +03:00
Alibek Omarov
be084d5603
engine: crashhandler: fully initialize struct sigaction
2023-01-31 00:50:48 +03:00
Alibek Omarov
aac0be1ab3
engine: imagelib: img_bmp: fully initialize local palette array
2023-01-31 00:50:04 +03:00
Alibek Omarov
6282acc825
engine: client: simplify drawing loading or paused bar, fix position with hud_scale active
2023-01-30 23:17:53 +03:00
Alibek Omarov
39fd30a472
engine: client: fix HUD font loading
2023-01-27 19:07:26 +03:00
Alibek Omarov
279e391949
engine: sound: allow mouth move for CHAN_STREAM
2023-01-27 06:19:31 +03:00
Alibek Omarov
6df25392b8
engine: server: redirect special sounds, detected by leading asterisk, into CHAN_STREAM
...
In GoldSrc this magic symbol means that we should not override channel this
sound is playing on. Originally handled on client but for both static and dynamic sounds
so let's redirect channel on server side instead.
2023-01-27 06:19:31 +03:00
Alibek Omarov
327372e253
engine: client: call SND_ForceOpen/CloseMouth within SND_Open/CloseMouth to avoid copypasted code
2023-01-27 06:19:31 +03:00
Andrey Akhmichin
801dbaa387
engine: common: soundlib: libmpg: backport fix for CVE-2017-11126.
...
Original patch: https://www.mpg123.de/cgi-bin/scm/mpg123/trunk/src/libmpg123/layer3.c?view=patch&r1=4275&r2=4274
Same as: f246a0cdfd
2023-01-25 15:57:52 +03:00
Andrey Akhmichin
ffd5c2d3d0
engine: common: soundlib: libmpg: backport fix for CVE-2017-12839.
...
Original patch: https://www.mpg123.de/cgi-bin/scm/mpg123/trunk/src/libmpg123/getbits.h?view=patch&r1=2024&r2=4323
Same as: 8a5e21a2a2
2023-01-25 15:57:52 +03:00
Alibek Omarov
84c14b32ec
engine: client: fix filtering errors by adjusting texcoords by half of a pixel
...
Remove useless wrapper functions and conversions
Don't scale texcoords and position if hud_scale is not active
2023-01-25 04:17:48 +03:00
Alibek Omarov
c481e52558
engine: client: consolidate variable and quake fixed width font loading functions
2023-01-25 02:38:18 +03:00
Alibek Omarov
b946ed4625
engine: platform: sdl: don't flood about closest display mode in case of no changes
2023-01-18 20:05:00 +03:00
Alibek Omarov
ef1572b15b
engine: crashhandler: fix build on FreeBSD (and probably on NetBSD and OpenBSD)
2023-01-18 19:45:21 +03:00
Alibek Omarov
aaeb18f433
engine: inline version of MSG_BigShort
2023-01-18 19:29:27 +03:00
Alibek Omarov
dd1d86c289
engine: platform: sdl: check usable display rect before creating window
2023-01-18 19:28:16 +03:00
Alibek Omarov
16b162f7bb
engine: vid: position window in center by default
2023-01-18 19:27:40 +03:00
Alibek Omarov
500ca54550
Revert "engine: get rid of MSG_BigShort, use htons instead, since network headers are always included"
...
This reverts commit a6475f530b .
2023-01-18 19:21:51 +03:00
Alibek Omarov
5313dc9475
engine: client: fix uninitialized fadeTotalEnd in screenfade parsing code
2023-01-16 09:21:30 +03:00
Alibek Omarov
9c0c1a802c
filesystem: fix strict order of loading archives
2023-01-15 13:12:39 +03:00
Alibek Omarov
fbedbdca7d
engine: client: fix fullscreen reapplied on window resize
2023-01-14 18:52:38 +03:00
Alibek Omarov
6232e288e1
engine: client: fool proof R_SaveVideoMode
2023-01-14 11:45:42 +03:00
Alibek Omarov
a6475f530b
engine: get rid of MSG_BigShort, use htons instead, since network headers are always included
2023-01-14 10:58:04 +03:00
Alibek Omarov
de84df99f3
engine: fix functions returning void returning void value
2023-01-14 10:58:03 +03:00
Alibek Omarov
a5d5c1f60b
wscript: cast-align is less effective than ubsan
2023-01-14 10:58:03 +03:00
Alibek Omarov
6ac3156a82
engine: fix discarded const pointer qualifier in PM_HullPointContents
2023-01-14 10:57:22 +03:00
Alibek Omarov
2705e77a4e
ci: don't spew config.log when it's not needed, less verbosity
2023-01-14 10:06:32 +03:00
Alibek Omarov
a09aa31b7a
github: comment out CI builds for MAGX and Android
2023-01-14 09:52:44 +03:00
Xav101
9466461ce0
engine: preliminary support for SGI IRIX ( #1211 )
...
* Added definitions for IRIX
* Patchset to get dedicated server to compile on IRIX.
* Cleaned up debug statements in wscript
* Potential bug in IRIX implementation of isnan? For now just use the portable macro.
* Include the platform port files in the build
* Temporary execution script for setting appropriate library search paths to the right locations in the build directory. This should probably get replaced with a more permanent script at some point which lives in the same directory as the normal xash binary, or be replaced by a solution that sets the rpath during config or modifies rpath during install.
* Clean up formatting and remove unneeded debugging statements
* Added GPL copyright notice and description
* Moved to irix platform folder and edited script
* Re-introduced _inline macro
* Replace spaces with tabs
Co-authored-by: Xav101 <xaviernye@msn.com >
2023-01-14 09:35:30 +03:00
Alibek Omarov
74ce7e9b10
ref: don't apply rendercolor to studio models where it's not needed
2023-01-13 15:25:58 +03:00
Alibek Omarov
10481a4ecc
github: upgrade SDL2
2023-01-13 11:50:01 +03:00
Alibek Omarov
acd86ce490
engine: sound: select which to buffer raw channels will be painted to, choose stream buffer for voice
2023-01-13 08:50:33 +03:00
Alibek Omarov
1119a9ac22
engine: network: reenable DNS resolving in separate thread for Windows
2023-01-13 08:09:16 +03:00
Alibek Omarov
171c0c8d3b
engine: common: zone: use stdint types
2023-01-12 04:04:53 +03:00
Alibek Omarov
9b5e0fef01
engine: common: zone: make Mem_Alloc return aligned addresses on ILP32, thanks Xav101 on Discord for heads up
2023-01-12 04:02:04 +03:00
Alibek Omarov
2f5e3b0aea
mainui: update
2023-01-11 13:41:54 +03:00
Alibek Omarov
ca3b0e6246
Documentation: document the _i?86 quirk in library naming scheme
2023-01-10 04:59:28 +03:00
Alibek Omarov
eb0459a045
engine: strip Intel suffixes from server library name, but only on special platforms
...
Remove same code from filesystem, it's not what filesystem should do
2023-01-10 04:51:34 +03:00
Alibek Omarov
5d98e13fb8
public: add Q_ArcitectureStringByID function to get library naming compliant CPU and ABI string
2023-01-09 22:53:05 +03:00
Alibek Omarov
113904ea91
public: fix build
2023-01-09 22:47:54 +03:00
Alibek Omarov
1dc3cc2d57
public: add Q_PlatformStringByID function that returns library naming compliant string by platform identifier from buildenums
2023-01-09 08:06:58 +03:00
Alibek Omarov
15a5975abf
public: build.h refactoring, removed XASH_MSVC, XASH_MINGW, as this header never intended to detect the compiler
2023-01-09 08:05:59 +03:00
Alibek Omarov
65debeb738
public: add header buildenums.h declaring all platforms, architectures and ABIs as integer constants.
2023-01-09 08:04:58 +03:00
Alibek Omarov
209a03a12a
engine, public: prepare to removal of XASH_MSVC macro
2023-01-09 08:01:52 +03:00
Alibek Omarov
c28aeb2362
engine: make crashhandler implementation choice private to crashhandler code
2023-01-09 07:55:54 +03:00
Alibek Omarov
9152bbf106
engine: client: more accurate decompilation of CL_LerpPoint and ComputeInterpolationAmount
2023-01-07 11:08:32 +03:00
Alibek Omarov
40ba0238f8
engine: client: cosmetic changes in pmove code
2023-01-07 11:07:32 +03:00
Alibek Omarov
4a3efa511c
engine: client: correctly decompiled version of CL_AdjustClock (with removed useless float-to-int operation)
2023-01-07 07:23:14 +03:00
Alibek Omarov
2479d28cd5
engine: remove useless pfnHullPointContents wrapper
2023-01-06 00:38:05 +03:00
Alibek Omarov
787d3bc5dd
engine: share playermove ClearPhysEnts function
2023-01-06 00:28:24 +03:00
Alibek Omarov
0bec78a958
engine: client: make few function between pmove and client interface shared, remove unused CL_PointContents wrapper
2023-01-06 00:09:36 +03:00
Alibek Omarov
e305b81df0
engine: merge PM_TraceTexture into PM_TraceTexturePmove
2023-01-05 23:59:31 +03:00
Alibek Omarov
4cb109abe0
engine: make playermove funcs truly shared between client and server
2023-01-05 23:50:42 +03:00
Alibek Omarov
49a65edfc3
engine: imagelib: img_quant: fix a bug in quantizer (thanks, @SNMetamorph for fix)
2023-01-05 07:24:24 +03:00
Alibek Omarov
c6bfc82019
ref: soft: implement screenshots
2023-01-05 07:09:23 +03:00
Alibek Omarov
a4865fd2fc
engine: client: fix ScreenFade FFADE_MODULATE rendering, more accurate alpha blending
2023-01-05 06:09:10 +03:00
Alibek Omarov
4bbd0cc404
ref: add new special rendermode that specifically used for modulate mode in engine's ScreenFade
2023-01-05 06:07:56 +03:00
Alibek Omarov
4684f174ee
public: completely get rid of PATH_SEPARATOR macros
2023-01-05 06:06:07 +03:00
Alibek Omarov
34eb258cae
filesystem: dir: remove PATH_SEPARATOR, fix return value when directory is caseinsensitive
2023-01-04 22:34:45 +03:00
Alibek Omarov
b4c0ccbede
filesystem: fix _wstat usage under Windows, remove PATH_SEPARATOR usage, fix listdirectory
2023-01-04 22:33:59 +03:00
Alibek Omarov
51b5d7a41d
engine: host: ensure we always have right slashes under Windows
2023-01-04 19:39:52 +03:00
Alibek Omarov
15846a8ea8
filesystem: use POSIX funcs for Windows too, where possible, apply wide char conversion for Sys functions
2023-01-04 18:10:33 +03:00
Alibek Omarov
e694081626
filesystem: dir: guarantee file existense in FS_FixFileCase for caseinsensitive directories
2023-01-04 18:09:00 +03:00
Alibek Omarov
cb9605430d
filesystem: bump FS_API_VERSION (removed unused argument from SysFileExists)
2023-01-04 18:07:18 +03:00
Alibek Omarov
80507b2eca
engine: mod_bmodel: fix const qualifier discard warning
2023-01-04 17:55:59 +03:00
Alibek Omarov
ed47346ef1
engine: crashhandler: fix _GNU_SOURCE redefined warning
2023-01-04 17:54:45 +03:00
Alibek Omarov
75ccd2283b
public: fix Q_memmem counting haystack size incorrectly
2023-01-04 17:17:18 +03:00
Alibek Omarov
409edf5a70
filesystem: zip: use stdint types, use enum for errors
2023-01-04 17:15:40 +03:00
Alibek Omarov
d047dfc319
engine: add few lines in mod_bmodel back, got removed in previous commits accidentally
2023-01-03 18:26:18 +03:00
Alibek Omarov
13ed2742b2
engine: check for bsp30ext before trying to use extended clipnodes, fix 32-bit clipnodes check
2023-01-03 07:50:50 +03:00
Alibek Omarov
03a3fb83b6
filesystem: write extended fields to gameinfo.txt, as this function is used to write game info when using rodir
2023-01-03 07:34:05 +03:00
Alibek Omarov
df1c9a5029
engine: simplify blue shift swapped lump check, change TestBmodelLumps to avoid reading past mod buffer
2023-01-03 07:01:39 +03:00
Alibek Omarov
07e622f224
public: add generic implementation for Q_memmem
2023-01-03 06:58:58 +03:00
Alibek Omarov
aa3a0fa392
engine: server: increase infostring size in SV_Info allowing longer hostnames but try to cut off if it's even longer than that
2023-01-03 04:01:53 +03:00
Alibek Omarov
c1287b3950
engine: client: speed up reconnect for legacy servers
2023-01-03 03:19:46 +03:00
Alibek Omarov
e5763e2e9a
filesystem: dir: check dir casesensitivity after dir entries list was properly initialized
2023-01-03 01:15:28 +03:00
Alibek Omarov
42a3c7b059
filesystem: dir: fix dir entry cache init in case of directory was empty previously
2023-01-03 00:24:57 +03:00
Alibek Omarov
e621c98602
engine: network: do not crash if one of v4 or v6 socket opening failed but crash if both. Fix hostport/clientport cvars usage
2022-12-30 02:06:15 +03:00
Alibek Omarov
eb7eb4acbc
engine: client: cl_scrn: minor refactoring
2022-12-30 01:58:26 +03:00
Alibek Omarov
e5b32fe8ac
engine: client: force nearest filter for HUD textures and sprites to avoid artifacts with hud_scale
2022-12-30 01:57:10 +03:00
Alibek Omarov
52061621ac
engine: client: do not let client.dll overwrite usercmd that's was read from demo
2022-12-27 23:10:11 +03:00
Alibek Omarov
339711c3c7
filesystem: dir: check casefold directory flag
2022-12-27 02:31:46 +03:00
Alibek Omarov
256fe7ede9
scripts: make sure to test filesystem on CI
2022-12-27 02:31:46 +03:00
Alibek Omarov
2febe632c5
filesystem: add caseinsensitive emulation test
2022-12-27 02:31:46 +03:00
Alibek Omarov
c454e37064
filesystem: allow to init with NULL overrides
2022-12-27 02:31:46 +03:00
Alibek Omarov
fe1aba3561
filesystem: apply caseinsensitivity to file creation
...
Replace fs_writedir with fs_writepath, exposing current writeable searchpath.
Fix caseinsensitive FS_Search
Remove unused argument from listdirectory()
Minor optimizations and refactoring
2022-12-27 02:31:46 +03:00
Alibek Omarov
41aa867a21
engine: common: don't try to delete now non-existing config file after backing up
2022-12-27 02:31:46 +03:00
Alibek Omarov
b36ebc294f
filesystem: dir: exit from loop immediately if directory is caseinsensitive
2022-12-27 02:31:46 +03:00
Alibek Omarov
3d71e5d111
filesystem: dir: fix merging existing cache with new directory entries
2022-12-27 02:31:46 +03:00
Alibek Omarov
ac59f25375
DO NOT MERGE filesystem: add naive FixFileCase
2022-12-27 02:31:46 +03:00
Alibek Omarov
3393e2d95c
filesystem: implement directory entries caching, to avoid excessive directory listing syscalls to emulate case-insensitive filesystems
...
* simplify game directory initialization code
2022-12-27 02:31:46 +03:00
Alibek Omarov
e1ea3387ee
common: rename PATH_SPLITTER to PATH_SEPARATOR, change it's type to character
2022-12-27 02:31:46 +03:00
Alibek Omarov
071638794a
public: redefine Q_strpbrk to C standard version, add Q_strchrnul
2022-12-27 02:31:46 +03:00
Alibek Omarov
953dd3d1a7
wscript: tidy up checks, add check for GNU strchrnul
2022-12-27 02:31:46 +03:00
Andrey Akhmichin
12bb0ca44b
engine: server: Fix broken description for saves.
2022-12-25 04:26:00 +03:00
MoeMod Server #2
499cd48e83
filesystem: fix lseek for mpg123
2022-12-24 22:02:58 +03:00
Andrey Akhmichin
444e08f59a
engine: common: simplify strings operations.
2022-12-21 03:26:41 +03:00
Andrey Akhmichin
9450c08eec
engine: server: simplify strings operations.
2022-12-21 03:26:11 +03:00
Alibek Omarov
18e68f1ab3
filesystem: fix missing cast
2022-12-20 16:34:23 +03:00
Andrey Akhmichin
7555fefc18
ref: gl: simplify strings operations.
2022-12-20 16:11:21 +03:00
Andrey Akhmichin
f4fb8b4ac2
engine: client: simplify strings operation.
2022-12-20 16:07:34 +03:00
Andrey Akhmichin
0d5cd89144
engine: client: Fix access to uninitialized variable.
2022-12-20 16:06:41 +03:00
Andrey Akhmichin
e273e09fc9
engine: platform: win32: simplify strings operations.
2022-12-20 16:06:25 +03:00
Alibek Omarov
327017421c
engine: common: zone: redefine poolhandle_t back to pointer for 32-bit systems
2022-12-19 18:38:49 +03:00
Alibek Omarov
6e179346c9
common: redefine poolhandle_t back to pointer for 32-bit systems
2022-12-19 18:36:31 +03:00
Alibek Omarov
ee218f36e0
filesystem: pak: no need to free files ptr anymore
2022-12-17 00:25:20 +03:00
Alibek Omarov
f3400c983e
engine: network: fix address comparator
2022-12-15 12:25:03 +03:00
Alibek Omarov
9397301a73
filesystem: remove excessive filename field from archive structs, use common in searchpath_t. Small optimizations for PAK
2022-12-15 04:06:38 +03:00
Alibek Omarov
f1ec612819
filesystem: hungry
2022-12-15 01:06:20 +03:00
Alibek Omarov
08f834cd82
filesystem: make all archive searchpath functions private
2022-12-15 00:59:52 +03:00
Alibek Omarov
48c17d08d9
filesystem: dir: move searchpath initialization to dir.c, make all DIR functions static
2022-12-15 00:52:09 +03:00
Alibek Omarov
f20fddee1c
common: bspfile: add separate definitions for clipnodes limit for HLBSP and QBSP2
2022-12-15 00:42:40 +03:00
Alibek Omarov
754d55beef
engine: common: fix for HLBSP extended clipnodes hack when BSP2 support is enabled
2022-12-13 11:34:42 +03:00
Alibek Omarov
cd813bbfbe
engine: server: do not apply sound precache check for sentences, as they may start with 0 index
2022-12-13 11:12:08 +03:00
Alibek Omarov
07afbd64d4
engine: common: host: force set HOST_FRAME status for dedicated as it finished initializing
2022-12-13 10:54:06 +03:00
Alibek Omarov
af7d6f6fa8
engine: common: no point to allow if and else commands in unprivileged mode since scripting is available only for privileged
2022-12-12 08:18:00 +03:00
Alibek Omarov
cb0f513bf0
engine: common: allow cvar substituion in privileged mode only to prevent leaking sensitive data
2022-12-12 08:14:01 +03:00
Alibek Omarov
a3ef6c955c
engine: don't double register rcon_password cvar
2022-12-12 08:13:24 +03:00
Alibek Omarov
60e7a7aa23
engine: server: set correct flags for rcon_ cvars on server
2022-12-12 08:05:55 +03:00
Alibek Omarov
e1431e1040
engine: server: add rcon_enable cvar to control whether server should accept remote commands
2022-12-12 08:02:56 +03:00
Alibek Omarov
b794f2fda0
mainui: update
2022-12-12 07:56:03 +03:00
Alibek Omarov
934d9ba69a
filesystem: fix FS_GetDiskPath
2022-12-12 06:54:42 +03:00
Alibek Omarov
9e54ddfd55
engine: client: treat dem_unknown as no-op, until we find real cause of empty holes in demoheader
2022-12-12 06:31:54 +03:00
Alibek Omarov
a86a24d33d
mainui: update
2022-12-12 06:30:47 +03:00
Alibek Omarov
fe9ed0ac9b
engine: client: gameui: add new NET_CompareAdrSort function to menu API
2022-12-12 06:30:47 +03:00
Alibek Omarov
18c94b6ec4
engine: common: add network address comparator function
2022-12-12 06:30:47 +03:00
SNMetamorph
8fa0290e25
Documentation: extensions: added page about expanded common structures
2022-12-11 22:59:17 +03:00
SNMetamorph
080cd146dd
common: com_model: changed common structs reserved fields type to intptr_t
2022-12-11 22:59:17 +03:00
SNMetamorph
b1d910a3a5
engine: client: fixed connection hang when all resources downloaded ( fix #829 )
2022-12-09 19:20:53 +03:00
SNMetamorph
840283d6e5
engine: netchan: fixed fragbufs very high memory usage
2022-12-09 19:20:53 +03:00
SNMetamorph
d72481e5ac
engine: netchan: fixed downloading files output directory
2022-12-09 19:20:53 +03:00
SNMetamorph
dbe9309475
engine: netchan: fixed wrong compressed file size calculation
2022-12-09 19:20:53 +03:00
Alibek Omarov
9fa4de6ee8
mainui: update
2022-12-08 06:55:32 +03:00
Alibek Omarov
fd3c5e8384
ref: gl: VBO is disabled unless somebody picks it up and fixes memory corruption and other bugs
2022-12-08 06:50:12 +03:00
Alibek Omarov
d50ed1c087
engine: common: host: don't prepend # to command arguments when changing game to dedicated, it wasn't used and implement anymore
2022-12-08 05:44:17 +03:00
Alibek Omarov
e48133bf4b
engine: server: fix sv_log output for enttools usage
2022-12-08 05:40:36 +03:00
Alibek Omarov
ea3bfd969c
engine: imagelib: img_wad: dirty hack to fix black holes in console background images
2022-12-08 05:40:11 +03:00
Alibek Omarov
7469d6a248
engine: server: implement server-to-master challenge extension, to secure server from IP spoofing
2022-12-07 23:39:57 +03:00
Alibek Omarov
859f36afce
engine: server: remove Master_Add call in ActivateServer, server will announce itself through heartbeat
2022-12-07 23:14:34 +03:00
Alibek Omarov
436a788ac8
engine: client: disable FPS counter by default
2022-12-07 21:54:23 +03:00
Velaron
5098e24806
engine: client: touch: fix empty list when opening touch buttons menu for the first time
2022-12-07 15:35:51 +03:00
Alibek Omarov
1d8acc16f1
engine: server: give master server a small time window to reply (by default 4000 ms, should be enough even when master server is overloaded)
2022-12-06 20:28:44 +03:00
Alibek Omarov
802c7a86a9
engine: platform: sdl: add pause and scrolllock handlers
2022-12-06 11:50:38 +03:00
Alibek Omarov
406eb828da
ref: gl: disable underwater distortion by default, enable for Quake compatible mode only
2022-12-05 11:59:29 +03:00
Alibek Omarov
0e9106685b
engine: imagelib: img_png: fix Mem_Free on null ptr
2022-12-05 06:13:04 +03:00
Alibek Omarov
9b001987e9
engine: imagelib: fix crash when chunk length is more than file size
2022-12-05 05:39:41 +03:00
Alibek Omarov
5c2c02c317
engine: common: custom: use IL_LOAD_PLAYER_DECAL flag when loading custom player decals
2022-12-05 04:56:07 +03:00
Alibek Omarov
21c898d796
engine: imagelib: validate player decal image size (max 512x512)
2022-12-05 04:55:24 +03:00
Alibek Omarov
e48b708fa6
engine: imagelib: img_png: validate image size through common engine function
2022-12-05 04:54:20 +03:00
Alibek Omarov
ccf7619ae5
engine: imagelib: refactor image loading function
2022-12-05 03:22:07 +03:00
Alibek Omarov
eabbd0061f
mainui: update
2022-12-05 03:22:07 +03:00
Alibek Omarov
7d0d6b8e0d
engine: common: host: implement adaptive sleeptime, log time to first time for debug purposes
2022-12-05 03:22:07 +03:00
Alibek Omarov
eb36fe0155
filesystem: fill searchpath DIR functions only if file was found in direct path
2022-12-05 03:22:07 +03:00
Alibek Omarov
9381a40506
filesystem: check only DLLs for encryption
2022-12-05 03:22:07 +03:00
SNMetamorph
a19270a0dc
engine: client: max fragment size test retries increased to 3
2022-12-04 23:29:26 +03:00
SNMetamorph
c34ce2d9e1
engine: client: fixed max fragment size wrong calculation
2022-12-04 23:29:26 +03:00
SNMetamorph
58465c3727
engine: common: fixed dedicated server bug
...
The problem is server wasn't executing server.cfg if map specified in startup parameters
2022-12-04 23:29:26 +03:00
Andrey Akhmichin
177ed2c603
engine: common: simplify strings operations.
2022-12-04 22:37:45 +03:00
Andrey Akhmichin
7bb994f7bc
engine: common: imagelib: img_png.c: fix wrong palette decoding.
2022-12-04 22:09:24 +03:00
Andrey Akhmichin
0c4f35e2d0
filesystem: simplify strings operations.
2022-12-04 22:08:06 +03:00
Andrey Akhmichin
3287501f97
engine: client: simplify strings operations.
2022-12-04 22:04:07 +03:00
Andrey Akhmichin
2454594a18
engine: server: simplify strings operations.
2022-12-04 22:03:48 +03:00
Alibek Omarov
4daab23e2d
mainui: update
2022-12-04 05:31:02 +03:00
Alibek Omarov
51161004eb
engine: common: simplify string operations
2022-12-04 05:26:22 +03:00
Alibek Omarov
6477f1656e
filesystem: simplify string operation
2022-12-04 05:26:22 +03:00
Alibek Omarov
270e2a76a8
engine: soundlib: simplify string operation
2022-12-04 05:26:22 +03:00
Alibek Omarov
c61442e960
engine: imagelib: simplify string operation
2022-12-04 05:26:22 +03:00
Alibek Omarov
d0928af355
mainui: update to png-decals branch
2022-12-04 05:26:22 +03:00
Alibek Omarov
674093517e
3rdparty: update various submodules
2022-12-02 21:29:51 +03:00
Alibek Omarov
ebf3877cda
engine: common: throw an error message into log in normal mode too!
2022-12-02 21:22:22 +03:00
Alibek Omarov
e97310c441
engine: common: net_ws: fix uninitialized family in IPSocket
2022-12-02 21:21:53 +03:00
Alibek Omarov
cbe3e608b6
engine: client: add cl_logoext cvar that's used by mainui to tell the engine which logo must be packed
2022-12-01 18:25:21 +03:00
Alibek Omarov
f30f23ba51
engine: common: validate and load PNG images in customization
2022-12-01 18:25:11 +03:00
Alibek Omarov
1ba117a8e9
engine: client: netgraph: fix few global-buffer-overflow errors
2022-12-01 18:23:52 +03:00
Alibek Omarov
d9a245dcb5
engine: reset cheat cvars on remote games
2022-12-01 02:44:01 +03:00
Alibek Omarov
9cbf5ab6a6
engine: client: streamline constructing master server scan request through common function
2022-12-01 01:51:07 +03:00
Alibek Omarov
c9e4e62474
engine: client: allow IPv6 in NetAPI
2022-12-01 00:35:05 +03:00
Alibek Omarov
aa6a1db0a9
engine: remove duplicate svc_strings definition
2022-12-01 00:34:33 +03:00
Alibek Omarov
e9d66be10a
mainui: update
2022-11-29 13:30:06 +03:00
Alibek Omarov
8b6f12418e
engine: common: make few network cvars privileged
2022-11-29 13:29:47 +03:00
Alibek Omarov
7013d447ca
engine: client: get rid of s_registration_sequence, it was incorrect way to look for unused sounds. We're trying to rely on cl.servercount here
2022-11-28 07:54:24 +03:00
Alibek Omarov
93b2f535e2
engine: client: tune max commands/max backup commands values for legacy protocol
2022-11-27 18:26:53 +03:00
Alibek Omarov
591d572870
mainui: update
2022-11-27 06:02:42 +03:00
SNMetamorph
3ab749cc2e
engine: client: cl_tent: fixed incorrect players spray textures update
2022-11-27 04:50:30 +03:00
SNMetamorph
084fac3606
engine: common: hpak: fixed rest of bugs in HPAK_AddLump
2022-11-27 04:50:30 +03:00
Alibek Omarov
f377461fdf
engine: common: made a filter for a filter (lol), so it's possible to play selected games with cl_filterstuffcmd enabled
2022-11-27 04:45:03 +03:00
SNMetamorph
a2971ce939
filesystem: fixed uninitialized pointers in FS_FindFile when fs_ext_path enabled
2022-11-26 02:45:18 +03:00
SNMetamorph
65671d8788
engine: common: minor code fixes in hpak.c
2022-11-25 23:05:48 +03:00
Andrey Akhmichin
809d5f1aa8
engine: client: in_touch.c: add spray button.
2022-11-25 22:32:33 +03:00
SNMetamorph
49fc6143ab
engine: common: imagelib: fixed loading 32 bits per pixel BMP files
2022-11-25 22:30:49 +03:00
SNMetamorph
8717843333
engine: common: imagelib: fixed BMP files estimate size calculation with NPOT textures
2022-11-25 22:30:49 +03:00
SNMetamorph
f6d8996968
engine: common: imagelib: added missed BMP compression type macros
2022-11-25 22:30:49 +03:00
Alibek Omarov
9389305072
engine: common: set cl_filterstuffcmd to 1 by default
2022-11-25 22:23:51 +03:00
Alibek Omarov
b6bd4bc6f8
engine: server: precisely set client connected time after they were spawned
2022-11-25 05:45:20 +03:00
Alibek Omarov
4c6fbafd20
mainui: update
2022-11-25 02:37:07 +03:00
Velaron
43c6175918
filesystem: dir.c: safer string operations
2022-11-24 03:19:21 +03:00
Velaron
fcd741e2b8
filesystem: fix FS_FixFileCase behavior
2022-11-24 03:19:15 +03:00
Velaron
89807250e5
filesystem: dir.c: optimize string operations
2022-11-24 03:19:10 +03:00
Velaron
24f7db19d8
filesystem: switch file operations to an interface
2022-11-24 03:19:05 +03:00
SNMetamorph
49d93c0e76
engine: common: custom: increased custom decal size limit to 128Kb, added wrong size warning
2022-11-22 17:59:41 +03:00
SNMetamorph
707c93c32c
engine: common: hpak: all file operations made to use gamedir only
2022-11-22 17:59:41 +03:00
SNMetamorph
e204f05726
engine: client: fixed players spray textures not being updated
2022-11-22 17:59:41 +03:00
SNMetamorph
3bd8ad50d2
ref: gl: fixed crash when opening "Customize" menu
2022-11-21 22:52:27 +03:00
Andrey Akhmichin
3488d4e65f
public: simplified strings operations.
2022-11-18 19:32:17 +03:00
Alibek Omarov
3da736a1eb
engine: server: try to solve issue when server dll has no voice mgr
2022-11-17 21:06:15 +03:00
Alibek Omarov
e30c61c0e2
common: netadr: use static_assert macro
2022-11-17 19:44:47 +03:00
Alibek Omarov
64e97124c3
Merge master to ipv6
2022-11-17 19:34:46 +03:00
Alibek Omarov
46979419ae
wscript: check Android's log library globally
2022-11-17 01:23:33 +03:00
Alibek Omarov
30d9b6d844
engine: platform: win32: fix compile
2022-11-17 01:20:01 +03:00
Alibek Omarov
88045ce3be
ref: gl: link liblog for Android
2022-11-17 01:08:11 +03:00
Alibek Omarov
dd881d3da9
engine: server: remove duplicate function
2022-11-16 23:37:26 +03:00
Alibek Omarov
76d0608ee1
ref: fix beams end point
2022-11-16 22:54:07 +03:00
Alibek Omarov
a894ca60c6
engine: client: vgui: fix vgui viewport height being limited at 480 pixels
2022-11-16 22:05:31 +03:00
Alibek Omarov
023f6712f9
engine: client: always toggle mouse on when in console, menu or typing chat message
2022-11-16 21:14:48 +03:00
Alibek Omarov
42740149ac
engine: client: fix mouse cursor being hidden in background map
2022-11-16 21:02:41 +03:00
Alibek Omarov
7b74015c4d
engine: server: check if player can hear other before sending voicedata
2022-11-16 20:59:18 +03:00
Alibek Omarov
57c71efe53
Documentation: fix wrong envvar in windows xcompile instructions, better wording
2022-11-16 04:25:34 +03:00
Alibek Omarov
45de874598
wscript: always load msvc options
2022-11-16 04:20:02 +03:00
Alibek Omarov
aa702f0678
scripts: waifulib: xcompile: add msvc-wine support in cross-compile helper script
2022-11-16 04:19:46 +03:00
Alibek Omarov
927dccc71d
Documentation: add simple instructions on how to cross-compile for Windows from normal operating systems
2022-11-16 04:19:07 +03:00
Alibek Omarov
c2a24fbbce
engine: client: put internal vgui shutdown AFTER HUD_Shutdown, to simulate default, external behavior
2022-11-14 20:12:10 +03:00
SNMetamorph
ae94a6aeba
engine: client: fixed client VGUI API shutdown
2022-11-14 20:09:20 +03:00
Alibek Omarov
e9da43666c
engine: client: fix loading internal vgui (thx @SNMetamorph)
2022-11-14 20:08:01 +03:00
Alibek Omarov
d27dd68072
engine: client: vgui: rework loading VGUI and probing client for internal vgui support API
2022-11-12 16:35:18 +03:00
Alibek Omarov
b1ee27a3f3
filesystem: add new token internal_vgui_support to mark client dlls that have internal VGUI implementation(to support other UI systems)
2022-11-12 16:35:18 +03:00
SNMetamorph
32372654c2
engine: server: sv_client: fixed working ent_create command on XashXT/PrimeXT
2022-11-11 16:12:56 +03:00
Alibek Omarov
17d0b19f9e
engine: use generic S_USAGE macro everywhere
2022-11-10 13:18:20 +03:00
Alibek Omarov
d13f7f06e4
engine: fix framerate being capped to 60FPS with vsync, remove vid_displayfrequency cvar. Never sleep with vsync or timedemo, for accuracy
2022-11-10 13:05:03 +03:00
Alibek Omarov
f469b56b93
engine: host: only sleep once between frames
2022-11-10 12:42:48 +03:00
Alibek Omarov
ef74f86ce2
Documentation: restore enttools docs from old engine wiki
2022-11-10 12:37:51 +03:00
Alibek Omarov
616cbdb1eb
engine: client: change cl_cmdrate and cl_smoothtime default values to match GoldSrc
2022-11-10 12:11:16 +03:00
Alibek Omarov
0a49e69818
engine: introduce Sys_DebugBreak function to raise an exception for debugger
2022-11-10 12:10:48 +03:00
Alibek Omarov
adb8ec1da8
filesystem: try to normalize linux gamedll path for liblist.gam
2022-11-10 11:58:44 +03:00
SNMetamorph
5d73c6cb84
engine: server: backported enttools from old engine
2022-11-10 11:56:10 +03:00
SNMetamorph
afa1d429fe
engine: client: backported enttool from old engine
2022-11-10 11:56:10 +03:00
SNMetamorph
d1309c3aeb
engine: common: backported "set" command from old engine
2022-11-10 11:56:10 +03:00
SNMetamorph
b35cf6e30c
engine: platform: update VGUI cursor state in Platform_SetCursorType
2022-11-08 06:39:09 +06:00
SNMetamorph
8cbe0e5b30
engine: client: vgui: added VGui_UpdateInternalCursorState function
2022-11-08 06:39:09 +06:00
Andrey Akhmichin
c1fe547925
public: update miniz to version 3.0.0 from upstream.
2022-11-06 12:35:04 +06:00
Andrey Akhmichin
1064b41ab2
readme: update.
2022-11-05 10:45:47 +06:00
Andrey Akhmichin
2a6c2e5db4
.github: workflows: update github actions.
2022-11-05 10:43:15 +06:00
Bien Pham
816337a7bb
filesystem: set root directory as static
...
Counter-Strike uses COM_ExpandFileName to get
full path to filesystem_stdio. When reading liblist.gam,
the engine will clear the search path and the root search path
will be cleared. Set it as static so it will be excluded from clearing.
2022-11-02 18:07:25 +06:00
Andrey Akhmichin
d237114962
engine: common: imagelib: img_png.c: unroll loops.
2022-11-02 14:14:05 +06:00
Andrey Akhmichin
c1ca2c1a95
Documentation: opensource-mods.md: add "Oz Deathmatch".
2022-10-27 01:53:27 +06:00
SNMetamorph
44a43c2c09
engine: client: cl_parse: minor code fix in CL_ParseLegacyServerData
2022-10-27 00:52:16 +06:00
SNMetamorph
ee8098839e
engine: common: pm_trace: fixed non portable code in PM_ConvertTrace
2022-10-27 00:52:16 +06:00
Alibek Omarov
305b2579eb
engine: client: voice: fix crackling voice file input on low FPS
2022-10-19 01:08:39 +03:00
Alibek Omarov
1a09d297ee
engine: minimize SetCursorType calls count
2022-10-13 14:49:48 +03:00
Alibek Omarov
d45e6e0ad1
engine: platform: sdl: SetCursorType shouldn't know about current game state
2022-10-13 14:07:48 +03:00
Alibek Omarov
2d2523df4a
engine: client: touch: generalise touch emulation code
...
* fix doubleclicks and wheels in VGUI
2022-10-12 05:18:19 +03:00
Alibek Omarov
5a0fcfffb0
mainui: update
2022-10-10 13:09:01 +03:00
Alibek Omarov
f252161d90
readme: fix typo and wording
2022-10-04 15:14:54 +03:00
Alibek Omarov
e0216e2658
wscript: don't clean QtCreator files and reconfigure saved options
...
Cleanup imports
2022-10-04 03:02:49 +03:00
Alibek Omarov
0f2bb5720b
wscript: respect --libdir argument with packaging enabled. Fix a typo in --disable-soft description
2022-10-02 22:28:53 +03:00
Alibek Omarov
0621e365ff
mainui: update
2022-09-27 17:19:32 +03:00
Alibek Omarov
8ea455def7
mainui: update
2022-09-27 14:00:18 +03:00
Alibek Omarov
8cf822c426
mainui: update
2022-09-27 14:00:18 +03:00
Alibek Omarov
4a009c1c2c
engine: client: touch: move copypasted code from export & writeconfig into separate function
2022-09-27 14:00:18 +03:00
LekKit
8fb8ee7e22
ref: soft: implement r_fullbright
2022-09-25 08:37:34 +00:00
Alibek Omarov
360dc4f7ed
engine: try to make hashpaks more compatible between 32-bit and 64-bit platforms
2022-09-20 21:57:13 +03:00
Alibek Omarov
ffe43e1f22
scripts: waifulib: fix error reporting in zip.py
2022-09-20 21:56:25 +03:00
Alibek Omarov
a52d901f25
common: add STATIC_ASSERT macro
...
We're trying to guess if we have C11 static_assert defined in assert.h
otherwise use good ol' trick with negative array
2022-09-20 21:55:32 +03:00
Alibek Omarov
5bae2f06ad
engine: platform: sdl: do not lock audio device, for some reason it sometimes causes problems although it shouldn't
2022-09-20 21:29:19 +03:00
Alibek Omarov
69b0954007
engine: change RenderAPI's RenderGetParm return type to intptr_t to insure compatibility with 64-bit
2022-09-20 18:06:19 +03:00
Alibek Omarov
0645402946
engine: fix crash when reading GoldSrc hashpaks
2022-09-19 06:03:01 +03:00
Владислав Сухов
c59b244d04
scripts: gha: fix path to vgui_support submodule
2022-09-17 15:55:40 +03:00
Alibek Omarov
5678d9a253
engine: server: support MAP_ANON synonym for MAP_ANONYMOUS, disable allocating string pool near server library for OSX
2022-09-12 08:42:50 +03:00
dettlaff
a520d245a6
wscript: fix typo in --enable-bundled-deps configure option
2022-09-12 07:18:24 +03:00
Alibek Omarov
b56f6fa330
scripts: waifulib: fix zipfile init for older Python
2022-09-11 02:50:52 +03:00
Alibek Omarov
f141869ce3
wscript: disable building extras.pk3 for Android
2022-09-11 02:22:26 +03:00
Alibek Omarov
807f3852bd
scripts: gha: remove building extras.pak, as it's already being built
2022-09-11 02:20:36 +03:00
Alibek Omarov
084089b919
3rdparty: extras: build ZIP archive and install to engine default gamefolder
2022-09-11 02:13:23 +03:00
Alibek Omarov
f571a41cf3
wscript: allow to setup engine default gamedir during configure
2022-09-11 02:12:44 +03:00
Alibek Omarov
686a966ff7
wscript: now waf builds extras archive by itself, using Python standard library's zipfile
2022-09-11 01:39:29 +03:00
Alibek Omarov
c29eb458ea
3rdparty: add xash-extras submodule
2022-09-11 01:38:17 +03:00
Alibek Omarov
234c843f60
filesystem: integrate inotify for file changes
2022-09-10 22:55:07 +03:00
Alibek Omarov
7ed0499aa9
game_launch: wscript: fix Windows build
2022-09-10 22:52:52 +03:00
Alibek Omarov
401b145040
utils: mdldec: fix wscript to build
2022-09-10 22:52:52 +03:00
Alibek Omarov
3853ff5435
3rdparty: gl4es: add wscript to build
2022-09-10 22:52:52 +03:00
Alibek Omarov
744c6b2680
vgui_support: update submodule
2022-09-10 22:52:52 +03:00
Alibek Omarov
030a17fc58
mainui: update submodule
2022-09-10 22:52:52 +03:00
Alibek Omarov
b1e2e84a11
wscript: adapt main and ref_gl wscripts to new directory layout, add flag to build all renderers at once
2022-09-10 22:52:52 +03:00
Alibek Omarov
12a6088912
ref: gl: move GLES wrappers libraries to 3rdparty folder
2022-09-10 22:52:52 +03:00
Alibek Omarov
fe9f3f78a0
ref: soft: minimize dependency on internal engine headers
2022-09-10 22:52:52 +03:00
Alibek Omarov
327eb330ed
ref: gl: minimize dependency on internal engine headers
2022-09-10 22:52:52 +03:00
Alibek Omarov
470121512a
utils: mdldec: convert to include targets usage
2022-09-10 22:52:52 +03:00
Alibek Omarov
dedc144b8b
ref: soft: convert to include targets usage
2022-09-10 22:52:52 +03:00
Alibek Omarov
6d37398fad
ref: gl: convert to include targets usage
2022-09-10 22:52:52 +03:00
Alibek Omarov
3c8fe508f0
game_launch: convert to include targets usage
2022-09-10 22:52:52 +03:00
Alibek Omarov
8ffb3aac8a
engine: wscript: add dummy engine_includes target that only exposes few internal Xash headers for renderers and utils use
2022-09-10 22:52:52 +03:00
Alibek Omarov
0ed9391969
filesystem: wscript: add dummy filesystem_includes target that only exposes public filesystem_stdio include paths
2022-09-10 22:52:52 +03:00
Alibek Omarov
e54289f811
public: wscript: add dummy sdk_includes target that only exposes standard HLSDK include paths
2022-09-10 22:52:52 +03:00
Alibek Omarov
17b091e5a9
wscript: adapt to new folder structure
2022-09-10 22:52:52 +03:00
Alibek Omarov
61c142e2db
ref: move renderers into ref subdirectory
2022-09-10 22:52:52 +03:00
Alibek Omarov
7e664679a0
3rdparty: move mainui and vgui_support submodules into 3rdparty folder
2022-09-10 22:52:52 +03:00
Andrey Akhmichin
fd152e82e8
engine: common: imagelib: img_png.c: add support for indexed and grayscale PNG images.
2022-09-08 12:11:02 +03:00
Alibek Omarov
0c50e43663
engine: client: enable sound for TE_TAREXPLOSION, use same sound parameters as GoldSrc
2022-09-08 04:16:29 +03:00
Alibek Omarov
7a2ac4a9c0
engine: client: use generic particles code for blob particles (from tempentity code) only if Quake compatibility was enabled
2022-09-08 04:16:29 +03:00
Andrey Akhmichin
e6bb9d980d
engine: client: in_touch.c: make touch buttons extention-independent.
2022-09-05 11:25:52 +03:00
Alibek Omarov
45cc7e5bcc
3rdparty: opus: update submodule
2022-08-31 19:51:52 +03:00
Alibek Omarov
4be4870982
engine: client: remove voice_codecinfo command, as Opus Custom don't give any encoder info, possibly an Opus bug
2022-08-31 19:50:31 +03:00
Alibek Omarov
19c2061831
wscript: define CUSTOM_MODES and try to link with export that only exists when CUSTOM_MODES was defined in build-time
2022-08-31 19:48:42 +03:00
Alibek Omarov
3a8c58d192
engine: platform: sdl: fix parentheses around IsAudioError macro
2022-08-31 07:13:02 +03:00
Alibek Omarov
24763f9b07
engine: server: request client to use Opus Custom codec
2022-08-31 06:54:58 +03:00
Alibek Omarov
0d7a2e7bad
engine: platform: change capture API to allow locking/unlocking buffer to prevent race condition, use single function for pause
2022-08-31 06:50:06 +03:00
Alibek Omarov
82ab06efdd
engine: client: voice: new version, move to Opus Custom codec
...
* Despite Opus Custom have strict requirements, it's more barebones, allowing us to use maximum
frame size and custom sample rate, without resampling
* Encode each frame size to network buffer, allowing smooth voice chat even in 10 FPS
* Fix possible buffer overruns, underruns and races with platform side
* Revise all usages of offset variables, samples vs bytes
2022-08-31 06:44:45 +03:00
Alibek Omarov
4110ee0928
wscript: require Opus Custom for build
...
Apparently, not all Linux distributions enable it. Anyway, we can build codec ourselves
2022-08-31 05:44:23 +03:00
Alibek Omarov
4b05cf4399
engine: client: better fix for notify debug messages, rely on host.allow_console variable to don't allow uninitialized console usage
2022-08-31 02:46:33 +03:00
Alibek Omarov
f29a9f5f58
ref_gl: use skybox names generated by CheckSkybox function, don't checking same file twice
...
Also fixes priority for skyboxes
2022-08-31 02:42:19 +03:00
Alibek Omarov
28001ea150
engine: client: enable notify messages in non-developer mode
2022-08-28 00:48:12 +03:00
Alibek Omarov
f633b3dbf6
engine: increase MAX_INIT_MSG to 192 kilobytes limit
...
* also avoid magic number in sv_client.c
2022-08-27 22:13:21 +03:00
Alibek Omarov
bebfa611fc
mainui: update
2022-08-25 21:47:17 +03:00
Alibek Omarov
3e9f2df2bf
engine: client: fix incorrect mark for ConsolePrint notifications
2022-08-25 21:21:22 +03:00
Alibek Omarov
fce8afabfb
filesystem: allow acquiring C interface through CreateInterface export
2022-08-25 20:33:16 +03:00
Alibek Omarov
9d49985100
scripts: gha: build tarball for dedicated server
2022-08-25 19:40:27 +03:00
Alibek Omarov
a7d4cafe10
wscript: finally disable building opus for dedicated
2022-08-25 19:33:16 +03:00
Alibek Omarov
ca2a6635b6
engine: common: fix cmdlist and cvarlist to match the beginning of command or cvar
2022-08-25 19:22:06 +03:00
Alibek Omarov
7f1bb9b4a6
public: introduce Q_strnicmpext function
...
The goal is to provide both string compare with fixed length and simple pattern match
2022-08-25 19:21:47 +03:00
Alibek Omarov
7341a6b020
engine: client: add old GoldSrc feature where ConsolePrint could print to notification zone, similar to Con_NPrintf( 0, ... )
2022-08-25 18:22:43 +03:00
Alibek Omarov
ac05acf6dc
engine: network: I'm fucking blind
2022-08-23 20:04:59 +03:00
Alibek Omarov
3e1db432df
engine: network: fix IPv4 private address checks according to RFC1918
...
Thanks to @Mr0maks for the fix
2022-08-23 19:15:50 +03:00
Alibek Omarov
3c682507e7
engine: client: voice: notify client.dll about localplayer twice, through special loopback index and normal index
2022-08-22 11:44:13 +03:00
SNMetamorph
e9ae6d08b5
engine: client: enable interpolation of local player angles
2022-08-22 10:24:15 +03:00
Alibek Omarov
f435a81c97
engine: soundlib: rewrite sfx resampler, fix possible crash if sfx is too long
...
- make same rate and same width resamples noop, as everything signed now
- minimize comparisons in loop body
2022-08-22 10:14:01 +03:00
Alibek Omarov
cb34c23844
common: increase MAX_MAP_MODELS to 1024, to match PrimeXT compilers
2022-08-21 17:27:48 +03:00
SNMetamorph
9f9141823a
engine: added audio backend print to s_info command
2022-08-20 15:36:02 +03:00
Владислав Сухов
d3437c70bd
engine: soundlib: fix wrong sample rate unit
2022-08-20 15:35:14 +03:00
Alibek Omarov
8630ef2c67
engine: client: voice: allow using inputfromfile when microphone isn't connected
2022-08-20 06:13:33 +03:00
Alibek Omarov
0b50678912
engine: client: voice: refactor, fix issues when missing mic disables voice chat, fix few possible crashes and memory leaks
2022-08-20 03:56:54 +03:00
Alibek Omarov
22ff45f5d0
engine: platform: add audio capture shutdown functions
2022-08-20 03:17:51 +03:00
Alibek Omarov
905bbf1515
engine: server: read full voicedata message even if voice is disabled server wide
2022-08-19 22:22:40 +03:00
Alibek Omarov
88c1b1400d
gitignore: add enc_temp_folder by the request of @SNMetamorph
2022-08-19 22:18:22 +03:00
SNMetamorph
8e48a98d48
engine: client: voice: codec quality levels changed
2022-08-19 20:47:01 +03:00
SNMetamorph
76dbefb9ec
engine: client: voice: fixed initialization checks
2022-08-19 20:47:01 +03:00
Alibek Omarov
327dcc0293
engine: client: voice: simplify code, simplify including voice.h, do not depend on opus headers globally
...
Autofix few code style mistakes
2022-08-19 05:52:53 +03:00
Alibek Omarov
e6c55107c7
wscript: fix game_launch not being included
2022-08-19 05:38:47 +03:00
Alibek Omarov
c5dbbea9ef
engine: server: drop bots fake ping to zero
2022-08-19 04:33:41 +03:00
SNMetamorph
74707551ae
engine: client: voice: fixed hanging voice status
2022-08-19 04:14:25 +03:00
SNMetamorph
2f5f5ef0a6
engine: client: voice: fixed sound playback from file
2022-08-19 04:14:25 +03:00
SNMetamorph
f7dc9d8e72
engine: client: voice: frame size increased to 40 msec
2022-08-19 04:14:25 +03:00
Alibek Omarov
238162bb79
wscript: move system opus detection to main wscript, so we can avoid including subproject
2022-08-19 04:03:53 +03:00
Alibek Omarov
1fda8753bd
wscript: rework subproject filtering, use lambdas everywhere. Deprecate --ignore-projects flag, use Waf capability to select targets instead
2022-08-19 03:10:34 +03:00
SNMetamorph
a688bed79f
engine: client: cl_parse: moved buffer to stack in CL_ParseVoiceData
2022-08-18 04:46:11 +03:00
SNMetamorph
b0ff51d5a0
engine: client: voice: changed bitrate units to kbps in voice_codecinfo
2022-08-18 04:46:11 +03:00
SNMetamorph
68f633e9cd
wscript: fixed opus include path
2022-08-18 04:46:11 +03:00
SNMetamorph
a520af42e8
wscript: opus subproject set as mandatory
2022-08-18 04:46:11 +03:00
SNMetamorph
0a6885e02d
engine: client: voice chat cvars set as privileged
2022-08-18 04:46:11 +03:00
SNMetamorph
aa5a509316
engine: client: voice: added GPL notice
2022-08-18 04:46:11 +03:00
SNMetamorph
97879430e9
engine: small code fixes related to voice chat
2022-08-18 04:46:11 +03:00
SNMetamorph
ae97eae42f
engine: client: voice: implemented automatic gain control
2022-08-18 04:46:11 +03:00
SNMetamorph
c5d7e3c783
engine: client: fixed players voice state changing
2022-08-18 04:46:11 +03:00
SNMetamorph
9bcd36cc24
engine: voice code minor refactoring
2022-08-18 04:46:11 +03:00
SNMetamorph
c6881a425f
engine: client: added support for variable voice chat quality
2022-08-18 04:46:11 +03:00
SNMetamorph
8d0209b122
engine: server: added support for variable voice chat quality
2022-08-18 04:46:11 +03:00
SNMetamorph
279894cfd4
engine: client: added console command voice_codecinfo
2022-08-18 04:46:11 +03:00
SNMetamorph
169ee14724
engine: client: disabled voice on legacy protocol servers
2022-08-18 04:46:11 +03:00
SNMetamorph
8866d5cfd6
engine: wscript: added Opus headers to include directories
2022-08-18 04:46:11 +03:00
SNMetamorph
3b9a7910d0
opus: fixed path to submodule
2022-08-18 04:46:11 +03:00
SNMetamorph
b5885d4107
3rdparty: opus: wscript: removed Opus demo sources from build
2022-08-18 04:46:11 +03:00
SNMetamorph
a254a342b1
engine: voice: minor code fixes
2022-08-18 04:46:11 +03:00
SNMetamorph
0db95d76a8
engine: wscript: removed opus from opt.load()
2022-08-18 04:46:11 +03:00
Alibek Omarov
69a9211fc9
engine: include voice.h globally
2022-08-18 04:46:11 +03:00
Alibek Omarov
44cd03f464
wscript: refactor opus wscript files, now it builds only if system package wasn't found
2022-08-18 04:46:11 +03:00
Velaron
9242a0a510
engine: update voice
2022-08-18 04:46:11 +03:00
Velaron
2b9e050f57
engine: voice support
2022-08-18 04:46:11 +03:00
Alibek Omarov
9d4fe707bb
engine: client: carefully check legacy server response, check info string before passing it to UI
2022-08-17 21:52:54 +03:00
Alibek Omarov
0d2552c3f6
engine: server: prevent DoS through master server query
2022-08-17 21:23:08 +03:00
Alibek Omarov
b3c9637422
engine: server: send server info to all master servers
2022-08-17 21:18:16 +03:00
Alibek Omarov
01a3321d63
engine: client: only accept server list from master servers (thanks @tyabus for idea)
2022-08-17 21:17:51 +03:00
Alibek Omarov
5a5e72c424
engine: print current bug-compatibility level, if enabled
2022-08-17 14:44:03 +03:00
Alibek Omarov
b8dc7494eb
engine: client: move timescale pitch apply to channel mixing
2022-08-16 00:03:44 +03:00
Alibek Omarov
532cd779a7
Documentation: document bug compatibility mode
2022-08-15 06:00:00 +03:00
Alibek Omarov
d202a6c572
engine: server: emulate pfnPEntityOfEntIndex bug only with explicitly enabled GoldSrc bug compatibility
2022-08-15 06:00:00 +03:00
Alibek Omarov
6e864e4f8f
engine: introduce bug compatibility levels
...
* for now we only have GoldSrc bug compatibility, can be used for
games that require precise GoldSrc behaviour, like CSCZDS
* enabled with -bugcomp command line
* added text in --help
2022-08-15 06:00:00 +03:00
Alibek Omarov
6ef76fe665
engine: server: fix bots are counted as real players
2022-08-13 22:46:20 +03:00
Alibek Omarov
314672d82c
engine: client: fix invalid playerinfo being accessed by renderer
2022-08-13 01:29:45 +03:00
Alibek Omarov
1d558b33d6
engine: client: don't let set unsupported con_charset
2022-08-13 00:58:45 +03:00
Alibek Omarov
911385d019
engine: client: fix memory leak on player disconnect
2022-08-13 00:47:04 +03:00
SNMetamorph
5b97c2135a
engine: server: fixed "wrong version" spamming in NAT bypass mode ( fix #953 )
2022-08-10 04:11:17 +03:00
Alibek Omarov
365f24e1fe
waf.bat: use unicode charset
...
Fixes compiler messages in Russian
2022-08-09 13:47:38 +03:00
Alibek Omarov
7157c3b441
engine: platform: sdl: don't enable high dpi code for Apple
...
It seems enables HighDPI awareness but doesn't create HighDPI OpenGL context
It needs some plist magic to be enabled back again
2022-08-08 23:53:20 +03:00
Andrey Akhmichin
28d7f2eaa2
Documentation: not-supported-mod-list-and-reasons-why.md: update.
2022-08-07 22:49:04 +03:00
Alibek Omarov
0d449370e0
filesystem: fixes for GCC 3
2022-08-06 20:33:01 +03:00
Alibek Omarov
10ad1c3b38
filesystem: use correct flushing function for file descriptors on Win32
2022-08-06 20:19:42 +03:00
Alibek Omarov
90c566dde3
wscript: enable GCC's -Wmisleading-indentation
2022-08-06 20:17:42 +03:00
Alibek Omarov
33cbead4a4
filesystem: wscript: fix library name on Android
2022-08-06 20:17:41 +03:00
Alibek Omarov
d6dfeaeba7
engine: fix searching filesystem_stdio on mobile platforms
2022-08-06 20:16:56 +03:00
Alibek Omarov
bc00c6c54b
vgui_support: update
2022-08-06 20:16:56 +03:00
Alibek Omarov
3d5aa7c20c
engine: remove mistakingly placed NORETURN attributes
2022-08-05 18:05:40 +03:00
SNMetamorph
a5ba43ea39
engine: fixed vulnerability in NAT bypass mechanism
2022-08-02 18:01:28 +03:00
Alibek Omarov
3eb4862794
common: remove unneeded typedef for wad file type
2022-08-01 15:06:54 +03:00
Alibek Omarov
c025606739
engine: whereami: fix C89 in Android detection
2022-08-01 14:33:36 +03:00
Alibek Omarov
067e9be37a
scripts: upgrade to Android NDK 25
2022-08-01 14:25:44 +03:00
Alibek Omarov
b7b9c611cf
filesystem: wscript: disable RTTI and exceptions(useful on Android), we don't need it here. Link as C++ library.
2022-08-01 14:06:00 +03:00
Alibek Omarov
3c4eec62ae
engine: let engine find the filesystem library, if it wasn't loaded yet
2022-08-01 13:25:51 +03:00
SNMetamorph
fd7dba74cd
filesystem: fixed build for Windows
2022-08-01 12:54:26 +03:00
SNMetamorph
a8674c18df
engine: platform: win32: fixed build for Windows
2022-08-01 12:54:26 +03:00
SNMetamorph
b26cd6cc94
wscript: added /Zc:__cplusplus compiler flag for MSVC
2022-08-01 12:54:26 +03:00
Alibek Omarov
55a29e6e6b
filesystem: implement VFileSystem009 interface
2022-07-28 18:56:02 +03:00
Alibek Omarov
56d7c05b51
filesystem: generated VFileSystem009 from pdwtags output, removed unneeded in C++ this first argument
2022-07-28 18:56:02 +03:00
Alibek Omarov
5e4fc64430
filesystem: introduce new module, based on engine filesystem.
...
The goal is to share filesystem code between engine and
utilities and provide C++ VFileSystem interface in the future
2022-07-28 18:56:02 +03:00
Alibek Omarov
12ea6dcfd7
public: move build.c from engine to public library, in preparation of filesystem_stdio merge
2022-07-26 04:10:36 +03:00
Alibek Omarov
a41f8cb01b
engine: move version strings to com_strings.h file, in preparation of filesystem_stdio branch merge
2022-07-26 04:07:52 +03:00
Alibek Omarov
a9c82dbe21
public: make crtlib linkable with C++
2022-07-26 03:17:11 +03:00
Alibek Omarov
5350d88f57
public: crtlib: add quotation mark support for ParseFile, required for filesystem_stdio
2022-07-26 03:17:11 +03:00
Alibek Omarov
fc132e87f4
engine, game_launch: fix rpath usage
2022-07-26 02:54:20 +03:00
Alibek Omarov
c326853617
engine: server: restore original PEntityOfEntIndex function, but still bug-compatible with GoldSrc
2022-07-21 01:52:10 +03:00
Valery Klachkov
3ad60a0fa1
engine: fix uninitialized variable in demo parsing code, fix incorrect size counter in memory allocator
2022-07-16 16:59:41 +03:00
Alibek Omarov
772f4dcb60
scripts: gha: win32: fix build type from debug to release
2022-07-14 18:26:47 +03:00
Alibek Omarov
657a6af9dc
mainui: update
2022-07-13 19:45:42 +03:00
Alibek Omarov
5e1f189db3
engine: platform: posix: use RTLD_NOW instead of lazy.
...
It actually was a misconception coming from old engine fork
We want to track unresolved symbols before library could be loaded
Also, disable "symbol not found" spam in FunctionFromName. Due to how
savefile mangling convert works and compatibility with GoldSrc saves,
this function is used to bruteforce possible symbol names.
2022-07-13 19:26:38 +03:00
Alibek Omarov
a2d11f670a
engine, public: fix float precision issues in mathlib and monster navigation code
2022-07-13 19:26:38 +03:00
Andrey Akhmichin
5bf6f814ef
Documentation: opensource-mods.md: update links.
2022-07-13 15:09:22 +03:00
a1batross
fc84cd2a0a
engine: common: always show message box when we're in normal mode
...
Only dedicated server is expected to throw errors to console
2022-07-11 02:45:40 +03:00
a1batross
ab43486ee0
engine: client: don't segfault when client wasn't loaded
2022-07-11 02:43:26 +03:00
SNMetamorph
d8724f0be4
engine: common: net_ws: disabled read-only flag for ip cvar
2022-07-10 18:28:06 +03:00
SNMetamorph
fce3959d15
engine: server: added "c" command to SV_ConnectionlessPacket
2022-07-10 18:28:06 +03:00
SNMetamorph
36b0d47f5f
engine: common: net_ws: fixed sockets reinitialization in NET_OpenIP
2022-07-10 18:28:06 +03:00
SNMetamorph
cf84ad12f1
engine: server: backported NAT bypass feature
2022-07-10 18:28:06 +03:00
SNMetamorph
ffe7114a47
engine: client: backported NAT bypass feature
2022-07-10 18:28:06 +03:00
SNMetamorph
6891ed8064
engine: common: net_ws: backported NAT bypass feature
2022-07-10 18:28:06 +03:00
SNMetamorph
8f91830997
engine: added changeport parameter for NET_Config
2022-07-10 18:28:06 +03:00
SNMetamorph
fbdfed84be
engine: platform: sdl: fixed bug with unhidable mouse cursor in center of screen
2022-07-09 00:31:49 +03:00
Alibek Omarov
786c408f6e
engine: client: fix sprites array size, it wasn't meant to be increased after previous commit
2022-07-01 14:12:32 +03:00
Alibek Omarov
6e031b518a
engine: client: increase limit of client sprites, lower part of it can be used only for HUD sprites
...
higher part used for client sprites
map overview sprites are loaded as normal models
thus we have equal internal engine and hud sprite indices and it fixes compatibility issues
for mods like Half-Rats Parasomnia
2022-07-01 03:41:55 +03:00
Владислав Сухов
500dd0a82b
Documentation: supported-mod-list: fix dead links
...
Restored some mods at Google Drive
2022-06-30 19:37:57 +03:00
Alibek Omarov
d562642e26
utils: mdldec: fix build on Windows, use GetFileAttributes instead of stat here
2022-06-30 18:33:09 +03:00
Andrey Akhmichin
cbcb90638b
utils: mdldec: try to create user defined destination directory.
2022-06-30 18:13:46 +03:00
Владислав Сухов
8211acf4e0
Documentation: supported-mod-list: fix link for Lost in Black Mesa
2022-06-30 16:15:21 +03:00
Владислав Сухов
c4a25e0d70
Documentation: supported-mod-list: fix dead links
...
Renamed domains:
hl-lab.ru -> gamer-lab.com
planetphilip.com -> runthinkshootlive.com
2022-06-30 16:15:21 +03:00
SNMetamorph
3ec9977212
wscript: added parallel builds compiler flag for MSVC
2022-06-30 16:14:21 +03:00
Alibek Omarov
64eb0a694d
engine: client: also drop loading plaque on toggleconsole, in case if it's stuck
2022-06-29 18:58:07 +03:00
Alibek Omarov
d46d62bf03
engine: client: drop loading plaque on second signon, remove servercount check
2022-06-29 18:57:10 +03:00
Alibek Omarov
95ed044fee
engine: common: disable cl_filterstuffcmd by default
2022-06-29 18:14:53 +03:00
Alibek Omarov
3fe392b41f
ref: fix processing indexed textures
2022-06-29 18:05:51 +03:00
Alibek Omarov
854bfb8673
wscript: woops, msvcrt don't actually have stristr
2022-06-29 04:02:57 +03:00
Alibek Omarov
fb43a5590f
public: Q_strstr should return pointer to non-const data
2022-06-29 04:02:40 +03:00
Alibek Omarov
5d4f8373c4
common: fix usage of __has_builtin for old GCC releases
2022-06-29 03:53:36 +03:00
Alibek Omarov
ac9664c7ae
mainui: update
2022-06-29 03:23:51 +03:00
Alibek Omarov
2905f951bd
engine: menu_int: expose TF_EXPAND_SOURCE imagelib flag
2022-06-29 03:20:55 +03:00
Alibek Omarov
79dc090aae
engine: platform: sdl: use SetClassLongPtr function to be compatible with 64-bit Windows API
2022-06-29 02:44:50 +03:00
Alibek Omarov
d52b07beac
wscript: add stristr/strcasestr presense check
2022-06-29 02:43:09 +03:00
Alibek Omarov
12815bfbf2
public: remove naive implementations of standard function, add them with standard C with few extensions
2022-06-29 02:42:47 +03:00
Alibek Omarov
b9b8b0521b
common: add unlikely()/likely() macros
2022-06-29 02:36:39 +03:00
Alibek Omarov
af8febabd1
engine: client: make temp entity buffer larger in case of long textmessages
2022-06-26 15:10:21 +03:00
Alibek Omarov
f0a856d9c8
engine: server: fix writing message size for engine messages, as it's expected to be 2-bytes
2022-06-26 15:05:06 +03:00
Alibek Omarov
85895c5311
engine: pmove: initialize trace argument in PM_TraceModel
2022-06-26 04:39:52 +03:00
Alibek Omarov
c076f4ff8e
engine: common: add generic trace_t initialize function
2022-06-26 04:39:15 +03:00
Andrey Akhmichin
87ce35b32d
engine: common: imagelib: img_utils.c: change formats priority.
2022-06-25 17:23:44 +03:00
Alibek Omarov
5285f51a26
engine: platform: sdl: fix loading ICO when it's in RoDir
2022-06-25 17:12:08 +03:00
Alibek Omarov
3e23634369
engine: platform: sdl: enable ICO support on Win64
2022-06-25 17:04:02 +03:00
Alibek Omarov
36cec298c2
Revert "engine: common: imagelib: img_tga.c: fix broken tga flip."
...
This reverts commit 99de598ea4 .
2022-06-25 17:03:13 +03:00
Alibek Omarov
6199426e5e
Revert "engine: common: imagelib: img_tga.c: fix broken tga flip again."
...
This reverts commit e5720cf8b9 .
2022-06-25 17:03:12 +03:00
Alibek Omarov
4e295622be
Revert "engine: platform: sdl: try to enable ICO icons for 64-bit Windows, ignore TGA flip attribute for icons"
...
This reverts commit 2182ba9630 .
2022-06-25 17:03:11 +03:00
Alibek Omarov
2182ba9630
engine: platform: sdl: try to enable ICO icons for 64-bit Windows, ignore TGA flip attribute for icons
2022-06-24 19:15:28 +03:00
Andrey Akhmichin
e5720cf8b9
engine: common: imagelib: img_tga.c: fix broken tga flip again.
2022-06-24 14:18:30 +03:00
Andrey Akhmichin
6063ca2ad1
Documentation: opensource-mods: add Urbicide and Sewer.
2022-06-24 08:06:26 +03:00
Andrey Akhmichin
99de598ea4
engine: common: imagelib: img_tga.c: fix broken tga flip.
2022-06-24 07:38:21 +03:00
Jesse Buhagiar
b23d5ed354
Build: Add SerenityOS to list of compatible systems
...
This is required by the build system to spit out a library with
the correct name/platform.
2022-06-20 00:01:37 +03:00
Tim Schumacher
a1ce5faac2
Engine: Keep HTTP from endlessly formatting NaN values
...
For whatever reason, our progress count for HTTP downloads stays at 0.
This results in the engine calculating a NaN progress value many times
each frame, which results in a significant performance hit.
2022-06-20 00:01:37 +03:00
SNMetamorph
afaabe26a6
engine: client: cl_netgraph: fixed netgraph position calculation in center mode
2022-06-16 00:44:23 +04:00
SNMetamorph
a68afcc672
engine: client: cl_netgraph: added kilobytes per seconds unit to in/out fields
2022-06-16 00:42:57 +04:00
SNMetamorph
d4bb5423ae
engine: client: cl_netgraph: set rendermode to transparent instead additive
2022-06-16 00:41:11 +04:00
SNMetamorph
ce8e5880e2
engine: client: cl_netgraph: added clamp for bars height
2022-06-16 00:39:48 +04:00
SNMetamorph
0cef18af86
engine: client: cl_netgraph: fixed uninitialized alpha in netcolors
2022-06-16 00:37:38 +04:00
Alibek Omarov
ad4d0cf00a
vgui_support: update
2022-06-15 18:26:51 +03:00
Alibek Omarov
a6f12d3009
ref_gl: gl4es: update
2022-06-15 18:26:41 +03:00
Alibek Omarov
fa09854671
engine: client: deprecate and remove ChangeInstance menu call
2022-06-15 18:22:57 +03:00
Alibek Omarov
78d2cd848a
mainui: update
2022-06-15 18:20:19 +03:00
Alibek Omarov
463997da51
engine: common: delete unused Mod_Handle function
2022-06-15 13:54:54 +03:00
SNMetamorph
fef0993f54
engine: client: cl_game: fixed hudGetModelByIndex function in client API ( fix #518 )
2022-06-15 13:53:53 +03:00
Alibek Omarov
2218126c75
engine: disable stdout output and flush on Windows, Wcon already does the job
2022-06-14 04:41:37 +03:00
Alibek Omarov
2388260848
engine: optimize colored output
...
* removed unneeded formatting for Android
* make generic function to output colorless and colorized strings
* disable color output on low memory devices to not waste CPU cycles on it
2022-06-14 04:23:09 +03:00
Alibek Omarov
40298cefb6
engine: client: don't save configs if shutdown was issued before client was initialized. Remove dead ucmd
2022-06-14 03:30:14 +03:00
Alibek Omarov
45bf927c74
engine: filesystem: avoid FS_SysFolderExists spam if stat returned ENOTDIR
2022-06-14 03:27:56 +03:00
Alibek Omarov
347c6d6a91
engine: common: don't output log to stdout on Win32 where it's done by Wcon. Better colorcode filtration
2022-06-14 03:27:21 +03:00
Alibek Omarov
ab6214142f
public: remove custom str(r)chr functions
2022-06-14 03:23:46 +03:00
Velaron
402b38951d
engine: better color code stripping
2022-06-13 23:36:13 +03:00
Velaron
6807cf5849
engine: fix build on android
2022-06-13 23:36:13 +03:00
Velaron
15dc25d2cd
engine: rename Q_cleanstr to something more meaningful
2022-06-13 23:36:13 +03:00
Velaron
568c7fd917
engine: strip color codes when writing to log
2022-06-13 23:36:13 +03:00
Alibek Omarov
e5562a7b61
engine: whereami: fix C89
2022-06-13 04:33:12 +03:00
Alibek Omarov
ac308f7298
engine: platform: sdl: fix SDL1.2 build
2022-06-13 04:27:54 +03:00
Alibek Omarov
7a88379917
game_launch: fix win32 build
2022-06-13 04:21:57 +03:00
Alibek Omarov
e44718d531
engine: fix build
2022-06-13 04:17:02 +03:00
Alibek Omarov
e6a2c207de
engine: implement change game with execv in-engine. For now it enabled for all platforms, will probably disabled selectively
2022-06-13 03:42:20 +03:00
Alibek Omarov
df83b155a1
game_launch: rip out execv code
2022-06-13 03:26:44 +03:00
Alibek Omarov
cc2c97cfad
engine: include whereami library to detect current executable path, may be reworked later if needed
2022-06-13 03:07:37 +03:00
Alibek Omarov
c69ea00e79
wscript: better _FILE_OFFSET_BITS check, as suggested by @nekonomicon
2022-06-12 04:25:09 +03:00
Alibek Omarov
f63dd72260
scripts: gha: fix including vgui.dll
2022-06-12 04:16:41 +03:00
Alibek Omarov
5b0b917468
vgui_support: re-add as submodule
2022-06-12 04:15:41 +03:00
Alibek Omarov
b138a63502
vgui_support: remove it from the engine
2022-06-12 03:54:35 +03:00
Alibek Omarov
8eec5389fe
game_launch: fix gamedir pointer being lost
2022-06-12 03:07:43 +03:00
Alibek Omarov
5524aaae1e
engine: server: fix server dll leak when no map was loaded
2022-06-12 03:07:09 +03:00
Alibek Omarov
acffeb1dad
wscript: enable gl4es for Android builds
2022-06-12 03:06:31 +03:00
Alibek Omarov
6c7d57e1eb
engine: client: move vgui deinitialization out of CL_UnloadProgs. Delete cls.initialized check in CL_Shutdown, that used to shutdown various client-side subsystems that usually have needed checks by themselves
2022-06-12 03:06:03 +03:00
Alibek Omarov
7c9f5f8ab1
engine: remove LoadLibrary macros, to avoid possible misuse. Although macros moved to game_launch, it's part of it's own problem from now
2022-06-11 03:25:57 +03:00
Andrey Akhmichin
6b4f55c4bf
engine: common: filesystem.c: do not load archives with zip extention again
2022-06-10 23:26:14 +03:00
Velaron
89335938c1
remove accidentally added submodule
2022-06-10 23:25:43 +03:00
Velaron
437630d26d
platform: win32: remove forgotten code
2022-06-10 23:25:43 +03:00
Bohdan Shulyar
341c9dae39
paltform: win32: fix typo >_<
2022-06-10 23:25:43 +03:00
Velaron
c10b70cb61
game_launch: explicitly check for SDL2 on win32 platforms
2022-06-10 23:25:43 +03:00
Velaron
4c7bf1ff44
platform: win32: improve error reporting when loading DLLs and move custom DLL loader to a separate file
2022-06-10 23:25:43 +03:00
Alibek Omarov
f467d0c807
game_launch: fix Windows build (as suggested by @SNMetamorph)
2022-06-09 20:27:27 +03:00
Alibek Omarov
a717b7fc49
game_launch: declare environ variable, by standard it must be declared by user program
2022-06-09 14:44:04 +03:00
Alibek Omarov
07a9c4602d
game_launch: change game with execve on supported platforms
2022-06-09 13:42:16 +03:00
Alibek Omarov
eeb170af22
engine: client: set failed status for vgui_support if we wasn't able to load one. Unload library in case of error
2022-06-09 13:41:37 +03:00
Alibek Omarov
c532c3032c
engine: menu_int: hack to compile on MotoMAGX
2022-06-09 03:28:38 +03:00
Alibek Omarov
2b8b3e1993
engine: server: new IP filter, rewritten with IPv6 in mind
2022-06-09 03:10:02 +03:00
Alibek Omarov
b0a889d1a1
engine: bring back simple netadr_t, as we don't care about IPv4-to-IPv6 mapped addresses anymore
2022-06-09 03:10:02 +03:00
Alibek Omarov
bd1bfea695
engine: second iteration of IPv6 support
...
Made code smaller
Fixed problem where v6 and v4 socket can't use same port
Added support for v4-to-v6 mapped addresses, although it's kept unused
Probably final version
2022-06-09 03:10:02 +03:00
Alibek Omarov
a1299e1dfe
common: third iteration of ipv6 netadr_t, now binary compatible with v4-to-v6 mapped addresses
2022-06-09 03:10:02 +03:00
Alibek Omarov
1a5a76a201
engine: common: minor fixes to ipv6text library
2022-06-09 03:10:02 +03:00
Alibek Omarov
b072b627a2
engine: enable getaddrinfo on Windows, fix build
2022-06-09 03:10:02 +03:00
Alibek Omarov
5d18c6d678
engine: fix declaration-after-statement
2022-06-09 03:10:02 +03:00
Alibek Omarov
59fba30a52
engine: IPv6 support
...
* v6 equivalent cvars
* hostname resolving for v6
* fix for nonblocking hostname resolve (inverted check)
* enabled by default, probably should be disabled for dedicated servers
2022-06-09 03:10:02 +03:00
Alibek Omarov
193cde83b6
engine: add IPv6 address parsing/printing library from GameNetworkingSockets
2022-06-09 03:10:02 +03:00
Alibek Omarov
12bfb8f795
common: another approach on netadr_t with better compatibility
2022-06-09 03:10:02 +03:00
Alibek Omarov
9ae72dbc47
common: update netadr_t structure to include IPv6 addresses
2022-06-09 03:10:02 +03:00
Alibek Omarov
ae6ad74994
update: mainui
2022-06-09 03:09:48 +03:00
Andrey Akhmichin
f417433f59
Documentation: opensource-mods.md: update
2022-06-03 19:54:45 +03:00
Andrey Akhmichin
080dc38f11
ci: upgrade freebsd tasks
2022-06-03 19:53:58 +03:00
Alibek Omarov
13f93412cd
engine: platform: sdl: forgot to add an include, sorry\!
2022-06-02 03:01:58 +03:00
Alibek Omarov
ca975d0168
mainui: update
2022-05-30 22:44:52 +03:00
Alibek Omarov
b82d0bad7a
engine: client: vgui: unload client DLLL if no vgui_support export was found
2022-05-30 22:41:28 +03:00
Alibek Omarov
d1de9e2802
engine: platform: sdl: proper cursors allocation and free
2022-05-30 03:33:03 +03:00
Alibek Omarov
efdf9e3599
scripts: gha: include activities.txt on win32 continious builds
2022-05-30 02:35:06 +03:00
Alibek Omarov
060835cf2f
waf.bat: correctly parse reg query on Windows 10+, fallback only to py.exe wrapper
2022-05-29 19:22:48 +03:00
Alibek Omarov
74485f30d3
ref_gl: gl4es: update
2022-05-29 18:27:16 +03:00
Alibek Omarov
8dda35a128
mainui: update
2022-05-29 18:26:55 +03:00
Alibek Omarov
978ec27a57
waf: upgrade to temporary waifu branch with absolute path clang compilation database generator
2022-05-29 05:19:23 +03:00
Alibek Omarov
113f18cfb0
ref_soft: use correct types for pointer arithmetics
2022-05-29 04:23:07 +03:00
Alibek Omarov
6f36edfd16
engine: various const qualifier fixes
2022-05-29 04:22:43 +03:00
Alibek Omarov
5fb4edeb36
ref: simplify gldebug switchcase in output function, kinda fix const qualifiers
2022-05-29 04:00:19 +03:00
Alibek Omarov
dd29e705f8
engine: menu_int: add _format and NORETURN attributes to MenuAPI
2022-05-29 02:33:28 +03:00
Alibek Omarov
8445567ab4
engine: server: remove unused arguments passed to Con_Printf
2022-05-29 02:27:39 +03:00
Alibek Omarov
11d4cb0f1e
engine: client: securedstub: cosmetic changes
2022-05-29 02:27:02 +03:00
Alibek Omarov
db48d0ded7
engine: server: fix useless double assignment
2022-05-29 01:59:15 +03:00
Alibek Omarov
86a777880f
engine: common: mark AbortCurrentFrame as NORETURN, fix noreturn warnings
2022-05-29 01:58:56 +03:00
Alibek Omarov
0d195ee6fe
engine: server: fix output of maps command
2022-05-29 01:29:51 +03:00
Alibek Omarov
5e4996b119
engine: server: fix bot count
2022-05-28 22:16:08 +03:00
Alibek Omarov
f25254369d
engine: set useful format attribute for RefAPI, set Host_Error as NORETURN
2022-05-28 17:58:17 +03:00
Alibek Omarov
9ce8edcb38
public: moved compiler attributes to xash3d_types.h
2022-05-28 17:57:43 +03:00
Alibek Omarov
33d79ddb24
engine: server: fix possible array overruns
2022-05-25 17:57:47 +03:00
Alibek Omarov
52d1383f14
engine: client: fix various useless checks, unused variables & defines, double assignments and mistypings
2022-05-25 03:50:06 +03:00
Alibek Omarov
843c9abf9b
engine: common: fix array underrun
2022-05-25 03:38:19 +03:00
Alibek Omarov
924e895753
engine: common: set Host_Error and Sys_Error as NORETURN
2022-05-25 03:38:02 +03:00
Alibek Omarov
ac40badaa5
engine: client: fix array overruns
2022-05-25 03:36:33 +03:00
Alibek Omarov
fd83b0dc17
waf: upgrade to latest waf
2022-05-25 01:40:10 +03:00
a1batross
5715023a0d
ci: upgrade freebsd tasks
2022-05-21 03:14:41 +03:00
Alibek Omarov
51526948c0
engine: server: make PEntityOfEntIndex bug-compatible with GoldSrc
...
Add new undocumented GoldSrc eiface function, PEntityOfEntIndexAllEntities,
a bug-free version of PEntityOfEntIndex
Ref: https://github.com/ValveSoftware/halflife/issues/2272
2022-05-21 03:03:59 +03:00
Alibek Omarov
10ec32e264
waf: add Python 3.10 scan in batch script
2022-05-16 05:40:34 +03:00
Alibek Omarov
4fbd96d201
engine: common: filesystem: speed up directory existense check on POSIX by using stat() instead of opendir()
2022-05-09 07:45:51 +03:00
Alibek Omarov
81b01ac561
engine: common: remove NaN check, it's mostly useless on text data
2022-05-09 05:01:20 +03:00
Alibek Omarov
771c359ed0
engine: common: make blue-shift map detect more robust
2022-05-09 05:01:20 +03:00
SNMetamorph
d1a5c33bf1
engine: common: removed unused function Sys_SetClipboardData
2022-05-02 03:29:24 +03:00
SNMetamorph
641f0632ef
engine: client: fixed compilation errors on Android
2022-05-02 03:29:24 +03:00
SNMetamorph
974f0787a4
vgui_support: added VGUI_TextInput callback stub
2022-05-02 03:29:24 +03:00
SNMetamorph
87ceb0f9cb
engine: client: fixed checking client library for vgui_support interface export
2022-05-02 03:29:24 +03:00
SNMetamorph
cfcd58dd78
engine: client: extended VGUI API interface
2022-05-02 03:29:24 +03:00
SNMetamorph
8044d23e7f
engine: platform: sdl: fixed Key_Event callback when text input enabled
2022-05-02 03:29:24 +03:00
SNMetamorph
b175d6d95f
engine: client: fixed forced text input turn off in Key_EnableTextInput
2022-05-02 03:29:24 +03:00
SNMetamorph
d3e213aa1b
engine: platform: added Platform_GetKeyModifiers
2022-05-02 03:29:24 +03:00
SNMetamorph
26e09c240a
engine: platform: added Platform_SetCursorType
2022-05-02 03:29:24 +03:00
SNMetamorph
15eb6808c4
engine: platform: updated clipboard read/write functions
2022-05-02 03:29:24 +03:00
SNMetamorph
5402e1a259
ref_soft: fixed R_WorldToScreen behavior to match GoldSrc
2022-04-13 09:12:12 +03:00
SNMetamorph
74086cc4c1
ref_gl: fixed R_WorldToScreen behavior to match GoldSrc
2022-04-13 09:12:12 +03:00
SNMetamorph
9c85d114e7
engine: client: fixed TriWorldToScreen behavior to match GoldSrc
2022-04-13 09:12:12 +03:00
Alibek Omarov
81c4acab66
platform: sdl: fix right mouse button issuing wrong key code
2022-04-10 19:40:11 +03:00
SNMetamorph
6f2fda427e
engine: keydefs: fixed mouse buttons code to match GoldSrc
2022-04-10 16:50:23 +03:00
SNMetamorph
09b7f22cee
engine: cl_frame: fixed segfault in CL_UpdatePositions
2022-04-10 16:31:02 +03:00
Alibek Omarov
691a305f8e
engine: common: reorder cmd_t fields to be compatible with GoldSrc
2022-04-09 19:38:22 +03:00
SNMetamorph
66dc20dc2d
engine: platform: con_win: fixed console window visibility without developer mode ( fix #818 )
2022-04-08 14:18:38 +03:00
Alibek Omarov
92cfa2af48
ref_soft: light: fixed game crash in Customize multiplayer menu
2022-04-07 22:02:31 +03:00
SNMetamorph
9515cccb94
engine: client: cl_frame: fixed position history animtime for non-brush entities
2022-04-07 21:56:37 +03:00
SNMetamorph
a7d02b8268
ref_gl: gl_rlight: fixed game crash in Customize multiplayer menu
2022-04-07 21:56:37 +03:00
SNMetamorph
22815d2784
engine: server: sv_main: added status line for dedicated server console
2022-04-06 15:17:15 +03:00
SNMetamorph
95ee88720c
engine: platform: win32: major refactoring of console code
2022-04-06 15:17:15 +03:00
SNMetamorph
58dbc1ba31
engine: system: disabled skipping color codes for Wcon_WinPrint
2022-04-06 15:17:15 +03:00
SNMetamorph
d7431783d4
engine: sv_save: added entity_state_t->startpos to save fields
2022-04-06 14:28:13 +03:00
Alibek Omarov
c8410f7e46
engine: server: don't issue an assert on invalid client names
2022-04-02 13:36:53 +03:00
a1batross
80e20cb55b
Documentation: ports: update info about PSP port
2022-03-30 22:30:32 +03:00
Alibek Omarov
654bac83a5
scripts: do not upload branches as main continious prerelease
2022-03-20 06:38:46 +03:00
a1batross
fc7fb8b62d
engine: masterlist: replace master server domain by mentality.rip
...
It is essentially the same as ms.xash.su but due to current situation, it is known to be blocked on some Ukrainian ISPs.
ms2.xash.su is retired for now.
2022-03-19 01:58:10 +03:00
SNMetamorph
65d624140e
engine: filesystem: fixed FS_Search algorithm for ZIP files ( fix #796 )
2022-03-15 23:11:00 +03:00
SNMetamorph
cd2720ba81
engine: common: imagelib: fixed loading BMP files with v4/v5 headers
2022-03-13 01:50:30 +03:00
Alibek Omarov
d2f3b1974e
github: disable cleanup for self-hosted runners because there are none
2022-03-11 14:05:53 +03:00
Alibek Omarov
91742d613d
github: goodbye, aarch64 runner
2022-03-11 13:41:47 +03:00
Alibek Omarov
fba323cf1f
engine: common: cosmetic changes to usage string generating code
2022-03-10 04:52:16 +03:00
Alibek Omarov
f67d0ffa5a
engine: common: fix broken function name and strings after find&replace in socket code
2022-03-10 04:51:38 +03:00
Alibek Omarov
a6fbf5fb74
mainui: update
2022-03-09 08:16:28 +03:00
Alibek Omarov
df616b950d
engine: add NET_AdrToString to menu extended API, upgrade mainui submodule
2022-03-08 07:00:36 +03:00
Alibek Omarov
37cf4da136
engine: client: switch to protocol info key in detecting old engine servers
2022-03-08 07:00:36 +03:00
Alibek Omarov
668d528e3b
engine: client: delete unused function
2022-03-08 07:00:36 +03:00
Alibek Omarov
12da44a3d7
engine: server: send protocol version to distinguish old engine and new
2022-03-08 07:00:36 +03:00
SNMetamorph
51fcae8cec
ref_gl: gl_image: added check for hardware support of BC6H/BC7 compression formats
2022-03-07 02:03:40 +03:00
SNMetamorph
6473efa995
engine: added support for BC7 and BC6H compression formats of DDS textures
2022-03-07 02:03:40 +03:00
SNMetamorph
cf7852832f
ref_gl: gl_image: added support for BC7 and BC6H compression formats of DDS textures
2022-03-07 02:03:40 +03:00
SNMetamorph
29ad3de78a
ref_gl: added support for GL_ARB_texture_compression_bptc extension
2022-03-07 02:03:40 +03:00
Alibek Omarov
8169c2a40b
wscript: set rpath to current folder, LD_LIBRARY_PATH is unneeded anymore
...
Fix README and AppImage launch script accordingly
2022-03-03 05:57:51 +03:00
Alibek Omarov
85f99c723a
engine: add sys_timescale implementation
2022-03-03 05:38:36 +03:00
SNMetamorph
edc171be04
engine: common: fixed lightmap shift again
2022-02-28 19:56:28 +03:00
SNMetamorph
9047fe2e74
ref_gl: gl_rsurf: fixed invalid lightmap texture coordinates in some cases
2022-02-28 16:54:28 +03:00
SNMetamorph
24ea8fba4b
engine: common: fixed lightmap shifting caused by insufficent precision in Mod_CalcSurfaceExtents
2022-02-28 16:54:28 +03:00
Alibek Omarov
e07417aead
engine: client: fix sentence word splitted by contents inside parentheses
2022-02-28 04:29:32 +03:00
Alibek Omarov
13b36e66b3
engine: client: workaround buggy position history times going backwards in interpolation code
2022-02-25 02:12:44 +03:00
Alibek Omarov
7821f425e7
engine: client: position history indexes can't be negative, use unsigned with them
2022-02-24 05:45:41 +03:00
Alibek Omarov
f0783ddee1
engine: client: fix comparing floats in interpolation code
2022-02-24 04:51:04 +03:00
Alibek Omarov
d4d39c66fb
engine: client: fix double call to CL_ParametricMove
2022-02-24 02:49:10 +03:00
Alibek Omarov
a2d8a47376
engine: client: fix misplaced arguments in memcpy
2022-02-24 02:47:54 +03:00
Alibek Omarov
3f7773f83b
engine: client: rewrite VOX subsystem, fix spaces being taken into sentences, add tests for parser, remove dead code
2022-02-22 09:40:15 +03:00
Alibek Omarov
18933e7981
engine: ensure all data was written to stdout when exiting
2022-02-22 09:40:15 +03:00
Andrey Akhmichin
9917cba8fc
utils: mdldec: add fixed uv coords support.
2022-02-12 22:06:31 +03:00
Alibek Omarov
203afda053
engine: add render_picbutton_text flag to use mainui_cpp font renderer for rendering WON buttons
2022-02-10 02:53:35 +03:00
Alibek Omarov
6dbb694fdc
wscript: define _FILE_OFFSET_BITS=64 on 32-bit systems if libc (presumably glibc) supports it
2022-02-01 19:42:38 +03:00
Alibek Omarov
0c26c24331
ref_gl: really disable VBO by default for now
2022-02-01 19:27:49 +03:00
Alibek Omarov
51635995a2
mainui: update to temporary branch with fixes until I finish picbutton text renderer
2022-02-01 19:26:26 +03:00
Bien Pham
988183a96a
engine: implement support for secured client dlls
2022-02-01 05:56:54 +03:00
SNMetamorph
d8fd0b3dcb
documentation: updated mainteiners list for Windows engine port
2022-01-30 01:27:22 +03:00
Alibek Omarov
a6b43fbfff
engine: show additional errno string when log file cannot be opened
2022-01-29 03:04:54 +03:00
Alibek Omarov
61643585e0
engine: fix NULL ptr dereference when log file cannot be opened
2022-01-29 03:04:00 +03:00
Alibek Omarov
75e8a51058
ref_gl: disable VBO. Rename r_vbo to gl_vbo to ignore existing config values as it was enabled by default
2022-01-29 02:33:09 +03:00
Bien Pham
3a55b9cd67
engine: make pfnDrawString & pfnDrawStringReverse return width
2022-01-29 00:36:43 +03:00
Alibek Omarov
89baa633c8
engine: sdl: fix mouse activated when focus gained but not game is active
2022-01-28 01:20:14 +03:00
Alibek Omarov
1bf08cc2c3
engine: touch: fix button deletion
2022-01-27 17:10:50 +03:00
Alibek Omarov
36d757c74a
engine: server: fix message trace output
2022-01-27 03:48:54 +03:00
Alibek Omarov
0891356ec5
ref_gl: use GoldSrc particle texture
2022-01-27 03:32:52 +03:00
Alibek Omarov
0fa1b4f944
engine: client: refactor tempentity parsing, make multipliers close to GoldSrc
2022-01-27 03:32:52 +03:00
Alibek Omarov
56103a90eb
engine: client: limit token size in client dll parsefile to 1024 (GoldSrc value)
2022-01-27 03:32:52 +03:00
Alibek Omarov
2fa964e939
engine: server: restore sv_trace_messages from old engine
2022-01-27 03:32:52 +03:00
Alibek Omarov
0027678a56
engine: client: print which tempentity type was overflowed
2022-01-27 03:32:52 +03:00
Alibek Omarov
ffea7d9729
engine: add host_lowmemorymode cvar to indicate low memory mode level
2022-01-27 03:32:52 +03:00
Velaron
0e286f31c5
engine: client: fix DT_TIMEWINDOW_* signedness
2022-01-24 17:31:36 +03:00
Valery Klachkov
b9cec43e2c
ref_soft: Fix crashes on 64bit
...
Just replace all long for unsigned long long :)
2022-01-16 14:26:15 +03:00
NightFox
bb84a3cb7f
add /fsanitize=address for msvc (windows) when sanitize
2022-01-16 09:54:17 +03:00
Alibek Omarov
5aa6bfee85
engine: first attempts on fuzzing the engine
2022-01-15 06:24:57 +03:00
Alibek Omarov
204544f50f
readme: update
2022-01-15 04:48:04 +03:00
Alibek Omarov
df4f21680c
engine: client: apply local client effects only if it wasn't rejected by clientdll
2022-01-14 16:18:09 +03:00
Alibek Omarov
2c1b862654
engine: client: ignore EF_BRIGHTFIELD for local client
...
It must be OK, because GoldSrc don't call similar function for local client
instead adds only flashlight and muzzleflash effects.
By adding this check, behavior must be close enough
2022-01-14 16:16:13 +03:00
Alibek Omarov
ea5937bce0
engine: net_encode: remove naive clientdata/weapondata copy, only copy fields explicitly listed in deltalst
2022-01-14 14:46:52 +03:00
Alibek Omarov
6e4ab74694
engine: net_encode: split delta "no changes" copy into separate function
2022-01-14 14:33:13 +03:00
Alibek Omarov
2c74a633d0
mainui: update
2022-01-14 01:29:33 +03:00
Alibek Omarov
22e770e4d4
engine: client: disable viewsize without requested Quake compatibility
2022-01-14 01:18:22 +03:00
Alibek Omarov
1f26710bd0
engine: fix add command error messages
2022-01-14 01:06:52 +03:00
Alibek Omarov
96f35f76e1
engine: filesystem: fix creating directories with roDir
2022-01-14 00:42:24 +03:00
Alibek Omarov
fa37d153c8
engine: common: restrict alias/unalias and stuffcmds from executing by server
2022-01-14 00:26:26 +03:00
Alibek Omarov
aa5594d11f
engine: client: don't let servers clear console
2022-01-14 00:03:05 +03:00
Alibek Omarov
6b332eabd2
scripts: gha: include extras in MAGX and Win32 builds too (Linux and Android already have it)
2022-01-13 18:31:12 +03:00
Alibek Omarov
13cf909b99
engine: filesystem: allow extras ZIPs
2022-01-13 18:22:06 +03:00
Alibek Omarov
606b5354e6
engine: filesystem: fix loading ZIP files
2022-01-13 17:46:54 +03:00
Alibek Omarov
e29dcb4125
engine: filesystem: accept ZIP files with zip extension, do not assert with NULL free in Zip_Close
2022-01-13 16:44:45 +03:00
Alibek Omarov
c3513b1615
engine: input: clean m_enginemouse leftovers, always enable SDL relative mouse mode for our input interface
2022-01-13 16:18:23 +03:00
Alibek Omarov
abbd0f92a4
engine: input: fix incorrect client notifying about mouse button states
2022-01-13 15:52:59 +03:00
Alibek Omarov
f9d0fba05f
wscript: remove duplicated branches diagnostic for good
2022-01-04 09:01:08 +03:00
Alibek Omarov
1ffe050205
engine: print only command name in Unknown command message, rather than a full line
2022-01-04 09:01:08 +03:00
Alibek Omarov
a2f741fe8a
engine: platform: sdl: try to fix 1.2 build
2022-01-04 08:39:11 +03:00
Alibek Omarov
d0a39ef492
engine: client: rework mouse input again, do what GoldSrc does, minimize SDL mouse calls
2022-01-04 08:39:11 +03:00
Alibek Omarov
f63d2d747f
vgui: remove unneeded SDL calls, remove unused VGUI API function, fix mouse cursor visibility
2022-01-04 08:39:11 +03:00
Alibek Omarov
7e687b45bb
engine: client always uses SDL (virtually) on non-Win32 platforms
2022-01-04 08:39:11 +03:00
Alibek Omarov
284eeea3c3
engine: client: rework mouse input, use IN_MouseEvent for clientdll, don't emit mouse events when mouse is visible or touch emulate is used
2022-01-04 08:39:11 +03:00
Alibek Omarov
01b2266b7e
engine: net_encode: minor code style fix
2022-01-04 04:30:47 +03:00
Alibek Omarov
0714ab27b5
mainui: update
2022-01-04 04:29:27 +03:00
Alibek Omarov
4ae608913b
console: fix Home and End buttons or equivalent hotkeys to always set start or end of input buffer
2022-01-04 03:01:59 +03:00
Alibek Omarov
295adcf222
engine: con_utils: don't also prepend backslash in autocompletion~
2022-01-04 02:31:41 +03:00
Alibek Omarov
3351ecd754
console: ignore whitespace commands on history, ignore backslash
2022-01-04 02:31:07 +03:00
Alibek Omarov
ccf90beb7d
public: crtlib: add Q_isspace function
2022-01-04 02:22:20 +03:00
Alibek Omarov
7fbbe9f015
github: ignore cleanup failure, run only on self-hosted
2022-01-04 02:20:13 +03:00
Alibek Omarov
46fd27eb14
console: remove prepending backslashes
...
This is a leftover from Quake, where the console and chat were
in fact same entity. Because Xash splits it, there is no need
in prepending backslashes to separate commands from chat messages
2022-01-04 02:14:34 +03:00
Alibek Omarov
f1a4d66d27
scripts: waifulib: remove nooptimize build type, use debug instead. Disable optimization for sanitize builds
2022-01-04 01:58:45 +03:00
Alibek Omarov
c619bb4af7
readme: update discord link
2022-01-03 23:21:31 +03:00
Alibek Omarov
210137c325
engine: increase model limit to the possible maximum without breaking the protocol
2022-01-03 23:07:33 +03:00
Alibek Omarov
d4d79573f6
github: try to cleanup work directory before running, useful for self-hosted runners
2022-01-03 21:13:02 +03:00
Alibek Omarov
b7a32f6843
scripts: gha: install deps on aarch64
2021-12-31 05:29:11 +03:00
Alibek Omarov
f1dabf13a1
github: try to add aarch64 runner
2021-12-31 05:25:20 +03:00
Alibek Omarov
947b94d29f
engine: client: delete unused test data :)
2021-12-31 04:10:06 +03:00
Alibek Omarov
f007374866
engine: client: rewrite console history
...
Fix duplicate and empty lines saved into history
Fix backup copied too early
Add tests
2021-12-31 03:49:11 +03:00
Alibek Omarov
7cb06956c2
engine: platform: win32: fix compile
2021-12-28 00:16:06 +03:00
Alibek Omarov
ebfa8e6ffc
engine: platform: android: fix compile
2021-12-27 03:19:50 +03:00
Alibek Omarov
7869aac2e5
wscript: add public to includes
2021-12-27 03:18:23 +03:00
Alibek Omarov
f3dfbc9219
mainui: update
2021-12-24 18:14:03 +03:00
Alibek Omarov
4f89288ccf
common: cleanup port.h
2021-12-23 19:17:11 +03:00
Alibek Omarov
fb8791529e
common: include build.h in xash3d_types.h
2021-12-23 18:46:40 +03:00
Alibek Omarov
f0feb1dfbf
ref: remove predictable random tiling textures
2021-12-23 18:35:01 +03:00
Alibek Omarov
2df27e14a8
engine: client: make connect command available through stufftext, for future use
2021-12-23 01:25:03 +03:00
Alibek Omarov
764ef93984
common: add fs_size_t typedef, for read()/write() return value
2021-12-23 01:21:33 +03:00
Alibek Omarov
d8b3ab4dcc
engine: filesystem: fix unused result warnings
2021-12-22 05:03:06 +03:00
Alibek Omarov
08e72bad35
engine: crashhandler: clean up code
2021-12-22 05:02:34 +03:00
Alibek Omarov
7e574ea42e
engine: filesystem: do not create folders for files in rodir mode
2021-12-22 01:52:47 +03:00
Alibek Omarov
0963e05716
engine: restore lumps after swapping them for blue shift maps
...
Mod_TestBmodelLumps may modify srclumps data, which is essential for
brush model loader. BlueShift maps have swapped lumps for some reason
Restoring them to default is fix for now
2021-12-20 18:12:36 +03:00
Alibek Omarov
23e2f4d0cc
wscript: fix install on Android
2021-12-18 03:46:21 +03:00
Alibek Omarov
ca3544d559
engine: server: don't assert for NULL player in FatPAS/PVS if we don't need it
2021-12-18 03:32:40 +03:00
Alibek Omarov
7a0a355baf
github: grab artifacts by wildcard rather than a list
2021-12-17 04:38:23 +03:00
Alibek Omarov
f7bf081650
github: try to fix artifacts uploading (YAML is worst markup language)
2021-12-17 03:58:56 +03:00
Alibek Omarov
a4be009ce7
scripts: waifulib: disable stpcpy builtin for API level <21
2021-12-17 03:15:38 +03:00
Alibek Omarov
d3248aad66
scripts: waifulib: clean legacy Android definitions
2021-12-15 17:40:24 +03:00
Alibek Omarov
000c594596
scripts: waifulib: disable -no-canonical-prefixes for new NDKs
2021-12-15 17:37:31 +03:00
Alibek Omarov
960a8959d5
github: download ndk directly instead of sdkmanager because sdkmanager sucks and ships ndk 22
2021-12-14 23:23:52 +03:00
Alibek Omarov
2604ea39c5
github: try to upload artifacts
2021-12-14 23:17:04 +03:00
Alibek Omarov
dc186c3cba
github: build android with NDK compiler
2021-12-14 23:03:31 +03:00
Alibek Omarov
f60112773f
public: crtlib: include string.h for strlen
2021-12-10 01:13:08 +03:00
Alibek Omarov
37aa5b1e99
engine: gamma: use FBitSet
2021-12-08 20:28:30 +03:00
SNMetamorph
aa07dab8ab
engine: added feature flag ENGINE_LINEAR_GAMMA_SPACE
2021-12-08 20:27:02 +03:00
Alibek Omarov
4d7309b77d
gitignore: add build dirs
2021-12-08 18:04:34 +03:00
Alibek Omarov
384cc8541e
compile.sh: use clang bundled in NDK
2021-12-08 18:04:34 +03:00
Alibek Omarov
63bd4faa22
Update submodules
2021-12-08 18:04:34 +03:00
Alibek Omarov
ac213c22ed
ref: change some FCVAR_ARCHIVE to FCVAR_GLCONFIG to save in separate config
2021-12-08 17:58:16 +03:00
Alibek Omarov
e0efe0aa23
engine: remove emboss filter. There seems no real use for it.
2021-12-07 09:09:45 +03:00
Alibek Omarov
29bc0392ee
scripts: compiler_optimizations: disable clang thread-safe statics
2021-12-07 09:03:51 +03:00
Alibek Omarov
054765232e
waifulib: xcompile: add NDK 23 support
2021-12-07 09:03:20 +03:00
Alibek Omarov
89425e4bf2
mainui: update
2021-12-07 05:16:47 +03:00
Alibek Omarov
a777e7c80d
engine, ref: add sprite and studio cvars to shared cvars list
2021-12-06 05:17:25 +03:00
Alibek Omarov
1350fd0b52
engine: ref: use right Cvar_Get function :)
2021-12-06 05:02:30 +03:00
Alibek Omarov
d7db48ce4b
engine, ref: create shared cvars list, register them at engine side, make a generic macro to declare, define and get all pointers at ref side
2021-12-06 04:57:32 +03:00
Alibek Omarov
293482fbd5
engine: FCVAR_GLCONFIG are not readonly anymore. To make truly readonly cvar for renderer, one must apply FCVAR_READ_ONLY flag
2021-12-06 03:56:18 +03:00
Alibek Omarov
3771a1d6c5
public: replace our Q_strlen with standard strlen with nullptr check in macro
2021-12-03 09:44:51 +03:00
Alibek Omarov
07f1f7ded1
engine: launcher: use our Q_strncpy instead of standard strncpy
2021-12-03 09:41:58 +03:00
Alibek Omarov
1cac321c00
engine: enable filtered command buffer for dedicated to pass the tests
2021-12-03 09:41:23 +03:00
Alibek Omarov
aa7bfb4819
engine: check for non-standard alloca header
2021-12-03 09:22:40 +03:00
Alibek Omarov
0c18a06946
engine: sequence: use Q_strncpy instead of standard strcpy
2021-12-03 09:22:40 +03:00
Alibek Omarov
24edcf7d9e
engine: swap lumps back after they were swapped for blue-shift maps
2021-11-29 16:28:42 +03:00
Alibek Omarov
ecddae8ee6
ref_gl, ref_soft: increase MAX_TEXTURES limit by 8192
2021-11-29 16:22:52 +03:00
Marc-Antoine Lortie
1ab49adbf2
Updated links in opensource-mods.md
2021-11-27 16:34:27 +03:00
Alibek Omarov
28b49e00e5
scripts: continious_upload: remove unused Travis CI support
2021-11-27 06:34:22 +03:00
Alibek Omarov
1e6be598e9
TravisCI is dead too\!
2021-11-27 06:27:52 +03:00
Alibek Omarov
155e15939b
scripts: continious_upload: remove unused Artifactory support (JFrog is dead\!)
2021-11-27 06:25:35 +03:00
Alibek Omarov
3f014fde73
scripts: continious_upload: upload to original transfer.sh
2021-11-27 06:24:13 +03:00
Alibek Omarov
66db69862f
cirrus: build all renderers available, remove unsupported -W flag for waf configure
2021-11-27 06:23:07 +03:00
Alibek Omarov
fc665527ae
wscript: try to fix install on windows
2021-11-27 06:04:26 +03:00
Alibek Omarov
0c6b51fa0c
waf: upgrade
2021-11-27 05:54:22 +03:00
Alibek Omarov
c00e77c02e
engine: fix const qualifier discard
2021-11-27 05:27:45 +03:00
Alibek Omarov
25c0557f7f
engine: platform: sdl: fix building with SDL1.2
2021-11-27 05:26:09 +03:00
Alibek Omarov
76ea3c39a0
ref_gl: disable multisample texture for gl4es too
2021-11-27 05:13:31 +03:00
Alibek Omarov
e67bd4811a
ref_gl: fix gles1 and gles2 build
2021-11-25 19:02:09 +03:00
Alibek Omarov
7a215766c6
ref_gl: add missing define for glTexImage2DMultisample
2021-11-25 18:47:23 +03:00
Alibek Omarov
576f0a72c5
scripts: install with destdir option on CI
2021-11-25 16:57:02 +03:00
Alibek Omarov
55b4597390
readme: use --destdir option to install engine in selected folder
2021-11-25 16:56:37 +03:00
Alibek Omarov
c64b3db6b8
wscript: remove win-style-install option, introduce enable-packaging
2021-11-25 16:52:28 +03:00
Alibek Omarov
67e77ca099
wscript: move setting DOS options where they should be
2021-11-24 23:54:03 +03:00
SNMetamorph
f726793711
engine: client: cl_main: fixed compilation error
2021-11-23 13:10:39 +03:00
Alibek Omarov
1944f48516
engine: common: allow unlimited commands for unprivileged mode at this time to not break mods like GGM
2021-11-23 05:23:38 +03:00
Alibek Omarov
992bcd89ef
engine: add cmd and cvar tests for privileged mode
2021-11-23 05:23:38 +03:00
Alibek Omarov
2356bc9905
engine: client: escape keybindings and rcon commands
2021-11-23 05:23:38 +03:00
Alibek Omarov
9159d406e3
engine: client: fix #673
2021-11-23 05:23:38 +03:00
Alibek Omarov
508eb7ab5f
engine: restore command escaping
2021-11-23 05:23:38 +03:00
Alibek Omarov
1de1852409
engine: client: fix build after merging into one ParseCvarValue function
2021-11-23 05:23:38 +03:00
Alibek Omarov
664506f79e
engine: client: touch security, add unprivileged for buttons added from server, force it and client flags
2021-11-23 05:23:38 +03:00
Alibek Omarov
06eb6838a9
engine: client: protect protected, privileged and server only cvars from server query
2021-11-23 05:23:38 +03:00
Alibek Omarov
f2a9f805b8
engine: client: redefine some cvars as filterable
2021-11-23 05:23:38 +03:00
Alibek Omarov
c6648a69ba
engine: client: protect messagemode from command injection too
2021-11-23 05:23:38 +03:00
Alibek Omarov
3203d9a043
engine: client: wire Cbuf_AddFilteredText to svc_stufftext commands
2021-11-23 05:23:38 +03:00
Alibek Omarov
8599119c8d
engine: add filterable flag support for cvars and cmds
2021-11-23 05:23:38 +03:00
Alibek Omarov
a3d6e7bcfe
common: define FCVAR_FILTERABLE, change FCVAR_LATCH value (probably losing compatibility with XashXT and Paranoia 2)
2021-11-23 05:23:38 +03:00
Alibek Omarov
36702aafe7
engine: rename FCVAR_LOCALONLY and CMD_LOCALONLY into FCVAR_PRIVILEGED and CMD_PRIVILEGED
2021-11-23 05:23:38 +03:00
Alibek Omarov
b93938956e
engine: allow exec command with config filenames whitelist
2021-11-23 05:23:38 +03:00
Alibek Omarov
c96f10d40b
engine: client: restrict LOCALONLY cvars regardless of cl_filterstuffcmd value
2021-11-23 05:23:38 +03:00
Alibek Omarov
8a9231628e
engine: restrict potentially harmful or related to user settings engine cvars
2021-11-23 05:23:38 +03:00
Alibek Omarov
66d66eb835
common: define FCVAR_LOCALONLY the same bit used in GoldSource, move FCVAR_MOVEVARS into internal engine flags
2021-11-23 05:23:38 +03:00
Alibek Omarov
9a4dec64f9
engine: describe protected and privileged cvars
2021-11-23 05:23:38 +03:00
Alibek Omarov
94dc74a37f
engine: restrict potentially harmful engine commands
2021-11-23 05:23:38 +03:00
Alibek Omarov
b24c1a51d3
engine: try to mitigate outdated client.dll vulnerabilities
2021-11-23 05:23:38 +03:00
Alibek Omarov
c79a649d97
engine: client: implement pfnFilteredClientCmd
2021-11-23 05:23:38 +03:00
Alibek Omarov
f9d1d14848
engine: disable filtered command buffer for dedicated
2021-11-23 05:23:38 +03:00
Alibek Omarov
1a1d81de62
engine: add stuffcmd filtering, not wired to ClientCmd yet
2021-11-23 05:23:38 +03:00
SNMetamorph
6c9321e50c
ref_gl: added multisample textures support
2021-11-23 05:17:19 +03:00
SNMetamorph
c366e25a10
ref_gl: cvar gl_wgl_msaa_samples renamed to gl_msaa_samples
2021-11-23 05:17:19 +03:00
Bohdan Shulyar
acba3e8c7b
android: proper escaping in gen-version.sh
2021-10-09 21:21:01 +03:00
Alibek Omarov
a4ec54551a
android: fix ampersand, lt, gt in version generator script
2021-07-03 22:45:29 +03:00
Velaron
155e766276
android: update signature check
2021-04-04 21:56:15 +03:00
Velaron
59ef64c821
android: update certificate check
2021-04-04 21:56:15 +03:00
Alibek Omarov
9feaee3e28
android: bump API level to 29 (Android 10) to support allowAudioRecording manifest property. Could be also done with reflection but I don't want do reflection
2020-11-27 21:58:11 +03:00
nillerusr
5fd30876ab
fix max_aspect
2020-10-29 21:35:26 +03:00
abasgames
8d1288373d
Audio capture
2020-09-30 21:39:50 +03:00
Alibek Omarov
f487cf0763
Revert "waf/android: add dex output to aapt input"
...
This reverts commit c2840ce608 .
2020-08-23 19:07:22 +03:00
Alibek Omarov
bea0f46d31
android: don't pause on foldables
2020-08-23 19:04:24 +03:00
Francisco Medina
a55282f2c8
l10n: Spanish: Translated using Weblate
...
Currently translated at 84.0% (58 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/es/
2020-07-22 15:26:38 +03:00
Francisco Medina
09764c65ae
l10n: Spanish: Added translation using Weblate
2020-07-22 15:26:38 +03:00
Alperen
6f29e2ea12
l10n: Turkish: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/tr/
2020-07-22 15:26:38 +03:00
Alibek Omarov
2ed18ddded
readme: add simple readme
2020-07-11 16:19:08 +03:00
mittorn
9f45a1e8cb
XashService: fix crash on api26
2020-07-10 09:16:11 +07:00
mittorn
2e5fcd45bd
XashActivity: enable navbar menu key
2020-07-10 06:54:32 +07:00
mittorn
2c8cf356f9
XashActivity: fix white navbar background
2020-07-10 06:53:31 +07:00
mittorn
8b6243d872
fwgslib: fix immersive mode check
2020-07-10 06:52:57 +07:00
mittorn
8082d2092f
XashService: Icon does not exist before 23
2020-07-08 01:47:31 +07:00
mittorn
c2840ce608
waf/android: add dex output to aapt input
2020-07-08 01:46:19 +07:00
mittorn
addd2f76ef
resources: copy mipmaps to drawable, ensure mipmap used on 19+ and xml icon on 26+ when possible
2020-07-08 01:03:18 +07:00
mittorn
d6c715c5c3
XashService: re-enable api21 notification code
2020-07-08 00:59:57 +07:00
mittorn
1e84082d81
AndroidManifest: fix exit button receiver name
2020-07-08 00:59:12 +07:00
mittorn
8602bd4e9e
Refactor XashActivity, fix crash in XashService, add compat wrappers
2020-07-07 07:28:43 +07:00
mittorn
ac0e9b633d
mipmap does not work on 4.2-
2020-07-07 07:26:25 +07:00
mittorn
d683f32a34
platform28 allows implicit cast Object to NotificationManager???
2020-07-07 07:22:32 +07:00
mittorn
b92b13158b
waf/android: prefer aapt, aapt2 has compatibility issues
2020-07-07 07:21:01 +07:00
Serkan Cık
dea0c2ce43
l10n: Italian: Translated using Weblate
...
Currently translated at 86.9% (60 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/it/
2020-06-06 00:10:16 +03:00
Adam Fullbuster
0ec21fa424
l10n: Italian: Translated using Weblate
...
Currently translated at 69.5% (48 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/it/
2020-06-06 00:10:16 +03:00
Bohdan Shulyar
0258055c1d
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Anonymous
9280d47766
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Bohdan Shulyar
63d6c2f1fd
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Anonymous
ad3ca3b304
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Bohdan Shulyar
1564dc4e8e
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Anonymous
7dbaf87cd4
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Bohdan Shulyar
5b0aed5035
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Anonymous
72f3fc9578
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Bohdan Shulyar
00a0959e45
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Bohdan Shulyar
f587f6ecd6
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Anonymous
2906ab7cd5
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-06-06 00:10:16 +03:00
Emanuele Scherillo
2b30141bcc
l10n: Italian: Added translation using Weblate
2020-06-06 00:10:16 +03:00
Максим
7bcce219ed
l10n: Ukrainian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/uk/
2020-05-25 21:14:30 +03:00
Serkan Cık
5a7ea67a0e
l10n: Turkish: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/tr/
2020-05-25 21:14:30 +03:00
Allysson Samuel Amorim Vaz Cunha
c04631dad5
l10n: Portuguese (Brazil): Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/pt_BR/
2020-05-25 21:14:30 +03:00
Serkan Cık
aca292da94
l10n: Turkish: Added translation using Weblate
2020-05-25 21:14:30 +03:00
Максим
f1b4b01029
l10n: Ukrainian: Added translation using Weblate
2020-05-25 21:14:30 +03:00
Allysson Samuel Amorim Vaz Cunha
5d737987bb
l10n: Portuguese (Brazil): Added translation using Weblate
2020-05-25 21:14:30 +03:00
a1batross
f84dafb7fe
l10n: Russian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/ru/
2020-05-06 02:39:28 +03:00
a1batross
dc6397e607
l10n: English: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS Android/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/en/
2020-05-06 02:37:35 +03:00
a1batross
a1f8416336
l10n: Russian: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS Android/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/ru/
2020-05-06 02:37:35 +03:00
a1batross
02f1a92a1b
l10n: English: Translated using Weblate
...
Currently translated at 100.0% (69 of 69 strings)
Translation: Xash3D FWGS Android/Android translations
Translate-URL: https://l10n.mentality.rip/projects/xash3d-fwgs-android/android-translations/en/
2020-05-06 02:37:35 +03:00
Alibek Omarov
d5d3c6868e
XashActivity: revert 59411a2
2019-12-23 05:48:30 +03:00
Alibek Omarov
b9028879fb
XashService: refactor notification creating, add notification channels on Oreo, use native notification layout on >=21
2019-12-23 05:33:40 +03:00
Alibek Omarov
59411a214a
XashActivity: refactor resizing code
2019-12-23 02:33:50 +03:00
Alibek Omarov
b69649c50e
android: wscript: make Java code compatible with old Android devices
2019-12-04 01:16:34 +03:00
Alibek Omarov
dc13474729
android: use ImageView instead of drawableLeft
2019-12-04 01:15:20 +03:00
Alibek Omarov
7674964cc8
android: add forgotten permission, application options, bump version, rename ic_launcher_round to ic_launcher to make Android 7.x happy
2019-12-04 00:55:17 +03:00
Alibek Omarov
a8f3701e92
android: implement better way to get JNI libraries directory
2019-12-03 03:46:14 +03:00
Alibek Omarov
ad3157e940
submodules: update
2019-12-03 03:11:51 +03:00
Alibek Omarov
332f81553a
android: revert to Java EGL management
2019-12-02 02:16:08 +03:00
Alibek Omarov
c22c227108
android: add adaptive icons for 26. Fix references to icons.
2019-12-01 16:20:06 +03:00
Alibek Omarov
e72b89a88b
android: move icons to appropriate folder
2019-12-01 01:28:41 +03:00
Alibek Omarov
3369cca3e6
android: increase target API to Pie(GP requirements), implement requesting permissions
2019-11-29 19:42:48 +03:00
Alibek Omarov
906e6ece0b
compile.sh: use host clang by default, enable aarch64
2019-11-29 17:04:04 +03:00
Alibek Omarov
4179464de1
submodules: update
2019-11-29 17:03:26 +03:00
Alibek Omarov
fe0661fde9
android: rename package for new engine
2019-11-28 23:06:56 +03:00
Alibek Omarov
76cd263c83
compile.sh: enable strip
2019-11-07 08:47:48 +03:00
Alibek Omarov
fa4c023961
compile.sh: allow to override API version
2019-11-07 07:08:06 +03:00
Alibek Omarov
e18d0976ef
compile.sh: enable polly on host toolchain, as NDK doesn't have it...
2019-10-11 09:11:12 +03:00
Alibek Omarov
ae23528e04
compile.sh: fix checking variables, enable poly-opt for SDK and engine on release builds
2019-10-11 08:53:03 +03:00
Alibek Omarov
bee36ae6a8
waf: upgrade to latest waifu revision
2019-10-11 08:52:19 +03:00
Alibek Omarov
397dbcad51
submodules: update to latest revision
2019-10-11 08:51:53 +03:00
Alibek Omarov
4eb42bf73a
compile.sh: spew config.log on error
2019-10-09 02:59:16 +03:00
Alibek Omarov
eb830889f9
compile.sh: allow TOOLCHAIN to be overriden
2019-10-09 01:51:14 +03:00
Alibek Omarov
98ba50c974
compile.sh: allow ARCHS to be overriden
2019-10-09 01:49:56 +03:00
Alibek Omarov
a692857fe8
compile.sh: use shared certificate by default even on release builds
2019-10-07 05:54:56 +03:00
Alibek Omarov
4fa711bfd3
compile.sh: fix build type selection
2019-10-07 05:35:45 +03:00
Alibek Omarov
8d9d9fd682
android: sign debug builds with debug key
2019-09-27 05:33:12 +03:00
Alibek Omarov
949c9e278b
waifulib: android: refactoring, add support for apksigner
2019-09-27 05:32:52 +03:00
Alibek Omarov
74babbfe01
submodules: update
2019-09-21 03:54:00 +03:00
Alibek Omarov
e260228e90
submodules: update
2019-09-20 18:50:51 +03:00
Alibek Omarov
a0d0aac9da
Update submodules
2019-09-11 20:44:46 +03:00
Alibek Omarov
6755c8ef7f
waf: move to waifu
2019-09-10 14:46:52 +03:00
Alibek Omarov
b7d97bc21b
compile.sh: enable building native code
2019-09-10 11:27:21 +06:00
Alibek Omarov
24a56795aa
compile.sh: add termux support, disable native building temporarily
2019-08-28 01:18:26 +03:00
Alibek Omarov
2fd2d749dc
android: wscript: enable android opt, set jni(commented out, as I can't test it now)
2019-08-28 01:17:39 +03:00
Alibek Omarov
84e158da79
waflib: android: apkjni packaging is optional now(activated by passing 'jni'), add aapt1 preliminary support
2019-08-28 01:16:34 +03:00
Alibek Omarov
31edf71985
submodules: update
2019-08-23 12:31:03 +03:00
Alibek Omarov
4f25b03c9c
compile: check for symlinked source
2019-07-29 08:39:40 +03:00
Alibek Omarov
3da70aa4f7
compile: remove hardfp from defaults, remove static library hack, don't sign if USER isn't me :)
2019-07-29 08:06:16 +03:00
mittorn
74dd990f2f
waflib: android: fix wrong --release for dx
2019-05-19 18:50:39 +07:00
Alibek Omarov
1aab248fa4
waflib: android: python 3 fix
2019-05-19 14:48:33 +03:00
Alibek Omarov
8582c505e9
XashActivity: remove java EGL code
2019-05-12 02:59:59 +03:00
Alibek Omarov
57cb127d73
waflib: android: use static version checks instead of try-catch, define which version has introduced d8
2019-05-11 18:58:22 +03:00
Alibek Omarov
af9a759e9a
waflib: android: build-tools 27 support
2019-05-10 03:14:42 +03:00
Alibek Omarov
c7b1f28590
compile.sh: exit if waf has failed
2019-05-10 03:13:57 +03:00
Alibek Omarov
37c84ad909
compile.sh: add extras.pak generation(TODO: move to waf?)
2019-05-06 20:18:38 +03:00
Alibek Omarov
face262d32
engine: update
2019-05-06 19:26:54 +03:00
Alibek Omarov
c9716b87be
waflib: android: implement appending native libraries, make dependency graph cleaner
2019-05-06 19:24:41 +03:00
Alibek Omarov
5ec762b69c
compile.sh: add build types
2019-05-06 19:12:39 +03:00
Alibek Omarov
688fc87f48
XashActivity: remove gpgs_support
2019-05-06 19:12:25 +03:00
Alibek Omarov
0aaf624cd7
compile.sh: build also HLSDK. Add check if sources are symlinked, which is really handy in development
2019-05-06 04:24:42 +03:00
Alibek Omarov
64403a5cd8
submodules: add
2019-05-06 04:23:59 +03:00
Alibek Omarov
5efac59e8f
android.mk: completely remove it, as we use waf everywhere now, add simple buildscript
2019-05-01 19:05:15 +03:00
Alibek Omarov
2eae8a02e5
nanogl: remove submodule, now it's direct dependency of engine
2019-04-27 12:09:59 +03:00
Alibek Omarov
0cfc3966c5
gpgs_support: drop Google Play Games services support, it wasn't used anyway by any game. We need another interface, probably intent-based.
2019-04-27 12:09:27 +03:00
Alibek Omarov
a56fe98dc5
waflib: android: cleanup
2019-04-25 04:37:28 +03:00
Alibek Omarov
586a03d431
gitignore: extend even more
2019-04-25 04:24:15 +03:00
Alibek Omarov
c175a1b949
waf: add android.py plugin that helps build APK file
2019-04-25 04:23:30 +03:00
Alibek Omarov
3937520d3e
gitignore: add *.pyc
2019-04-25 04:22:08 +03:00
Alibek Omarov
4309604eca
waf: deploy waf build system
2019-04-25 04:21:38 +03:00
Alibek Omarov
4360676f96
scripts: move scripts to android folder
2019-04-25 02:28:36 +03:00
Alibek Omarov
6ad205a619
fwgslib: certcheck: remove BuildConfig.java dependency
2019-04-15 23:55:59 +03:00
Alibek Omarov
24632c0e69
android: move all sources to android folder, remove ant build system
2019-04-15 23:52:47 +03:00
Night Owl
6d2d7a9d6d
Fix broken link. Update version string.
2018-10-09 10:43:54 +05:00
a1batross
7e76089b76
Bump to 0.19.3
2018-09-28 18:54:07 +03:00
Night Owl
73cbe46ecb
Fix typo. Add a missing newline character.
2018-09-28 18:11:44 +05:00
Alibek Omarov
385c557a60
Add privacy policy link on our website
2018-09-25 17:40:58 +03:00
mittorn
6058828a33
Decrease mMinHeight for cstrike to make minimal resolutions availiable
2018-07-25 00:24:47 +00:00
Alibek Omarov
cd11dd138e
Update engine
2018-07-14 21:20:32 +03:00
mittorn
5b93c0651e
Update extras again
2018-07-14 17:47:37 +07:00
Alibek Omarov
63026564c2
Update pak version. Update engine submodule
2018-07-14 01:24:05 +03:00
Alibek Omarov
f415ac379d
An update is scheduled for 14th of July
2018-07-14 00:04:01 +03:00
Alibek Omarov
7b62f5af21
Update submodules
2018-07-14 00:00:39 +03:00
mittorn
bfef1cf301
Fix vibrator check
2018-06-06 01:37:58 +07:00
Night Owl
0f02f3472e
Update README.md.
2018-05-24 22:56:46 +03:00
mittorn
2f8ab7174b
Add android.max_aspect tag
2018-05-15 19:54:53 +07:00
mittorn
1b5e416988
Remove some magic numbers
2018-05-12 03:02:37 +07:00
mittorn
03105e096d
Code clean, improve resolution selection
2018-05-12 02:56:17 +07:00
mittorn
3d19551172
Update submodules
2018-04-07 13:59:25 +07:00
mittorn
811de8d4e7
Fix possible page overflow
2018-04-07 13:53:14 +07:00
mittorn
0d1d899d7c
Refactoring, fix theme
2018-04-07 13:52:57 +07:00
mittorn
72e3313c30
Remove gkitchy adjustViewBounds, add landscape hack
2018-04-07 13:52:38 +07:00
Alibek Omarov
b48d965111
Fix gamepads, move gamepad motion event source check before mouse
2018-04-07 03:48:37 +03:00
Alibek Omarov
08d2309986
Add FExactBitSet for checking bitmasks, but exact
2018-04-07 03:48:37 +03:00
mittorn
cc0bf4bc43
Fix constants in switch cases
2018-04-07 03:48:37 +03:00
mittorn
fbb5301075
Smooth page return
2018-04-07 03:48:37 +03:00
mittorn
47433059b5
Fix animation speed
2018-04-07 03:48:37 +03:00
mittorn
5aaa34dc7e
Make title adaptive
2018-04-07 03:48:37 +03:00
mittorn
f68aa134a1
Use adaptive text size
2018-04-07 03:48:37 +03:00
mittorn
8577f3bd79
Implement PagedView
2018-04-07 03:48:37 +03:00
mittorn
8e441e2b96
Fix layout sizes
2018-04-07 03:48:37 +03:00
mittorn
2b0a4f552b
Workaround strange getExternalFilesDir freeze
2018-04-07 03:48:37 +03:00
mittorn
aa3af3bf67
Fix html content and localization
2018-04-07 03:47:03 +03:00
mittorn
31573ccbeb
Simple tutorial (without fragments, ViewPagers and vertical layout)
2018-04-07 03:47:03 +03:00
Alibek Omarov
9c086c503a
Fix NPE in GetExternalFilesDir. Correct return value in gamepad code
2018-04-01 18:29:57 +03:00
Alibek Omarov
27b2fb55c2
Update submodules
2018-04-01 02:00:22 +03:00
Alibek Omarov
69081da566
Bump versionCode to 1096, as release is scheduled for 1 April
2018-03-23 22:20:08 +03:00
Alibek Omarov
2d04a3faa9
Fallback to external files dir, if writedir invalid(empty)
2018-03-23 22:20:08 +03:00
Alibek Omarov
300e65e200
Suggest converting to rodir, if write test has failed
2018-03-23 22:20:08 +03:00
Alibek Omarov
09a88e4cbc
Merge pull request #163 from VladAndroidGamer/patch-3
...
Русский Readme
2018-03-22 01:03:40 +03:00
Владислав Сухов
ffa411b874
Russian Readme file
2018-03-21 14:47:56 +06:00
Владислав Сухов
cc25bb91bd
Русский Readme
2018-03-21 14:44:20 +06:00
Alibek Omarov
a3e10ef9ac
Update buildscript
2018-03-21 02:19:43 +03:00
Alibek Omarov
1c1cab6e30
Use monochrome special icon for status bar service. Add RoDir settings to the launcher.
2018-03-21 02:18:47 +03:00
Alibek Omarov
88873cad9d
Fix untranslated button Finish
2018-03-14 00:27:31 +03:00
Alibek Omarov
48fe23b483
Merge pull request #162 from VladAndroidGamer/patch-2
...
Update pages.xml
2018-03-08 11:42:22 +03:00
Владислав Сухов
76f3b31eb4
Update pages.xml
...
Исправлены опечатки
2018-03-08 09:19:12 +06:00
Alibek Omarov
ea4929c7e7
Enable tutorial view by default
2018-03-01 23:51:34 +03:00
Alibek Omarov
00d5b652c1
Fix build
2018-03-01 23:45:29 +03:00
Alibek Omarov
df311e861d
Russian translation of tutorial
2018-03-01 23:38:53 +03:00
Alibek Omarov
e7a6988811
Update pages.xml
2018-03-01 23:28:39 +03:00
Alibek Omarov
9c72a2ed05
All translation other than English and Russian was temporarily disabled, because they do not represent exact translation of English text anymore(missing translations, translation errors)
2018-03-01 22:14:52 +03:00
Alibek Omarov
ea085ae8d7
Update Russian translation
2018-03-01 22:12:34 +03:00
Alibek Omarov
4cf28bb6b8
Fix English strings
2018-03-01 22:11:55 +03:00
Alibek Omarov
4e58654c10
Remove hardcoded strings to proper translation
2018-03-01 21:50:13 +03:00
Alibek Omarov
57847a7dd3
Now all tutorial textures have same size. Add tutorial texture for fifth page
2018-03-01 20:50:46 +03:00
Alibek Omarov
a1af4dba99
Update engine
2018-02-15 19:24:55 +03:00
Alibek Omarov
96432c6ca9
Common sign key for all testing builds
2018-02-15 19:14:16 +03:00
Alibek Omarov
268f4a8ec2
Update submodules
2018-02-04 17:54:22 +03:00
Alibek Omarov
a80e3e3022
Fix wrong directory name in buildscript
2018-02-04 17:53:52 +03:00
Alibek Omarov
8e517beff8
Revise gamepad buttons IDs, fix wrong
2018-02-04 17:52:22 +03:00
Alibek Omarov
108dc1243f
Add --no-undefined globally to Application.mk
2018-02-04 17:34:26 +03:00
Alibek Omarov
3b3d82e097
Fix tutorial back string
2018-02-04 17:10:56 +03:00
Alibek Omarov
94bdf0238a
Twice decrease margins for notification
2018-02-04 17:08:07 +03:00
Alibek Omarov
41fc8e1672
Add build script from cs16client
2018-02-04 17:00:41 +03:00
Alibek Omarov
4d7018bfde
Update russian translation. Get rid of untranslated strings in layouts. Remove build.sh script.
2018-02-04 17:00:16 +03:00
Alibek Omarov
0637008eec
Set more proportional margins for notifications
2018-02-04 13:36:22 +03:00
Alibek Omarov
c658fe782d
Reformat XashService.java
2018-02-04 13:32:57 +03:00
Alibek Omarov
94ec3df282
Update test AndroidManifest. Set version string to 0.19.1.
2018-02-04 12:54:14 +03:00
Alibek Omarov
90fa1c1fef
Add graphics for page0 and page3, remove HTML tags from pages.xml.
2018-02-04 01:46:38 +03:00
Alibek Omarov
78e36a2eab
Add @msayan's tutorial-view library, add support-v4 as dependency, add paged tutorial(WIP)
2018-01-30 23:19:07 +03:00
Alibek Omarov
88df5e4631
Update strings: set version to 0.19.1, add @nekonomicon to credits, add @msayan to credits for tutorial-view library, add Finish string
2018-01-30 23:16:18 +03:00
Alibek Omarov
124bedcc59
Fix tutorial pages
2018-01-30 21:37:15 +03:00
Alibek Omarov
92423c8108
Rename drawable files, fix build
2018-01-29 02:15:32 +03:00
Alibek Omarov
d7389e4511
Remove unneeded SUPPORT_WEBP=false from travis.yml, as we don't use SDL and SDL_image. Update travis-deploy.sh from engine repo
2018-01-29 01:58:52 +03:00
Alibek Omarov
b923b3d6b6
Merge branch 'master' of https://github.com/FWGS/xash3d-android-project
2018-01-29 01:14:15 +03:00
Alibek Omarov
b7b468ba14
Add pictures for first two tutorial pages
2018-01-29 01:13:55 +03:00
mittorn
20f95b2104
Fix detecting mouse as touchscreen, add PointerIcon support
2018-01-24 04:11:13 +07:00
mittorn
c5900d761f
Update submodule
2018-01-24 00:10:57 +07:00
Alibek Omarov
a09abe4bcf
Rewrite pages.xml for English
2018-01-12 14:18:54 +03:00
Alibek Omarov
85641c3e1d
ShellExecute extension to open update page
2018-01-08 19:42:09 +03:00
Alibek Omarov
57ce27dfe7
Don't read symlink while checking game lib directory. It's non-portable.
2018-01-01 20:18:17 +03:00
Alibek Omarov
2eb6fbbc42
Don't start service, if we are closing for some reason
2018-01-01 20:17:24 +03:00
Alibek Omarov (a1batross)
37a4c921a6
Update nanogl
2017-11-20 04:22:14 +03:00
Alibek Omarov (a1batross)
6432a9f68d
Android part of FWGS/xash3d@a3a1dab commit [skip ci]
2017-11-20 03:41:56 +03:00
Alibek Omarov (a1batross)
25608759e5
Implement ShellExecute for Android(java part)
2017-11-01 17:27:08 +03:00
Alibek Omarov (a1batross)
0213d3be89
Disable cert checking for ant debug builds
2017-11-01 17:26:41 +03:00
mittorn
8ec0283c06
Add WIP firstrun text (need rewrite)
2017-10-20 10:10:26 +07:00
mittorn
bd17310bad
Update submodules
2017-10-20 10:09:35 +07:00
mittorn
67a296d304
Add firstrun dialog (WIP)
2017-10-02 04:14:26 +07:00
mittorn
2f4f36d407
Fix build
2017-10-01 23:52:23 +07:00
Alibek Omarov (a1batross)
828ede1e3a
Add resolution change warning red text, add result resolution preview, make resolution custom fields appear in one line, make first use of FWGSLib, fix possible crash while activity is closed before engine thread was created
2017-09-30 02:29:55 +03:00
Alibek Omarov (a1batross)
1c02cfb443
Introduce FWGSLib: an utility library that contains userful shortcuts and hides Android and Java design flaws
2017-09-30 02:25:36 +03:00
Alibek Omarov (a1batross)
5885a6ccd4
Restrict too lower values to prevent possible client bugs
2017-09-28 23:40:33 +03:00
Alibek Omarov (a1batross)
be71073e93
Hide resolution settings, when resolution changing is not enabled. Fix crashes, when scale, width or height textboxes are filled with invalid data
2017-09-28 23:33:18 +03:00
Alibek Omarov (a1batross)
dcd92e8a57
Port fix for batch text removing from SDL2, fix twice text input on some T9/Swype-like keyboards
2017-09-28 21:57:40 +03:00
Alibek Omarov (a1batross)
a1e8f0e1df
Grey-out select folder while loading
2017-09-28 21:01:46 +03:00
Alibek Omarov (a1batross)
d23797a244
Reformat XashActivity.java
2017-09-28 20:54:10 +03:00
Alibek Omarov (a1batross)
0c5d9a8146
Remove org.json submodule, as this is a part of public Android SDK
2017-09-28 16:57:30 +03:00
Alibek Omarov (a1batross)
51b53e0f2c
Fix default build(test.version=0)
2017-09-28 16:57:30 +03:00
mittorn
691fbe8615
Fix missing :
2017-09-24 10:49:08 +00:00
mittorn
c25ebc4adc
Use git credentials
2017-09-24 10:21:49 +00:00
mittorn
b8b44ff3e3
travis: Set android platform to 19
2017-09-24 06:58:38 +07:00
mittorn
16c91c4046
Install ant via apt
2017-09-24 06:48:25 +07:00
mittorn
8dbe38ebfe
Add ant install to travis script
2017-09-24 06:37:00 +07:00
mittorn
a62975fe1f
Add Ok button to about dialog
2017-09-24 06:28:01 +07:00
mittorn
00ff0ced07
Implement screen resolution changing
2017-09-24 06:26:51 +07:00
mittorn
b0099a2c5d
Update submodules
2017-09-24 03:21:47 +07:00
mittorn
f0bd91fba7
Update nanogl
2017-08-17 20:45:08 +00:00
mittorn
2168912095
Fix outdated submodules
2017-07-23 15:15:46 +07:00
mittorn
efc472cf84
Hack legacy style to make more similar to modern
2017-07-23 04:01:21 +07:00
mittorn
1018169842
Make force-quit after engine wait timeout
2017-07-22 13:51:07 +07:00
mittorn
06359502e1
Add wait timeouts
2017-07-22 13:49:07 +07:00
EXL
0949e89c11
PR #143 improvements
...
Drop bad NullPointerException catching code
2017-06-24 18:19:54 +04:00
Alibek Omarov
c1da6335e4
Merge pull request #143 from EXL/fix_fpicker_crash
...
Fix crash in FPicker on Android OS >= 7.0
2017-06-23 08:31:06 +04:00
EXL
4e07206c98
Fix crash in FPicker on Android OS >= 7.0
...
Drop always 'false' condition
2017-06-23 09:58:36 +07:00
mittorn
426b088e16
Remove unuseful control key hack
...
It breaks ctrl-space on android 7+ and crashes on 2.3-
2017-06-22 02:20:33 +06:00
mittorn
0e3b544534
Update nanogl
2017-06-19 07:10:16 +00:00
mittorn
45b51451ab
Update nanogl and engine
2017-06-18 20:22:42 +00:00
mittorn
9313824a5f
Update engine
2017-04-30 12:06:44 +06:00
mittorn
6f5e809507
GDBSafe mode that disables some dangerous operations
2017-04-25 23:52:09 +00:00
mittorn
7c44e6451a
Disable MouseMove debug message
2017-04-25 21:55:30 +00:00
mittorn
27ca283446
Fix false-detecting mouse
2017-04-05 22:03:19 +00:00
Alibek Omarov (a1batross)
4647feaf35
Update gitignore
2017-04-01 11:52:59 +03:00
Alibek Omarov (a1batross)
67c8527e2b
Revert some submodules
2017-04-01 11:51:18 +03:00
Alibek Omarov (a1batross)
3b6365a048
Remove OPEN_DOCUMENT_TREE request, because it's still does not gives permission to use fopen() call. So, forbid unwritable SD cards at all.
2017-04-01 00:52:13 +03:00
Alibek Omarov (a1batross)
d216265519
Merge.
2017-04-01 00:19:08 +03:00
Alibek Omarov (a1batross)
ba38146726
Bump version. Update submodules
2017-04-01 00:06:18 +03:00
mittorn
17ce269513
Restore pointer action checks
2017-03-31 18:34:08 +00:00
mittorn
8fcb6ca128
Fix compatibility again
2017-03-30 23:32:27 +00:00
mittorn
58cd129055
Update engine
2017-03-30 23:14:56 +00:00
mittorn
236586eed5
Fix build
2017-03-30 21:39:08 +00:00
mittorn
f51e6ab1e2
Proper mouse handling on nvidia devices
2017-03-30 19:58:11 +00:00
mittorn
fbcf7758bf
Mouse support (nvidia extension)
2017-03-30 00:25:51 +00:00
mittorn
99454bac95
Update projects
2017-03-29 20:01:18 +00:00
mittorn
a4745e06fc
Android id support
2017-03-28 23:32:39 +00:00
mittorn
9613276658
Disable gnustl_static when not needed
2017-03-28 22:47:19 +00:00
mittorn
b3777bd7c0
Fix compatibility problems, add setTitle, setIcon
2017-03-26 22:11:27 +00:00
mittorn
fa43690519
Update deploy script again
2017-03-25 20:58:20 +00:00
mittorn
aaba1b6db9
Update deploy script
2017-03-24 22:28:49 +00:00
mittorn
5368a7f56b
Xash3D background service (prevend unload)
2017-03-24 22:03:00 +00:00
Mars873
6d9056c74c
update translation ( #132 )
2017-03-15 00:46:04 +03:00
Alibek Omarov (a1batross)
ea60581142
Try to implement write permission checking and requesting permissions on newer Android devices
2017-03-07 00:00:32 +03:00
Alibek Omarov (a1batross)
139972e5c8
Try to check write permissions before engine launch
2017-03-06 00:01:39 +03:00
Alibek Omarov (a1batross)
24dd05dd36
gpgs_support: fix build
2017-03-05 21:23:22 +03:00
Alibek Omarov (a1batross)
b028a18d16
Remove jnisetenv library, restore old engine initialization. New library: gpgs_support, which initialized Google Play Games in Google Play builds. (In opensource builds does nothing)
2017-03-04 17:13:47 +03:00
Alibek Omarov (a1batross)
e2faa06de2
Finally implement all onPause, onStop and onDestroy, move JoystickHandler to JoystickHandler.java
2017-03-04 16:02:54 +03:00
Alibek Omarov (a1batross)
3b5e5462b4
XashActivity: Better use onPause for saving configs only, as this method is unkillable. onStop will just stop engine.
2017-03-04 00:56:51 +03:00
Alibek Omarov (a1batross)
323e314714
XashActivity: implement proper engine thread quit
2017-03-04 00:21:29 +03:00
Alibek Omarov (a1batross)
7867a53895
XashActivity: fix initialization
2017-03-03 00:00:04 +03:00
Alibek Omarov (a1batross)
2e2fca08a3
setenv: fix attributes
2017-03-02 23:00:56 +03:00
Alibek Omarov (a1batross)
770c72d0c5
setenv: forgotten include
2017-03-02 22:46:56 +03:00
Alibek Omarov (a1batross)
66eacf4839
Move setenv from engine to split library to allow lazy engine library loading
2017-03-02 22:29:30 +03:00
Alibek Omarov (a1batross)
af63c6fd5b
XashActivity: fix return value
2017-03-02 21:37:32 +03:00
Alibek Omarov (a1batross)
9c9f98623a
Merge branch 'master' of https://github.com/FWGS/xash3d-android-project
2017-03-02 21:34:03 +03:00
Alibek Omarov (a1batross)
4bfd57037b
XashActivity: move loadLibrary call after setting up all envvars.
2017-03-02 21:33:27 +03:00
Alibek Omarov
58deff4184
Merge pull request #124 from AICgmo/patch-3
...
Korean
2017-02-16 11:17:49 +03:00
AICgmo
ec8393eccb
Update strings.xml
2017-02-16 14:13:56 +09:00
a1batross
dd1607f261
Fix crash if MotionEvent.getDevice() will return NULL in joystick backend. Add a checks to InitGL, just in case
2016-12-07 00:25:09 +03:00
AICgmo
4138aaf19f
Korean
...
Korean Edit
2016-11-29 17:13:46 +09:00
mittorn
de21d49463
Update upload script again
2016-11-25 11:26:49 +00:00
mittorn
b58214bc26
Fix typo
2016-11-25 11:12:47 +06:00
mittorn
a95b345e33
Make curl silent
2016-11-25 11:01:08 +06:00
mittorn
9d94f5973b
exit 0 in deploy script
2016-11-25 11:01:08 +06:00
mittorn
ceba3e90c6
Fix not showing .. when folder name too short
2016-11-25 11:12:31 +07:00
mittorn
a38603ebe1
Add github deploy script
2016-11-25 00:59:09 +06:00
mittorn
a9bb69cd32
Fix scripts again
2016-11-25 00:52:21 +06:00
mittorn
1a0700aafe
Update submodules
2016-11-25 00:36:30 +06:00
mittorn
690275a0de
Fix scripts
2016-11-24 20:08:03 +00:00
mittorn
b98df4df07
Update nanogl submodule
2016-11-24 19:46:17 +00:00
mittorn
fa91f6d279
ant needs property value
2016-11-24 13:31:15 +00:00
mittorn
3a4d5beabd
AAPT has written by monkeys!
2016-11-24 13:14:47 +00:00
mittorn
ed66e84f71
Try fix stupid aapt
2016-11-24 13:05:59 +00:00
mittorn
d97cd43174
Try move condition to target block
2016-11-24 12:53:22 +00:00
mittorn
fae4e066e9
Ant is completely uneuseful without third-party libraries
2016-11-24 12:33:10 +00:00
mittorn
9c3ed99de2
Add if task def
2016-11-24 12:25:25 +00:00
mittorn
b0a4b00eb0
Conditional test version
2016-11-24 12:06:03 +00:00
mittorn
bf245a5439
Update travis-upload.sh
2016-11-24 14:21:13 +06:00
mittorn
ac3d861df7
Update travis-upload.sh
2016-11-24 14:57:36 +07:00
mittorn
2e9b4bf07c
Try new upload script
2016-11-24 12:36:00 +06:00
mittorn
f3ec856995
Update build.xml
2016-11-23 14:22:11 +06:00
mittorn
4aa0439be4
Re-enable full build
2016-11-22 02:12:05 +06:00
mittorn
41ba97d426
Fix gen-config
2016-11-22 02:01:10 +06:00
mittorn
e759bf819a
Ant travis test build
2016-11-22 01:34:50 +06:00
a1batross
e45165a958
Fix background of FPicker
2016-09-13 22:29:53 +03:00
a1batross
f7a298e8b7
Fix shorcut activity style
2016-09-13 22:26:39 +03:00
a1batross
3fb08631c4
Disable autoupdater in Google Play edition
2016-09-13 21:34:30 +03:00
a1batross
54166f6be4
Fix gen-config & gen-version scripts
2016-09-13 21:34:11 +03:00
a1batross
abf3e99896
Update gitignore. Move android-support-v4 to unused directory. It's used only in google play builds
2016-09-13 21:27:59 +03:00
a1batross
da3c921ea8
Fix build.sh
2016-09-13 21:08:39 +03:00
a1batross
19bae91be1
REmove pregenerated XashConfig, choose Legacy theme if sdk < 21
2016-09-13 21:06:41 +03:00
a1batross
58f8f87e61
Bump to 0.18.1. Really.
2016-09-13 20:42:30 +03:00
mittorn
4209dd9529
Update engine
2016-09-13 00:00:46 +00:00
mittorn
a207140613
Update repos
2016-09-12 00:58:28 +00:00
mittorn
34b12cdf8c
Update branches
2016-09-11 08:38:16 +00:00
mittorn
7bdc2664d4
Bump pak version
2016-09-10 20:45:34 +00:00
mittorn
8de7adae11
Bump version
2016-09-10 20:44:41 +00:00
mittorn
006c301564
Config generator
2016-09-10 20:25:17 +00:00
a1batross
e917d13ce3
Add XashConfig(look TODO), replace checks in XashActivity
2016-09-06 20:42:07 +03:00
a1batross
f8f8e5c743
Match versionCode to engine's build number
2016-09-06 20:14:32 +03:00
a1batross
6f16759f6c
Fix ignored gamepad button when event is not have gamepad or joystick source.
2016-09-06 20:14:11 +03:00
a1batross
05ff89f1a3
Merge branch 'master' of https://github.com/FWGS/xash3d-android-project
2016-09-04 00:17:29 +03:00
Alexey
6e3365a412
Fix pixelformat bit sizes ( #111 )
2016-08-23 17:32:43 +06:00
Alibek Omarov
1e8888b2a4
[skip ci] Fix build status readme link
2016-08-23 17:29:16 +06:00
mittorn
a5a6dfb0df
Fix enter key in some keyboards
2016-08-13 20:31:00 +00:00
a1batross
c9febff75f
Merge branch 'master' of https://github.com/FWGS/xash3d-android-project
2016-08-14 00:01:55 +06:00
mittorn
a5a51792dc
Update hlsdk
2016-08-13 17:02:48 +00:00
a1batross
df1dbbdd09
Update submodules
2016-08-13 16:12:51 +06:00
mittorn
8d26578c33
Update test build script
2016-08-12 21:40:08 +00:00
mittorn
27c1257d97
Update branches
2016-08-12 21:28:05 +00:00
a1batross
da85d25a02
Update engine branch(again)
2016-08-13 00:37:07 +06:00
a1batross
667d410b9f
Merge branch 'master' of https://github.com/FWGS/xash3d-android-project
2016-08-13 00:19:37 +06:00
mittorn
d00b27d447
Update branches
2016-08-12 19:36:50 +00:00
a1batross
5784a2116f
Remove SDL2 from README
2016-08-13 00:19:18 +06:00
a1batross
016be4ab0f
Resigning our public release isn't good ;)
2016-08-13 00:12:19 +06:00
a1batross
3cda974475
Fix build
2016-08-12 23:23:12 +06:00
mittorn
78f8a7279a
Update engine
2016-08-12 16:11:40 +00:00
a1batross
f1813fed8a
Merge branch 'master' of https://github.com/FWGS/xash3d-android-project
2016-08-12 22:08:07 +06:00
a1batross
adae21a549
New icons. Add xxxhdpi(192x192) icon.
2016-08-12 22:07:23 +06:00
mittorn
456e391c75
Update engine
2016-08-12 14:32:06 +00:00
mittorn
ebba9effb7
Refactor key events, send lost dpad events as keyboard
2016-08-12 14:30:42 +00:00
mittorn
12e6b7a9ab
Merge branch 'master' of https://github.com/SDLash3D/xash3d-android-project
2016-08-12 13:16:55 +00:00
mittorn
172d3f9e88
Fix strings in resources
2016-08-12 08:23:10 +00:00
mittorn
e471a9d586
Remove SDL folder
2016-08-11 20:41:26 +00:00
mittorn
9a78494be9
Disable steam from AndroidManifest
2016-08-11 20:38:00 +00:00
mittorn
438d574714
Disable steam again
2016-08-11 20:35:33 +00:00
mittorn
dff2f20dbb
Update branches
2016-08-11 20:25:05 +00:00
mittorn
1e3e1c574d
Update build script
2016-08-11 20:18:08 +00:00
mittorn
b2d221e3df
Update omp blacklist
2016-08-11 19:57:44 +00:00
a1batross
e8d0a3a5b6
Update submodules: engine, json and xash-extras
2016-08-11 23:35:41 +06:00
a1batross
6a3541f6d9
Invert look axes
2016-08-11 23:34:40 +06:00
mittorn
98898f852e
Merge branch 'omp'
2016-08-11 07:44:30 +00:00
mittorn
5a2b0b1514
Remove SDL from gen-version.sh
2016-08-11 07:31:29 +00:00
a1batross
e76774ebe3
Update submodules
2016-08-11 12:29:43 +06:00
mittorn
2e11e1cd30
Ignore other configuration changes
2016-08-09 12:01:47 +00:00
mittorn
77e209f5ed
Prevent crash on hardware keyboard connect
2016-08-09 11:28:22 +00:00
mittorn
2c73f5a0fa
Prevent launch while extras in unpacking
2016-08-09 10:52:32 +00:00
mittorn
d35d54afa4
Fix keyboard/resize in immersive mode
2016-08-09 10:50:52 +00:00
a1batross
2e42e30f1c
Update engine. Increase versionCode, so Google Play don't complain about updating Xash3D everytime.
2016-08-07 22:23:23 +06:00
mittorn
6f5ccd4239
Merge branch 'master' of https://github.com/SDLash3D/xash3d-android-project into remove-sdl
2016-08-05 17:43:55 +00:00
mittorn
f44451e0f1
Fix compatibility
2016-08-05 17:43:46 +00:00
a1batross
4fc4454a74
[skip ci] Just disable XASH_SDL in debug buildscript
2016-08-05 19:53:14 +06:00
a1batross
100f89b0e7
Update engine
2016-08-05 19:48:06 +06:00
a1batross
2916a1020e
Merge 'remove-sdl' branch into 'master'
2016-08-05 19:43:56 +06:00
a1batross
3192fd851d
Update engine
2016-08-05 19:33:19 +06:00
a1batross
ce2e4767ad
Swap yaw and pitch axes again
2016-08-05 19:31:42 +06:00
a1batross
8133cd9d01
Implement Immediate Mode(sticky) on 4.4 or higher
2016-08-05 19:17:12 +06:00
a1batross
e75f120cf7
Rework FPicker to use AsyncTask. Also change spaces to tabs.
2016-08-05 19:16:01 +06:00
a1batross
774ee7cf38
Update engine version. Update URLs in submodules
2016-08-05 15:22:27 +06:00
a1batross
f6f2aede91
Remove SDL2 submodule
2016-08-05 15:10:56 +06:00
mittorn
063dc599b9
Fallback to key event on gamepads
2016-08-01 19:11:37 +00:00
mittorn
0a35d46131
Forgot initialize handler
2016-08-01 16:08:41 +00:00
mittorn
ad5147a53f
Joystick compatibility mode
2016-08-01 11:27:51 +00:00
mittorn
c02a3167ca
Update submodules
2016-08-01 09:51:14 +00:00
mittorn
7dde5b83b1
Allow unaligned access
2016-08-01 09:42:30 +00:00
mittorn
7a10caf3df
Fix build
2016-08-01 09:40:56 +00:00
mittorn
7db489df98
Bump versions
2016-08-01 09:28:06 +00:00
a1batross
d2b0860577
Swap pitch and yaw in joystick constants
2016-07-31 21:06:41 +06:00
a1batross
0af71adf39
Fix build, fix awful merge, add joystick backend
2016-07-28 00:12:01 +06:00
a1batross
4697cda8b0
Android joystick backend
2016-07-26 22:39:54 +06:00
a1batross
df0a0f2a64
Update autoupdater link
2016-07-26 18:01:17 +06:00
a1batross
106b193511
Autoupdater: add a checkbox for checking beta versions also
2016-07-26 17:54:29 +06:00
a1batross
1195c1b96b
Merge autoupdate to remove-sdl
2016-07-26 17:07:01 +06:00
a1batross
e48b54d461
Merge branch 'remove-sdl' of https://github.com/SDLash3D/xash3d-android-project into remove-sdl
2016-07-26 16:56:57 +06:00
a1batross
1c4c10e97e
SDLash3D->Flying With Gauss
2016-07-22 19:38:49 +06:00
mittorn
c4d3e4af20
New test icons
2016-07-02 22:50:31 +00:00
mittorn
d19f81fef1
Add switch for resize on keyboard
2016-07-02 22:31:25 +00:00
mittorn
e55c292c81
Update engine
2016-07-02 22:30:01 +00:00
mittorn
249bbf991a
Update engine
2016-06-27 11:01:00 +00:00
mittorn
a7a1a2457c
Update engine
2016-06-26 11:15:37 +00:00
mittorn
cc211aa82e
Update branch
2016-06-13 20:09:45 +00:00
mittorn
530d68e43a
Update branches
2016-06-12 20:44:39 +00:00
a1batross
276afa836b
Merge branch 'remove-sdl' of https://github.com/SDLash3D/xash3d-android-project into remove-sdl
2016-06-11 20:06:40 +03:00
mittorn
1fde2ba0dd
Update layout
2016-05-31 12:23:09 +00:00
mittorn
c52453ea1a
Volume buttons
2016-05-31 09:03:38 +00:00
mittorn
cd1c47245a
Update engine
2016-05-27 00:18:02 +00:00
a1batross
4ccca49099
Update all translations: update russian translation, remove untranslatable strings
2016-05-21 20:13:48 +03:00
a1batross
38ec856198
Fix new version checking
2016-05-21 20:13:18 +03:00
a1batross
9b2c616baa
Add autoupdate checker
2016-05-20 23:46:35 +03:00
a1batross
e5c3122ba7
Lower android API
2016-05-20 23:46:11 +03:00
a1batross
64b30c4bd6
Fix warnings
2016-05-20 22:32:59 +03:00
a1batross
2ddcaf37b4
Add org.json package
2016-05-20 14:01:28 +03:00
a1batross
072781f21f
Merge branch 'travis-new-path' into remove-sdl
2016-05-20 13:20:07 +03:00
mittorn
379266732e
Merge remote-tracking branch 'origin/travis-new-path' into remove-sdl
2016-05-16 22:26:53 +00:00
mittorn
1333895aa6
Update engine
2016-05-16 22:24:23 +00:00
mittorn
fa1d58020b
Update engine
2016-05-15 09:25:43 +00:00
Alibek Omarov
f1aa3d2832
Merge pull request #102 from DeicPro/master
...
Fix links on About dialog
2016-05-14 01:37:28 +03:00
mittorn
dab20204ce
Update branches
2016-05-13 22:29:13 +00:00
a1batross
87a536ffc0
Adjust upload script
2016-05-14 01:19:07 +03:00
a1batross
77327d2c21
Fix script
2016-05-14 00:50:27 +03:00
a1batross
491d537384
Seems gen-version.sh generates invalid XML when commit message have characters like less- or greater-than signs
2016-05-14 00:43:37 +03:00
a1batross
8a599ee8e9
Forgot 'sh' >___<
2016-05-14 00:28:02 +03:00
a1batross
6f27a141a5
Mistype in script name >_<
2016-05-14 00:25:23 +03:00
a1batross
12115e1dd1
Rework Travis autobuilds
2016-05-14 00:10:39 +03:00
Deic
9e515756af
remove useless arg
2016-05-13 22:51:21 +02:00
Deic
e5268bcf3f
fix TextView on dialog
...
Links work now.
2016-05-13 22:49:45 +02:00
Deic
0c16521ff4
Merge pull request #1 from SDLash3D/master
...
merge
2016-05-13 22:42:18 +02:00
a1batross
9575c9a9b5
Fix build for Brazil Portuguese
2016-05-13 20:06:30 +03:00
mittorn
ff81e98bc2
Update branches
2016-05-13 14:56:35 +00:00
mittorn
b708774bcd
Update branches
2016-05-12 22:43:28 +00:00
mittorn
7bcaa0db87
Disable EGL initialization, called from native now
2016-05-12 22:42:15 +00:00
Matheus Naldi
f4538c2eec
Added translation for Brazilian Portuguese
2016-05-12 11:13:37 -03:00
mittorn
19c8340b5c
Add default icon
2016-05-09 19:51:27 +00:00
mittorn
0735d551ff
Implement messagebox and enable resize
2016-05-09 15:05:28 +00:00
mittorn
57f3f03236
Refactor code
2016-05-09 14:03:50 +00:00
mittorn
848b1f8ae6
Keyboard and vibration support
2016-05-08 22:57:35 +00:00
mittorn
aba773d1c0
Pixel format selection spinner
2016-05-08 08:57:07 +00:00
mittorn
3903f06abb
Update branches
2016-05-08 08:12:05 +00:00
mittorn
e365040659
Fix screen orientation
2016-05-08 07:59:53 +00:00
mittorn
0211b8720f
Update branches, enable openSLES
2016-05-07 22:37:15 +00:00
mittorn
2c8b1ee753
Improve EGL restore
2016-05-07 20:14:09 +00:00
aaa95945
71f1aa6a2d
Create strings.xml ( #99 )
...
* Create strings.xml
Translate to Chinese!
* Update strings.xml
2016-05-07 19:07:59 +03:00
Deic
3736938bea
Create strings.xml ( #100 )
...
Spanish language added.
2016-05-07 11:40:46 +03:00
mittorn
69b11fcf38
Implement EGL restore
2016-05-06 22:20:34 +00:00
Alibek Omarov
fe5b7dc7cf
Update README.md
2016-05-07 01:50:36 +04:00
mittorn
5b0ee9679c
Fix fullscreen
2016-05-06 16:49:42 +00:00
mittorn
441beea431
Fix install
2016-05-06 16:48:21 +00:00
mittorn
46a9d3fac6
Update travis
2016-05-06 15:12:19 +00:00
mittorn
aeee1419a2
Fix and rework launch
2016-05-06 14:58:09 +00:00
mittorn
126433c42c
Android 1.5 support
2016-05-06 08:58:01 +00:00
mittorn
11a29ac213
Touch action filter, add keyboard code
2016-05-05 20:01:43 +00:00
mittorn
e33ceda57a
Update touch code
2016-05-04 21:34:15 +00:00
mittorn
cd81aa82ea
Improve launch, fix touch
2016-05-04 21:02:09 +00:00
mittorn
76cac2a352
Restore build without sdl (only graphics output supported)
2016-05-03 22:24:07 +00:00
mittorn
285c11522d
Update branches
2016-05-02 21:37:39 +00:00
mittorn
bc1d9fed7f
Fix NullPointerExveption
2016-05-01 13:05:28 +00:00
mittorn
80a1f6c4c8
Autodetect legacy/material
2016-05-01 12:53:36 +00:00
Solexid
156171d77a
Update AndroidManifest.xml
2016-05-01 11:37:36 +03:00
Solexid
cc21b87045
Update project.properties
2016-05-01 11:05:12 +03:00
Solexid
19de6ce5ff
Update AndroidManifest.xml
2016-05-01 11:02:23 +03:00
Solexid
4f1bc7d68a
Icon for folder
2016-05-01 10:43:34 +03:00
Solexid
5ef65c1d5b
Update FPicker.java
2016-05-01 10:42:14 +03:00
Solexid
9a98aeb958
Update activity_fpicker.xml
2016-05-01 03:37:23 +03:00
Solexid
6ebca5c330
Fix missing string.
2016-05-01 03:25:20 +03:00
Solexid
0cffe3afe9
Added button to launcher
2016-05-01 03:18:32 +03:00
Solexid
726eab44d9
Fpicker classes
2016-05-01 03:15:27 +03:00
Solexid
45bf7fa453
Added folderpicker layout files
2016-05-01 03:13:28 +03:00
Leo
4195f90e0f
Added Persian (Farsi) langauge ( #93 )
...
* Create strings.xml
* Added Persian (Farsi) Language
* Update strings.xml
* Update strings.xml
* Update strings.xml
* Update strings.xml
* Update strings.xml
* Update strings.xml
* Update strings.xml
* Update strings.xml
2016-04-29 22:47:04 +03:00
Solexid
8065092976
Illegal call fix
2016-04-29 22:01:59 +03:00
Solexid
631c9c46c0
Import miss
2016-04-29 21:43:56 +03:00
Solexid
4560bd68a0
Strings update
2016-04-29 21:32:26 +03:00
Solexid
a7993ad1c3
Added some java code for tabwork
2016-04-29 21:29:56 +03:00
Solexid
a0b0c6154f
First step.Edited layout.
2016-04-29 21:22:34 +03:00
mittorn
a78c93a65a
Remove cl_tent.c from omp list
2016-04-24 21:46:13 +00:00
mittorn
8459c0e644
Update branches
2016-04-23 21:31:36 +00:00
mittorn
7986e1631a
Update branches
2016-04-22 19:22:27 +00:00
mittorn
d1e8dce81a
Experimental opm support
2016-04-22 19:02:06 +00:00
THE-Swank
94b33a11bb
Language support: 'Ukrainian' ( #86 )
2016-04-20 00:09:22 +03:00
Benjamin Stürmer
8c3772a9bf
Language support: 'German' ( #85 )
2016-04-19 20:39:35 +03:00
fuzun
34ee7c1d0f
Language fixes ( #78 )
2016-04-16 21:26:01 +03:00
Alibek Omarov
870c58490b
Merge pull request #77 from fuzun/LangSupport
...
Language support: 'Turkish'
2016-04-16 13:14:33 +03:00
fuzun
880f085b24
Language support: 'Turkish'
...
Turkish language support.
2016-04-15 21:37:18 +03:00
mittorn
42bbdc2f3c
Enable steamcmd in test manifest
2016-04-14 20:53:03 +00:00
mittorn
bb58bdeec9
enable steamcmd, fix steam mobile
2016-04-14 18:00:44 +06:00
mittorn
230c07cc98
Update branches
2016-04-07 17:27:54 +00:00
mittorn
b5950a2972
Fix SDL cflags
2016-04-07 17:25:37 +00:00
a1batross
b09068e655
Bump pak version and apk version
2016-04-02 19:37:09 +03:00
a1batross
c8432f81bb
Update submodules
2016-04-02 19:30:03 +03:00
a1batross
2131dc7cfd
Update PAK version
2016-03-31 18:25:47 +03:00
a1batross
52deb81710
Check for undefined reference in case
2016-03-31 17:48:04 +03:00
a1batross
5d1f77d324
Temporarily disable Steam support
2016-03-31 17:29:54 +03:00
a1batross
5b117fe69a
Update engine
2016-03-31 16:34:17 +03:00
a1batross
14ba7328af
Update submodules
2016-03-31 16:08:34 +03:00
mittorn
5a073557ad
Update engine, use gravgun temporary
2016-03-27 12:58:05 +00:00
mittorn
0554a17f67
Update engine
2016-03-19 19:36:28 +00:00
mittorn
6edbd62ba1
Update engine
2016-03-15 16:26:34 +00:00
mittorn
2f5536c7b4
Prepare to 0.17-beta.2
2016-03-08 18:35:11 +00:00
mittorn
5b8d6c114c
Update
2016-03-06 20:36:44 +00:00
mittorn
e18fcc1e15
Update hlsdk
2016-03-05 21:37:52 +00:00
mittorn
5aa12da666
Update engine
2016-03-05 21:35:52 +00:00
mittorn
498a1f4ac9
Update gen-version script
2016-03-02 08:06:16 +00:00
mittorn
e5a8d1c2c9
Update engine and client
2016-03-01 20:20:56 +00:00
mittorn
3d5374a452
Update engine
2016-03-01 07:20:49 +00:00
mittorn
7d77d01552
Revert code-clean branch
2016-02-29 20:33:10 +00:00
mittorn
2d47dcef2c
Update engine
2016-02-29 20:28:25 +00:00
mittorn
4cdc7b93dd
Switch to new hlsdk
2016-02-29 20:12:50 +00:00
mittorn
3794611567
Change OnDestroy behaviour
2016-02-28 21:12:07 +00:00
mittorn
8fa32c733c
Fix typo
2016-02-28 21:11:40 +00:00
mittorn
19e710f22c
Update test manifest
2016-02-28 21:01:15 +00:00
mittorn
3ef85a5863
Update repos
2016-02-28 20:34:14 +00:00
Mittorn
9a4468477d
[steamcmd]Update layout, refactor code, fix minor bugs
2016-02-26 20:18:20 +00:00
Mittorn
0978b30e34
Merge branch 'master' of https://github.com/SDLash3D/xash3d-android-project into steamcmd-wip
2016-02-26 18:04:54 +00:00
Mittorn
c6d419594a
Add sikentKillAll, rename preload library
2016-02-26 18:03:44 +00:00
Mittorn
3112adc305
Forgot layout
2016-02-26 08:48:41 +00:00
Mittorn
b0f7475962
WIP steam downloader
2016-02-26 00:05:04 +00:00
a1batross
1ef511f476
Remove untranslatable marks from some strings, add korean translation from #61
2016-02-25 19:05:14 +03:00
mittorn
cbd1905d69
Disable exiting onDestroy as android may kill process while saving config
2016-02-14 19:41:42 +00:00
mittorn
86ac642258
Update engine
2016-02-08 20:22:51 +00:00
mittorn
2f9968742a
Update engine
2016-02-06 13:50:12 +00:00
mittorn
f2a22f4017
Update engine
2016-02-06 12:48:00 +00:00
mittorn
963f53a6a4
Update engine to tesing branch
2016-02-04 20:09:12 +00:00
mittorn
bab2279029
Update engine
2016-01-31 11:18:53 +00:00
mittorn
ddfc6ee3cf
Bump to 0.17
2016-01-30 21:24:52 +00:00
mittorn
67b7d97557
Update engine, extras
2016-01-30 16:26:37 +00:00
mittorn
2d5682958d
Update engine
2016-01-30 15:38:13 +00:00
mittorn
8ce7db0ff0
Update submodule
2016-01-22 11:33:12 +00:00
mittorn
d58289ca78
Update submodule
2016-01-22 11:00:53 +00:00
mittorn
6a296232bc
Fix makepak on travis, add tegra2 and armv5 builds
2016-01-22 09:09:43 +00:00
mittorn
2f11dd22ec
thumb mode
2016-01-22 09:08:49 +00:00
mittorn
28702daccc
Try fix gamepad keys
2016-01-22 08:28:38 +00:00
mittorn
eb1305dbd8
Update engine
2016-01-21 19:52:24 +00:00
mittorn
f70a1d626e
Update submodules
2016-01-20 13:03:37 +00:00
mittorn
ee0d139844
Update engine
2016-01-19 20:21:16 +00:00
mittorn
9279cedba4
Update scripts
2016-01-18 17:07:52 +00:00
mittorn
c6533d40f9
Update gen-version.sh
2016-01-18 16:48:37 +00:00
mittorn
4cf64fb370
Update .travis.yml
2016-01-18 16:45:24 +00:00
mittorn
19fc0b3a36
Fix wrong repo uri
2016-01-18 16:41:57 +00:00
mittorn
aa327eae4b
Update manifest
2016-01-18 16:41:12 +00:00
mittorn
53c109cda0
Update submodules
2016-01-18 16:36:41 +00:00
mittorn
7bb46ec007
Update xash-extras
2016-01-18 16:09:48 +00:00
a1batross
dafb85eca9
Update about dialog
2016-01-16 14:58:49 +03:00
a1batross
d513081356
Remove MobileTouchControls submodule
2016-01-16 14:17:30 +03:00
a1batross
1972cd8d5f
Merge beloko-drop branch
2016-01-16 13:20:59 +03:00
mittorn
b09bc7d82f
Add vibration permission to test manifest
2015-12-30 02:56:06 +06:00
a1batross
6306424102
Fix crash
2015-12-30 02:55:19 +06:00
a1batross
fd4695bfbe
Add vibration support and swap next/prev weapon
...
Conflicts:
assets/next_weap.png
assets/prev_weap.png
src/org/libsdl/app/SDLActivity.java
2015-12-30 02:53:07 +06:00
mittorn
38ab0d7325
Drop unneeded resources
2015-12-30 01:09:22 +06:00
mittorn
91cc1af64c
Update java part. InstallReceiver, env, verbump
2015-12-30 00:58:35 +06:00
mittorn
34c0b256f6
Update pak version
2015-12-22 01:29:30 +06:00
mittorn
d2f80c14f9
Add xash-extras submodule
2015-12-22 01:28:15 +06:00
mittorn
3b74455dcb
Shortcuts improvements
2015-12-20 18:52:09 +06:00
mittorn
073e43a5a4
Skip .git in pak
2015-12-20 17:39:19 +06:00
mittorn
bee8f590a3
Add pak utils
2015-12-20 17:19:32 +06:00
mittorn
cd89009d6b
Initial beloko drop-out, add extras envs
2015-12-20 16:39:56 +06:00
mittorn
44279c195f
PAK support
2015-12-18 02:34:09 +06:00
a1batross
39c4cfdf81
Fix crash
2015-12-09 00:45:19 +03:00
a1batross
7dfb65760d
Add vibration support and swap next/prev weapon
2015-12-06 13:06:26 +03:00
a1batross
aa3e0b7416
Bump to version 0.16.1
2015-11-10 23:17:34 +03:00
a1batross
35cd2cbd63
Update submodules, use hlsdk-client now
2015-11-10 21:16:22 +03:00
Alibek Omarov
6331313d67
Merge pull request #47 from SDLash3D/temp
...
Launcher and shortcut improvements
2015-11-10 21:13:22 +03:00
mittorn
f8a0acd776
Improvements in launcher and shortcuts
2015-11-08 01:09:57 +06:00
a1batross
0e3e1d8af9
Remove unused line
2015-10-13 03:44:23 +07:00
a1batross
56c06d7c01
Update buildscripts and manifest(set debuggable to false)
2015-10-13 03:43:51 +07:00
a1batross
293805c657
Remove unused line
2015-10-10 22:37:58 +03:00
a1batross
19b2fb76f7
Update buildscripts and manifest(set debuggable to false)
2015-10-10 22:37:09 +03:00
a1batross
561c0d8264
Update submodules, again
2015-10-10 22:34:31 +03:00
a1batross
6c1f867b55
Merge branch 'master' of https://github.com/SDLash3D/xash3d-android-project
2015-10-06 21:53:31 +03:00
a1batross
99ff4934c6
Update modules
2015-10-06 21:53:20 +03:00
Alibek Omarov
abf0f9df5e
Merge pull request #40 from SDLash3D/temp
...
Update android project
2015-10-06 21:50:41 +03:00
Alibek Omarov
4322764fe2
Update .travis.yml
2015-10-04 12:24:31 +03:00
a1batross
ef278d80a2
0.16 is coming
2015-10-03 23:47:45 +03:00
a1batross
c613a1368d
Update submodules
2015-10-03 23:47:14 +03:00
mittorn
30ba1d301b
Android project version bump
2015-09-30 02:53:08 +07:00
mittorn
26e6eef233
Update version info, disable buggy fullscreen on 2.3
2015-09-23 00:44:39 +07:00
mittorn
19b5ac81a3
Add volume keys switch, fix recent bugs
2015-09-10 08:30:17 +07:00
a1batross
5bda511154
It's a minimal API when there is no errors in AndroidManifest. Also, with this it works on Android 2.3
2015-09-08 21:27:55 +03:00
mittorn
1f330cb1a8
Revert recent changes, do not unpack assets, disable path check
2015-09-08 00:59:55 +07:00
a1batross
1e2d82ee5d
Update xash3d submodule
2015-09-06 14:50:44 +03:00
a1batross
e8d98a5d71
Move project to git-submodules
2015-09-06 12:45:59 +03:00
mittorn
f0fd46bb60
Change controls assets path, add path checks
2015-09-06 06:08:53 +07:00
mittorn
556a814f7c
Disable wheapon wheel, enable mouse buttons
2015-09-06 05:15:06 +07:00
mittorn
98d60887b2
Fix icons in TouchControlsEditing
2015-09-05 02:14:52 +07:00
mittorn
82c24fc4cb
Move controls assets and settings to gamedir/controls
2015-09-05 01:51:13 +07:00
mittorn
d1252c9a91
Check game.ico after icon.png
2015-09-04 21:06:00 +07:00
mittorn
2b65b71538
Allow start ShortcutActivity from launcher
2015-09-04 20:55:37 +07:00
mittorn
b4ead9c0ac
try icon.png first
2015-09-04 19:38:05 +07:00
mittorn
1b894336fc
Implement icon loading
2015-09-03 03:52:21 +07:00
mittorn
bf0a8bf50a
Add scroll to see all launcher activity context
2015-09-03 03:51:26 +07:00
Alibek Omarov
fb70702f02
Merge pull request #20 from mittorn/master
...
Global config
2015-08-28 17:30:28 +03:00
mittorn
7b28ad7e28
Fix layout in holo
2015-08-27 02:27:14 +07:00
mittorn
d720e327c9
Global config
2015-08-27 01:46:46 +07:00
Alibek Omarov
b0140727cc
Merge pull request #17 from SDLash3D/improve_build
...
Improve build
2015-08-24 00:55:00 +06:00
mittorn
29aec91121
Fix layout
2015-08-24 00:02:59 +07:00
mittorn
dba7d531e8
Fix yandex upload paths
2015-08-24 00:02:07 +07:00
mittorn
65f6fe58b7
Build three architectures
2015-08-22 07:53:18 +07:00
mittorn
2d9d05f00e
Fix spaces, add time to yandex
2015-08-20 15:59:11 +07:00
mittorn
d7c89d1d9b
Fir trailing spaces in version info, add date
2015-08-20 14:30:16 +07:00
mittorn
a22678fc46
Yet another try
2015-08-20 13:53:47 +07:00
mittorn
1dda4a0468
Another try
2015-08-20 13:38:55 +07:00
mittorn
38f4a7c144
Fix version information in holo theme
2015-08-20 13:13:01 +07:00
mittorn
a04843e766
Add git versions to about dialog
2015-08-20 12:28:00 +07:00
mittorn
09be317894
Upload to transfer.sh and disable non-arm build
2015-08-20 01:34:33 +07:00
mittorn
80621be0b1
Add overrides for NDK's setup.mk
2015-08-20 01:22:32 +07:00
mittorn
432432adc1
Merge branch 'master' of https://github.com/SDLash3D/xash3d-android-project
2015-08-19 23:15:54 +07:00
mittorn
c2d7ae230c
Handle all key events as keyboard
2015-08-19 22:09:14 +07:00
a1batross
6af532e3b3
Add about page, refactor LauncherActivity, remove unused strings and translations
2015-08-16 22:52:54 +06:00
mittorn
f0275dcc92
New intent filter
2015-08-15 04:38:05 +07:00
mittorn
b634582701
Some cosmetical changes
2015-08-13 01:43:09 +07:00
mittorn
545f14a8b6
Update Application.mk
2015-08-12 23:07:07 +07:00
a1batross
7dbe0f8c89
Use short hashsum
2015-08-11 22:33:24 +06:00
a1batross
01b11823c2
Add sending builded APK to YaDisk
2015-08-11 22:20:53 +06:00
a1batross
15cb862bc2
Update travis.yml
2015-08-11 21:37:38 +06:00
a1batross
e60adf229e
Fix typo
2015-08-11 21:22:39 +06:00
a1batross
ed3a634474
Fix in git clone command
2015-08-11 21:11:30 +06:00
a1batross
fb5efe3001
Buildlog limit exceeeded 4Mb. Make it more quiet
2015-08-11 21:06:12 +06:00
a1batross
c73257d155
Another try make it build
2015-08-11 20:54:22 +06:00
a1batross
fd4c08fe76
Yet Another Update .travis.yml
2015-08-11 20:45:37 +06:00
a1batross
6285b271b8
Update travis.yml
2015-08-11 20:34:25 +06:00
a1batross
e840082cb1
Merge branch 'master' of https://github.com/SDLash3D/xash3d-android-project
2015-08-11 20:00:39 +06:00
a1batross
8b92060588
Fix travis build
2015-08-11 20:00:23 +06:00
Alibek Omarov
cb07de4364
Update README.md
2015-08-11 19:56:50 +06:00
a1batross
253997f228
Silent NDK unpacking
2015-08-11 19:53:03 +06:00
a1batross
2680c60215
Add Travis badge
2015-08-11 19:47:06 +06:00
a1batross
2a465e2ee6
Add Travis CI support
2015-08-11 19:44:12 +06:00
Alibek Omarov
837c384e86
Merge pull request #14 from mittorn/android-test-0.15pre
...
Android test 0.15pre
2015-08-11 18:11:44 +06:00
mittorn
5b30cf5bc2
Add test build files
2015-07-26 23:26:07 +07:00
mittorn
e87ac3da81
Fix layout
2015-07-26 01:58:21 +06:00
mittorn
b20e90ea24
Add shortcut activity and library mods support
2015-07-26 01:30:00 +06:00
mittorn
fa72090ea1
Use shared prefs and setenv
2015-07-24 06:56:03 +06:00
mittorn
56670e9015
Update layout
2015-07-24 03:58:04 +06:00
Alibek Omarov
beb1dd4838
Merge pull request #6 from SDLash3D/sdl_macro
...
Sdl macro
2015-06-17 17:03:20 +06:00
mittorn
71a667effe
Enable XASH_SDL by default
2015-06-16 22:45:30 +07:00
mittorn
7896fc7ea7
Add x86 optimisations and switch arm ABI to hard-float
2015-06-16 22:06:19 +07:00
mittorn
4c554937a0
Enable optimisations
2015-06-12 18:23:50 +07:00
mittorn
ec977e1307
Enable touch controls
2015-06-12 16:42:36 +07:00
mittorn
94f416ec20
Enable resize and get arguments in XashActivity
2015-06-12 14:32:47 +07:00
mittorn
f65e60703f
New activity based on SDLActivity
2015-06-11 14:30:34 +07:00
Alibek Omarov
b47b51e804
Update README.md
2015-05-31 14:59:25 +06:00
Alibek Omarov
06a0f792ff
Update README.md
2015-05-31 14:58:37 +06:00
Alibek Omarov
9051f59c57
v0.14.1
2015-05-26 21:51:28 +06:00
Alibek Omarov
e3333ab578
Fix installing on some devices
2015-05-26 21:51:08 +06:00
Alibek Omarov
2a3e142b7f
Update version number to 0.14
2015-05-26 17:37:40 +06:00
Alibek Omarov
9fd3917216
Touch controls icon pack by @Nicknekit
2015-05-26 00:25:07 +06:00
Alibek Omarov
017797a668
Launcher (command line arguments)
2015-05-26 00:11:50 +06:00
mittorn
c9e93071c2
Add command line, fix typo, fix build with sdk13
2015-05-25 02:52:29 +07:00
mittorn
08f1b882c8
Merge branch 'master' of https://github.com/SDLash3D/xash3d-android-project
2015-05-25 00:25:47 +07:00
mittorn
39176afce4
Rework Makefiles, enable optimisations, fix links
2015-05-25 00:20:18 +07:00
Alibek Omarov
e6eba27bf5
Disable accelerometer
2015-05-24 14:26:44 +06:00
Alibek Omarov
fe836000cf
Delete not needed file, now it compiles
2015-05-23 19:57:00 +06:00
Alibek Omarov
7615914e86
CRLF to LF on all files
2015-05-22 20:59:49 +06:00
Alibek Omarov
58295431a0
Merge pull request #2 from emileb/master
...
Touch screen additions
2015-05-22 20:41:01 +06:00
Emile Belanger
23f4f980ee
Fixed backspace?
2015-05-20 18:00:28 +01:00
Emile Belanger
0bcc0db03f
Fixes
2015-05-20 14:42:43 +01:00
Emile Belanger
6418df976c
test
2015-05-19 17:56:53 +01:00
Emile Belanger
de3442951d
Now uses touchcontrols for all input, no SDL
2015-05-19 17:54:29 +01:00
Emile Belanger
c9c7c268d0
Added Touchscreen control by Emile Belanger
2015-05-19 10:42:14 +01:00
Alibek Omarov
69974c6bf9
Merge pull request #1 from mittorn/master
...
Remove gamepad hack from SDLActivity
2015-04-30 14:56:44 +06:00
mittorn
ca61f79c07
Fix space with hardware keyboard
2015-04-30 02:46:17 +07:00
mittorn
2621404695
Clean keyboard code
2015-04-28 22:29:01 +00:00
mittorn
0e99d0f280
Merge pull request #1 from SDLash3D/master
...
Fix freeze after unlock
2015-04-26 19:30:25 +00:00
Alibek Omarov
a20e57ba59
Fix freeze after unlock
2015-04-26 21:04:15 +06:00
Alibek Omarov
fe39a90089
Parallel Make; set -gdwarf-3 for gdb
2015-04-17 20:17:05 +06:00
Alibek Omarov
3f42c7f914
Change version to 0.12
2015-04-17 20:16:02 +06:00
Alibek Omarov
68fb5fc4bc
Disable not needed dependency: SDL_image
2015-04-17 20:15:44 +06:00
Alibek Omarov
f2dbcd9532
Change icon
2015-04-17 20:14:06 +06:00
Alibek Omarov
acbd370168
Add README
2015-04-04 22:27:09 +06:00
Alibek Omarov
6501b40644
First blood
2015-04-04 22:20:20 +06:00