Lion Kortlepel
c1e216957b
move Json* to Util, add Random, RandomRange, RandomIntRange, catch
...
errors in TPluginMonitor
2022-03-18 01:52:31 +01: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
20dka
6a43694c0f
Ignore backend response if server is Private
2022-03-17 01:30:24 +01:00
20dka
3c08e54471
Add basic autocomplete ( fix #95 )
2022-03-15 01:58:26 +01:00
Lion Kortlepel
359faee696
Fix Unicycle "infinite spawning" bug
2022-03-10 12:22:11 +01:00
Lion Kortlepel
09c9b24cbf
Fix Unicycle "infinite spawning" bug
2022-03-10 01:27:16 +01:00
Lion Kortlepel
ace7aaada7
Fix issue which caused assignments and similar lua code to not work in the console
2022-03-03 12:38:23 +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
965935a0e6
catch invalid json to JsonDeserialize, use lua_nil instead of nil
2022-03-02 13:25:29 +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
588c68ebe1
Use proper argument parser
2022-02-17 11:08:48 +01:00
Lion Kortlepel
548b2512cc
proper command parsing
2022-02-15 16:06:59 +01:00
Lion Kortlepel
8ff94a57d7
Add ParseCommand implementation
2022-02-15 15:34:33 +01:00
Lion Kortlepel
a44684f6e7
Add backend provided message to all auth loggings
2022-02-15 15:20:25 +01:00
Lion Kortlepel
944b68c6d5
format backend refused message nicer
2022-02-15 15:19:41 +01:00
Lion Kortlepel
01268821dc
Merge branch 'rc-v3.0.1' into rc-v3.1.0
2022-02-15 15:15:51 +01:00
Lion Kortlepel
5553aca0bb
set heartbeat status properly
2022-02-12 22:08:49 +01:00
Lion Kortlepel
beaea4f624
Fix crash when giving commandline arguments with no console initialized
2022-02-11 11:57:01 +01:00
Lion Kortlepel
36853ca683
add MSG_NOSIGNAL to all calls to send() to get rid of useless SIGPIPE signals
2022-02-11 10:59:17 +01:00
Lion Kortlepel
d969c4a2c2
Use nlohmann/json for IsUnicycle
2022-02-11 10:36:10 +01:00
Lion Kortlepel
f26ca6b40d
add nlohmann/json
...
this will conflict with a change in the http branch, but i dont care
right now
2022-02-11 10:19:10 +01:00
Lion Kortlepel
17c571811a
Add config option to turn off chat logging
...
When LogChat is disabled, using the `say` command in the console will
trigger a "chat message sent!" reply, as UX feedback.
2022-02-06 21:46:51 +01:00
Lion Kortlepel
144ccf14ec
Add AddResultToCheck
2022-02-03 19:52:19 +01:00
Lion Kortlepel
7b458e3e27
Use yield() where possible
...
Replaced calls of this_thread::sleep_* with this_thread::yield(), which
yields the thread to the OS' scheduler.
2022-02-03 19:52:18 +01:00
Lion Kortlepel
69656f95db
Move commandline initialization after cwd setting
...
This fixes an issue where the log file is written to the original
directory, even if --working-directory=path was used. This can obviously
be pretty bad.
2022-02-03 19:51:59 +01:00
Lion Kortlepel
86b6aed350
UpdateCheck: Try all URLs
2022-02-03 19:51:59 +01:00
Lion Kortlepel
7c1fb12625
add api-v header to heartbeat post
2022-02-03 19:51:59 +01:00
Lion Kortlepel
9f892af997
start fixing backend heartbeat
2022-02-03 19:51:59 +01:00
Lion Kortlepel
754053e73f
Use yield() where possible
...
Replaced calls of this_thread::sleep_* with this_thread::yield(), which
yields the thread to the OS' scheduler.
2022-02-03 18:57:52 +01:00
Lion Kortlepel
29f8d29e33
Move commandline initialization after cwd setting
...
This fixes an issue where the log file is written to the original
directory, even if --working-directory=path was used. This can obviously
be pretty bad.
2022-02-03 18:31:18 +01:00
Lion Kortlepel
fd12ee672d
Add various debug functions
2022-01-26 20:33:12 +01:00
Lion Kortlepel
fca5bbcec9
UpdateCheck: Try all URLs
2022-01-21 14:26:42 +01:00
Lion Kortlepel
cd4129e05d
add api-v header to heartbeat post
2022-01-20 16:09:08 +01:00
Lion Kortlepel
c42c748b37
start fixing backend heartbeat
2022-01-20 15:46:13 +01:00
Lion Kortlepel
435d73f0c1
Remove message thing from master, reimplement this later
2021-12-09 12:09:55 +01:00
Lion Kortlepel
a5c23f8dde
Add ping packet support
2021-12-09 12:08:41 +01:00
Lion
6c5b2cbeb5
Merge branch 'master' into rewrite-lua
2021-12-09 12:04:33 +01:00
Lion Kortlepel
ca5b3956a1
Http: Dont generate ssl key/cert with ssl off, reinterpret_cast for
...
windows
2021-12-08 17:39:13 +01:00
Lion Kortlepel
924e18c163
Remove /status placeholder
2021-12-08 17:39:13 +01:00
Lion Kortlepel
a19943c96d
Example impl for /status
2021-12-07 15:34:01 +01:00
Lion Kortlepel
cd19ae0836
Add shutting down / shutdown states to state keeper
2021-12-07 14:25:04 +01:00
Lion Kortlepel
3ee83904a1
Windows rewrite when
...
jfc since when is `c_str()` not convertible to `const char*`?
2021-12-06 15:13:55 +01:00
Lion Kortlepel
fe652cbf42
Fix server paths
2021-12-06 15:08:01 +01:00
Lion Kortlepel
816d3d5df8
Re-add split history (?)
2021-12-06 14:12:54 +01:00
Lion Kortlepel
817a146699
Add state id to lua prompt
2021-12-06 13:57:40 +01:00
Lion Kortlepel
3cce875fbb
Add UseSSL option to server config
2021-12-06 13:47:07 +01:00