Commit graph

765 commits

Author SHA1 Message Date
Jack
64a7735c57
Don't include the various libcurl test build targets (#916)
* Don't add all of the libcurl testing build targets
2026-05-07 00:07:50 +02:00
cat_or_not
8d19272b65
Pin clang version to 16 for formatting in the flake (#911)
* Add older nixpkgs for clang-format-16
2026-05-06 22:59:04 +02:00
HuiZhiYin
0d746273a7
Block empty chat messages (#915)
* Block empty chat messages
2026-05-06 22:00:44 +02:00
Allusive
2d33ed9b19
fix crash when shooting outside map bounds (#914) 2026-04-16 23:52:58 -04:00
cat_or_not
14b9a6281a
Allow external authentication methods to work on linux (#913)
* add the origin sdk hooks

* fmt

* more fmt
2026-04-13 18:30:30 -04:00
cat_or_not
ca2f5670fd
Add an option to not allocate the console (#912)
* add a noallocconsole option

* fix logging
2026-04-13 17:54:28 -04:00
cat_or_not
9f56306928
Add InitScript callback (#908)
* add init script callback

* fmt

* fix this

* use sqresult
2026-03-29 23:58:32 -04:00
GeckoEidechse
aef63e79ad
Revert pulling zlib from custom fork (#660)
* Revert "Pull zlib from custom fork (#650)"
2026-03-27 16:08:49 +01:00
cat_or_not
41a4528738
Improved flake.nix (#905)
* improve flake
- make clang-format work (I think)
- remove some clutter
- fix version in derivation
- fix clangd

* address nix ci taking 10 minutes to build

uni was rigth about the purge feature, it worked for other stuff tho :(

* fix up comments

* add an option for quad versions and remove msitools from deps

* add cmake fmt to tree fmt

* update build instructions

* note about compat flag
2026-03-27 00:38:50 +01:00
绘之音
6f58bb30d4
Add unban ConCommand Completion (#907)
Add unban Concommand Completion
2026-03-26 18:41:49 -04:00
Allusive
11ee0a74b5
Chat history (#906)
* increase chat history size

* reduce it a bit

* fix comment
2026-03-24 17:24:36 -04:00
cat_or_not
86e3d6987b
Remove unnecessary usage of AsyncCall in ModConCommandCallback_Internal (#904)
use sync call in squirrel conconmands
2026-03-24 13:53:59 -04:00
Allusive
3c1f236659
Add OnWeaponAttack Callback (#901)
* remove run frame hook

* formatting

* fix bad slab buffers in rpaks from crashing the game

* format

* Add on weapon attack callback

* format

* fix owner

* fix owner

* format

* changes requested

* cmake format

* oops
2026-03-21 23:14:26 -04:00
86Yin
00b43183d2
Add NSSendClientPrint Function (#900)
* Add NSSendClientPrint

* Update miscserverscript.cpp
2026-03-21 03:31:42 -04:00
cat_or_not
cf29bbc384
Add nix shell support (#896)
* Add flakes

* version patching, better artifact name  and some comments

* try to get clangd working + some documentation

* remove useless custom scripts from the devshell and update the build readme
2026-02-18 20:00:38 +01:00
ASillyNeko
593211951a
Fix bots crashing dedicated servers without players (#892)
Moved bot pr.
2026-02-03 21:48:27 +00:00
Jack
f18b920c24
Allow for appending to particles_manifest.txt (#878)
* it works?

* does it work? who knows

* some cleanup

* format cmake

* update for new filesystem stuff

---------

Co-authored-by: Rémy Raes <contact@remyraes.com>
2026-02-03 21:17:10 +00:00
Allusive
776fbc3fbd
Fix bad slab buffers in paks from crashing on unload (#893)
* remove run frame hook

* formatting

* fix bad slab buffers in rpaks from crashing the game

* format
2026-01-19 16:19:07 +00:00
FourthVolt
d156bfbf0e
add custom directx psshader buffer unique to a material controllable via SQ client vm (#888)
* Add files via upload

* Update Northstar.cmake

* Update Northstar.cmake

* Update nscustomdxbuffer.cpp

update dx context and device to static
error out if guid is malformed
fix random if true

---------

Co-authored-by: Rémy Raes <contact@remyraes.com>
2026-01-11 15:03:04 +00:00
Jack
6f748fc44e
fix: Allow for versioning MWS mods (#889) 2026-01-04 22:26:41 +01:00
Jack
41c291c1b1
Improve compile error messages (#886)
improve compile error messages, naming the mod that probably caused them and stuff
2026-01-02 20:14:28 +00:00
Will
f8c3371a1e
Prevent invalid packet flooding (#885)
* Workaround invalid packet flooding

* formatting or something

---------

Co-authored-by: Will <39478251+VITALISED@users.noreply.github.com>
Co-authored-by: Allusive <154700875+AllusiveWheat@users.noreply.github.com>
2025-12-27 16:08:02 +00:00
Jack
44755cd2da
Reduce templating of squirrel managers (#863)
* Untemplate g_pSquirrel so intellisense and stuff actually works with it
* Remove unnecessary bitwise operations
* Don't use ScriptContext_COUNT and treat INVALID as a valid flag
2025-12-21 20:41:44 +01:00
Jack
116c74f36e
Don't require auth for requesting mainmenupromos (#882) 2025-12-11 01:24:38 +01:00
Jack
dbca84a05a
Prevent mod downloading being used in vanilla (#881)
* Prevent mod downloading being used in vanilla
2025-12-10 00:28:01 +01:00
Jack
4e330a9d7d
Fix memory leak and (kinda) cleanup code (#776)
* Fix memory leak
* Clean up code
2025-12-06 00:48:06 +01:00
Jack
0ba23677d1
Keyvalues fix maybe? (#880)
* move compiled files to their own storage

* clear compiled files on mod reload

* allow functions to specify the sources that they wish to look for files in

* formatting
2025-12-03 23:06:29 +00:00
Allusive
10e615552e
Remove RunFrame hook (#877)
* remove run frame hook

* formatting
2025-11-24 01:14:37 +00:00
Rémy Raes
659725f671
fix: MAD race conditions (#874)
* fix: FetchModsListFromAPI sets mod state as done when... done

Previously, the state was set to DOWNLOADING, which conveniently
allowed DownloadMod to run; however, the DOWNLOADING state was
not assigned by DownloadMod, leading to nasty issues when calling
DownloadMod several times in a row.
2025-11-15 22:06:42 +01:00
Rémy Raes
c0ed69f795
feat: Add ModWorkshop support to MAD (#873)
* feat: add ModWorkshop support for MAD
2025-11-15 21:58:36 +01:00
Allusive
f5bd7c9b95
Add model reloading (#872)
* Make async call does not cause a crash if the script vm gets deleted before call finishes.

* also fix in call since it still tries to call even if sqvm is invalid.

* Update log string to account for not crashing anymore

* small formatting things

* fix formatting

* Replace sprintf usage with sprintf_s in version.cpp

* Actually check for size of version.

* fix format

* Add model reloading

* fix formatting

* fix cmake format

* update the help string

* Update location in cmake file

* add changes from review

* small update
2025-11-09 03:12:57 +01:00
NachosChipeados
cf2fcdd459
Add FCVAR_REPLICATED flag to sv_alltalk (#871) 2025-10-29 00:12:28 +01:00
Rémy Raes
69b9d6c53b
fix: Manifesto migration (#870)
* Use "Version" field to determine manifesto format version
* Remove old manifesto file if needed
* Export manifesto version to enabledmods.json on reload
2025-09-24 01:32:56 +02:00
Jack
7739bef15d
Fix broken squirrel function hooks (#869)
* Add checks for func overrides
* Fix incorrect sq function hook strings
2025-09-01 20:16:14 +02:00
Allusive
4184cd34eb
Replace sprintf usage with sprintf_s in version.cpp (#867)
* Replace sprintf usage with sprintf_s in version.cpp
2025-09-01 16:06:00 +02:00
uniboi
d10a1b0271
Add initdata size for backwards/forwards compat (#866) 2025-08-08 01:52:25 +02:00
Jack
814f36a25d
Preserve old mod files load order (#865)
Preserve old file loading order (highest LoadPriority -> lowest LoadPriority, mods loaded later get their files prioritised)
2025-08-05 18:04:30 +02:00
Jack
9d5cf82054
Fix dependency constant registration (#864)
Fix dependency constant registration
2025-08-05 15:28:54 +02:00
Rémy Raes
df72178964
fix: Do not enable remote mods on first load (#862)
* Remote mods are not loaded when booting the game
2025-07-17 00:57:10 +02:00
uniboi
e172ac59b0
Finalize reloaded Plugins (#859)
* Call `Finalize` hook on plugins after loading them

Co-authored-by: cat_or_not <41955154+catornot@users.noreply.github.com>
2025-06-30 18:05:55 +02:00
AllusiveWheat
623e36655d
Make async call check if script vm exists (#861)
* Make async call does not cause a crash if the script vm gets deleted before call finishes.

* also fix in call since it still tries to call even if sqvm is invalid.

* Update log string to account for not crashing anymore
2025-06-23 21:17:11 +02:00
Jack
cb996abee7
Remove FCVAR_SERVER_CAN_EXECUTE from disconnect (#663)
Co-authored-by: F1F7Y <filip.bartos07@proton.me>
Co-authored-by: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>
Co-authored-by: Rémy Raes <contact@remyraes.com>
2025-06-13 00:13:44 +01:00
Jack
ede10e7cf1
Improve ModManager logic (#856)
* extract logic into functions

* dont stop loading all mods???

* refactor dependency constant logic

* some generic cleanup

* guard clauses

* stuff

* early out of mod load stuff

* github is being weird

* formatting

* Update primedev/mods/modmanager.cpp
2025-06-13 00:13:10 +01:00
Jack
7522240747
actually make disabling mods work (#857) 2025-06-08 20:22:27 +02:00
Rémy Raes
79e8790c4d
fix: Multiple versions of a same mod won't crash the client anymore (#852)
* If a mod is installed several times, all mod versions are disabled to prevent crashing


Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com>
2025-06-02 17:52:04 +02:00
Rémy Raes
3a8aa058bf
fix: Remove m_bEnabled duplicated assignment (#855)
fix: remove double m_bEnabled assignment
2025-05-27 17:21:21 +01:00
uniboi
54c3863380
Determine calling plugin by return address (#854) 2025-05-27 01:45:19 +02:00
Rémy Raes
16788f4c98
fix: Mod versioning (#828)
* feat: NSSetModEnabled now takes mod version as argument
* feat: move enabledmods.json to enabledmods.json.old if old manifesto format is used
* feat: add manifest version field to JSON file
2025-05-24 15:38:13 +02:00
NachosChipeados
a6b4432f3b
Add FCVAR_ARCHIVE_PLAYERPROFILE flag to a few convars (#844)
* Make some configuration variables persistent over game restarts
2025-05-21 16:47:25 +02:00
Cyn
b8c2baa04c
Fix memory leak in scripthttprequesthandler.cpp (#831)
* Free memory reference in HTTP call handler
2025-05-21 15:50:11 +02:00