Commit Graph

3243 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
Evil Factory 099bd87167 Merge branch 'dev' of https://github.com/Regalis11/Barotrauma.git into unstable-tests 2022-04-19 12:03:29 -03:00
Markus Isberg d9a05400e0 Build 0.17.11.0 2022-04-19 23:52:59 +09: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 e0fef433fd Update ModLoader.lua
Lua mods are now executed after the module path has been set.
2022-04-19 15:22:03 +10: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 2f4485405b Structure default lib/register 2022-04-16 12:49:12 -03:00
Evil Factory f439cabc9a fix patch hooks and rename delegates 2022-04-16 12:44:50 -03:00
Evil Factory 0d8d88b7fb Merge pull request #57 from zhu-rengong/add_gui_event_handler
added OnValueEnteredHandler handler
2022-04-16 12:01:52 -03:00
Evil Factory 7400ceceda expose Descriptors 2022-04-16 11:58:30 -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 d71a06a465 my missing hook :'( 2022-04-15 22:05:51 +03:00
Oiltanker 6eb575ea81 remove unnecessary method from ACsMod 2022-04-15 21:48:34 +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
Oiltanker ae2b84cceb wip, net hook class 2022-04-15 21:23:17 +03:00
Oiltanker 0b501ab4a1 Initial sandboxing implementation 2022-04-15 21:23:17 +03:00
Oiltanker 429557ad7d Some initial CSharp scripting functionality 2022-04-15 21:23:17 +03:00
Evil Factory 86a88c6e20 fix nil values being assigned a metatable 2022-04-15 14:48:23 -03:00
Evil Factory 7a28df8fd3 remove reference to LuaSetup when loading mods 2022-04-15 12:28:06 -03:00
Evil Factory 58337222c2 organize better default Lua stuff 2022-04-14 23:32:11 -03:00