Commit Graph

40 Commits

Author SHA1 Message Date
zhurengong 6daf410e50 Improve Harmony Hook
1. Hook.HookMethod can patch overloaded methods based on parameter types
2. Hook.HookMethod can add more patches to the method
3. Find all hook methods by the address of the function (origin method), not by the method path (string).
4. Fixed unable to add postfix patch to method (__params changed to __args)
5. Fix patching method will cause duplicate patches to be added
2022-01-27 22:50:34 +08:00
Evil Factory 740e51ce48 add "Range`1[System.Single]" to the default registration list 2022-01-23 19:50:39 -03:00
Evil Factory 33ca66fcae EntitySpawnerComponent 2022-01-17 10:10:59 -03:00
Evil Factory f5fe166e8c ballast flora registers 2022-01-11 22:00:43 -03:00
Evil Factory 595f80e429 fix broken GUI library 2022-01-01 15:27:31 -03:00
Evil Factory 036b42ca7e new performance improvement setting and client-side lua fixes 2021-12-30 17:26:51 -03:00
Evil Factory e6d170329a tryChangeClientName, LidgrenHandleConnection, handlePendingClient hooks and some other things 2021-12-28 12:37:51 -03:00
Evil Factory 71e39f1422 add NetEntityEvent, CreateEntityEvent and item.readPropertyChange hook 2021-12-27 15:41:45 -03:00
Evil Factory f04d897370 fix client-side lua errors 2021-12-26 13:32:45 -03:00
Evil Factory 72f770d83b whoops, don't execute mods if using client-side lua 2021-12-13 18:04:06 -03:00
Evil Factory 3b1cb7a265 add job to default lib 2021-12-13 12:38:20 -03:00
Evil Factory 803291669d add call meta member to Job 2021-12-13 12:29:04 -03:00
Evil Factory 2144c89efb add TextManager as static lib 2021-12-08 19:25:41 -03:00
Evil Factory d078b3e2fe update docs and register Upgrade 2021-12-07 17:52:41 -03:00
Evil Factory 7ab00eb161 exposed ServerPeer and ClientPeer to lua 2021-12-06 11:31:39 -03:00
Evil Factory 4ea4e4e0bd allow some degree of control over human bots 2021-12-04 13:15:04 -03:00
Evil Factory e70b0c9edc added NetworkConnections to registration list 2021-12-02 14:32:37 -03:00
Evil Factory a65160dcbd fix item hooks not working properly 2021-11-28 13:52:36 -03:00
Evil Factory 878dbb30bc register bunch of components and fix enumerations in documentation 2021-11-26 22:56:29 -03:00
Evil Factory a5721295bc register IdCard 2021-11-26 22:17:18 -03:00
Evil Factory 3127bfa037 fixed wrong hook type 2021-11-24 21:25:18 -03:00
zhurengong 9dcfc5f80d fix bugs that call Player.SetRadioRange cause different results in different languages 2021-11-23 00:36:03 +08:00
Evil Factory ec89822fb3 make ClientPermissions a static table
Registering the enum is not possible, explained in the pull request #30
2021-11-21 13:45:05 -03:00
zhurengong 8b312c0f65 Fix the CheckPermission method does not return 2021-11-19 23:48:26 +08:00
Evil Factory 1f84c0c801 fix module path not working correctly in workshop version and update workshop 2021-11-18 18:51:46 -03:00
Evil Factory 3a4f3cded4 added job assigned hook 2021-11-16 19:41:02 -03:00
Evil Factory 46166f124a add firesource 2021-11-13 12:16:08 -03:00
Evil Factory f9302b36b5 forgot to include compatibility Lua lib in 6cda213 2021-11-11 12:23:32 -03:00
zhurengong d1188a1ea5 do a hook call inside callback param of HookMethod, and wrapped __params 2021-11-11 22:13:35 +08:00
zhurengong 6b1aca8efa modified way to patch, can realize params map for compatibility, and try to hook Item in lua. 2021-11-10 21:07:19 +08:00
zhurengong 83d1c29917 move the registration of generic types to the lua side in a simple way 2021-11-09 00:16:48 +08:00
Evil Factory 9d45eb7402 fix http requests somehow causing weird errors when an exception happened inside it, for some reason i used registertype instead of createstatic, fix that, and added override disconnect character time 2021-11-08 12:12:35 -03:00
Evil Factory 72fff4ab73 replace harmony with a custom one that includes __params, some fixes in the lua setup and hook method is now actually useful 2021-11-05 20:40:50 -03:00
Evil Factory a8a0c96d57 move most of the registration code to Lua, include harmony, add useful perf methods to Time and a more useful(but still useless) error handling in the hook call 2021-11-04 11:30:36 -03:00
Evil Factory 784baf550f added client and server network communication 2021-09-20 16:15:29 -03:00
Evil Factory a07ca2fd62 fixed content packages with different name than the folder name not working 2021-09-15 14:47:58 -03:00
Evil Factory 813aaf29b8 making things more organized, turning Player deprecated, preparing for nlua and using partial classes for additions to another barotrauma classes 2021-09-10 18:32:19 -03:00
Evil Factory eb28b3a7f1 fixed: barotrauma for some reason ignores content packages that only contain lua scripts 2021-09-08 11:41:20 -03:00
Evil Factory a8fb910e8d made lua loader only execute enabled mods, with a config bypass at the top, also ignoring it for dedicated server 2021-09-08 11:16:08 -03:00
Evil Factory 5df4207521 made the loader a lua script and added a few useful functions 2021-09-06 23:30:52 -03:00