Commit Graph

59 Commits

Author SHA1 Message Date
Oiltanker
fb079bf443 fix for non-local mods folder regex and mod assembly type not found 2022-05-02 15:23:57 +03:00
Evil Factory
3f221c0d23 fix nullable errors 2022-04-29 17:58:56 -03:00
Evil Factory
af47136bbd use cs package from backup packages 2022-04-29 14:00:53 -03:00
Evil Factory
72b2492f0d fix patch hooks not working correctly with void return types 2022-04-29 12:10:20 -03:00
Evil Factory
5c34bc8db9 tell patch method name if an error happens 2022-04-28 13:42:22 -03:00
Evil Factory
f815ebd1db Merge pull request #72 from oiltanker/master
Cs source folder filter
2022-04-28 13:33:00 -03:00
Evil Factory
9b5932760c fix compile errors 2022-04-28 12:50:39 -03:00
Oiltanker
e5215fb976 Cs source folder filter 2022-04-28 17:13:13 +03:00
Oiltanker
abe17df121 better LuaCsPatch parameters 2022-04-27 16:40:16 +03:00
Oiltanker
ed92a12db6 Cs mod store folder method for storing configs, etc. 2022-04-27 16:40:16 +03:00
Evil Factory
60ddfb831b Added so you can increase the amount of packets per update in file sender 2022-04-25 16:45:05 -03:00
Oiltanker
6a23dece35 CSharp preprocessor definitions 2022-04-25 18:11:27 +03:00
zhurengong
8a34ead2ef define cosntants for csharp parse options. 2022-04-25 21:15:30 +08:00
Oiltanker
8a0c2d2166 Missing filters for types, e.g. Vector2 2022-04-25 00:10:14 +03:00
Evil Factory
ec3e8fecd1 Merge pull request #65 from Cintique/improve-require
Alter `LuaRequire`
2022-04-24 10:42:11 -03:00
Jacobin
ac920a8da9 Improve LuaRequire 2022-04-24 18:12:53 +10:00
Evil Factory
2c1329fa36 we don't actually need to check for threads if theres only one (multiplayer) 2022-04-24 00:01:43 -03:00
Evil Factory
e799eed64e don't call stop hook if we are not in the main thread anymore (likely caused by the exiting of the program) 2022-04-22 16:26:33 -03:00
Evil Factory
e77ef4de26 Check thread access before executing any Lua function, if thats the case, throw a warning and ignore 2022-04-22 15:53:44 -03:00
Evil Factory
fd0c3ba19d Merge branch 'unstable-tests' 2022-04-21 11:21:30 -03:00
Evil Factory
2e14ff79fc fix hook calls not working correctly 2022-04-20 15:38:15 -03:00
Evil Factory
5946a4c043 fix package names 2022-04-20 14:20:38 -03:00
Evil Factory
6246588072 change package name 2022-04-20 13:17:03 -03:00
zhurengong
7c4d7d374b some improves and fixes:
1. should get the last loadded aseembly by checking its version instead of reversing.
2. fixed throw an exception when CsScriptRunner run the second time.
3. an argument carried by an UnregisterType called somewhere have had been accidentally removed.
2022-04-20 14:56:32 +08:00
Evil Factory
7a440e009b add Cs package check back and fix typos 2022-04-19 16:59:02 -03:00
Oiltanker
df83b1904e rebase to origin/unstable-tests 2022-04-19 22:39:05 +03:00
Oiltanker
da251099a3 working serialization + cs mods one-time warning 2022-04-19 22:35:08 +03:00
Evil Factory
ce85d50dbf prioritize enabled package 2022-04-19 13:31:25 -03:00
Evil Factory
8f79054537 only use package if enabled 2022-04-19 13:29:19 -03:00
zhurengong
592492a56f forgot this. 2022-04-19 19:01:10 +08:00
zhurengong
1b0c865459 should get the last assembly 2022-04-19 18:51:53 +08:00
zhurengong
6e0eae141b fixed assembly can't be unloaded 2022-04-19 15:45:51 +08:00
Jacobin
72063cdf93 Update require() behaviour
The behaviour of `require()` has been changed to align more closely with standard Lua (caching return results).
2022-04-19 15:20:52 +10:00
Oiltanker
767ff55604 fixes and custom serialization 2022-04-18 15:52:46 +03:00
Oiltanker
8bcd19a4ff fix the return of LuaResult from hook call 2022-04-18 15:13:32 +03:00
Oiltanker
d7368475fe Merge branch 'unstable-tests' of https://github.com/evilfactory/Barotrauma-lua-attempt into unstable-tests 2022-04-17 23:14:46 +03:00
Oiltanker
5c714ce124 fix CsScriptRunner 2022-04-17 22:59:12 +03:00
Evil Factory
bab2a88533 cs print message 2022-04-17 15:13:12 -03:00
Evil Factory
edb665a22c only run cs mods if package is present 2022-04-17 15:09:24 -03:00
Oiltanker
94f0068509 Merge branch 'unstable-tests' of https://github.com/evilfactory/Barotrauma-lua-attempt into unstable-tests 2022-04-17 20:41:06 +03:00
Oiltanker
7458108fc0 fix cs filter metadata bug 2022-04-17 20:39:23 +03:00
Evil Factory
6277a6ce5d Merge pull request #58 from oiltanker/unstable-tests
cs script runner + mod store + cs-lua interface
2022-04-17 14:31:44 -03:00
Oiltanker
22f82c7cb2 fix cs filter metadata bug 2022-04-17 19:55:45 +03:00
Oiltanker
e52f762861 safer HookMethod and more sandboxed cs mods 2022-04-17 19:26:54 +03:00
Evil Factory
6da4481c83 fix names 2022-04-17 13:03:24 -03:00
Oiltanker
03881f1240 new working type filter 2022-04-17 18:23:41 +03:00
Oiltanker
a7b4004058 cs script runner + mod store + cs-lua interface 2022-04-17 16:05:00 +03:00
Evil Factory
6aeac06112 swap exception 2022-04-16 15:01:50 -03:00
Evil Factory
7f3aac186d fix typo 2022-04-16 13:37:09 -03:00
Evil Factory
f439cabc9a fix patch hooks and rename delegates 2022-04-16 12:44:50 -03:00