Lion Kortlepel
fa1944dbef
update readme to reflect dependency- and code-changes in 3.1.0
2022-10-22 23:22:42 +02:00
Lion Kortlepel
093f905fd8
remove redundant addition libboost library install in cmake-linux action
2022-10-22 23:06:11 +02:00
Lion Kortlepel
2a45d2282d
update rc-v3.1.0 to master
2022-10-22 22:55:12 +02:00
Lion Kortlepel
aeb024953a
fix sentry line that caused build to fail
2022-10-22 22:48:23 +02:00
Lion Kortlepel
917c501faf
fix typo causing beammp forum id not to show in identifiers ( fix #137 )
2022-10-22 21:16:31 +02:00
Lion Kortlepel
340933bbb3
fix dependencies for test run (add curl, fix ssl)
2022-10-22 21:01:44 +02:00
Lion Kortlepel
a63359479e
rename dependencies for test run in github actions
2022-10-22 20:44:47 +02:00
Lion Kortlepel
bdf2da758c
remove pps from heartbeat
...
"PPS has no meaning anymore and is completely irrelevant. You should
ignore it, it is not an indicator of ANYTHING. If it’s high, that means
NOTHING. If it’s low, that means NOTHING. If it’s -, that means
NOTHING."
It's packets per second per player per vehicle, but is only sent every
30 seconds, its not averaged, and on the client-side, it shows a ping
icon next to it.
A client can open a new connection to the server and send a `P`, and
measure the time to the `P` response packet. The connection is then
closed. This was added ages ago, please use this instead for ping :)
2022-10-17 14:05:51 +02:00
Lion Kortlepel
88c0ed56e4
add _WIN32_WINNT and move CRT no warnings flag
2022-10-17 12:25:13 +02:00
Lion Kortlepel
4256977400
remove crt's "this function or variable may be unsafe" warnings
...
they are useless, as they are in dependencies or parts of the code
we don't care about. Also, the "safe" alternatives straightup dont work
on linux.
2022-10-17 12:21:27 +02:00
Lion Kortlepel
309a9d1fa9
fix invalid windows workflows indentation
2022-10-17 12:12:55 +02:00
Lion Kortlepel
ad860835ca
fix linux tests run not installing openssl properly
2022-10-17 12:10:52 +02:00
Lion Kortlepel
c6c2efb0b1
revert "update linux and windows workflows to run on pr open, reopen, review submit"
...
This reverts commit 23e9941704 .
2022-10-17 12:09:36 +02:00
Lion
c4c3b03b7a
replace networking with boost::asio (synchronous) ( #134 )
...
- replaced all networking with boost::asio abstractions
- rewrote the SetStatus(), GetStatus() crap (now IsDisconnected() and
Disconnect() with reason)
- fixed bug related to ghost players / ghost cars
- handles packets as binary for the most part (vector<uint8_t> instead
of string) to fix various issues
2022-10-17 12:03:43 +02:00
Lion Kortlepel
fd51336a91
update vcpkg
2022-10-17 12:01:08 +02:00
Lion Kortlepel
466845b314
add udp binary data fix to Changelog
2022-10-16 00:05:02 +02:00
Lion Kortlepel
92632b53b5
fix binary data breaking in UDPRcvFromClient
2022-10-15 23:30:09 +02:00
Lion Kortlepel
331a597ec7
add info about new networking to changelog
2022-10-15 23:19:33 +02:00
Lion Kortlepel
87965433c2
change log levels of common warnings and errors to debug
...
this hides a lot of the "standard" errors we get behind the debug flag.
for example, disconnecting a disconnected player would be such an error
2022-10-15 23:16:16 +02:00
Lion Kortlepel
75ff9f7571
remove "backend response failed to parse as valid json"
2022-10-15 23:16:16 +02:00
Lion Kortlepel
94c0547a35
fix crash when the client disconnects while sending first identify setting
2022-10-15 23:16:16 +02:00
Lion Kortlepel
98f77e157f
add WIN32_STATIC_RUNTIME option to cmake
2022-10-15 23:16:16 +02:00
Lion Kortlepel
54730d2baf
remove heartbeat spam logging
2022-10-15 23:16:16 +02:00
Lion Kortlepel
064e71e59f
fix client version check
2022-10-15 23:16:16 +02:00
Lion Kortlepel
2678234d67
dont check for -Werror=zero-as-null-pointer-constant
2022-10-15 23:16:16 +02:00
Lion Kortlepel
4320a91e5c
use message() instead of what() for ec
2022-10-15 23:16:16 +02:00
Lion Kortlepel
7d1318653c
fix boost::system::error_code
2022-10-15 23:16:16 +02:00
Lion Kortlepel
67d02d4cf2
remove unused error check
2022-10-15 23:16:16 +02:00
Lion Kortlepel
93b2559120
switch to boost 1.74
2022-10-15 23:16:05 +02:00
Lion Kortlepel
ed872f730d
link against boost::system
2022-10-06 00:57:31 +02:00
Lion Kortlepel
b25f4a875c
run on latest ubuntu
2022-10-06 00:54:57 +02:00
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
c69418ea5e
add boost_system dependency for linux gh actions
2022-10-06 00:40:39 +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
6249397fb5
add libboost-all-dev to github actions
...
it's a new dependency
2022-10-05 20:50:28 +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
30482d290a
add boost 1.75 dependency
...
this should be available on most platforms.
boost allows us to simplify a LOT of code.
2022-10-05 11:50:15 +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 9c6127a105 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
a1d99c0203
update commandline library
...
includes a fix for alpine
2022-09-27 23:07:30 +02:00
Lion Kortlepel
10dff185e0
change changelog to correctly say "Util.Json*", not MP
2022-09-27 17:25:18 +02:00
Lion Kortlepel
dd17b95427
add changelog message about MP.TriggerClientEventJson
2022-09-27 17:02:25 +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
3c4737a145
fix colon in changelog once more, thanks to github's editor being bad
2022-09-26 12:23:30 +02:00
Lion
36e8ba1614
fix colon in changelog to be in proper code quotes
2022-09-26 12:22:22 +02:00
Lion Kortlepel
988f19fd00
fix getch_ to explicitly ignore read() return value
2022-09-26 12:20:07 +02:00
Lion Kortlepel
b145c8159e
update changelog to add HOME and END button, fix ip comment
2022-09-26 12:12:16 +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
e638c25f70
change assertions to print the error in release builds
...
this should make it easier to debug crashes in the server remotely in
release builds when sentry is down.
2022-09-26 12:03:57 +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
501fddadc6
Merge pull request #127 from BeamMP/feature-betterautocomplete
...
Feature: Better autocomplete
2022-09-26 10:44:15 +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
Lion Kortlepel
a8333359ce
update commandline to work with new autocomplete
2022-09-26 00:17:23 +02:00
Lion
78f7cdc17a
Merge branch 'master' into rc-v3.1.0
2022-09-25 19:50:12 +02:00
Lion Kortlepel
36a1da3218
fix TServer::HandlePosition declaration
...
it was different from the implementation
2022-09-14 20:59:07 +02:00
Lion Kortlepel
23e9941704
update linux and windows workflows to run on pr open, reopen, review submit
2022-09-14 20:42:25 +02:00
Lion
469eb78c80
Merge pull request #123 from 20dka/rc-v3.1.0
...
Add MP.GetPositionRaw() with lua fixes and features
2022-09-14 20:41:33 +02:00
Lion Kortlepel
af5658d0e1
update toml11
2022-09-14 20:41:00 +02:00
Lion Kortlepel
1062e29582
update sentry-native
2022-09-14 20:41:00 +02:00
Lion Kortlepel
ec9a280d30
update libzip
2022-09-14 20:41:00 +02:00
Lion Kortlepel
784bbd4f6b
update fmt
2022-09-14 20:41:00 +02:00
Lion Kortlepel
bc6b4e40e1
update httplib
2022-09-14 20:41:00 +02:00
Lion Kortlepel
071ba08dfe
update sol2
2022-09-14 20:41:00 +02:00
Lion Kortlepel
023738c41b
update json
2022-09-14 20:41:00 +02:00
Lion Kortlepel
6a166110f6
update doctest
2022-09-14 20:41:00 +02:00
Lion Kortlepel
71fbf7b7cc
update commandline
2022-09-14 20:41:00 +02:00
Lion
660f94b691
Merge pull request #110 from tsao-chi-forks/patch-2
...
Support build on apple silicon
2022-09-13 16:15:34 +02:00
Lion
a7c4103f7c
add section about adding features
2022-08-08 20:10:50 +03:00
Lion Kortlepel
0932078e4b
add CONTRIBUTING.md
2022-08-08 20:10:50 +03:00
Lion Kortlepel
54e02abad1
update toml11
2022-08-03 18:16:56 +02:00
Lion Kortlepel
e4cbba59ef
update sentry-native
2022-08-03 18:14:19 +02:00
Lion Kortlepel
e4db66782e
update libzip
2022-08-03 18:13:49 +02:00
Lion Kortlepel
b443bec72e
update fmt
2022-08-03 18:13:25 +02:00
Lion Kortlepel
76a8f231ac
update httplib
2022-08-03 14:02:11 +02:00
Lion Kortlepel
398f8d3fa4
update sol2
2022-08-03 14:01:40 +02:00
Lion Kortlepel
60dd1e2472
update json
2022-08-03 14:01:04 +02:00
Lion Kortlepel
e634b4b6b7
update doctest
2022-08-03 14:00:26 +02:00
Lion Kortlepel
1caa5e3517
update commandline
2022-08-03 13:59:54 +02:00
Lion Kortlepel
b009a37f35
update asio to 1-23-0
2022-08-03 13:59:11 +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
6a94060970
update changelog
2022-07-14 02:08:28 +02:00
Lion Kortlepel
51ccf31373
add beammp_debugf
2022-07-14 01:38:35 +02:00