Commit Graph

104 Commits

Author SHA1 Message Date
Evil Factory
1d1747a2ca remove unnecessary stuff 2022-03-17 12:53:37 -03:00
Evil Factory
86066282cc make my eyes happier: Random is now deprecated, moved lots of code around in a way that makes more sense and better LuaUserData error handling 2022-03-17 12:47:19 -03:00
Evil Factory
6026a0246d move InstallClientSideLua Function 2022-03-17 11:56:34 -03:00
Evil Factory
62c2769eb8 fix not being able to input parameter names with length 0 in HookMethod 2022-03-11 12:35:55 -03:00
Evil Factory
a5228583d0 Updated Moonsharp Interpreter, added support for implicit conversions, new types: LuaByte, LuaUShort and LuaFloat added to solve method overload conflict, support for setting UserData metatables, remove LuaUserData.AddCallMetaMethod and moved GUI object to Lua 2022-03-09 13:35:11 -03:00
Qowyn
2237aaafb3 Dummy commands instead of dropping unknown cmds
AddCommand now replaces commands for connected players and saved perms
2022-03-08 18:00:30 +01:00
Evil Factory
245619ab72 added File.CreateDirectory 2022-03-07 16:29:32 -03:00
Evil Factory
9dbab36575 added IsSinglePlayer and IsMultiplayer to Game 2022-03-07 12:15:58 -03:00
Evil Factory
e7ceaf9f78 Workaround: Hooks aren't called while in singlepalyer loading screen (fixes weird threading error) 2022-03-06 18:44:19 -03:00
Evil Factory
abf329dd21 add Unregister functions to LuaUserData 2022-03-05 12:01:38 -03:00
Evil Factory
a8fdc0f9c5 Improve Lua Networking 2022-03-03 19:34:52 -03:00
Evil Factory
dd42269f31 visual studio is unable to delete this file via normal means 2022-03-03 13:58:43 -03:00
Evil Factory
7cfee859a1 fix massive brain damage in Timer.Wait (why did i choose to use async) 2022-03-03 13:54:46 -03:00
Evil Factory
ffeef7a0d3 Fix #45: mapEntityUpdateInterval and gapUpdateInterval are preserved between sessions 2022-03-01 13:09:43 -03:00
Evil Factory
6d00e210f0 added GameSettings and ChatBox 2022-02-28 19:57:06 -03:00
Evil Factory
3d39a84850 Lua messages/errors message colours! 2022-02-24 16:06:27 -03:00
Evil Factory
f31142b754 Fix Map Entity Updates 2022-02-24 16:06:08 -03:00
zhurengong
6a539be58e added script to clr conversion for TextGetterHandler and OnSelectedHandler 2022-02-14 18:26:04 +08:00
Evil Factory
21f314aed0 Revert "limit how many errors can be sent per second (prevents message queue from overflowing and stopping all commands from working) and removed useless semicolons that i added for some reason here"
This reverts commit 62cda52342.
2022-02-11 18:16:10 -03:00
Evil Factory
62cda52342 limit how many errors can be sent per second (prevents message queue from overflowing and stopping all commands from working) and removed useless semicolons that i added for some reason here 2022-02-10 12:59:32 -03:00
Evil Factory
7a575e9b55 add some type method to LuaUserData: Merge pull request #37 from zhu-rengong/add_type_method
add some type method to LuaUserData
2022-02-10 12:27:27 -03:00
zhurengong
8dca5fa491 allow make private static field/method accessiable 2022-02-10 15:16:41 +08:00
zhurengong
9d68458eb2 add some type method to LuaUserData
1. RegisterGenericType: solves some types that cannot be found directly by strings, such as MapEntity.SelectedList(HashSet<MapEntity>)
2. IsTargetType: can be used to know whether MapEntity is Item, Character, or Structure.
2022-02-10 15:03:24 +08:00
Evil Factory
efc62387ff add an try catch to better see what might be causing this unknown crash, 2022-02-01 22:38:44 -03:00
Evil Factory
28b08becd1 add LimbType, fix broken links in docs and improve docs in general 2022-01-29 21:00:22 -03:00
zhurengong
a728e1f209 ability to patch private method 2022-01-28 15:41:41 +08:00
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
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
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
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