3074 Commits

Author SHA1 Message Date
Kawe Mazidjatari
88c9811533 Rename CServer field
This appears to be an array of persistence bools for each client instance, its still unknown what its exact purpose is.
2023-07-16 12:01:43 +02:00
Kawe Mazidjatari
db3455cbb7 Update cmodel_bsp.cpp v2.2_rc6 2023-07-15 22:03:33 +02:00
Kawe Mazidjatari
5fc38d5c96 Fix bug where map names aren't captured correctly
In rare occasions (depending on the installation path), the regex might fail to extract the level name from the VPK file name. If the path has a similar pattern, or certain characters, it will capture the wrong string. This fix has been tested, and confirmed to fix the bug.
2023-07-15 21:36:14 +02:00
Kawe Mazidjatari
e515c2d93f Don't force game into windowed mode on each launch
Let the video config decide whether or not to launch windowed.
2023-07-15 21:33:47 +02:00
Kawe Mazidjatari
1496e86273 Remove 'rui_defaultDebugFontFace' asignment
Redundant, as its defaulted to 'ArameMono' in the executable now.
2023-07-15 21:31:34 +02:00
Kawe Mazidjatari
89092a9bb8 Update navmesh build automation script
Copy levels navmeshes that have identical geometry.
2023-07-15 21:30:42 +02:00
Kawe Mazidjatari
0f11110f76 Define 'COMPILER_MSVC32' on 32bits platform 2023-07-15 19:07:58 +02:00
Kawe Mazidjatari
df5a8bdd68 SDK launcher defines cleanup
Some of its defines were located in the 'launcher' library directory, but it only contained defines for the SDK launcher, this has been moved to 'sdklauncher_const.h'. Also renamed the 'launcher_pch.h' PCH to 'sdklauncher_pch.h' to avoid confusion with 'launcher' and 'sdklauncher'.
2023-07-15 18:43:25 +02:00
Kawe Mazidjatari
6ff17557a2 Bump sigcache version
Force full rebuild
2023-07-15 17:51:56 +02:00
Kawe Mazidjatari
c46d80872a Implement launcher settings check
Discard and overwrite the settings file if the file version has changed.
2023-07-15 17:50:54 +02:00
Kawe Mazidjatari
48a8b5c36c Remove unused parameter
No longer used, removed.
2023-07-15 17:10:04 +02:00
Kawe Mazidjatari
fbe136df64 Rename command 'fs_vpk_build' --> 'fs_vpk_pack' 2023-07-15 17:03:42 +02:00
Kawe Mazidjatari
1878c92211 Merge recastnavigation/recastnavigation#619 2023-07-15 16:53:01 +02:00
Kawe Mazidjatari
e57294a1c4 Merge recastnavigation/recastnavigation#455 2023-07-15 16:49:55 +02:00
Kawe Mazidjatari
8468fe011d Merge recastnavigation/recastnavigation#645
Merged the fix, but without the catch upgrade.
2023-07-15 16:40:12 +02:00
Kawe Mazidjatari
ac6becffd8 Adjust types and format specifiers
Make it more correct.
2023-07-15 16:25:35 +02:00
Kawe Mazidjatari
d2b50065fb Fix server singleton name 2023-07-15 16:25:04 +02:00
Kawe Mazidjatari
e140d57ef6 Add 'cinttypes' header to shared PCH 2023-07-15 16:24:40 +02:00
Kawe Mazidjatari
83d7f0b9f4 Light code cleanup
- Use game's filesystem in 'Mod_GetAllInstalledMaps'.
- Reorder parameters of 'AddFilesToList', and add option to override path separator.
2023-07-15 16:24:01 +02:00
Kawe Mazidjatari
a692d122dd Fix IFileSystem::RelativePathToFullPath parameters
Argument type is a 64bit size type.
2023-07-15 16:08:15 +02:00
Kawe Mazidjatari
c5e7c3e05d Move 'CPUInformation' struct
Move to the header it actually belongs to.
2023-07-15 10:28:49 +02:00
Kawe Mazidjatari
40bcef2682 Fixup exec paths in 'build_all_vpk.cfg'
Point to new location that changed in commit afb09e1d.
2023-07-14 00:39:08 +02:00
Kawe Mazidjatari
afb09e1d05 Cleanup CFG directory
Move to dedicated subdirectories.
2023-07-13 23:15:10 +02:00
Amos
47b6b17207 Should be SDK_ARRAYSIZE 2023-07-13 08:18:28 +02:00
Kawe Mazidjatari
f6236359aa Fix debugger working directory for SDK launcher
Working directory was incorrect.
2023-07-13 00:15:37 +02:00
Kawe Mazidjatari
dca89a32d3 SDK launcher bug fixes and improvements
- Added missing implementation for 'numworkerthreads' text box.
- Swapped 'single-core server' toggle with 'processor affinity' text box.
- Performed additional light code cleanup.

The single-core dedi cvar now only gets set when 1 bit is set in the affinity mask, as that implies single core usage.
2023-07-13 00:14:47 +02:00
Kawe Mazidjatari
0de507713b Make fbits inline, and add PopCount
Floating point bitwise functions are now inline, also implemented a 'PopCount' function, which replicates the '__popcnt' instruction, but does not require the CPU to feature the instruction. This was mainly added as the SDK launcher doesn't check the CPU for SSSe3/popcnt, as it doesn't involve any instruction sets past SSE2.
2023-07-13 00:06:56 +02:00
Amos
9e899084e9 Make netchan getters/setters inline
Simple enough to be inline, also added additional assertions to methods getting from CNetChan::m_DataFlow.
2023-07-12 17:43:55 +02:00
Amos
2f209ddb60 Remove 'g_pClient' pointer
The whole array is part of the CServer class.
2023-07-12 09:14:33 +02:00
Amos
c6a9b855a2 Make simple CClient getters, inline
Small enough to be inline.
2023-07-12 09:11:31 +02:00
Amos
ccdfed1c19 Use CServer's 'GetClient'
Use the CServer's 'GetClient' method for obtaining clients by index.
2023-07-12 08:56:17 +02:00
Amos
126091d3bc Update CServer class
CClient array is part of the CPlayer class. The array has been added, filling up most of the 'unknown' gap. Vtable override functions have been added as the array is static, and therefore requires an implementation of the vtable, these are just stubs however, since the vtable pointer points to the implementation in the engine.
2023-07-11 08:42:02 +02:00
Amos
9a4ee75f2e Make inline
Simple CServer getters.
2023-07-11 07:44:48 +02:00
Kawe Mazidjatari
728eff81c8 Remove devonly flag from 'sv_single_core_dedi' cvar
Allow setting this in retail mode.
2023-07-11 00:18:58 +02:00
Kawe Mazidjatari
3391b1b1f0 Optimize the finding of fallback models
Don't construct a new string, just test the mdl strings right away using 'V_ComparePath'.
2023-07-10 19:17:00 +02:00
Kawe Mazidjatari
dbb18e586d Add 'V_ComparePath'
Add function to compare paths for equality, while ignoring case and path separators.
2023-07-10 19:16:12 +02:00
Kawe Mazidjatari
6f441292d0 CModule construction optimization
Moved construction logic to separate method, and call that from constructor instead. When willing to change the entire context on the same object, you can now just call 'InitFromXXXX()'. Previously, a whole new object would be generated and copied into ours, and then deleted again.
2023-07-10 13:54:00 +02:00
Kawe Mazidjatari
8b0fecf8bc Add aligned memalloc overrides
Make sure these are getting overridden with our implementation as well.
2023-07-10 13:51:14 +02:00
Kawe Mazidjatari
65e973f76b Remove redundant check
Pointer for RSON object was already checked above.
2023-07-10 13:50:05 +02:00
Kawe Mazidjatari
8cb46354e6 Permanently fix aligned memalloc crash
It was still crashing as the thisptr should actually be passed into the alloc callback. Changed and the function call is now identical to engine's impl. Tested in Debug, Profile and Release, Release has also been tested with LTCG.
2023-07-10 13:49:36 +02:00
Kawe Mazidjatari
cb2850f938 Update packedstore.cpp 2023-07-10 01:38:29 +02:00
Kawe Mazidjatari
804b46998f Enable the modsystem again
The initialization crash has been fixed in commit '15244bf2', where if the 'platform/mods' folder didn't exist, an exception would be raised and the process would be aborted. Now, when that folder is absent, the mod system won't initialize.
2023-07-09 22:51:14 +02:00
Kawe Mazidjatari
15244bf27a Modsystem improvements
- Added command line parameter '-modsystem_debug' to allow debugging during init, as we initialize before the first Cbuf_Execute() call (responsible for executing command line post engine init).
- Added warning to 'CLocalize::LoadLocalizationFileLists', when a mod localization file fails to load.
- All mod instances are now added to a single vector, but their 'state' determine whether or not they are enabled. This allows for toggling them on while in-game in the future, without having to rebuild the engine mod list.
- Changed all filesystem calls to use that of the engine instead.
- Changed all container types to valve ones, to maintain compatibility with the filesystem of the engine, and perhaps other things in the future.
- Forced all loads/writes to "PLATFORM" path (this is where the 'mods' folder resides).
- Forced localization files to be only read from the mod instance's directory.
- Allocated each mod instance dynamically, and stored their pointers in the modlist vector to reduce memory overhead during the move operation to modlist, and potential growth of modlist vector (which if required, will reallocate everything, and thus move it all. This especially is expensive with nested vectors (CUtlVector anly supports being nested as a pointer)).
2023-07-09 22:49:46 +02:00
Kawe Mazidjatari
e4a3bdbb2e Add internal CLocalize functions to address getters 2023-07-09 22:24:29 +02:00
Kawe Mazidjatari
5e880ec92a Added function documentation to RSON class 2023-07-09 22:20:26 +02:00
Kawe Mazidjatari
b1147a9a42 Let the caller deal with checking for NULL 2023-07-09 22:17:42 +02:00
Kawe Mazidjatari
d5f74dc245 Add constants for script paths
Game script path and its compile list.
2023-07-09 20:12:09 +02:00
Kawe Mazidjatari
e2bf1b7a99 Add CUtlString less function
Used for CUtlMap.
2023-07-09 20:10:53 +02:00
Kawe Mazidjatari
91a8ad7cfd RSON::LoadFromFile light cleanup and bug fix
Remove 'FileExists' check, if open fails, NULL file handle is returned and we just check on that. Also, commit 'a90302f0' introduced the option to open RSON files from path ID's, but the ID was only passed in the FileExist function, the actual 'Open' call did not receive the path ID argument, and therefore, did not open from there.
2023-07-09 20:09:50 +02:00
Kawe Mazidjatari
4e8b27a1e9 Allow overriding path separator to list generated by 'RecursiveFindFilesMatchingName' 2023-07-09 20:05:47 +02:00