Evil Factory
a154558f0b
fix HttpGet method
2022-06-22 20:38:49 -03:00
Evil Factory
64c81146fb
added PerformanceCounter
2022-06-19 11:50:51 -03:00
Evil Factory
78716f4695
allow use of any http method
2022-06-19 10:58:01 -03:00
Evil Factory
a2f8d0019f
fix threading issues with initialization
2022-06-17 14:29:10 -03:00
Evil Factory
916fd7522e
add Game.ForceVoice and Game.ForceLocalVoice
...
guess what i am going to use this for
2022-06-16 20:34:31 -03:00
Evil Factory
1136342b60
added Game.ActiveChatMode
2022-06-16 13:15:48 -03:00
Evil Factory
efd1243754
Minor refactor for LuaUserData.lua
2022-06-14 13:09:52 -03:00
Evil Factory
9041f5ef0d
forgot to include a file in the last commit ( ed1fbdbe5)
2022-06-09 16:03:36 -03:00
Evil Factory
ed1fbdbe5e
Potential fix for threading issues and added CSActive var
2022-06-09 16:02:18 -03:00
Evil Factory
59d4ec8ad7
Game.LoadGame, Game.SaveGame and Game.LoadCampaign
2022-06-05 14:25:40 -03:00
Evil Factory
4ddbe69ee5
Merge pull request #92 from Cintique/LuaUserData-CreateUserDataOfType
...
Add `LuaUserData.CreateUserDataOfType`.
2022-06-02 12:47:49 -03:00
Cintique
c39bf9f800
Allow wrapping unregistered types.
...
`LuaUserData.CreateUserDataFromType` will instantiate a default `StandardUserDataDescriptor` to allow wrapping unregistered types. Whoops!
2022-06-02 21:34:34 +10:00
Evil Factory
88b19b2220
renamed http methods (with compatibility) and added a way to start http listeners
2022-06-01 14:23:06 -03:00
Cintique
62c0dc0580
Better doc
2022-06-01 19:46:40 +10:00
Cintique
ebcbcae46d
Typo
2022-05-31 14:59:17 +10:00
Cintique
fb6c335f0f
Add LuaUserData.CreateUserDataOfType.
...
Converts a Lua value to a desired CLR type and wraps it in a userdata to avoid automatic conversions.
Example: a Lua script needs to pass a List`1 to a CLR method expecting System.Object, MoonSharp gets
in the way by converting the List`1 to a MoonSharp.Interpreter.Table and breaking everything.
Wrapping the value in a userdata preserves the original type during conversions.
2022-05-31 14:54:09 +10:00
Evil Factory
6ddfc985d3
fix AddCommand arguments being wrong and fixed getValidArgs not doing anything
2022-05-28 15:06:22 -03:00
Oiltanker
6c22eea887
path regex fix for unix systems
2022-05-26 13:23:46 +03:00
Evil Factory
7951754203
fix some hooks not getting triggered in singleplayer
2022-05-25 13:18:52 -03:00
Evil Factory
05e9978671
Sounds and LightManager
2022-05-22 13:29:55 -03:00
Evil Factory
7ee81aca24
fix formatting
2022-05-21 12:48:35 -03:00
Evil Factory
c9e13ad412
more io methods
2022-05-19 16:45:01 -03:00
Evil Factory
4078fe024b
ExecutionNumber variable that counts how many times lua has been executed
2022-05-19 16:45:00 -03:00
Evil Factory
ca0da04ad0
better LuaUserData error handling and add Steam.GetWorkshopCollection
2022-05-19 14:26:21 -03:00
Evil Factory
6ee6b5cd15
improve custom converters
2022-05-18 19:09:28 -03:00
Evil Factory
88dedcf9c1
fix DownloadWorkshopItemAsync
2022-05-17 20:37:51 -03:00
Evil Factory
74bf5d12ca
added Steam.DownloadWorkshopItem and Steam.GetWorkshopItem
2022-05-17 19:15:44 -03:00
Evil Factory
fd6b833c98
misc doc fixes
2022-05-16 13:53:39 -03:00
Oiltanker
1ce8cb8cac
cs RunConfig fix
2022-05-15 16:07:12 +03:00
Oiltanker
f2ca5fa57d
declared & forced runs of cs mods
2022-05-14 01:44:01 +03:00
Evil Factory
e7510cad76
fix Game.RoundStarted and improve error handling
2022-05-07 15:36:47 -03:00
Evil Factory
0d560a688c
also remove GC Collect from script runner
2022-05-07 14:28:42 -03:00
Evil Factory
11220bcff2
why are we manually collecting GC in cs
2022-05-07 14:20:16 -03:00
Evil Factory
64f0e2f137
Fixes for PR #80
2022-05-06 13:10:50 -03:00
Cintique
1484c75595
Fix indents
2022-05-06 19:21:12 +10:00
Cintique
726399a87d
Fix formatting
2022-05-06 19:20:20 +10:00
Cintique
5aef20aae2
Move LuaCsTimer to its own file.
2022-05-06 15:46:22 +10:00
Cintique
d244869377
Fix blocking issue in LuaCsTimer
...
Logic for scheduling actions in `LuaCsHook` (see `Enqueue()` and `Update()`) caused tasks with long delays to block the execution of tasks with shorter delays.
Moved logic for `Timer.Wait()` from `LuaCsHook` to `LuaCsTimer` and corrected the blocking issue.
2022-05-06 15:43:17 +10:00
Evil Factory
c8ec13fb56
added powered update interval
2022-05-05 13:18:50 -03:00
Jacobin
87550af37d
lua.LoadFile -> lua.LoadString
2022-05-05 10:23:17 +10:00
Evil Factory
bbea195e7d
fix formatting in lua require and better error handling with dofile,loadfile,etc
2022-05-04 08:50:17 -03:00
Evil Factory
95a9c618e6
fix naming
2022-05-04 08:45:05 -03:00
Jacobin
43f172a190
Remove exception handling on Require
...
This was just eating exceptions; exceptions should instead propagate to a more appropriate handler (`pcall` should now work).
2022-05-04 11:37:44 +10:00
Evil Factory
9b9bfa7440
whoops
2022-05-02 19:33:42 -03:00
Evil Factory
79daf2ed32
better error handling
2022-05-02 16:36:55 -03:00
Evil Factory
4b024d525f
update docs
2022-05-02 15:51:03 -03:00
Oiltanker
fb079bf443
fix for non-local mods folder regex and mod assembly type not found
2022-05-02 15:23:57 +03:00
Evil Factory
3f221c0d23
fix nullable errors
2022-04-29 17:58:56 -03:00
Evil Factory
af47136bbd
use cs package from backup packages
2022-04-29 14:00:53 -03:00
Evil Factory
72b2492f0d
fix patch hooks not working correctly with void return types
2022-04-29 12:10:20 -03:00