354 Commits

Author SHA1 Message Date
NotAlwaysTrue
61f05d25d0 Sync with upstream 2026-06-16 22:09:05 +08:00
Evil Factory
9794fe50b4 Merge branch 'develop' 2026-06-16 09:44:20 -03:00
Evil Factory
c1073ff3d2 Merge remote-tracking branch 'upstream/master' into develop 2026-06-16 09:40:27 -03:00
Joonas Rikkonen
06616535f4 Updated bug report template 2026-06-16 15:37:52 +03:00
Regalis11
1cd0178e0a v1.13.3.1 (Summer Update 2026) 2026-06-16 15:35:36 +03:00
Maplewheels
a729269763 added gcthread cleanup on failure. 2026-05-30 22:21:15 -04:00
Maplewheels
c452493555 New GC algorithm (untested). 2026-05-30 22:19:37 -04:00
Maplewheels
d420e1efbb Added experimental fix for inlining issue in assembly init. 2026-05-23 18:27:34 -03:00
Evil Factory
eb22fbddff Make the no packages currently executing warning debug-only 2026-05-22 23:48:34 -03:00
MapleWheels
1f5ee454c0 Increased number of GC iterations by one. 2026-05-18 13:29:10 -04:00
Maplewheels
d80ac4a38f Added background gc collection task upon unloading assemblies. 2026-05-17 03:17:46 -04:00
MapleWheels
cfde6f3579 - Fixed assembly unloading. However, requires 'plugin_forcerungc' to be run multiple times over ~30 seconds at the main menu. 2026-05-15 18:41:39 -04:00
Joonas Rikkonen
81f57ea3e7 Add unstable version option to bug report template 2026-05-13 13:37:43 +03:00
Maplewheels
ada9a09410 Added experimental fix for inlining issue in assembly init. 2026-05-10 23:56:14 -04:00
MapleWheels
66717c7fe7 Several changes to improve unloadability of assemblies. 2026-04-29 10:20:16 -04:00
Evil Factory
3f199a9500 Remove hard coded string LuaCsForBarotrauma everywhere possible 2026-04-23 22:54:06 -03:00
Evil Factory
798954d182 Fix main menu text alignment 2026-04-21 22:58:42 -03:00
Evil Factory
93bdd03f54 Fix missing SettingControl in global Lua table 2026-04-21 12:58:53 -03:00
Evil Factory
8d90ccb4a3 Merge remote-tracking branch 'upstream/master' into develop 2026-04-21 08:18:49 -03:00
Regalis11
7446dc17c1 v1.12.7.0 (Spring Update 2026 Hotfix 1) 2026-04-21 12:21:41 +03:00
Evil Factory
3dc4548077 Fix texture not multiple of 4 2026-04-20 17:03:45 -03:00
MapleWheels
96906ef89e Always purge cashes for plugin content on unloading. 2026-04-20 15:19:05 -04:00
Evil Factory
1e1fb642f0 Fix UseInternalAccessName 2026-04-20 14:33:49 -03:00
Evil Factory
0a3ca2403e Remove missing Value error, it should just use the default value if it's not specified 2026-04-19 17:49:06 -03:00
Evil Factory
7daefe6f16 Some tweaks to the text 2026-04-19 17:11:10 -03:00
MapleWheels
8a08152e65 Added missing diffs for f61f852a25. 2026-04-19 15:08:21 -04:00
MapleWheels
f61f852a25 Added networking tests for configs. 2026-04-19 15:07:25 -04:00
Evil Factory
3c0621c5a0 Missing diffs from bb21a09244 2026-04-19 15:36:33 -03:00
Maplewheels
f612112445 Fixed OnUpdate() not passing in deltaTime instead of totalTime. 2026-04-18 22:10:28 -04:00
Evil Factory
ab77e9d40c Fix client.packages hook sending normal packages 2026-04-18 17:38:27 -03:00
Evil Factory
bb21a09244 New icon for settings and make the top left text more user friendly 2026-04-18 16:36:36 -03:00
Evil Factory
f5f7eb7af9 Allow reloadlua to force the state to running 2026-04-18 15:37:49 -03:00
Evil Factory
12e05cb07e Fix LuaCs net messages received during connection initialization to be read incorrectly, happened because we would reset the BitPosition in our harmony patch which would cause the message to be read incorrectly later 2026-04-18 00:00:00 -03:00
MapleWheels
8f33e0af43 - Fixed up the settings menu.
- Made SettingEntry throw an error if "Value" attribute is not found in XML.
- Fixed saved values for settings sometimes not reloading after disabling and re-enabling a package.
2026-04-17 09:00:13 -04:00
Evil Factory
8896377f9c Add alias for human.CPRSuccess and human.CPRFailed 2026-04-15 07:54:51 -03:00
MapleWheels
17003e47cd - Fixed networking sync vars failing to sync initially.
- Fixed lua failing to differentiate overloads ISettingBase.
2026-04-14 12:17:12 -04:00
MapleWheels
38f0055b74 Added "RunUnrestricted" mode for lua scripts that need to run outside of sandbox. 2026-04-13 15:36:11 -04:00
MapleWheels
a2c67f7af5 Changed csharp script compilation algorithm to be best effort. 2026-04-13 14:19:31 -04:00
MapleWheels
344027d757 Added LoggerService to Lua env. Made ILoggerService compliant with LuaCsLogger API. 2026-04-13 13:08:41 -04:00
MapleWheels
addd3f7a45 Added legacy overload of AddCommand for mod compat. 2026-04-13 12:02:16 -04:00
Maplewheels
a40e54f4e4 Added fallback compilation for UseInternalsAwareAssembly if the publicized script compilation fails. 2026-04-13 02:13:29 -04:00
Evil Factory
666b96f068 Keep the LuaCsConfig class laying around for compatibility, not sure anywhere in our code base (and shouldn't be) 2026-04-12 11:00:45 -03:00
Maplewheels
c6ccc68b2e Fixed "Folder" attribute files not being found. 2026-04-11 23:20:11 -04:00
Evil Factory
c5976ccae1 Add safety check so this stops crashing when we look at it the wrong way 2026-04-11 23:32:40 -03:00
Maplewheels
1b8bcf4052 Added configinfo null check to SettingBase.cs 2026-04-11 21:48:33 -04:00
Evil Factory
eeef7aff68 Register Voronoi2 stuff 2026-04-11 22:25:04 -03:00
Maplewheels
3605571f71 Added fallback friendly name resolution for ModConfig assembly contents. 2026-04-11 21:00:42 -04:00
Evil Factory
f3535e242c Load console commands after executing and possible fix for the not console command permitted 2026-04-11 21:49:12 -03:00
Evil Factory
1703b5a103 Ignore our workshop packages from the game's dependency thing since it doesn't really make sense 2026-04-11 00:08:49 -03:00
Evil Factory
775ae0ef91 Fix server host being prompted twice with the C# popup 2026-04-10 23:49:16 -03:00
Evil Factory
ac6147e4a0 Fix Cs prompt showing up more than one between rounds 2026-04-10 22:36:29 -03:00
Evil Factory
3cc7467d99 Fix hide username in logs config not doing anything 2026-04-10 22:10:44 -03:00
Evil Factory
f97c00195c Oops, fix NRE crash 2026-04-10 21:56:39 -03:00
Evil Factory
df8bfb1807 Fix LuaCs initializing too late for singleplayer campaigns and rework the C# prompt to only show when enabling mods/joining server 2026-04-10 21:40:32 -03:00
MapleWheels
ccd0b9f7cc Added caching toggle to PluginManagementService 2026-04-10 18:13:25 -04:00
Evil Factory
5505f20925 PackageId -> PackageName 2026-04-10 16:50:15 -03:00
Evil Factory
1adf76168d Fix garbage network data being read by the game when reading LuaCs network messages 2026-04-10 13:37:01 -03:00
MapleWheels
9250e27953 - Fixed assembly logging style.
- Fixed double logging during execution.
2026-04-10 10:48:55 -04:00
MapleWheels
c3a9551683 - Changed event aliases to be case insensitive. 2026-04-10 10:14:53 -03:00
Evil Factory
fd324ac67e Fix Hook.Remove not being implemented properly 2026-04-10 09:58:43 -03:00
Evil Factory
f6ea4df489 Load languages files even if the package is disabled 2026-04-10 00:36:36 -03:00
Evil Factory
a86b8142eb Actually use the PackageId const everywhere we need to refer to our content package 2026-04-10 00:11:33 -03:00
Evil Factory
e3b2b34940 Fix Game.AssignOnExecute having command arguments be passed as varargs instead of a table 2026-04-09 23:54:21 -03:00
Evil Factory
b68ffa2725 Add LuaCsSetup.Lua back for compatibility 2026-04-09 13:56:56 -03:00
Evil Factory
a85d489907 Fix modifyChatMessage hook 2026-04-09 12:39:39 -03:00
Evil Factory
928cfb4fde Re-add loaded Lua hook call 2026-04-09 12:09:00 -03:00
Evil Factory
a9634988e9 Fix signalReceived hook not being called 2026-04-09 11:18:18 -03:00
MapleWheels
87e0191a97 - Debug tests. 2026-04-09 08:35:17 -04:00
Joonas Rikkonen
2cfa1e6ffd Update bug-reports.yml 2026-04-09 15:17:26 +03:00
Evil Factory
790378d2a5 Merge remote-tracking branch 'upstream/master' into develop 2026-04-09 09:12:16 -03:00
Regalis11
a4607dffad v1.12.6.2 (Spring Update 2026) 2026-04-09 15:10:07 +03:00
MapleWheels
ef66d27ffe - Fixed network synchro of vars, needs synctype testing. 2026-04-09 05:34:50 -04:00
MapleWheels
84cb7cfeb7 server auth var. 2026-04-09 01:29:48 -04:00
MapleWheels
53be3f0073 Fixed lua attempting to invoke the base interface type. 2026-04-08 19:49:57 -04:00
MapleWheels
89aa818c0b Made Config initialization errors more forgiving to noobs. 2026-04-08 19:38:31 -04:00
Evil Factory
3a5fbfde1e Fix cs enabled for session state not being preserved between reloads 2026-04-08 20:12:20 -03:00
Evil Factory
b9b457262f Test Lua config mod 2026-04-08 19:56:32 -03:00
Evil Factory
e161d92117 Fix settings not being properly exposed to Lua 2026-04-08 19:44:16 -03:00
MapleWheels
2e656509a8 - Added null check to get string value. 2026-04-08 17:53:12 -04:00
MapleWheels
b0b4acf392 - Made readonly readonly. 2026-04-08 17:29:56 -04:00
Evil Factory
e9673bf7f5 Update moonsharp 2026-04-08 18:29:29 -03:00
Evil Factory
eeeb3d9db3 Expose all settings in Lua 2026-04-08 18:29:07 -03:00
Evil Factory
c882b0bb45 Update moonsharp 2026-04-08 18:07:12 -03:00
Evil Factory
6c32873d4e Only register ILuaConfigService 2026-04-08 18:04:25 -03:00
MapleWheels
bdd4dcfb9e Disabled caching on the ConfigService. 2026-04-08 16:27:01 -04:00
MapleWheels
ebe8ec455f LuaCs CSharp Enabled Rework
- New UI for the prompt

- Third time's the charm.

- Fixed TOCTOU for cs prompt on main menu. - Fixed SubEditor not running lua when don't run is selected for cs.

- LuaCs CSharp Enabled Rework
2026-04-08 16:31:42 -03:00
Evil Factory
d440ccbce2 Register IConfigService and add back some missing APIs 2026-04-08 15:32:31 -03:00
MapleWheels
1294ba6dec - Added API to get package by name to PackageManagementService.cs and LuaScriptManagementService.cs
- Added ILuaConfigService to Lua API.
2026-04-08 11:03:52 -04:00
MapleWheels
4c8e016dea - Added extra source code translation (for CTS).
- Added localization to SettingList.cs display dropdown.
2026-04-08 08:09:45 -04:00
MapleWheels
232f7203e2 Fixed shared Csharp src files not being included if there weren't also architecture-specific files. 2026-04-07 16:07:55 -04:00
MapleWheels
df0a4e62f5 Added logging for additional plugin loading exceptions. 2026-04-07 15:43:01 -04:00
MapleWheels
7055480015 - Fixed publicized Barotrauma.dll missing error on DedicatedServer.
- Fixed non-implemented folder search for ModConfig resources.
2026-04-05 13:09:34 -04:00
Evil Factory
0e14983e88 Allow System.Console 2026-04-05 11:20:08 -03:00
Evil Factory
9b05c51ae5 Fix calling Hook.Call directly from Lua being broken 2026-04-04 22:52:27 -03:00
Evil Factory
5e003bcf11 Fix missing Game.Commands 2026-04-04 22:30:46 -03:00
Evil Factory
121f670c8b Fix character.death hook getting called a billion times per second 2026-04-04 13:04:34 -03:00
Evil Factory
f05d4ef129 Fic CSharp enabling message printing before config got loaded 2026-04-04 12:24:12 -03:00
Evil Factory
4167448279 Fix Game.Settings being nil 2026-04-04 11:50:35 -03:00
MapleWheels
413cc3ed4c - Added setting to disable lua scripts caching in the storage service for scenarios that use extern editors. 2026-04-02 23:29:21 -04:00
MapleWheels
4f2da55a8e - Added legacy LuaCsPerformanceCounter.cs
- Added legacy redirects.
- Added IConsoleCommandsService injection to plugins.
2026-03-31 10:48:44 -04:00
Maplewheels
f1808d9231 Added verbose cs compilation. 2026-03-29 00:30:18 -04:00
Evil Factory
bcec409618 Fix deep-fried main menu text 2026-03-28 22:20:22 -03:00
Evil Factory
14c610e6c7 Re-added the install_cl_lua command 2026-03-28 21:50:13 -03:00
Evil Factory
958335a01c Replicate old Add() method signature structure 2026-03-28 14:14:11 -03:00
Evil Factory
b358882016 This should be ItemPrefab, not Item, also add it the source code compat 2026-03-28 14:03:28 -03:00
Evil Factory
b8f1642d9d Simplify command register 2026-03-28 13:04:11 -03:00
Evil Factory
64818775cb Whoops 2026-03-28 13:04:04 -03:00
Evil Factory
5bfa15564a Move partial classes to extension methods, the ones that can't, turn into Lua compatibility members 2026-03-28 12:51:53 -03:00
Evil Factory
2ea97d3d5e Add CallLuaFunction legacy redirect 2026-03-28 10:52:33 -03:00
Evil Factory
bb2490eb13 Fix wrong arguments in RemovePatch 2026-03-27 21:58:06 -03:00
Evil Factory
57daa3ccb7 Fix missing type register 2026-03-27 21:40:44 -03:00
MapleWheels
c1fdedf955 Fixed ConfigService not filtering out configs that it shouldn't be loading. 2026-03-24 10:36:46 -04:00
MapleWheels
b70b6bf326 Fixed deadlock scenario in the event dispatcher CRUD API. 2026-03-24 02:44:08 -04:00
MapleWheels
28acf02de0 Updated client-side/common files tracking list for luacsinstaller. 2026-03-23 08:47:19 -04:00
MapleWheels
1e76377b63 - Added full implementation of lua event "modifyChatMessage" in IEvents. 2026-03-23 07:51:49 -04:00
MapleWheels
3dd9cfa741 Implemented plugin assembly lookup api. 2026-03-23 07:30:15 -04:00
Maplewheels
26ac37ed46 Added fallback native assembly resolver. 2026-03-23 00:25:51 -04:00
Maplewheels
5c136aab41 Added test debug settings for settings list. 2026-03-22 23:56:27 -04:00
Maplewheels
cf6104f630 Added Dropdown menu implementation for settings list. 2026-03-22 23:56:26 -04:00
Maplewheels
7c8dd452cf SettingsList implementation.
Merge conflict resolution.
2026-03-22 23:56:25 -04:00
MapleWheels
cf3a50d6b5 - Added back modifyChatMessage.
- Added missing commit file for previous commit.
2026-03-22 18:05:21 -04:00
MapleWheels
ac329a70a4 - Reduced console spam when failing to load config file in release builds.
- Added console logging for failing to unload assembly load ctx.
- Removed unused StorageService instance.
- Removed unused luacs settings.
- Added plugin event service and event service dispatcher api.
2026-03-22 18:01:19 -04:00
Evil Factory
e62450c763 Actually subscribe to IEventAssemblyUnloading 2026-03-22 17:24:02 -03:00
Evil Factory
44a9ce2417 Guh? 2026-03-22 12:44:17 -03:00
Evil Factory
23e0ff7aa6 Remove types that have been registered when unloading 2026-03-22 12:42:23 -03:00
Evil Factory
de53b4514e Fix console command registration 2026-03-22 12:42:09 -03:00
Maplewheels
994610869d Fixed deadlock scenario caused by unsubscribing during an event. 2026-03-22 01:56:30 -04:00
Evil Factory
b0e3faa2ad Make LuaCsLogger public 2026-03-21 15:59:48 -03:00
MapleWheels
fe34dcb0bd Added null location check to assembly inclusion list. 2026-03-17 10:58:48 -04:00
Evil Factory
8717706b1c Fix check ready to run not working properly 2026-03-15 18:44:15 -03:00
Evil Factory
b402e09b82 Move MainMenu code to a separate service that just injects our stuff into the mainmenu 2026-03-15 17:52:40 -03:00
Maplewheels
80832459b9 Added api for getting content package associatged with a plugin type. 2026-03-14 23:47:44 -04:00
Evil Factory
cf2c8b8e0e Add missing HttpGet in the interface 2026-03-14 14:45:03 -03:00
Evil Factory
f802356b0a Add legacy redirect for LuaCsSetup.Timer 2026-03-14 14:31:03 -03:00
Evil Factory
ecc4d8a6c1 Update moonsharp 2026-03-14 14:00:59 -03:00
Evil Factory
d4b774642b ModUtils namespace compatibility 2026-03-14 13:41:12 -03:00
Evil Factory
103f28481d Register setting types 2026-03-14 12:07:23 -03:00
Evil Factory
dd51bdae3f Revert "performance fixes for IDE/attached debugger stuttering."
This reverts commit e5aa381e38.
2026-03-14 12:04:29 -03:00
MapleWheels
e5aa381e38 performance fixes for IDE/attached debugger stuttering. 2026-03-10 03:22:30 -04:00
Maplewheels
8190b3f312 Fixed cs enabled prompt for hosts. 2026-03-08 22:07:56 -04:00
MapleWheels
e26cfa2e52 [Untested][Save/Sync]
- Fix for IsCsEnabled check.
2026-03-06 18:49:55 -05:00
MapleWheels
5b52d22b1f Added references cache for some hot paths services. 2026-03-06 18:15:44 -05:00
MapleWheels
5a452709c3 Minor adjustment to setting entry height and styles. 2026-03-06 08:31:09 -05:00
MapleWheels
8470e81dc7 Added tooltips and SettingControl input listener to the settings menu. Minor cosmetic adjustments. 2026-03-06 04:57:00 -05:00
MapleWheels
947a481400 Added spacer to settings labels. 2026-03-05 19:43:04 -05:00
MapleWheels
368b18d440 - Fixed shet. 2026-03-05 17:48:27 -05:00
MapleWheels
1fe68aa861 - Added float, double settingentry types. Adjusted display formatting.
- Added menu refresh on Apply button.
- Fixed package name resolution for invalid chars.
- Added helper console command to get xml-safe name for use in localization files.
- Made error messages for bad settings xml more descriptive.
- Modified GUISlider.
- Converted HarmonyEventPatchesService to a System.
- Fixed package name resolution for incompatible names in Xml and files, in many places.
- Fixed base textbox implementation for settings.
2026-03-05 15:45:00 -05:00
MapleWheels
f38a7bd574 The gameplay settings menu kinda works (only for luacsforbarotrauma). 2026-03-04 20:39:13 -05:00
MapleWheels
ce8b984542 Fixed Csharp/Shared path resolution in ModConfigService. 2026-03-04 14:51:31 -05:00
MapleWheels
d0969cc723 - Fixed assembly references not resolving for minor dll signature differences.
- Fixed deadlock during assembly resolution.
2026-03-04 14:38:00 -05:00
MapleWheels
a66b9041ec Fixed reference name error. 2026-03-03 22:44:56 -05:00
MapleWheels
83c198bc26 [Save/Sync] Commit work before .NET 10 tests. 2026-03-03 20:45:51 -05:00
MapleWheels
26b3827210 - Made publicizer only copy the required assemblies. 2026-03-02 08:46:03 -05:00
Maplewheels
4b04131fe3 Added post-publishing publicized assemblies copy task. 2026-03-02 02:45:43 -05:00
MapleWheels
168ce83820 Fixed potential NRE that shouldn't happen so long as the LuaCsForBarotrauma exists. 2026-03-01 17:13:15 -05:00
Evil Factory
5cbb635e54 Ok this should be the last one 2026-03-01 14:39:07 -03:00
Evil Factory
0452c1fc2d oops 2026-03-01 14:18:51 -03:00
Evil Factory
800dec3b84 I guess this doesnt exist anymore 2026-03-01 14:06:45 -03:00
Evil Factory
580f26b526 New CI files 2026-03-01 13:40:08 -03:00
Evil Factory
f8ff97d2b7 Fix debug console commands 2026-03-01 13:26:36 -03:00
Evil Factory
9ee4728e2a Better logging 2026-03-01 13:09:05 -03:00
Evil Factory
22a74bf1fd Move compat hooks 2026-03-01 12:43:59 -03:00
Evil Factory
845fcefad7 Fix Start(0 not returning an empty write only message 2026-03-01 09:50:52 -03:00
Maplewheels
9b55bf4847 [Save/Sync] Work on the settings menu. 2026-03-01 06:03:31 -05:00
Maplewheels
e74f083300 LuaCs package bug fixed. 2026-02-28 22:32:01 -05:00
Maplewheels
09bc2d0891 - Weird LuaCs Settings Menu bug present: package is loaded on startup but is then unloaded if the settingsmenu is opened and the package is not in the enabled list. 2026-02-28 22:10:29 -05:00
Evil Factory
28b355911d Add missing ILuaCsNetworking APIs 2026-02-28 17:57:02 -03:00
Evil Factory
e2c4282477 Add netMessageReceived hook back 2026-02-28 16:56:14 -03:00
Evil Factory
3192cc8b00 Remove need to define custom network header in upstream 2026-02-28 16:47:18 -03:00
Evil Factory
de73a18637 Compatibility for in memory scripts that used GameMain.LuaCs 2026-02-28 16:13:07 -03:00
Evil Factory
8e8b8eb8aa GameMain.LuaCs is no more 2026-02-28 16:05:20 -03:00
MapleWheels
c676233dfd [Save/Sync] Work on SettingsMenu 2026-02-27 17:56:47 -05:00
MapleWheels
9b61cda6cf - SettingsMenu work.
- Fixed NRE on NetSync in SettingEntry<T>
2026-02-27 17:25:25 -05:00
MapleWheels
ebf2935fb4 - Some menu implementation. 2026-02-27 15:21:40 -05:00
MapleWheels
6e556a02d4 I'm cooked, will finish this later. 2026-02-26 19:16:50 -05:00
MapleWheels
94556fd6e7 - SettingsMenuService added.
- Added Settings Tab to vanilla SettingsMenu
- Fixed ISystem implementation.
2026-02-25 15:19:01 -05:00
MapleWheels
d9d980122d - Moved all console commands to their respective services and added via injector service.
- Fixed LuaCs IsCsEnabled prompt not working.
- Add settings profiles support.
2026-02-24 15:26:49 -05:00
MapleWheels
394856fa04 - Final commit before migration to /dev
- Localization files added.
2026-02-23 17:40:59 -05:00
Maplewheels
a28333ff4e Implemented ConfigProfiles internally. 2026-02-23 01:01:23 -05:00
Maplewheels
f4138d2398 - Added networking permission checks to SettingEntry.
- Removed error logging for missing save data for settings.
2026-02-22 06:35:37 -05:00
Evil Factory
91992194a9 Fix return events not working in Lua 2026-02-20 20:40:06 -03:00
Evil Factory
a7e9dc8c9c oops 2026-02-20 20:39:53 -03:00
Evil Factory
da5b9389db Fix missing HookMethod APIs in the interface 2026-02-20 20:20:15 -03:00
Evil Factory
ddd9dac2fb Fix Descriptors not being populated correctly 2026-02-20 19:32:15 -03:00
Evil Factory
124b1e545d Fix missing ILuaCsNetworking API 2026-02-20 19:32:03 -03:00
Evil Factory
f52617deab The great event move 2026-02-20 18:45:41 -03:00
Joonas Rikkonen
c8657caefa Update .NET SDK version from 6 to 8 in README 2026-02-20 19:56:19 +02:00
Maplewheels
c28a08a713 Revert "Oops"
This reverts commit a0287b8561.
2026-02-16 02:22:19 -05:00
Maplewheels
a0287b8561 Oops 2026-02-16 02:22:14 -05:00
Maplewheels
6ac49a10f4 - XML GUI Asset service implemented (alpha, requires testing). 2026-02-16 02:22:14 -05:00
Evil Factory
f70251fa3b Event pain 2026-02-15 17:58:25 -03:00
Evil Factory
13bfffa777 More events moved 2026-02-15 16:57:16 -03:00
Evil Factory
a50dce8fc2 Forgot to remove old Hook Call 2026-02-13 19:56:33 -03:00
Evil Factory
a36bd70505 Strip down the original logger class 2026-02-13 18:58:35 -03:00
Evil Factory
36471f2239 Move more events to be Harmony patches 2026-02-13 18:44:27 -03:00
MapleWheels
dff38f7609 - Added XmlDoc for InternalScript instance. 2026-02-12 20:21:46 -05:00
Evil Factory
5f38b4a43a Fix bullshit Lua issues 2026-02-12 21:50:13 -03:00
MapleWheels
07d838eee0 Finished removing Impromptu Interfaces package. 2026-02-12 14:59:24 -05:00
MapleWheels
5747d896eb - Removed ImpromptuInterfaces 2026-02-12 14:53:33 -05:00
MapleWheels
ad152ee747 - pOoosh 2026-02-11 15:19:40 -05:00
MapleWheels
471e256353 Revert "-- MonoMod.Hook replacement."
This reverts commit 948b7c48c5.
2026-02-11 15:17:32 -05:00
MapleWheels
59584fefc1 - Updated dependencies versions.
- Made EventService handle errors again.
2026-02-11 15:16:04 -05:00
MapleWheels
948b7c48c5 -- MonoMod.Hook replacement. 2026-02-11 12:57:49 -05:00
MapleWheels
5e33a908d2 Removed NIException. 2026-02-10 19:15:23 -05:00
MapleWheels
9e2fc13460 - Fixed the server not loading saved convars and not having absolute authority. 2026-02-10 18:48:31 -05:00
Evil Factory
6bbe5be5e6 Fix networking being completely bamboozled 2026-02-10 20:26:46 -03:00
MapleWheels
9dde5cac7d Fixed Evil's obsession with OnKeyUpdate. 2026-02-10 15:11:46 -05:00
MapleWheels
6b9e48f96a - Added ISystem (automatically run services) service type. 2026-02-10 14:28:22 -05:00
MapleWheels
30149b504d - Added publicized assemblies to LuaCsForBarotrauma package via ModConfig.xml
- Added XmlAttribute tags for ModConfig.xml defined properties.
- GetType and GetImplementingTypes<T> rework.
2026-02-09 21:32:57 -05:00
Evil Factory
fb4648d759 Converting everything into Harmony patches part 1 2026-02-09 21:54:44 -03:00
Evil Factory
d14c353115 Remove old LuaCsNetworking 2026-02-09 21:01:07 -03:00
MapleWheels
f1bae4c1ca - Added Copy-On-Build for publicized assemblies to the luatrauma localmods folder. 2026-02-09 18:37:27 -05:00
Evil Factory
a61e705dbf Better LoggerService 2026-02-09 19:51:31 -03:00
MapleWheels
64831bd580 - Made the assembly compilation logs output in production builds.
- Removed double logging in debug builds.
2026-02-09 17:43:59 -05:00
MapleWheels
dc1093eeed Added LuaCs package lookup to the info provider. 2026-02-09 17:18:50 -05:00
MapleWheels
95376622fa - Added LuaCsForBarotrauma check to enabled packages list. 2026-02-09 16:58:53 -05:00
MapleWheels
511f98ec18 - Added pre-touch to the ContentPath.FullPath to make them thread-safe. 2026-02-09 15:52:37 -05:00
Evil Factory
70e98467e8 nuh uh 2026-02-08 23:47:02 -03:00
Evil Factory
e8bec96970 THE REQUIRE PATHS WORK!@!!!!!!11! 2026-02-08 23:38:52 -03:00
Maplewheels
a505d48a4c - Loading/Saving for Settings via console. 2026-02-08 20:23:49 -05:00
Evil Factory
bcc4357a16 Pass in cs enabled check in ExecuteLoadedScripts 2026-02-08 21:46:00 -03:00
Evil Factory
668197ad6f Fix Lua/Cs execute order 2026-02-08 21:45:17 -03:00
Evil Factory
0a91b89694 Add publicized assemblies to metadata references 2026-02-08 21:29:31 -03:00
Evil Factory
5b10661874 Legacy network stuff 2026-02-08 18:26:59 -03:00
Evil Factory
36a126774a Register INetworkIdProvider 2026-02-08 15:06:22 -03:00
Evil Factory
705137e993 Finalize networking service 2026-02-08 15:03:03 -03:00
Evil Factory
ce4cd1fefd Implement most of the net var networking functionality 2026-02-08 11:51:09 -03:00
Maplewheels
224e32ccf1 Some work on save/load for configs. 2026-02-08 06:39:44 -05:00
Evil Factory
f01ee61278 Clear file cache when resetting LuaScriptManagementService 2026-02-08 01:37:24 -03:00
Evil Factory
c637e34b48 Fix GUI enums in Lua 2026-02-08 01:30:44 -03:00
Maplewheels
67c195034d Network Sync work. Added network unique key. 2026-02-07 22:58:56 -05:00
Evil Factory
02b1f524b6 Re-enable DefaultHook.lua 2026-02-07 23:29:22 -03:00
Evil Factory
e76aaf5a34 Fix deadlock when reloading packages 2026-02-07 23:29:00 -03:00
Evil Factory
422e8a6185 Misc Lua fixes 2026-02-07 20:11:46 -05:00
Evil Factory
ba10d9d031 Working NetworkingService without net vars 2026-02-07 20:11:46 -05:00
Maplewheels
87dc9be10e -Changed NetworkSync interfaces. 2026-02-07 20:11:46 -05:00
Evil Factory
d47b75c778 Give Lua references to IEvent and finally add an alias for think 2026-02-07 20:11:46 -05:00
MapleWheels
2c29969bfb - Oops. 2026-02-07 20:11:46 -05:00
Evil Factory
c84d9660e2 Add command cfg_getvalue 2026-02-07 20:11:46 -05:00
MapleWheels
dcd7df4860 Fixed TrySetValue returning an incorrect result. 2026-02-07 20:11:46 -05:00
Evil Factory
b3d0fbeb5d Add cfg_setvalue command 2026-02-07 20:11:46 -05:00
MapleWheels
fa340e91de Fixed an issue affecting parsing the required runstate to edit a setting. 2026-02-07 20:11:46 -05:00
MapleWheels
771e73a798 - Basic Config & Settings working (read-only, changes must be made via debug halt). 2026-02-07 20:11:46 -05:00
MapleWheels
e75208507d - Config Services almost ready.
- Refactored and flattened namespaces.
2026-02-07 20:11:46 -05:00
MapleWheels
863ee23583 - Some work on config service. 2026-02-07 20:11:46 -05:00
MapleWheels
9cc20a03c0 Fixed networking references errors. 2026-02-07 20:11:46 -05:00
MapleWheels
cae3741953 Made most of the networking interfaces public. 2026-02-07 20:11:46 -05:00
Evil Factory
80555ef933 IT WORKS!!!!!!!!!!!!!!!!!!!! 2026-02-07 20:11:45 -05:00
Evil Factory
cf251451ed Fix EventService.Call not implemented correctly 2026-02-07 20:11:45 -05:00
MapleWheels
4cf4b1604b Fixed some NREs. 2026-02-07 20:11:45 -05:00
MapleWheels
fd037153ee - Fixed recursion deadlock due to the EventService.Reset() being called during event publishing. 2026-02-07 20:11:45 -05:00
MapleWheels
02a7338ab8 Removed duplicate rawrrs 2026-02-07 20:11:45 -05:00
Evil Factory
70dd602bcf Move the Lua IL patching bullshit to a separate service 2026-02-07 20:11:45 -05:00
MapleWheels
ea602f6d2f Woof 2026-02-07 20:11:45 -05:00
MapleWheels
06348d3ba5 It works. Except (HookMethod->Harmony: L189) is throwing NRE. 2026-02-07 20:11:45 -05:00
MapleWheels
2eb593f461 - Debugging LuaCsHook compat issues. 2026-02-07 20:11:45 -05:00
MapleWheels
244c0fbec3 Made ACsMod even more useless so hopefully people stop using it... 2026-02-07 20:11:45 -05:00
MapleWheels
7b529bce57 Revert "- Removed ACsMod.cs"
This reverts commit 54a3e2e5de0cff38ea4fc3750d2eb90f5ea73fe9.
2026-02-07 20:11:45 -05:00
MapleWheels
36bed09bde - Fixed stack ovewrflow from ServicesProvider (???). 2026-02-07 20:11:45 -05:00
Maplewheels
024b07d5f4 Added logging to the EventService. 2026-02-07 20:11:45 -05:00
Maplewheels
0cab7954f8 Fixed immediate errors (untested). 2026-02-07 20:11:45 -05:00
Maplewheels
b325a01eea Rewrote the EventService. 2026-02-07 20:11:45 -05:00
MapleWheels
7e541cef3d - Removed ACsMod.cs 2026-02-07 20:11:45 -05:00
MapleWheels
bb8869268e - Refactored the EventService interfaces and event system, incomplete. 2026-02-07 20:11:45 -05:00
Maplewheels
cb171d350d Alpha PluginManagementService, plugin loading functionality implemented. 2026-02-07 20:11:45 -05:00
Evil Factory
5777b64a18 Move LuaUserData and registration into a proper service 2026-02-07 20:11:41 -05:00
Maplewheels
9b9529107c Added limited multithreaded compatibility. Still requires locks. 2026-02-07 20:11:33 -05:00
MapleWheels
5421c7df4f - Made SyncPackages function always complete the unload->reload process.
- Basic assembly loading is completed (alpha), unloading/disposal not yet supported.
2026-02-07 20:11:33 -05:00
Evil Factory
4f02cb4967 Working Hook.Patch and old patch methods 2026-02-07 20:11:33 -05:00
Evil Factory
6b8a0a7dca Take in account ForcedAutorun for legacy as well 2026-02-07 20:11:32 -05:00
Evil Factory
dfb31eef16 Move Lua classes to the appropriate places 2026-02-07 20:11:16 -05:00
Evil Factory
c6c0aadb00 Rename LuaCsHook 2026-02-07 20:11:08 -05:00
Evil Factory
3b65ea9008 Remove unused LuaCsConfig 2026-02-07 20:11:08 -05:00
Evil Factory
708fe93efe Some extra logging and bring back LuaCsTimer 2026-02-07 20:11:08 -05:00
MapleWheels
13a9bc443e - Some work on PluginManagementService, IAssemblyLoaderService and IAssemblyManagementService refactors.
- Fixed mod list sync not checking for zero package diff length.
- Fixed the services provider not being able to inject itself as a dependcency.
- Added UseInternalName data spec to ModConfig.xml
- Changed Basic.Reference.Assemblies to Net80.
2026-02-07 20:11:08 -05:00
MapleWheels
37e3a195dc - Now logs results from SyncLoadedPackagesList 2026-02-07 20:11:08 -05:00
MapleWheels
a28a6f3320 - Added LuaCs ordering filter. 2026-02-07 20:11:07 -05:00
Evil Factory
67d3d5f587 Reimplementation of DoString with lua/cl_lua commands and fix Lua scripts not being loaded properly 2026-02-07 20:11:07 -05:00
Evil Factory
f0f09c20fa Plugin moment 2026-02-07 20:11:07 -05:00
Evil Factory
f28749d455 Missing IsAutorun 2026-02-07 20:11:07 -05:00
Evil Factory
ab2638b2cb Fix event service not clearing _luaOrphanSubscribers 2026-02-07 20:11:07 -05:00
MapleWheels
22f587b7b9 Changed ModConfig.xml spec: RunFile => IsAutorun. 2026-02-07 20:11:07 -05:00
MapleWheels
92232d114b Ensures that ILuaCsHook will resolve to the existing event service instance. 2026-02-07 20:11:07 -05:00
Evil Factory
6619def365 The concurrent toolbox dictionary situation is crazy 2026-02-07 20:11:07 -05:00
MapleWheels
c776a5424d Made GetType return interfaces by default. 2026-02-07 20:11:07 -05:00
MapleWheels
2a1d7760e6 - Enabled caching for LuaScriptLoader.cs 2026-02-07 20:11:07 -05:00
MapleWheels
009957e3b6 - Added alpha legacy mod support.
- StorageService: Fixed ContentPackages' directories not properly resolving.
- TODO: Rewrite StorageService LocalData functions to use ContentPath for resolution.
2026-02-07 20:11:07 -05:00
Evil Factory
297f6a38cb Basic legacy Lua converter 2026-02-07 20:11:07 -05:00
MapleWheels
440cbed76a - Fixed find files in package using the wrong ContentPackage property. 2026-02-07 20:11:07 -05:00
MapleWheels
b36224f480 Removed unused data interfaces. 2026-02-07 20:11:06 -05:00
MapleWheels
f9a467453a - Removed all MoveImmute situations.
- Added filtering and ordering functions for package resources.
2026-02-07 20:11:06 -05:00
Maplewheels
60ed549605 - Removed unused scheduler context. 2026-02-07 20:11:06 -05:00
Evil Factory
3d51abc56b Semi-working Lua scripts 2026-02-07 20:11:06 -05:00
Maplewheels
295c365a8f - The return null situation is no longer crazy. 2026-02-07 20:11:06 -05:00
Maplewheels
adf9303a7e - The GetType lag situation is less crazy. 2026-02-07 20:11:06 -05:00
Maplewheels
b626fd1e47 - The GetType lag situation is craazy. 2026-02-07 20:11:06 -05:00
Maplewheels
ed09908c3b - Added default load context type resolution. 2026-02-07 20:11:06 -05:00
Maplewheels
0a9c673753 - Removed unused settings
- Added Settings.xml
2026-02-07 20:11:06 -05:00
Maplewheels
c2aa7dd948 Added packages to running packages list on execution. 2026-02-07 20:11:05 -05:00
Evil Factory
25081466be Add the content package and move the Lua files to it 2026-02-07 20:11:02 -05:00
Evil Factory
8dedc54468 Add Any for Platform and Target enums 2026-02-07 20:10:55 -05:00
Maplewheels
d0f5cb87e7 - Fixed resource data not returning into the correct context. 2026-02-07 20:10:55 -05:00
Evil Factory
8dc58445f9 MoveToImmutable -> ToImmutable 2026-02-07 20:10:55 -05:00
Evil Factory
6faf1a0fcb Fix perfidious task moment 2026-02-07 20:10:55 -05:00
Evil Factory
ee0988588f Add ModConfig for test mod 2026-02-07 20:10:55 -05:00
MapleWheels
6e66a3114a - Made Package loading conditional on resources being available.
- Made States registration use named parameters.
- Changed IPluginManagementService interface to better suit expected return results.
2026-02-07 20:10:55 -05:00
MapleWheels
15e0a2bd10 Disabled LuaCsConfig until ModConfig.xml and ISettingEntry<T> are completed. 2026-02-07 20:10:55 -05:00
MapleWheels
09faa8403a Fixed StatemMachine State delegate assignment being backwards. 2026-02-07 20:10:55 -05:00
MapleWheels
7e0e671539 - ConfigService.cs alpha testing. 2026-02-07 20:10:54 -05:00
MapleWheels
cc07db941f - Fixed the "deadlock" (tasks not started). 2026-02-07 20:10:54 -05:00
Evil Factory
f1e1b9238d The deadlock situation is craaaaazy
Fix
2026-02-07 20:10:54 -05:00
MapleWheels
dda26df250 For sure this time....right guys? 2026-02-07 20:10:54 -05:00
MapleWheels
6e7b7c804c - Added other package locations to if statement check. 2026-02-07 20:10:54 -05:00
Maplewheels
6a21255a38 - IT BUILDS!!2:BARO BOOGALOO 2026-02-07 20:10:54 -05:00
MapleWheels
6362a9c34f - Work on LuaCs system state machine. 2026-02-07 20:10:54 -05:00
MapleWheels
3ddaceb5ac - SafeStorageService glow up.
- ILuaScriptLoader now inherits the ISafeStorageValidation interface.
 - LuaScriptLoader now uses the SafeStorageService.
2026-02-07 20:10:54 -05:00
MapleWheels
055a508901 - Deleted unused service IPackageListRetrievalService.cs
- Added caching function to LuaScriptLoader.cs
- Added sample async code to LuaScriptManagementService.cs
- Removed most of the State functions in LuaCsSetup.cs (requires rewrite).
- Fixed CsEnabled check.
- Moved IsRunningWorkshop check to client-only project.
2026-02-07 20:10:54 -05:00
MapleWheels
0bfceacaf3 - Completed most of PackageManagementService.cs
- Some areas of code need to be rewritten for the simplified loading and execution process.
2026-02-07 20:10:54 -05:00
Maplewheels
0438d3c4ba [Save/Sync]
- Work on PMS.
2026-02-07 20:10:54 -05:00
MapleWheels
3e81e27160 [Save/Sync] In-Progress ModConfigXml loading rewrite.
+ Fixed async operations lock for Dispose() pattern in working files.
+ Rewrote StorageService.cs:
--- Now uses ContentPath instead of raw strings where possible.
--- Now throws exceptions for developer errors and critical program states.
+ Rewrote ModConfigService.cs:
--- All functions are now completely async.
+ Removed ConfigProfilesResources completely as they exist in common Config xml files.
+ Somewhat simplified package data and processes.
2026-02-07 20:10:54 -05:00
MapleWheels
42acb32c69 Marked Async-compatibility issue with Log() in LoggerService.cs 2026-02-07 20:10:53 -05:00
Maplewheels
d6968f4ea9 [Save/Sync] Work on ModConfig loading. 2026-02-07 20:10:53 -05:00
Evil Factory
75da3a398d This should be full path 2026-02-07 20:10:53 -05:00
Evil Factory
1dad2babb7 Move Lua compatibility files around and start adding them to LuaScriptManagementService 2026-02-07 20:10:53 -05:00
Evil Factory
fe982b15b0 Fix LuaScriptManagementService compile error 2026-02-07 20:10:53 -05:00
Maplewheels
595470ccfb [Save/Sync] In-Progress rewrite of ConfigService and ModConfigService 2026-02-07 20:10:53 -05:00
MapleWheels
7d39c092c6 [Save/Sync] Big If tru Rewrite in progress.
- Removed IProcessors
- Removed old ModConfigService format.
- Converting to ContentPath from absolute paths where possible.
- Added: Microsoft.Toolkit.Diagnostics package.
2026-02-07 20:10:53 -05:00
MapleWheels
6a6be3caa4 - Removed all package dependency lookup code.
- Changed from absolute file paths to the upstream `ContentPath` system.
2026-02-07 20:10:53 -05:00
Evil Factory
1daf68dea1 Oops 2026-02-07 20:10:53 -05:00
Evil Factory
4f8531332e Implement LogResults 2026-02-07 20:10:53 -05:00
Evil Factory
d70885711b Fix some runstate if checks 2026-02-07 20:10:53 -05:00
Evil Factory
6499e7608c Fix package management service constructor and create [DebugOnlyTest]TestLuaMod 2026-02-07 20:10:53 -05:00
MapleWheels
569e14f50f - Removed generic exception from LuaCsSetup.cs services retrival, replaced with exception propagation.
- Fixed `PerScopeLifetime` and `Transient` lifetimes for container services.
2026-02-07 20:10:53 -05:00
Evil Factory
71c2e54afd Remove CheckUpdate 2026-02-07 20:10:53 -05:00
Maplewheels
bd5d04f5ab Work on plugin loader. 2026-02-07 20:10:53 -05:00
Maplewheels
26b657a96f [In-Progress] Plugin system rewrite.
Game starts up, runs until unimplemented functions are reached without errors.
2026-02-07 20:10:52 -05:00
Maplewheels
cce5bf26c8 Completed SafeStorageService.cs 2026-02-07 20:10:52 -05:00
Evil Factory
4d97a427f9 WIP Lua script management service 2026-02-07 20:10:52 -05:00
MapleWheels
aa7e825e70 - Deleted old assembly loader. 2026-02-07 20:10:52 -05:00
MapleWheels
2778df0fe7 - Changes to the Lua ScriptSystem spec. 2026-02-07 20:10:52 -05:00
MapleWheels
c6713f37bb IT BUILDS!!!
- Removed LocalizationServices and other sus things.
- Rewrote AssemblyLoader
[In Progress] SafeStorageService
[In Progress] LuaScriptLoader
2026-02-07 20:10:52 -05:00
MapleWheels
52d920d969 [Milestone] PackageManagementService completed.
- ContentPackageInfoLookup Service completed.
- Implemented ModConfigService.cs
- Implemented some of the resource processors.
2026-02-07 20:10:45 -05:00
EvilFactory
cb88d215fa LuaGame legacy service 2026-02-07 20:10:39 -05:00
MapleWheels
7436ea3e8c - Finished most of LuaCsSetup top-level functionality.
- Removed some unneeded interface definitions.
- Clean-slated some Services that need to be re-written.
2026-02-07 20:10:39 -05:00
MapleWheels
d2b9ca4c1b [Refactor-Minor]
- Refactored interface definition.
- Plugin Loading System Refactor (incomplete).
2026-02-07 20:10:39 -05:00
MapleWheels
4b2bac7cd8 [Milestone] StorageService completed. 2026-02-07 20:10:39 -05:00
Regalis11
1da82cdec2 v1.7.7.0 (Winter Update 2024) 2026-02-07 20:10:39 -05:00
MapleWheels
76fc52e042 - Work on storage service. Pre-squash commit. 2026-02-07 20:10:39 -05:00
MapleWheels
6880e5e9ee [Milestone] AssemblyLoader completed.
Details:
- Assembly Mgmt Service for loading now a separate interface, not intended for normal use.
- Assembly Loader work; implemented custom dictionary key and table.
- Assembly loading work.
- EventService completed.
- Moved assembly extensions to ModUtils.cs
- Work to event service.
NetworkService work
- Added ImpromptuInterfaces package.
- Networking Service work to support NetVars
- Event Service
- Added assemblies references package for script compilation. Updated Roslyn version for compatibility.
- Package Loading work.
Swap Harmony to HarmonyX
- More refactor conversion to FluentResults.
- Updated StylesService to return Results.
- Refactor of PackageService partially complete.
- Made IService.Reset() required to return a Result.
- Moved plugin/assembly related code to their own folder (same namespace).
- Updated interfaces to reflect the use of Result<T>.
- Partial refactor, incomplete.
- Added 'FluentResults' so we can stop using cursed Exception-based flow control in loading code.
- Added 'OneOf' nuget package: https://github.com/mcintyre321/OneOf
for the implementation of the Optional<T> pattern and complex discrete return types instead of cursed enums (see current AssemblyManager.cs).
- Reapplied old branch changes.
2026-02-07 20:10:26 -05:00
MapleWheels
01cc1d331b -- Squash:
- In progress implementation of services model.
2026-02-07 20:10:04 -05:00
Evil Factory
9e957a75b0 Update MoonSharp 2026-02-02 21:30:06 -03:00
Evil Factory
a546615f69 Oops accidentally broke this check 2026-02-01 09:18:11 -03:00
Evil Factory
9f1c3fa823 Move UserData checks out of Lua 2026-01-31 17:44:36 -03:00
Evil Factory
886eebdbb2 Fix memory leak that happens when you press retry in singleplayer 2025-12-23 20:47:40 -03:00

Diff Content Not Available