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
Evil Factory
5c34bc8db9
tell patch method name if an error happens
2022-04-28 13:42:22 -03:00
Evil Factory
f815ebd1db
Merge pull request #72 from oiltanker/master
...
Cs source folder filter
2022-04-28 13:33:00 -03:00
Evil Factory
9b5932760c
fix compile errors
2022-04-28 12:50:39 -03:00
Oiltanker
e5215fb976
Cs source folder filter
2022-04-28 17:13:13 +03:00
Oiltanker
abe17df121
better LuaCsPatch parameters
2022-04-27 16:40:16 +03:00
Oiltanker
ed92a12db6
Cs mod store folder method for storing configs, etc.
2022-04-27 16:40:16 +03:00
Evil Factory
60ddfb831b
Added so you can increase the amount of packets per update in file sender
2022-04-25 16:45:05 -03:00
Oiltanker
6a23dece35
CSharp preprocessor definitions
2022-04-25 18:11:27 +03:00
zhurengong
8a34ead2ef
define cosntants for csharp parse options.
2022-04-25 21:15:30 +08:00
Oiltanker
8a0c2d2166
Missing filters for types, e.g. Vector2
2022-04-25 00:10:14 +03:00
Evil Factory
ec3e8fecd1
Merge pull request #65 from Cintique/improve-require
...
Alter `LuaRequire`
2022-04-24 10:42:11 -03:00
Jacobin
ac920a8da9
Improve LuaRequire
2022-04-24 18:12:53 +10:00
Evil Factory
2c1329fa36
we don't actually need to check for threads if theres only one (multiplayer)
2022-04-24 00:01:43 -03:00
Evil Factory
e799eed64e
don't call stop hook if we are not in the main thread anymore (likely caused by the exiting of the program)
2022-04-22 16:26:33 -03:00
Evil Factory
e77ef4de26
Check thread access before executing any Lua function, if thats the case, throw a warning and ignore
2022-04-22 15:53:44 -03:00
Evil Factory
fd0c3ba19d
Merge branch 'unstable-tests'
2022-04-21 11:21:30 -03:00
Evil Factory
2e14ff79fc
fix hook calls not working correctly
2022-04-20 15:38:15 -03:00
Evil Factory
5946a4c043
fix package names
2022-04-20 14:20:38 -03:00
Evil Factory
6246588072
change package name
2022-04-20 13:17:03 -03:00
zhurengong
7c4d7d374b
some improves and fixes:
...
1. should get the last loadded aseembly by checking its version instead of reversing.
2. fixed throw an exception when CsScriptRunner run the second time.
3. an argument carried by an UnregisterType called somewhere have had been accidentally removed.
2022-04-20 14:56:32 +08:00
Evil Factory
7a440e009b
add Cs package check back and fix typos
2022-04-19 16:59:02 -03:00
Oiltanker
df83b1904e
rebase to origin/unstable-tests
2022-04-19 22:39:05 +03:00
Oiltanker
da251099a3
working serialization + cs mods one-time warning
2022-04-19 22:35:08 +03:00
Evil Factory
ce85d50dbf
prioritize enabled package
2022-04-19 13:31:25 -03:00
Evil Factory
8f79054537
only use package if enabled
2022-04-19 13:29:19 -03:00
zhurengong
592492a56f
forgot this.
2022-04-19 19:01:10 +08:00
zhurengong
1b0c865459
should get the last assembly
2022-04-19 18:51:53 +08:00
zhurengong
6e0eae141b
fixed assembly can't be unloaded
2022-04-19 15:45:51 +08:00
Jacobin
72063cdf93
Update require() behaviour
...
The behaviour of `require()` has been changed to align more closely with standard Lua (caching return results).
2022-04-19 15:20:52 +10:00
Oiltanker
767ff55604
fixes and custom serialization
2022-04-18 15:52:46 +03:00
Oiltanker
8bcd19a4ff
fix the return of LuaResult from hook call
2022-04-18 15:13:32 +03:00
Oiltanker
d7368475fe
Merge branch 'unstable-tests' of https://github.com/evilfactory/Barotrauma-lua-attempt into unstable-tests
2022-04-17 23:14:46 +03:00
Oiltanker
5c714ce124
fix CsScriptRunner
2022-04-17 22:59:12 +03:00