aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL
AgeCommit message (Collapse)Author
2023-12-27Folder restructuring from primedev (#624)v1.21.2-rc3v1.21.2Jack
Copies of over the primedev folder structure for easier cherry-picking of further changes Co-authored-by: F1F7Y <filip.bartos07@proton.me>
2023-12-20Format projectNorthstar
2023-12-20Cherry pick "remove unnecessary namespaces" from primedev (#618)v1.21.2-rc2Jack
Cherry-picks the removal of unnecessary namespaces from `primedev` https://github.com/F1F7Y/NorthstarPrime/ Co-authored-by: F1F7Y <filip.bartos07@proton.me>
2023-12-14Fix SERVER | CLIENT context specifier error (#566)v1.21.2-rc1v1.21.1-rc1v1.21.1EladNLG
2023-12-14Mod download UI integration (#595)v1.21.0-rc2v1.21.0Rémy Raes
UI integration for the mod downloading feature. Feature activation locked behind a convar.
2023-12-14Add plugin dependency constants (#458)v1.21.0-rc1cat_or_not
Adds dependency constants for plugins so mods can rely on plugins without always producing script errors when the plugin is missing
2023-12-14Rework `-vanilla` to be a vanilla compatibility mode (#601)Jack
Old `-vanilla` behaviour is now handled by `-nonorthstardll`. New squirrel constant called `VANILLA`. Set to true when in vanilla compatibility mode. Differences when in vanilla compatibility mode: - Doesn't restrict server commands (same as `-norestrictservercommands`) - Doesn't block FairFight screenshot functions - Doesn't do Atlas-related stuff (except for mainmenupromos)
2023-12-07Format projectNorthstar
2023-12-01Revert "Move player auth to `CServer::ConnectClient` (#548)" (#610)GeckoEidechse
This reverts commit 17217a39681c7fed35bee95195bdba7eaf508911 (PR #548) which introduced a regression allowing auth to progress further than intended.
2023-11-28Add a safeguard to map command (#564)GeckoEidechse
Adds safeguard to the `map` command that prevents it from executing if the requested map is invalid or no map argument is given. Retry of #529 Co-authored-by: cat_or_not <41955154+catornot@users.noreply.github.com>
2023-11-27Load plugin dependencies from lib folder (#590)Maya
Disables recursive search for plugins in plugin folders and if it exists adds lib folder within plugin folder to DLL load dirs
2023-11-23Replace audio event fetching with hook (#603)Jan
Takes the previous audio event code, which relied on reading out a register using masm, and replaces it with a new hook. Adapted from NorthstarPrime https://github.com/F1F7Y/NorthstarPrime Co-authored-by: F1F7Y <filip.bartos07@proton.me>
2023-11-22Move player auth to `CServer::ConnectClient` (#548)cat_or_not
Fixes bots crashing servers when they are the first to connect to it. Also moves player auth to `CServer::ConnectClient`. This allows the removal of `iNextPlayerUid` and `pNextPlayerToken` which were the cause of issues previously since they were not initialized by bots.
2023-11-22Improve replacing `xinput1_3` with `xinput9_1` (#583)Jan
The previous logic incorrectly loaded compared the whole argument, which may be a path, to the string literal. This fix checks if the argument ends with the string literal instead.
2023-11-21Add mod versions when logging that a mod has loaded (#596)v1.20.1-rc5v1.20.1Cyn
Prints the version of the mod when loaded succesfully
2023-11-21Don't log masterserver registration errors in the lobby (#543)Jack
The main purpose of this PR is to not flood the console with errors that aren't really errors, thus preventing various tickets or misleading users.
2023-11-17Update link for verified mods JSON file (#600)v1.20.1-rc4GeckoEidechse
File was moved with https://github.com/R2Northstar/VerifiedMods/pull/8
2023-11-06Plugins v3 (#472)v1.20.1-rc2v1.20.1-rc1v1.20.0-rc3v1.20.0cat_or_not
- nuked presence logic ( moved to the discord rpc plugin ) - more exposed sq functions - exposed dll addresses - `g_pCVar` is exposed - added "userdata" to plugin's async call - added runframe to plugins
2023-11-05Plugin related log error expecting more args (#591)v1.20.0-rc2GeckoEidechse
The related line expected 3 args but only 2 args are passed. Co-authored-by: cat_or_not <41955154+catornot@users.noreply.github.com>
2023-11-05Convar print commands (#539)v1.20.0-rc1H0L0
Adds various concommands such as - `convar_findByFlags` - `convar_list` - `convar_differences` - `convar_find` The first 3 listed above are already registered as concommands natively but didn't seem to do anything when tested. `convar_findByFlags` and `convar_find` were already implemented by Bob under the names `findflags` and `find` respectively but the names have been changed to reflect already existing convars.
2023-11-05Expose `Northstar.dll` version to squirrel (#558)Jack
Exposes the version number in the form of individual digits to script.
2023-11-03Inital native code for verified mod auto-downloading (#545)Rémy Raes
Allows client to download a mod archive from the Thunderstore API, and extract included mods in the remote mods folder of the current game profile. Not all mods can be automatically downloaded, as it would cause some security issues, and Thunderstore mod name cannot be deduced from actual mod name: to be eligible to auto-downloading, a mod must appear in the list of verified mods. Said list and complete mod verification procedure are described here: https://github.com/R2Northstar/VerifiedMods Exposes two commands to test the feature: - `fetch_verified_mods` retrieves verified mods list from the GitHub organization, and stores it locally; - `download_mod` does the actual mod downloading/extraction job.
2023-10-30Refactor `debugoverlay.cpp` (fix smart pistol lines) (#538)v1.19.11-rc7v1.19.111.19.XJack
Refactors `debugoverlay.cpp` based on primedev and fixes smart pistol lines in the process. Co-authored-by: F1F7Y <64418963+F1F7Y@users.noreply.github.com>
2023-10-23Replace field preprocessors with less hacky solutions (#492)Jan
This behavior is a lot simpler and less dependent on how constants are represented during the preprocessing step.
2023-10-16Use 4th digit in version number for CI build number (#541)v1.19.9-rc3v1.19.9-rc2v1.19.9-rc1v1.19.9Jack
Sets the 4th digit of the version number to the current CI run number. This is done to more easily link a binary back to the PR or commit it came from.
2023-10-15Fix proton detection output (#534)Jan
Fixes Proton detection logic printing incorrect basename
2023-10-15Add check for r2/maps folder (#575)H0L0
Adds a fix to check if `r2/maps` folder exists before trying to iterate through it.
2023-10-15Move plugin communication handler init out of plugin manager init (#581)Jack
Plugin state requires this to be initialised even if `-noplugins` is passed, but if `-noplugins` is passed, it doesn't get initialised. Moving this to `dllmain` guarantees that it is initialised properly and prevents #580
2023-10-10Fix incorrect help string text (#567)v1.19.6-rc2v1.19.6GeckoEidechse
Help strings for `ns_server_name` and `ns_server_desc` were swapped. Co-authored-by: BobTheBob <32057864+BobTheBob9@users.noreply.github.com>
2023-10-10Add `mileslog_enable` convar (#515)v1.19.6-rc1F1F7Y
Adds a convar to toggle whether we should log from the miles log func Most of these warnings are warnings about events being starved, in some cases slowing down the game due to the number of log calls.
2023-10-09Create mod entry in `enabledmods.json` if it doesn't exist (#410)Rémy Raes
Currently, when you add a new mod to your `mods/` directory, when there's no associated entry in the `enabledmods.json` file, it is considered enabled by default; mod entries are only written in `enabledmods.json` when toggling them via the mods interface. In this pull request, I propose to create mod entries in `enabledmods.json` on startup when detecting they don't exist.
2023-10-08Rewrite crash handler (#477)F1F7Y
The goal of this commit is to make the crash handler code more readable and fix some issues. - Format registers - Format Modules - Format stacktrace - Format mods - Create minidump
2023-10-07Reduce warnings due to calling conventions (#555)v1.19.5-rc1v1.19.5Jack
Fix instances of "anachronism used: modifiers on data are ignored"
2023-10-07Expose origin auth state and errors to squirrel (#468)Jack
Also moves `NSIsMasterServerAuthenticated` out of `scriptserverbrowser.cpp` because it didn't really fit there This will be used for showing failed origin auth errors in the game's UI
2023-10-06Write date to logs (#565)H0L0
Next to time also write date to log files.
2023-10-04Give `g_pMemAllocSingleton` a default value (#563)Jan
Give default value as standard does not define value if uninitialised.
2023-10-04Always allow the local player through the banlist (#540)v1.19.4-rc2v1.19.4-rc1v1.19.4Jack
Adds a check to always allow local player through banlist to aid with players accidentally banning themselves.
2023-10-03Revert "Add a safeguard to map command" (#561)v1.19.3-rc1v1.19.3GeckoEidechse
Revert "Add a safeguard to map command (#529)" This reverts commit cde626b041e72d749c54d0be8119fe3604bbf4f0.
2023-10-02Fix crash when running `disconnect %%s` (#554)v1.19.2-rc1v1.19.2Jack
Co-authored-by: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>
2023-10-02Add a safeguard to map command (#529)cat_or_not
Adds safeguard to the `map` command that prevents it from executing if the requested map is invalid or no map argument is given.
2023-09-17Set `spewlog_enable` default value to `0` (#516)v1.19.1-rc1v1.19.1v1.19.0-rc1v1.19.0F1F7Y
2023-09-15Export Northstar version number in DLL (#542)v1.18.3-rc1v1.18.31.18.XJack
Export version number in `Northstar.dll`
2023-09-15Fix `CSquirrelVM::Init` hook in `server.dll` (#544)F1F7Y
Fix typo in offset
2023-09-15feat: Enforce Thunderstore format for remote mods (#535)Rémy Raes
* feat: enforce Thunderstore format for remote mods * refactor: remove remote mods directory from "classic" mod loading --------- Co-authored-by: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>
2023-07-29Turn VPKData into a opaque struct (#510)v1.18.1-rc1v1.18.1Jan
2023-07-29Validate package pattern before checking for plugins (#525)v1.18.0-rc1v1.18.0Jan
Adds missing validation check to ensure that the package folder the plugin is included in matches the `AUTHOR-MOD-VERSION` pattern.
2023-07-29Warn about the package dir, not the mod dir (#526)Jan
2023-07-28Remove `pch.cpp` and all `#include "pch.h"` occurrences (#519)F1F7Y
With the move to cmake there is no need for the `pch.cpp` files as it generates them automatically. Also removes leftover `#include "pch.h"` occurrences
2023-07-28Make sure `packages` dir exists when loading plugins (#523)F1F7Y
Create packages directory in `PluginManager::LoadPlugins()` to avoid crashing when trying to read non-existent directory
2023-07-28Fix plugins not loading (#522)F1F7Y
Fixes a regression introduced in #513