aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL
AgeCommit message (Collapse)Author
2023-04-17Extract ProcessConnectionlessPacket hook to separate filepg9182
2023-04-11Plugin system v2 (#343)Emma Miler
* Some work * Rewrite gamestate presence * Add plugin system logger * Format changes * Format chjange * Fix gamestate stuff * some callback stuff * move around invite stuff * move invite to funcs * fix presence server data * Actually call InformSQVMCreated * bruh * Fix TODO's * Formatting * Fix filters * Add InformDLLLoads * Fix plugin handle always being 0 * Formatting * Fix merge issues * Formatting * Mods can add files compiled at SQVM init * Some Small Fixes * Add changes from review * Fix load failure * Add new squirrel functions * actually call InformSQVMDestroyed * add CreateObject function * answers to complaints * remove snake cases from GameStatePresence --------- Co-authored-by: cat_or_not <41955154+catornot@users.noreply.github.com>
2023-04-08Fix stringcmd limits causing unnecessary disconnects (#447)Jack
revert some changes made by #411
2023-03-31Bring back sq_getobject and sq_getthisentity for the client and ui vm (#428)cat_or_not
bring sq funcs back
2023-03-08Fix `sv_alltalk 1` (broken originally by respawn changes) (#291)BobTheBob
* fix sv_alltalk 1 (broken originally by respawn changes) * nvm i forgor to commit literally the main file * fix formatting * unsure why this was buidling but it shouldn't've been? fix build errors regardless * remove duplicate alltalk.cpp * add (experimental) potentially less jank patch * (now working) better patch for checking if alltalk is enabled * oops put a z in it boo womp * fixup formatting
2023-03-08Reject banned players during masterserver auth (#434)pg9182
* Reject banned players during masterserver auth This is backwards-compatible with old masterserver versions (it will be treated as a general authentication failure). * Reword server ban message
2023-03-07me when case inconsistency (#437)v1.12.4-rc1v1.12.4EladNLG
one line fix baby!
2023-03-05Fix build errors due to declaration order in scripthttprequesthandler (#430)pg9182
2023-02-23Add `FUNCTION_AT` and `VAR_AT` macros (#416)BobTheBob
* add FUNCTION_AT and VAR_AT macros * fix build issues oops * fix formatting * add PREDEFINED_VAR_AT * change func name * fixup formatting * update to use DEFINED_VAR_AT
2023-02-22Implement `dedi_sendPrintsToClient` (#418)BobTheBob
* add CGlobals class and g_pGlobals, and update scripts to support * don't automatically enable antispeedhack (oops) * add dedicated.cpp * format * bad push oops * reformat again * implement dedi_sendPrintsToClient * update formatting
2023-02-22Add additional properties to `CBasePlayer` (#329)BobTheBob
* add additional properties to CBasePlayer * fixup names * use hex offsets
2023-02-14Force-include `pch.h` to all files, remove explicit includes (#393)p0358
* force-include "pch.h" in all units, as it will error if it's not included anyways * remove #include "pch.h" from all files as it's not needed anymore now * fix size of NSUserAgent to be consistent (it's 256 in version.cpp, caused compile error) * Re-add explicit pch.h include to pch.cpp (and ran clang-format) * drop pch.h inclusion from new files
2023-02-12Add `CGlobals` class and `g_pGlobals`, and update code to support (#411)BobTheBob
* add CGlobals class and g_pGlobals, and update scripts to support * don't automatically enable antispeedhack (oops) * add dedicated.cpp * format * bad push oops * reformat again
2023-02-09Add Destroy callback for squirrel scripts. (#383)v1.12.3-rc2v1.12.3-rc1v1.12.3Erlite
* Add Destroy callback for squirrel scripts. * Switch _call() to Call()
2023-02-07Do not load streaming files on dedicated server (#412)BobTheBob
dont load streaming files on dedicated server
2023-02-06Flush loggers properly on dedicated server shutdown (#413)v1.12.2-rc1v1.12.2v1.12.1-rc1v1.12.1BobTheBob
flush loggers properly on dedicated server shutdown
2023-02-01Allow `launchplaylist` to be used to start dedicated servers (#409)BobTheBob
allow launchplaylist to be used to start dedicated servers
2023-01-30feat: Remote mods directory (#403)Rémy Raes
* feat: create remote mod directory * feat: look for mods in remote mods directory
2023-01-30Format content of `enabledmods.json` (#406)Glacir
Format enabledmods.json
2023-01-29fix broken filters (#407)BobTheBob
2023-01-26remove debug logging (#402)uniboi
2023-01-21Expose Cursor Position to UI vm (#387)uniboi
* add NSGetCursorPosition * fix vs filters * fix clang formatting * Create wininfo.h * Create wininfo.cpp * add wininfo to compiler options * add wininfo to filters * move wininfo * clamp position to screen size
2023-01-20Pedantic fix for #391 (use if-else instead of if) (#392)p0358
Pedantic fix for previous commit (3cfd6f9) (use if-else instead of if)
2023-01-13Execute cfgs before server startup for gamemode being run (#398)v1.12.0-rc5v1.12.0-rc4v1.12.0BobTheBob
* run cfg to initialise gamemode on startup * remove ; characters from mp_gamemode * exec using _Cmd_Exec_f to avoid issues with semicolons in gamemode names allowing additional commands to be run * run from cfg/server/ rather than cfg/ * fixup formatting
2023-01-11push vectors to stack correctly (#395)uniboi
push to stack correctly Co-authored-by: Maya <RoyalBlue1@users.noreply.github.com> Co-authored-by: Maya <RoyalBlue1@users.noreply.github.com>
2023-01-06Fix overriding individual localisation strings being weird (#394)v1.12.0-rc3v1.12.0-rc2BobTheBob
* change how we load localisation to fix overriding individual localisation strings * fix formatting * fix formatting again
2023-01-06Fix issues of restriction of chat message charset (#391)v1.12.0-rc1p0358
2023-01-06Revert "add FCVAR_REPLICATED to ns_server_name" (#390)GeckoEidechse
Revert "add FCVAR_REPLICATED to ns_server_name (#386)" This reverts commit ca2530b82578ca4bd782dbedaced5f02b3141d69.
2023-01-05Restrict chat message charset (#389)pg9182
2023-01-05add FCVAR_REPLICATED to ns_server_name (#386)cat_or_not
* add FCVAR_REPLICATED to ns_server_name * add FCVAR_REPLICATED ns_server_desc too
2023-01-04Improve response to UI VM compile errors (#388)Jack
* log reaction to script compile errors * move log line to make a bit more sense * change log message and show console on non-fatal ui compile error * improve SQSharedState struct and CSquirrelVM struct Co-Authored-By: Maya <11448698+RoyalBlue1@users.noreply.github.com> * Improve IsUIVM Co-Authored-By: Maya <11448698+RoyalBlue1@users.noreply.github.com> * Remove now-unnecessary showing of console * remove extra logging Co-authored-by: Maya <11448698+RoyalBlue1@users.noreply.github.com>
2023-01-04generally cleanup authentication code and fix client state issues with ↵BobTheBob
rejection from local server (#360) * generally cleanup authentication code and fix client state issues with rejection from local server * fix formatting * fix formatting * use client-provided uid for logging disconnect failure as it won't be copied to player if authentication fails * support loading savegame and use more reliable method for fixing client rejection issues * oops forgot to add rejectconnectionfixes.cpp * fixup formatting
2022-12-26Add missing breaks to AsyncCall_External() (#382)Erlite
2022-12-26Process all squirrel messages in the buffer instead of one per frame. (#381)Erlite
* Process all squirrel messages in the buffer instead of one per frame. * Move on to the next message if no function is found,.
2022-12-22Add NSGetLocalPlayerUID() function. (#371)Erlite
* Add NSGetLocalPlayerUID() function. * Format fix. * All VMS actually why not * Add missing includes
2022-12-22Add NSDisconnectPlayer() function. (#376)Erlite
* Add NSDisconnectPlayer() function. * Formatting tweaks
2022-12-22Add NSGetModName (#366)Emma Miler
* Stackinfos * Formatting * Add option for depth * Revert "Merge branch 'main' into stackinfos" This reverts commit e9e8948d2ae9ab72095eb2162de40383b7211276, reversing changes made to d1cf18f7165a9d4fbe7f8ae2f1dfacbba36e4852. * Move macros header * Add macro header to filters * Fix merge conflict mistake * Fix stuff * I hate git * create `NSGetCurrentModName` * Fix merge issues
2022-12-22Add script concommands (#373)Emma Miler
* Add script concommands * Fix indent * Formatting * Formatting stuff * Changes for review * Fix typo * Forgot to remove the return statement * Formatting
2022-12-22Fix UI VM Destruction (again again) (#380)Emma Miler
2022-12-22Fix console not enabling (#379)Emma Miler
2022-12-19Restructuring (#365)Emma Miler
* Remove launcher proxy * Restructuring * More restructuring * Fix include dirs * Fix merge * Remove clang thing * Filters * Oops
2022-12-16Fix UI VM destruction (again) (#370)Emma Miler
2022-12-13Implement HTTP requests for Squirrel scripts (#344)Erlite
* Native HttpRequestHandler to make HTTP requests from Squirrel * Init handler & register SQ funcs # Conflicts: # NorthstarDLL/NorthstarDLL.vcxproj # NorthstarDLL/NorthstarDLL.vcxproj.filters * Allow redirects, fix crashing with buffer. * Also read response header * Remove leftover header debug stuffs * Prevent private network requests unless -allowlocalhttp is in the command line. * Minor tweak * Support all HTTP methods, private network check changes. * Add OPTIONS, timeout & user-agent overrides. * Add -disablehttprequests, final tweaks. * Fix one of the private ipv4 ranges * Native HttpRequestHandler to make HTTP requests from Squirrel * Init handler & register SQ funcs # Conflicts: # NorthstarDLL/NorthstarDLL.vcxproj # NorthstarDLL/NorthstarDLL.vcxproj.filters * Allow redirects, fix crashing with buffer. * Also read response header * Remove leftover header debug stuffs * Prevent private network requests unless -allowlocalhttp is in the command line. * Minor tweak * Support all HTTP methods, private network check changes. * Add OPTIONS, timeout & user-agent overrides. * Add -disablehttprequests, final tweaks. * Fix one of the private ipv4 ranges * Update to latest and fix issues mentionned in previous PR * Cleanup some return statements * Also cache IsLocalHttpAllowed(), query param array work * Cache command line args in ctor, more header/query array work * Support for multiple values with same key in headers & query params * Format check made this look disgusting, don't blame me. * More format fixes * Tweakerino * Tell clang-format to segfault itself * Add -disablehttpssl to ignore SSL verifications * Fix headers being written to body with custom headers * Remove useless comments
2022-12-11Add platform information to User-Agent (#367)v1.11.0-rc3v1.11.0pg9182
* Add platform information to User-Agent. * Identify dedicated servers in the User-Agent.
2022-12-11Log function lookup failure on Call (#355)Emma Miler
* Log function lookup failure on Call * Formatting * Update squirrel.cpp * format
2022-12-11Make most mod-setting related funcs global. (#364)Erlite
Make most mod-setting related funcs global
2022-12-08Remove sv_cheats requirement from r_drawviewmodel (#328)v1.11.0-rc2BobTheBob
It's allowed in CS:GO, and already possible with mods anyways.
2022-12-08Fix UI VM Destruction (#349)Emma Miler
The functions in question take a CSquirrelVM* instead of an HSquirrelVM*, which causes IsUIVM() always returns false.
2022-12-02Move include directory (#337)v1.11.0-rc1Emma Miler
* Move include directory to shared folder This commit moves the `include` directory from the NorthstarDLL project folder to the solution folder. This allows both the DLL and Launcher project to target it properly. * Fix filters * Update memalloc.h * Fix filters * Update NorthstarLauncher.vcxproj * Remove stuff from other PR * Update NorthstarLauncher.vcxproj * Update NorthstarLauncher.vcxproj * Update NorthstarDLL.vcxproj
2022-12-01Don't set initial dedicated server title to the profile name (#352)Jack
Should help with #347