Lucca Jiménez Könings
29f4d0d286
run clang-format
2024-06-26 14:06:06 +02:00
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
Lucca Jiménez Könings
158875a962
Remove debug code for new Settings implementation
...
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
2024-05-07 18:16:06 +02:00
Lucca Jiménez Könings
55f5437618
Add new type Settings
& refactor TSettings behavior
...
into Settings by adding getters/setters
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
2024-05-07 18:16:05 +02:00
Lion Kortlepel
cf8f10b949
add --port=value argument
2024-05-06 11:56:26 +02:00
Lion Kortlepel
aff537afdf
add AGPL-3.0 license header
2024-01-23 21:00:11 +01:00
Lion Kortlepel
81299db946
fix console initializing too early
...
the console was initialized too early, leading to the server waiting for
it to shut down if the authkey is invalid, among other issues.
2023-12-21 12:49:20 +01:00
Bennett
a6cbffc774
fix exit after 10 seconds
2023-12-21 02:01:21 -08:00
Lion Kortlepel
a6eb2f7bfe
switch to vcpkg+cmake, add debian build to workflows
...
using lionkor's template (MIT licensed)
This is a combination of 64 commits.
2023-12-05 17:57:19 +01: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
Lion Kortlepel
fd7b11f436
fix event loop timing issue
...
The event loop tries to run no faster than every 10ms. If it detects
that it goes faster, it would incorrectly calculate the difference, and
then wait (what I assume was) way too long or too short.
Either way, now it's fixed and it correctly works, even when introducing
new lua states.
2022-07-20 14:33:19 +02:00
Lion Kortlepel
36547d1e9e
Move PluginMonitor out of TLuaEngine
2022-05-26 20:59:53 +02:00
Lion Kortlepel
f06f31c2a0
add moar tests!!!
2022-05-26 16:58:13 +02:00
Lion Kortlepel
ed8d8a6419
remove unused code
2022-05-26 12:03:03 +02:00
Lion Kortlepel
a0876ed58c
update submodules, remove ssl crap
2022-05-26 11:59:36 +02:00
Lion Kortlepel
bc1628afeb
fix some sentry and linking related issues
2022-05-26 11:51:26 +02:00
Lion Kortlepel
88f1976668
Merge branch 'rc-v3.0.2' into rc-v3.1.0
2022-04-28 14:40:57 +02:00
Lion Kortlepel
34b39aad4d
add message to shutdown suggesting Ctrl+C if it takes too long
...
This is an ongoing issue that needs to be resolved properly,
but I'm not sure what's hanging it.
2022-04-28 14:30:44 +02:00
Lion Kortlepel
0979c8b1e4
HTTPServer: Attempt to catch more errors
2022-04-28 14:04:54 +02:00
Lion Kortlepel
d8c33c03ee
start work on new logger
2022-04-05 22:27:45 +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
b97397132d
TLuaEngine: improve result queue handling
2022-03-31 15:59:31 +02:00
Lion Kortlepel
7a814ed35e
use fmt properly in beammp_*f logging functions
2022-03-24 14:45:53 +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
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
cd19ae0836
Add shutting down / shutdown states to state keeper
2021-12-07 14:25:04 +01:00
Lion Kortlepel
a1335e8c7d
Add statuses, status messages
2021-12-06 13:17:54 +01:00
Lion Kortlepel
0f74eca2ee
Fix various issues and crashes
2021-12-06 12:28:52 +01:00
Lion Kortlepel
62cc1e9ce4
Http: Add config value to turn it off, move all http settings into a category in the config
2021-12-06 09:53:13 +01:00
awesome_milou
9d283738aa
Add preliminary work for HTTP health endpoint ( #68 )
...
* Add preliminary work for HTTP health endpoint
* Http: Fix infinite loop bug in Tx509KeypairGenerator::generateKey()
* update commandline
* Add TLS Support class for use with http server
* Add preliminary HTTP Server; TLS still broken; fix in later commit
* Fix TLS handshake, due to server being unable to serve key/certfile in 'Http.h/Http.cpp'; Cause was httlib not being threadsafe due to being a blocking http library
* Run clang format
* Add option to configure http server port via ServerConfig
* TConfig: add HTTPServerPort to config parsing step
* Fix SSL Cert / Key path not auto generating when not existing
* Add health endpoint; Fix SSL Cert serial no. not refreshing when regenerating
* Switch arround status codes in /health route
* Run clang format
Co-authored-by: Lion Kortlepel <development@kortlepel.com>
2021-12-05 18:24:55 +01:00
Lion Kortlepel
b33d50361c
fix typo in --help
2021-12-05 01:40:39 +01:00
Lion Kortlepel
7b99ccb08e
Add --working-directory flag
2021-12-05 00:42:50 +01:00
Lion Kortlepel
a4123d7d7c
Remove --ip example
2021-11-27 03:28:35 +01:00
Lion Kortlepel
9d2d4bb221
Remove --ip
...
This should be re-added later as a ServerConfig value
2021-11-26 19:08:05 +01:00
Lion Kortlepel
eae27633db
Add commandline arguments, implement --config, --version, --help
2021-11-26 19:04:21 +01:00
Lion Kortlepel
7169e65305
clarify thread names
2021-11-21 03:19:02 +01:00
Lion Kortlepel
7079e80b71
Lua: Remove leading space in onChatMessage ( fix #35 )
2021-11-19 12:43:27 +01:00
Lion Kortlepel
f8af134dc9
start writing http lua stuff, also heartbeat debug printing
2021-11-08 22:08:07 +01:00
Lion Kortlepel
fdc205f521
Add ScopedTimer, Remove some comments
2021-10-31 01:27:21 +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
883d69ba27
Merge remote-tracking branch 'origin/master' into rewrite-lua
2021-09-17 14:24:12 +02:00
Lion Kortlepel
1d3958817f
Merge remote-tracking branch 'origin/new-lua-features' into rewrite-lua
...
This is the first of a few commits to merge the new lua features and the
rewrite
2021-09-17 13:29:44 +02:00
Lion Kortlepel
a44050f0f1
Lua: Almost Working events, all triggers working
2021-09-17 00:21:43 +02:00
Lion Kortlepel
2cf368c2b0
First working console
2021-09-16 03:40:24 +02:00
Lion Kortlepel
ba0678dade
Continue Lua Rewrite
2021-09-16 03:21:00 +02:00
Lion Kortlepel
dd4e4c4467
Start rewrite of lua, rename all print functions
2021-09-16 01:04:01 +02:00
Lion Kortlepel
3fc397814c
Move update check to after initialization (since its blocking)
2021-09-11 11:38:06 +03:00
Lion Kortlepel
b1664bb184
Application: Perform hard-shutdown after 3 Ctrl+C's
2021-09-11 11:38:06 +03:00