Commit Graph

4802 Commits

Author SHA1 Message Date
Evil Factory
91106ef7bd fix brain fart in LuaUserData 2022-03-25 20:45:27 -03:00
Evil Factory
f9d7c0c2be All descriptors are now accessible via a global table, for easier access 2022-03-25 15:06:13 -03:00
Evil Factory
469abd6e86 nicer error message for when you already have cl lua installed, but you try to install it again 2022-03-24 16:15:51 -03:00
Evil Factory
68124fa8a5 allow status effect hook to trigger on characters 2022-03-24 14:01:19 -03:00
Evil Factory
61b8c132eb fix signalReceived hook not working correctly 2022-03-24 13:33:01 -03:00
Evil Factory
d4dd6afec9 forgot to add callmethod 2022-03-22 15:11:04 -03:00
Evil Factory
ab4f318806 added AttackResult 2022-03-22 15:08:25 -03:00
Evil Factory
6eed83f1ee Ability to tag the patch, and can overwrite and remove the tagged patch
ability to tag the patch, and can overwrite and remove the tagged patch.
pull request #51 from zhu-rengong/tag_patches
2022-03-22 10:22:14 -03:00
Evil Factory
267f65dcfd added Faction 2022-03-22 10:02:27 -03:00
Evil Factory
8986faebdb default register gamemodes 2022-03-22 09:58:02 -03:00
zhurengong
9b2b47ec28 lowercase identifier 2022-03-22 20:52:16 +08:00
zhurengong
a1ec0fc807 ability to tag the patch, and can overwrite and remove the tagged patch. 2022-03-22 18:09:18 +08:00
Evil Factory
9694895b71 fix client crash 2022-03-21 17:48:28 -03:00
Evil Factory
72cbbce35d added Game.Paused 2022-03-21 13:44:41 -03:00
Evil Factory
a54c55004b Fix crash with some function hooks #49 from Qowyn/patch-1
Fix crash with some function hooks
2022-03-21 13:41:49 -03:00
Evil Factory
ab7c6bbd43 Add AddLinked to MapEntity #50 from Qowyn/patch-2
Add AddLinked to MapEntity
2022-03-21 12:56:22 -03:00
Evil Factory
26939d9052 Fix CreateServerEventString #48 from Qowyn/fix-CreateServerEventString
Fix CreateServerEventString
2022-03-21 12:55:14 -03:00
Roland Firmont
caac190a05 Add AddLinked to MapEntity
MapEntity.linkedTo is readonly and arrives as a table on lua side, making it impossible to add new Links.

Introducing AddLinked as an Addition makes it possible to link things.
2022-03-21 16:24:42 +01:00
Roland Firmont
d80d4d91a3 Fix crash with some function hooks
Hooking functions that return float, ushort or byte causes a crash as the returned value will not match the expected type.
This fix will allow to return LuaFloat, LuaByte and LuaUShort instead.
Example hook that would crash without this: ItemComponent.DegreeOfSuccess
2022-03-21 16:12:29 +01:00
Roland Firmont
65dbc6fc00 Fix CreateServerEventString
Prevents AmbiguousMatchException
Reuses GetComponentString to get the component
Fixes wrong Invoke Parameters
2022-03-21 15:32:35 +01:00
Evil Factory
a3263ce3eb make docs a little more clear 2022-03-19 11:12:14 -03:00
Evil Factory
7dfccab05d better distinguish better client and server Lua and fixed crash when force stopping the game via alt f4 2022-03-19 11:05:26 -03:00
Evil Factory
f7155c4fcc fix IsSingleplayer with capital P 2022-03-17 14:42:03 -03:00
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
53c7bcc6d5 fix errors when executing Lua mods being weird (not completely tested) 2022-03-16 06:39:57 -03:00
Evil Factory
cc2a4b1b7b fix a small mistake that caused lua mods to not properly load 💀 2022-03-12 22:24:14 -03:00
Evil Factory
33b181784a added ItemSlot register 2022-03-12 22:23:35 -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
394dda97f3 fix broken client-side registration 2022-03-09 21:01:39 -03:00
Evil Factory
2a7837138e Accidentally left Vector2 without the metatable 2022-03-09 17:33:52 -03:00
Evil Factory
631d434a8e Update README.md 2022-03-09 13:46:16 -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
Evil Factory
92dbca40a8 Potential solution for #46: Merge pull request #47 from Qowyn/lua 2022-03-08 14:26:03 -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
509b35352f Update readme.
Added link for the VS Code documentation made by zhurengong
2022-03-06 10:57:30 -03:00
Evil Factory
a2dc2c5ed0 update docs 2022-03-06 10:44:54 -03:00
Evil Factory
422edc7fa4 new status effect tag added: "LuaHook", can be used to call lua hooks inside status effects 2022-03-05 22:30:30 -03:00
Evil Factory
9c0bcaa44f use Game.GameSettings instead of GetEnabledContentPackages 2022-03-05 21:32:31 -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
08e0f72cbe fix merge issue: swapped net message types, fixes medical clinic and ready check 2022-02-28 21:46:54 -03:00
Evil Factory
6d00e210f0 added GameSettings and ChatBox 2022-02-28 19:57:06 -03:00