Commit Graph

28 Commits

Author SHA1 Message Date
Cj b99f3f67cc Merge pull request #669 from sp-tarkov/Assembly-ref-validation
Validate core assembly reference when loading mods
2025-10-28 21:01:46 +00:00
DrakiaXYZ c756479239 Fix mod SptVersion to be a range (#605)
* Fix mod SptVersion to be a range
- SptVersion and ModDependencies now use a Range instead of a set version
- Remove IsValid and IsValidRange checks from ModValidator, as invalid values will fail to parse into the strong types before this method is called
- Remove unused "AnySatisfies" and "IsValid*" methods from ISemVer
- Update TestMod to use Range types

* Formatting

---------

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
2025-10-07 15:56:48 +00:00
sp-tarkov-bot 3e576a1143 Format Style Fixes 2025-10-07 15:26:13 +00:00
Archangel 501f5d6615 Update exception thrown if AbstractModMetadata fails to Activate 2025-10-07 17:25:10 +02:00
Chomp c4b4cf666f Updated modloader-loaded_mod logging 2025-10-07 15:04:58 +01:00
Cj aa3ee64526 Prevent key has already been added exception when checking for duplicate mods and building modPackageData 2025-09-30 12:06:14 -04:00
Chomp a558aaf233 Show spt version targeted when showing loaded mods inside modloader-loaded_mod message 2025-09-23 15:51:52 +01:00
Cj 312be1361a Use GUID when searching for duplicate mods 2025-09-22 08:08:50 -04:00
Cj fafbfeb291 Remove load order/sorting from ModLoader (#584)
* - Remove modloader sorting
- remove order.json
- remove LoadBefore and
LoadAfter
- Remove unused var
- Remove unused locals
- Rename vars
- localize new warnings

* revert test change
2025-09-05 09:03:02 +00:00
Chomp 4b1fc670e4 Updated mod loading to use guid as key for Mod dependencies, LoadBefore, LoadAfter, and Incompatibilties 2025-09-04 16:39:01 +01:00
Cj 4d0eb4d4f3 Change to using builtin SemVer type for AbstractModMetadata and ProgramStatistics.Generated (#536)
* Change to using SemVer builtin type

* Remove SptVersion from config, remove redundant .ToString()

* Update test mod, fix watermark string conversion
2025-08-09 20:40:25 +00:00
sp-tarkov-bot b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +00:00
Chomp 34bd002876 list to ienumerable changes
Removed unused methods

strong to mongoId changes
2025-07-25 12:28:40 +01:00
Jesse 839e154adc Make mod loading non nullable, set certain properties to be read only after init (#506)
* Make mod loading non nullable, set certain properties to be read only after init

- Breaks all mods, will require new nugets

* Make mod assembly list IEnumerable

* Convert checks to IsNullOrEmpty

* Update comment, enforce ModGuid
2025-07-23 11:24:55 +01:00
Chomp 040be2feaa More strings to MongoIds
Convert constructors into primary constructors

Simplified logic with use of ??, ??= and method groups

Cleaned up redundant conditional access qualifiers
2025-07-14 22:29:41 +01:00
Jesse 5686f4a486 Remove I18nService, migrate to renamed ServerLocalisationService (#433)
* Remove I18nService, migrate to renamed ServerLocalisationService

* Revert VS fuckup

* Update using

* Remove unused parameter, update comment

* Fix develop branch not building
2025-06-28 19:08:42 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp 1d5162c761 Various changes and fixes for things that have been bugging me
Removed/flagged unused props
Typo fixes
Use `FirstOrDefault` over direct index access
Log stacktrace on exception inside `CreateWeaponItems`
2025-06-08 10:40:40 +01:00
Cj a98486109f add locale for pre-4.0.0 server mods 2025-05-29 18:40:08 -04:00
Cj 0fda28526f Implement module patch abstraction and patch loader (#250)
* Implement patch abstractions and patch loader using an interface

* remove patch loader

* rename patch class
2025-05-11 20:52:14 +01:00
Cj 5af362b0b3 Implement loading metadata from the assembly 2025-05-07 15:05:22 -04:00
Chomp ae98f57bd9 Replaced various string.toLower() == x checks with string.Equals 2025-05-05 14:03:57 +01:00
Chomp e30d620c44 Skip second if check when filename is "package.json" inside LoadMod()
Improved name and file type checks

Renamed variables
2025-05-05 13:54:04 +01:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
CWX cd94eee774 removed duplicate logging 2025-04-17 16:30:08 +01:00
CWX e55aba79ac Use ProgramStatics in places to disable Modding with Flag 2025-04-16 11:51:44 +01:00
Chomp f104ab1417 Improved logging 2025-04-09 17:20:24 +01:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00