Commit Graph

178 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 6c5dddaae5 make event names case insensitive 2022-01-23 16:08:41 -03:00
Evil Factory fe57d1eb87 update harmony to fix problem with __args not working correctly with static methods 2022-01-23 13:07:59 -03:00
Evil Factory 0a47c85a72 clientList.job hook 2022-01-19 19:42:54 -03:00
Evil Factory 5049b2ecbd remove itemThink because it uses so much cpu time, because it can literally be called 1000 times a second, blame jimmyl for committing this horrible hook 2022-01-08 16:55:05 -03:00
Evil Factory 0ef0a82f6c switch debug console functions to luasetup error handling 2022-01-06 16:49:38 -03:00
Evil Factory fcd0b2cc6d implement priority item updates, seems to work correctly after heavy testing in random servers 2022-01-02 18:57:35 -03:00
Evil Factory c399da8038 remove file move 2021-12-30 18:29:32 -03:00
Evil Factory 036b42ca7e new performance improvement setting and client-side lua fixes 2021-12-30 17:26:51 -03:00
Evil Factory 370ee8f1b3 convert UInt64 type to string, to avoid loosing precision with SteamIDs 2021-12-28 15:16:43 -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 d033a43fc7 added restrictMessageSize 2021-12-25 18:25:34 -03:00
Evil Factory f71f598976 Merge branch 'dev' of https://github.com/Regalis11/Barotrauma.git 2021-12-16 15:09:48 -03:00
Markus Isberg e2ce85884e Hotfix 0.15.22.1 2021-12-17 02:41:06 +09:00
Evil Factory 9927b5370e Merge branch 'dev' of https://github.com/Regalis11/Barotrauma.git into Regalis11-dev 2021-12-16 12:46:42 -03:00
Markus Isberg a864a98d4f Unstable 0.15.22.0 2021-12-17 00:19:56 +09:00
Evil Factory 24f63c78cb fix errors 2021-12-15 15:35:10 -03:00
Evil Factory bb1631a21c Merge branch 'master' of https://github.com/Regalis11/Barotrauma.git into Regalis11-master 2021-12-15 14:45:31 -03:00
Markus Isberg 7d43cb1e91 0.15.21.0 2021-12-16 01:05:43 +09:00
Evil Factory b58d528502 fix 2021-12-11 23:45:54 -03:00
Evil Factory d7655fa1a7 fixed empty functions causing errors 2021-12-09 11:59:11 -03:00
Evil Factory 1f2eaf765f remove c# lua loading, because it's not needed anymore 2021-12-08 19:30:08 -03:00
Evil Factory cee62b3869 whoops 2021-12-07 17:53:02 -03:00
Evil Factory d078b3e2fe update docs and register Upgrade 2021-12-07 17:52:41 -03:00
Evil Factory f2e4106a0c fix error handling with Action callbacks causing server crashes 2021-12-06 14:58:58 -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
Juan Pablo Arce 617d9ede88 Unstable v0.15.17.0 (Hex is out of town edition) 2021-12-03 13:31:10 -03:00
Evil Factory fe563a417c update docs 2021-12-03 11:31:38 -03:00
Evil Factory edc1b131b2 add Content to whitelist 2021-12-01 19:41:07 -03:00
Evil Factory e4885bc525 fix lua added commands breaking after reloadlua 2021-11-30 15:39:38 -03:00
Evil Factory 7c8536127c added a way for lua to override people's jobs 2021-11-30 11:36:00 -03:00
Evil Factory 1972772fb3 fixed EnqueueFunction, apparently AddItem function doesn't actually adds an item. 2021-11-28 16:22:09 -03:00
Evil Factory 878dbb30bc register bunch of components and fix enumerations in documentation 2021-11-26 22:56:29 -03:00
Evil Factory 573806b823 added inventory docs 2021-11-26 18:55:40 -03:00
Evil Factory 72eb15248b fix duplicate in docs 2021-11-25 19:42:33 -03:00
Evil Factory 83a40bad6f added -- @remove, for removing duplicates from docs 2021-11-24 22:36:33 -03:00
Evil Factory 4436dd5226 improved docs 2021-11-24 21:25:10 -03:00
zhurengong b291624544 allow client to force control husk and add a hook 2021-11-19 03:32:29 +08:00
Markus Isberg 80f39cd2a3 Unstable 0.15.15.0 (and the one before it I forgor) 2021-11-18 21:34:30 +09:00
Evil Factory f723e29277 prettier error messages 2021-11-12 13:50:25 -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 9635db22fc Merge remote-tracking branch 'public/master' 2021-11-10 21:12:31 +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
Evil Factory 6cda213441 move LuaPlayer and CreateVector to a separate compatibility lua file 2021-11-09 17:58:48 -03:00
Evil Factory 5c6450c6a2 provide instance in Hook Method 2021-11-08 22:27:27 -03:00
Evil Factory 89942fb8f5 added -ip so you are able to specify which ip to bind the server 2021-11-08 19:57:13 -03:00
Evil Factory 50427390f2 calling lua function inside an async function causes lots of issues (probably caused by the fact that it runs on a separate thread?), solved by creating a queue of functions to be called on the main thread 2021-11-08 14:29:07 -03: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