428 Commits

Author SHA1 Message Date
Amos
6e3fb73a82 Update comment blocks 2022-02-14 02:31:42 +01:00
IcePixelx
308160369e RTech::UnloadAsset comment and rpak header rename. 2022-02-13 17:13:54 +01:00
IcePixelx
71dabb52e1 RTech var renames and struct renames. 2022-02-13 17:07:02 +01:00
Amos
a5b3b2dea4 Update comment blocks 2022-02-13 15:16:09 +01:00
Amos
9c8644e645 Implement stream serialization/deserialization in RCON server and client 2022-02-13 15:10:38 +01:00
IcePixelx
0dd4d9bdfa WE:AD changes in playlist. Read description.
Including every map in the playlists is a good idea.
The present issue is WE:AD not being shipped in retail season 3.
It's a separate download.

Setting it to 1 will include it in the randomized map select.
Setting it to 0 will make it able to be used with the playlist but will be exluded from said randomized map select.

It's set to 0 now to avoid the game from closing incase it hits said scenario.
2022-02-12 16:41:50 +01:00
Amos
32a9e2e91b Merge branch 'indev' of https://github.com/Mauler125/r5sdk into indev 2022-02-11 12:32:17 +01:00
PixieCore
db5b841b2c
fix typo in readme 2022-02-11 11:15:50 +01:00
Amos
822f2b3de8 Rename request to response
Small mistake
2022-02-11 01:23:37 +01:00
Amos
4ffa3d7113 Change pre/post build events
* Compile protobuf if static lib isn't found
* Only copy dll's and exe's after build if the SDK is cloned into the mod directory of the game
2022-02-11 00:46:41 +01:00
Amos
e864f773a1 Add protobuf files
.proto for sv_rcon and cl_rcon + compiled results
2022-02-11 00:38:50 +01:00
Amos
6aabd822e7 Add playlist file to repo 2022-02-10 00:48:56 +01:00
Amos
f4839bdd9a Add pdef files to repo 2022-02-10 00:48:44 +01:00
Amos
79038a59aa Add mandatory cfg files to repo 2022-02-10 00:48:24 +01:00
Amos
15b5aefc63 Compile static 2022-02-10 00:39:40 +01:00
Amos
69aec8e205 Rename to gamesdk 2022-02-10 00:29:19 +01:00
Amos
f7df14d153 Add protobuf library to project 2022-02-10 00:19:49 +01:00
Amos
ad65ff1f63 Small change 2022-02-09 21:29:34 +01:00
IcePixelx
8d33d01cd6 take strings by reference and not copy in netadr2.cpp 2022-02-09 17:02:43 +01:00
Amos
a5da2e81bf RCON improvements (see description)
** SERVER **
* Close redundant connections if max sockets have been reached.
* Ban if client keeps spamming without authing first (ignoring message).
* Check for whitelisted address before issuing bans (whitelisted address in ConVar 'sv_rcon_whitelist_address' will never get banned or get its connection terminated.
* Transmit SQVM and DevMsg logs over the wire to the net console.

** NETCON **
* IPv6 support.
* Close connection properly after FIN request.
* Prompt user to reconnect after connection has been terminated instead of closing the application.
* Add proper quit command.

** SDKLAUNCHER **
* Rename to 'launcher.exe' to describe its purpose better. Our logo gets printed nice and large on the console during startup.

** SDK **
* Cleanup.
v2.0.2 v2.0.3
2022-02-08 16:32:00 +01:00
Amos
3411c41eac ConVar optimizations 2022-02-06 19:15:34 +01:00
Amos
7fff22ccec Slight cleanup 2022-02-06 17:27:47 +01:00
Amos
bba0120e88 Fix small bug in netconsole
Changed member params but forgot to change thread invocation params
2022-02-06 17:07:27 +01:00
Amos
d555c39434 Rename to 'cmd' 2022-02-06 17:06:22 +01:00
Amos
c187bed4c5 RCON implementation (see description)
* Fully rewritten protocol agnostic CNetAdr class
* Fully rebuilded legacy CNetAdr class
* Fully rebuilded dual-stack CSocketCreator class
* New project "netconsole" added (lightweight netconsole for RCON)

RCON is still work in progress
2022-02-06 16:48:52 +01:00
Amos
d3d1e673ae Fix IConsole assertions 2022-02-06 16:33:11 +01:00
Amos
f51bd431f4 Add comment regarding exception 2022-02-06 16:30:05 +01:00
Amos
ee82a58133 Create RCON ConCommand 2022-02-06 15:59:46 +01:00
Amos
70a5f77121 Create RCON ConVar's 2022-02-06 15:54:52 +01:00
Amos
174db2fd95 Initialize Winsock 2022-02-06 15:44:39 +01:00
Amos
3a852b63d2 Fix Engine Error bug 2022-02-06 15:43:05 +01:00
IcePixelx
03b5f18435 load imgui config from disk only when creating dx instance. 2022-01-31 18:47:21 +01:00
IcePixelx
2037ffa1f2 convar creation suggestion. 2022-01-29 18:00:29 +01:00
Amos
2e8cc3e7b1 Update ImGui default theme 2022-01-28 12:56:51 +01:00
Amos
7704559869 Revert "Also load files from main directory"
This reverts commit ac566d73aaafd18c686579f7eba34430e54b44c7.
2022-01-28 01:32:55 +01:00
Amos
65299affa1 Fix issue where connected clients could kick/ban players
This was caused by a bad mistake I made when setting flags for ConVars and ConCommands.

Set 'IsFlagSet()' query debug ConVars as Replicated.
2022-01-28 01:32:27 +01:00
Amos
ac566d73aa Also load files from main directory
Still compatible with previous commit
2022-01-27 04:12:41 +01:00
Amos
3eec52e79b Fix dedicated server crash for Linux (Lutris and Wine)
The issue was caused by checking if a file with '//*/' in its path exist on the disk. This causes crashes on Lutris and Wine.
2022-01-27 03:55:47 +01:00
Amos
edac787bf7 Fix compiler error caused by merge from separate branch 2022-01-26 23:48:52 +01:00
Amos
f488b7e75e Load 'server' VPK's instead if the dedicated server is a standalone dedicated server
* Load server VPK's instead of client VPK's on standalone servers
* Dynamically search for 'g_bDedicated' global boolean instead of hardcoded address
* Add 'PatchString' to memory class
2022-01-26 23:45:58 +01:00
Amos
591559f8dc Add pseudodefs to precompiled header file 2022-01-26 23:45:08 +01:00
IcePixelx
9b814d545d Comment position adjusted. 2022-01-23 18:34:22 +01:00
IcePixelx
2f82801261 Moved CEngine class functions to sys_engine.cpp. 2022-01-23 18:33:01 +01:00
IcePixelx
f43c5da8ae Huge engine/host commit.
* Rebuild CModGroupApp::Main, did not include the dedicated routine with the empty class global.
* Using a template function now for virtual function calls
* Implemented most of the CEngine class and grabbing its global var now.
* Using local CEngine now in FrameUpdate
* Implemented EngineParms_t fully and grabbing its global var.
* Added macro for adding class member variables at offsets.

A lot of comments added regarding what needs to be done for this commit.

* Check other season compability, wasn't able to do that due to not having access to said binaries at the moment.
* Fix sdklauncher to use widestrings to fix the bug with other languages in path
2022-01-23 18:26:48 +01:00
Amos
a1f96797c0 Console and Browser UX improvements
* Log warnings
* Improve style
* Vector size is now controlled by ConVar instead
* Keep current item in view when console is cleaning up the vector. This doesn't work ideally as its hard to keep track of the current item, and the scroll is a float. In the future it might be better to grab the first vertex of the center line on the console and track that perhaps.
2022-01-22 15:51:09 +01:00
Amos
3f50736e48 Light cleanup 2022-01-22 15:42:35 +01:00
Amos
087a1487ec Fix SQVM warning 2022-01-22 15:41:30 +01:00
Amos
fed1d06287 Update icon to show better for low res 2022-01-20 17:58:31 +01:00
IcePixelx
88534a4c7f fixed release dedi setting debug settings. 2022-01-20 17:25:35 +01:00
IcePixelx
946148bf6e changed checksum cast till we switch to pylonv2, its currently signed on pylon 2022-01-20 16:33:56 +01:00