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
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
a4f07c9a4d
Merge pull request #86 from BeamMP/rc-v3.0.1
...
Release Candidate v3.0.1
2022-02-11 11:07:39 +01:00
Lion Kortlepel
dada8fe6bf
update changelog
2022-02-11 11:01:39 +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
b72de4bd0a
Merge pull request #82 from BeamMP/rc-v3.0.1
...
Release Candidate v3.0.1
2022-02-04 04:37:09 +01:00
Lion Kortlepel
fdb7c9ce71
update version to 3.1.0
2022-02-03 19:57:25 +01:00
Lion Kortlepel
c391abcc93
Merge branch 'rc-v3.0.1' into rc-v3.1.0
2022-02-03 19:56:33 +01:00
Lion Kortlepel
144ccf14ec
Add AddResultToCheck
2022-02-03 19:52:19 +01:00
Lion Kortlepel
40b23cbbe6
update changelog
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
0f5c476d09
update libraries
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
81780294f8
advance to 3.0.1
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
9494bc70fb
fix changelog
2022-02-03 19:46:31 +01:00
Lion Kortlepel
5c44a307bc
update changelog
2022-02-03 19:03:21 +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
e043361abb
update libraries
2022-02-03 18:30:00 +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
2a588954be
advance to 3.0.1
2022-01-20 21:31:00 +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
179b33a7ab
Merge pull request #76 from BeamMP/patch-http-server-default
...
HTTP Server disabled by default
2021-12-23 14:28:33 +01:00
Lion Kortlepel
1b14206a3c
HTTP Server disabled by default
2021-12-23 14:24:00 +01:00
Lion
0cf81cf3f4
Merge pull request #73 from BeamMP/lionkor-readme-patch
...
Patch README Dependency List, fix Changelog
2021-12-16 23:54:33 +01:00
Lion
801780bcb1
Update Changelog.md
2021-12-16 16:02:31 +01:00
Lion
84d52578e0
Merge pull request #75 from BeamMP/release-3-0-0-patch
...
Release v3.0.0 final patch
2021-12-15 18:26:08 +01:00
Lion Kortlepel
3555cec5fe
Simplify fix for event argument bug
2021-12-13 13:48:18 +01:00
Lion Kortlepel
71efe30345
Bump to 3.0.0, possible fix for event argument bug
2021-12-13 13:22:58 +01:00
Lion
5df8aedf08
Update Changelog.md
2021-12-11 10:35:11 +01:00
Lion
c3ab4b729a
Update README.md
2021-12-09 14:15:50 +01:00
Lion
464aa3b59f
Update README.md
2021-12-09 14:13:05 +01:00
Lion
cfe63198c7
Merge pull request #50 from BeamMP/rewrite-lua
...
Rewrite Lua + New Lua Features + New Console + Commandline Args
2021-12-09 13:04:48 +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