Commit Graph

36 Commits

Author SHA1 Message Date
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
zhurengong 67767d5c9d added OnValueEnteredHandler handler 2022-04-16 18:16:31 +08:00
Evil Factory b7395bedea Refactor and fix #56 2022-04-15 19:08:27 -03:00
Oiltanker 56a0d4b1e1 working rebase 2022-04-15 21:35:01 +03:00
Oiltanker e4ea88d598 hook addition name case-insensitivity fix 2022-04-15 21:29:14 +03:00
Oiltanker 2f0e83badd hook fixes, keybinds are not working 2022-04-15 21:29:14 +03:00
Oiltanker 3eba20ecb7 new hook call method + function to delegate conversion 2022-04-15 21:29:12 +03:00
Oiltanker 891efb4c4f working host game begin and host game exit 2022-04-15 21:28:24 +03:00
Oiltanker 5d06df437e hook merge + hook wrappers 2022-04-15 21:28:22 +03:00
Oiltanker 1e6ac68e86 initial cs-lua merge work 2022-04-15 21:25:58 +03:00