Lion Kortlepel
0621c0bf82
rebase fixup
2022-05-26 21:13:18 +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
46b92b4992
only run termios test if stdin is a tty
2022-05-26 16:14:05 +02:00
Lion Kortlepel
70e53c2a70
fix dependencies
...
ubuntu's package naming is confusing me
2022-05-26 16:00:36 +02:00
Lion Kortlepel
cc35d83834
make linux workflow parallel, add runtime dependencies
2022-05-26 15:54:23 +02:00
Lion Kortlepel
b4f97a6da0
make tests executable before running
...
:^)
2022-05-26 15:44:39 +02:00
Lion Kortlepel
3d7db6d0bc
windows
...
me waiting for MSVC to stop making me write properly, deepls retarded
code: https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fmedia.istockphoto.com%2Fphotos%2Fskeleton-reaching-for-a-window-picture-id155154794%3Fk%3D6%26m%3D155154794%26s%3D612x612%26w%3D0%26h%3DKNIrAKdhAsI1FCoMtSLXd99ZnP9MO1zZj8VkThTvwVs%3D&f=1&nofb=1
2022-05-26 15:41:52 +02:00
Lion Kortlepel
1c3b1ecc76
fix workflow test run path
2022-05-26 15:37:33 +02:00
Lion Kortlepel
303da19f48
add -t to linux workflow
2022-05-26 14:43:38 +02:00
Lion Kortlepel
c455d4855c
possibly fix workflow
2022-05-26 14:40:56 +02:00
Lion Kortlepel
8df61fe44c
add g++ to workflow
2022-05-26 13:58:29 +02:00
Lion Kortlepel
7224e90c68
add test workflow
2022-05-26 13:56:58 +02:00
Lion Kortlepel
fde5bc7fb6
remove tests from linux action
2022-05-26 13:50:50 +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
811ace1999
fix Application::IsOutdated test case types
2022-05-26 13:36:02 +02:00
Lion Kortlepel
2cf083a7e4
run tests in github actions
2022-05-26 13:34:29 +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
67b8565a4d
update json
2022-05-26 12:06:36 +02:00
Lion Kortlepel
ed8d8a6419
remove unused code
2022-05-26 12:03:03 +02:00
Lion Kortlepel
895058f85f
revert sentry to 0.4.9
2022-05-26 12:01:27 +02:00
Lion Kortlepel
a0876ed58c
update submodules, remove ssl crap
2022-05-26 11:59:36 +02:00
Lion Kortlepel
4f69ca1ad0
remove ssl code
...
@jimkoen
This was removed because, as useful and as much work as this was, we
can't reasonably take responsibility for this. Instead, a server like
this should *always* be localhost only, and if it's not, it should be
behind an nginx reverse proxy anyways. We're removing the config options
regarding this in one of the next commits.
2022-05-26 11:54:19 +02:00
Lion Kortlepel
bc1628afeb
fix some sentry and linking related issues
2022-05-26 11:51:26 +02:00
Lion Kortlepel
019c5202ea
add tests executable
2022-05-26 11:44:20 +02:00
Lion Kortlepel
2dd181d492
gracefully shutdown on bind() failure
2022-05-26 11:19:48 +02:00
Lion Kortlepel
ed03096cf5
Windows moment
...
Windows deprecated when
2022-04-28 14:58:07 +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
ca52d233c0
Use another git commit id for vcpkg
...
this should really be done properly, yikes
2022-04-28 14:34:05 +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
f4eb492d91
Actions: try to use master as vcpkgGitCommitId
2022-04-28 14:24:02 +02:00
Lion Kortlepel
7f41a2a574
Update Changelog to reflect latest changes
2022-04-28 14:18:10 +02:00
Lion Kortlepel
11c53e0b3a
Remove unused error, as Sentry's code fails to build otherwise
...
Thanks, sentry.
2022-04-28 14:13:51 +02:00
Lion Kortlepel
974dda9f8b
HTTPServer: Add config value to specify listen IP
...
Change default IP to localhost,
Set default SSL to false due to this.
2022-04-28 14:12:26 +02:00
Lion Kortlepel
0979c8b1e4
HTTPServer: Attempt to catch more errors
2022-04-28 14:04:54 +02:00
Lion Kortlepel
0761036c8c
TConsole::StartLoggingToFile: implement
2022-04-28 13:46:25 +02:00
Lion Kortlepel
5ded713b4b
Application::CheckForUpdates: only print status the first time
2022-04-28 13:33:38 +02:00
Lion Kortlepel
668cc496b6
update commandline, unused are now errors
2022-04-28 13:29:16 +02:00
Lion Kortlepel
056d20292a
Make "unable to fetch version" a trace message
2022-04-28 13:14:28 +02:00
Lion Kortlepel
d8c33c03ee
start work on new logger
2022-04-05 22:27:45 +02:00
Lion Kortlepel
1bab3276e9
fix setsockopt SO_SNDTIMEO for windows, bump version number to 3.0.2, update commandline
2022-04-05 10:59:16 +02:00
Lion Kortlepel
4ff69528bd
fix some missing declaration
2022-03-31 23:56:02 +02:00
Lion Kortlepel
5e4c7eac51
add send timeout to client tcp socket
2022-03-31 23:53:10 +02:00
Lion Kortlepel
952631bb80
add send timeout to client tcp socket
2022-03-31 23:48:07 +02:00
Lion Kortlepel
23af76dba1
Only warn once about event handlers taking >60s
2022-03-31 23:12:50 +02:00
Lion Kortlepel
5755ead9be
Change :detach to :exit
...
@20dka
2022-03-31 22:18:55 +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
d01d79a49a
update changelog
2022-03-31 20:27:08 +02:00
Lion Kortlepel
d4b30a2583
CreateEventTimer: Implement CallStrategy
...
There are two CallStrategies:
- BestEffort (default): Will try to get your event to trigger at the specified
interval, but will refuse to queue handlers if a handler takes too
long.
- Precise: Will enqueue event handlers at the exact interval specified.
Can lead to the queue filling up if the handler takes longer than the
interval.
2022-03-31 20:13:59 +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
b97397132d
TLuaEngine: improve result queue handling
2022-03-31 15:59:31 +02:00
Lion Kortlepel
d86efabb1a
Modernize CMakeLists, automatically update submodules
...
CMake will now find packages in a modern way (include(Find*)), and will
also ensure that submodules are updated, unless told otherwise.
Also removed some apple-specific workarounds, we will need to look at
that again.
2022-03-30 12:14:13 +02:00
Lion Kortlepel
de82caef33
Add HideUpdateMessages setting ("ImScaredOfUpdates") and periodic update reminders (every 5th heartbeat)
2022-03-25 13:34:28 +01:00
Lion Kortlepel
f8c58f363a
Change default MaxPlayers to 8
2022-03-25 13:32:41 +01:00
Lion Kortlepel
71c2d4b859
Simplify "Backend heartbeat response" error ( closes #97 )
2022-03-25 12:55:35 +01:00
Lion Kortlepel
b2f27c21be
update changelog
2022-03-24 16:53:39 +01:00
Lion Kortlepel
b780a08f73
use MB constant
2022-03-24 15:16:24 +01:00
Lion Kortlepel
cd4332b790
prepend . to Threads.log to make it invisible on *nix
2022-03-24 14:47:15 +01:00
Lion Kortlepel
7a814ed35e
use fmt properly in beammp_*f logging functions
2022-03-24 14:45:53 +01:00
Lion Kortlepel
9e0d02c6db
add fmt library, add beammp_*f
2022-03-24 14:36:39 +01:00
Lion Kortlepel
d0bb32ec63
cleanup fixme's, todo's
2022-03-24 14:26:02 +01:00
Lion Kortlepel
5180c96e2b
TServer::HandleEvent: Fix mistreatment of ':' in event data
2022-03-24 14:06:50 +01:00
Lion Kortlepel
dbfe4a4d11
Fix inconsistencies with handling errors in early network startup
...
In most cases, when socket creation, bind, listen, or similar fails,
it's best to gracefully shutdown. We do that now.
2022-03-24 14:06:03 +01:00
Lion Kortlepel
4cb299061e
add pos argument to on_autocomplete
2022-03-23 16:10:51 +01:00
Lion Kortlepel
ef902a03f3
update lionkor/commandline to v2.0.0
2022-03-23 12:06:35 +01:00
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
Lion
0466ae55a4
Merge pull request #96 from 20dka/feature-supressBackend
...
Ignore backend response if server is Private
2022-03-17 09:57:16 +01:00
Lion Kortlepel
fe06726d75
update commandline
2022-03-16 16:03:23 +01:00
Lion
a97763a94f
Merge pull request #91 from BeamMP/rc-v3.0.1
...
Release Candidate v3.0.1
2022-03-10 17:03:43 +01:00
Lion Kortlepel
daa674f448
add infinite snowmen bug to changelog
2022-03-10 12:31:02 +01:00
Lion Kortlepel
710b15535e
Merge branch 'rc-v3.0.1' into rc-v3.1.0
2022-03-10 12:24:44 +01:00
Lion Kortlepel
a85fef15c2
only use sentry if URL is specified, possibly fix stupid microsoft compiler error
...
hey @microsoft, maybe don't have a limit on the size of obj files.
2022-03-10 12:23:24 +01:00
Lion Kortlepel
359faee696
Fix Unicycle "infinite spawning" bug
2022-03-10 12:22:11 +01:00
Lion Kortlepel
299004b14e
fix msvc /bigobj issue
2022-03-10 12:21:08 +01:00
Lion Kortlepel
b09f5a401d
update lionkor/commandline to 1.0.0 (adds cursor left- and right
...
movement)
2022-03-10 12:19:01 +01:00
Lion Kortlepel
2caa74d913
update lionkor/commandline to 1.0.0 (adds cursor left- and right
...
movement)
2022-03-10 12:17:46 +01:00
Lion Kortlepel
e3d9d11bbd
only use sentry if URL is specified, possibly fix stupid microsoft compiler error
...
hey @microsoft, maybe don't have a limit on the size of obj files.
2022-03-10 01:40:47 +01:00
Lion Kortlepel
09c9b24cbf
Fix Unicycle "infinite spawning" bug
2022-03-10 01:27:16 +01:00
Lion Kortlepel
a450531b8a
Merge branch 'rc-v3.0.1' into rc-v3.1.0
2022-03-05 23:39:02 +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
dd5cf1a4af
move some things in changelog from 3.0.1 to 3.1.0
2022-03-02 13:30:56 +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
96a0e4b6fb
update changelog
2022-03-02 13:23:08 +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
8ce3be03a3
make bigobj a linker flag?
2022-02-17 12:00:03 +01:00
Lion Kortlepel
687b4e4235
add bigobj flag
2022-02-17 11:47:28 +01:00
Lion Kortlepel
86ad28abdc
Microsoft (R) Windows (TM) needs deprecation
2022-02-17 11:29:51 +01:00
Lion Kortlepel
a982d54202
add debug build to windows github actions
2022-02-17 11:13:07 +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