46 Commits

Author SHA1 Message Date
Lucca Jiménez Könings
84f5f95e54
Refactor: feedback from code review
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
2024-05-21 13:40:33 +02:00
Lucca Jiménez Könings
8c15b87628
Refactor all references to settings to use new Settings type
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
2024-05-15 12:52:09 +02:00
Lion Kortlepel
aff537afdf add AGPL-3.0 license header 2024-01-23 21:00:11 +01:00
Lion Kortlepel
7d2e4d4581
replace tcp networking with boost::asio tcp networking 2022-10-05 18:17:04 +02:00
Lion Kortlepel
24c98eb2b2
add more compile-time diagnostics, implement fixes for them
Before, a lot of common errors went unnoticed, due to insufficient
compiler diagnostics. This commit fixes this by adding a lot of new
diagnostics, and fixing the issues found by this.
2022-09-26 12:02:05 +02:00
20dka
a84d042a8a add error messages to some lua events 2022-09-14 12:45:40 +02:00
Lion Kortlepel
22b63220c7
add more tests to LuaAPI::FS, minor fixes to LuaAPI::FS
test config file creation, too
2022-05-26 13:49:13 +02:00
Lion Kortlepel
28c43a51ee
add some tests for LuaAPI FS, termios 2022-05-26 13:33:08 +02:00
Lion Kortlepel
00f156cb86
start adding tests 2022-05-26 13:02:09 +02:00
Lion Kortlepel
450f0a6875
Fixup merge 2022-03-31 22:17:10 +02:00
Lion Kortlepel
104737571c
Merge branch 'rc-v3.0.2' into rc-v3.1.0
This is a periodic merge to keep 3.1.0 up to date with 3.0.2
2022-03-31 22:10:49 +02:00
Lion Kortlepel
81dbf747d5
Kick client if we fail to send them a client event 2022-03-31 16:50:00 +02:00
Lion Kortlepel
39db1a5e42
Fix JsonEncode with mixed key/value index/value tables 2022-03-17 19:27:17 +01:00
Lion Kortlepel
be498be661
change TriggerClientEvent to take object, not string, and add TriggerClientEventJson 2022-03-17 18:48:50 +01:00
Lion Kortlepel
ca3314b416
add JsonDiffApply, JsonMinify, JsonPrettify, JsonFlatten, JsonUnflatten 2022-03-03 12:25:06 +01:00
Lion Kortlepel
7d97c3b560
add FS.ListFiles, FS.ListDirectories 2022-03-02 23:41:32 +01:00
Lion Kortlepel
9a0cdc6517
rename JsonSerialize to JsonEncode, JsonDeserialize to JsonDecode 2022-03-02 13:26:53 +01:00
Lion Kortlepel
b52677e585
Add JsonDeserialize 2022-03-02 13:22:26 +01:00
Lion Kortlepel
95b417bb36
Add MP.JsonSerialize 2022-03-02 11:43:48 +01:00
Lion Kortlepel
768d0466f4
Add simple command interface 2021-11-28 23:45:03 +01:00
Lucca Jiménez Könings
1a2a123d87 Fix various macOS compatibility issues 2021-11-25 02:01:44 +01:00
Lion Kortlepel
f1148ed1c4
LuaAPI: Show quotes around strings in table dumps (#60) 2021-11-19 13:03:27 +01:00
Lion Kortlepel
d027f7f29f
Lua: Kick properly (with ClientKick), add chat message printing 2021-10-02 01:28:58 +02:00
Lion Kortlepel
ae7a63669f
detect recursion in LuaToString 2021-10-01 03:35:13 +02:00
Lion Kortlepel
fe3ccafc1d
Lua: Add various FS functions 2021-09-21 00:27:09 +02:00
Lion Kortlepel
23ffa25d78
Lua: Add FS.GetParentFolder 2021-09-20 23:44:17 +02:00
Lion Kortlepel
27b5c6d850
Add GetFilename, GetExtension, 2021-09-20 22:45:12 +02:00
Lion Kortlepel
6f9f790c5b
Lua: Add FS.Remove, FS.Rename (move), FS.Copy, FS.Exists 2021-09-20 00:36:22 +02:00
Lion Kortlepel
366a7dc9a6
Lua: Add Lua panic handler 2021-09-19 23:34:27 +02:00
Lion Kortlepel
701e613990
Lua: Fix float printing
Now prints 0, not 0.000000, etc.
2021-09-19 12:10:38 +02:00
Lion Kortlepel
1ff5107707
Lua: Add MP.PrintRaw 2021-09-19 01:20:17 +02:00
Lion Kortlepel
f98ef7d41c
Lua: Call local eventhandlers synchronously when TriggerGlobalEvent is called from inside a handling state 2021-09-18 00:05:51 +02:00
Lion Kortlepel
48caae25fd
Finalize master&new-lua-features merge 2021-09-17 14:58:40 +02:00
Lion Kortlepel
fd3088c78f
Re-add SendChatMessage 2021-09-17 12:58:07 +02:00
Lion Kortlepel
c2b73d93b5
Lua: Implement more core functions 2021-09-17 12:56:08 +02:00
Lion Kortlepel
e64114e4fa
Possible compiler fix 2021-09-17 02:44:49 +02:00
Lion Kortlepel
79531334dd
another nice fix 2021-09-17 02:38:14 +02:00
Lion Kortlepel
a44050f0f1
Lua: Almost Working events, all triggers working 2021-09-17 00:21:43 +02:00
Lion Kortlepel
4c03a90157
Lua: Add more old API 2021-09-16 22:31:09 +02:00
Lion Kortlepel
be61511bdf
Fix CMake, Add more Lua API 2021-09-16 19:38:31 +02:00
Lion Kortlepel
968d9ff999
Lua: Implement most API functions 2021-09-16 19:00:13 +02:00
Lion Kortlepel
1c80a4deb7
Lua: working events, global and local 2021-09-16 18:14:11 +02:00
Lion Kortlepel
26231c6272
Fix compile issue with asio, implement Lua events 2021-09-16 13:03:00 +02:00
Lion Kortlepel
ebe3630ec8
LuaAPI: Implement GetOSName 2021-09-16 12:22:49 +02:00
Lion Kortlepel
d7f7a81cb0
LuaAPI: Print: dump tables properly and recursively 2021-09-16 12:21:11 +02:00
Lion Kortlepel
9b9c18a4c1
Lua: Add variadic print, LuaAPI 2021-09-16 11:54:52 +02:00