Lion Kortlepel
cc6b7846b2
add system include
2022-10-06 00:51:51 +02:00
Lion Kortlepel
88f5db514f
remove unused headers
2022-10-06 00:46:35 +02:00
Lion Kortlepel
e595192829
rename header to boost errc
2022-10-06 00:43:17 +02:00
Lion Kortlepel
917e3f98ab
fix github actions dependencies for linux to use proper boost version
2022-10-06 00:36:57 +02:00
Lion Kortlepel
c42a523532
remove SO_SNDTIMEO for now
2022-10-06 00:24:13 +02:00
Lion Kortlepel
95ae0f5d03
fix 'Od' and 'Or' packets not being broadcast
2022-10-05 22:17:56 +02:00
Lion Kortlepel
fc0a509bd9
fix clientversion parameter in heartbeat
2022-10-05 21:15:11 +02:00
Lion Kortlepel
231b13a0e7
fix a ghost client bug
2022-10-05 18:17:18 +02:00
Lion Kortlepel
7d2e4d4581
replace tcp networking with boost::asio tcp networking
2022-10-05 18:17:04 +02:00
Lion Kortlepel
7446526a19
fix binding of udp server socket
...
it was not binding properly because it wasn't open()ed, i guess
2022-10-05 13:06:36 +02:00
Lion Kortlepel
6e97a3cd6e
switch udp networking to boost implementation
2022-10-05 12:14:25 +02:00
Lion Kortlepel
5f1d003077
fix various potential crashes in TServer::HandlePosition
2022-10-03 17:06:32 +02:00
Lion Kortlepel
5d3dff3c88
add identifiers (beammp id, ip) as an argument to onPlayerAuth
2022-10-03 15:31:32 +02:00
Lion Kortlepel
cb0cb30797
fix windows compiler not understanding a CLEAR AND SIMPLE FUNCTION-STYLE
...
CONSTRUCTOR CALL
AHHHHHHH
2022-10-03 15:12:59 +02:00
Lion Kortlepel
1f14de2e71
revert 9c6127a105728afca7b1b7a45d7380fc88d2070d and apply proper fix
2022-10-03 15:11:26 +02:00
Lion Kortlepel
658b37acac
fix error sometimes not displaying when failing inside global event handler
2022-10-03 14:38:19 +02:00
Lion Kortlepel
d63c84286e
replace logging functions with new fmt versions in ParseVehicle
2022-10-01 22:25:45 +02:00
Lion Kortlepel
9c6127a105
fix bug which may cause a server to crash when a car is spawned
...
thanks @Anonymous275
2022-10-01 19:10:21 +02:00
Lion Kortlepel
1a9872db00
fix unhandled return value of fread in TConfig::TConfig unit test
2022-09-27 15:49:55 +02:00
Lion Kortlepel
dbb01998ea
fix ignored return value in getch_
2022-09-26 12:24:44 +02:00
Lion Kortlepel
988f19fd00
fix getch_ to explicitly ignore read() return value
2022-09-26 12:20:07 +02:00
Lion Kortlepel
ae517b30c0
fix bug which caused updates to only check the first URL
2022-09-26 12:04:42 +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
Lion Kortlepel
6da9a921d0
fix "init and reset termios" unit test
...
it was testing via memory-equality, which is not valid.
2022-09-26 01:14:08 +02:00
20dka
b71aa2db04
advanced autocomplete for lua
2022-09-26 00:13:16 +02:00
20dka
4b242c26fc
optimize function argument passing in GetPidVid, TServer::HandlePosition
2022-09-14 18:53:44 +02:00
20dka
a84d042a8a
add error messages to some lua events
2022-09-14 12:45:40 +02:00
20dka
44b94c9e58
add MP.GetPositionRaw(pid, vid)
...
fix vehicles sometimes not deleting for all players
2022-09-14 01:54:49 +02:00
Lion Kortlepel
054016a099
remove debug print
2022-07-20 16:08:56 +02:00
Lion Kortlepel
8b57f6e35a
fix missing Lua error messages in ResultCheckThread
2022-07-20 16:07:00 +02:00
Lion Kortlepel
f21d3d0389
fix bug which caused Lua hot-reload not to report syntax errors
2022-07-20 14:56:58 +02:00
Lion Kortlepel
2ed92c4aa1
fix plugin monitor eating a whole cpu core
...
i must have messed this up when i changed the plugin monitor behavior
recently
2022-07-20 14:42:07 +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
a2cc629153
add onFileChanged ( fixes #116 )
2022-07-14 01:18:50 +02:00
Lion Kortlepel
ad414ec5c9
call onInit on hot-reload, cleanup, remove warnings
...
onInit is now called on hot-reload, for the whole plugin. Arguably, this
is not expected behavior, since only one file is being reloaded, but
this is the easiest way to do it, and the entire hot-reload process is
only for development purposes. Open an issue if this breaks your stuff
:^)
2022-07-14 00:37:47 +02:00
Mackenzie
04bbdff6b7
Add code from EvanMulawski
2022-07-12 22:59:41 +01:00
Lion Kortlepel
2d8ce09b2c
Merge remote-tracking branch 'origin/master' into rc-v3.1.0
2022-07-09 23:03:46 +02:00
Lion Kortlepel
f8d622352f
generate toml from scratch
2022-07-09 22:42:38 +02:00
Lion Kortlepel
6c1d02a425
add fclose
2022-07-09 22:29:12 +02:00
Lion Kortlepel
38eeec39b4
another attempt to fix #105
2022-07-09 22:27:05 +02:00
Lion Kortlepel
696e080e1c
fix #105
2022-07-09 22:01:53 +02:00
Lion Kortlepel
dfa90da8af
check if Resources/Server directory exists, and only create it if it doesnt
...
While this doesn't make a difference with usual setups, it does if the
server path exists but is a symlink. In that case, the
create_directories call fails, and the server aborts.
this fixes that. :^)
2022-06-30 20:19:48 +02:00
Lion Kortlepel
6e46d5aca9
start building the clear
command
2022-06-28 03:29:01 +02:00
Lion Kortlepel
817bd4b588
start fixing mod download
2022-06-28 03:20:42 +02:00
Lion Kortlepel
758d5b2c96
Revert "let's try vcpkg"
...
This reverts commit 8d7505956d86fbbd5b1f7496af2b413b360afa09.
2022-05-29 14:37:50 +02:00
Lion Kortlepel
d8526f0649
TNetwork::SplitLoad: Use managed memory
2022-05-29 14:30:57 +02:00
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