1561 Commits

Author SHA1 Message Date
Tixx
b4d4967529
Bump version v3.7.2 2024-12-09 09:52:58 +01:00
Tixx
51c24b82fe
remove sentry leftovers (#392)
Just cleaning up some sentry related code, mentions, etc.

---

By creating this pull request, I understand that code that is AI
generated or otherwise automatically generated may be rejected without
further discussion.
I declare that I fully understand all code I pushed into this PR, and
wrote all this code myself and own the rights to this code.
2024-11-30 21:19:48 +01:00
Tixx
5e13f9dd2d
fix crash when double closing (#383) 2024-11-30 21:14:09 +01:00
Tixx
f8d66c4336
Re-Add BEAMMP_PROVIDER_PORT_ENV (#399)
#398

---

By creating this pull request, I understand that code that is AI
generated or otherwise automatically generated may be rejected without
further discussion.
I declare that I fully understand all code I pushed into this PR, and
wrote all this code myself and own the rights to this code.
2024-11-30 20:23:31 +01:00
Tixx
9875defe86
Re-Add BEAMMP_PROVIDER_PORT_ENV 2024-11-30 18:04:23 +01:00
Lion
fc208770dd
Fix postPlayerAuth and add reason value (#395)
Closes #393 and #394
This PR cleans up and fixes the code in TNetwork::Authentication and
sends the kick reason to lua.
The event is now `function postPlayerAuth(Kicked: bool, Reason: string,
Name: string, Role: string, Guest: bool, Identifiers: table)`

---

By creating this pull request, I understand that code that is AI
generated or otherwise automatically generated may be rejected without
further discussion.
I declare that I fully understand all code I pushed into this PR, and
wrote all this code myself and own the rights to this code.
2024-11-25 10:15:20 +01:00
Tixx
99a51808a0
Fix postPlayerAuth not running until after leaving 2024-11-25 00:33:10 +01:00
Tixx
1c07cf83b2
Fix postPlayerAuth and add reason value 2024-11-24 22:28:32 +01:00
0R3Z
99136f133a remove sentry leftovers 2024-11-16 19:02:50 +01:00
Tixx
6c9d58582b
Swap build instruction sequence (#391)
Swap the sequence of the build instruction steps 2 and 3 so it actually
works

No AI involved, i used my own brain to mess it up and to fix it 😉

---

By creating this pull request, I understand that code that is AI
generated or otherwise automatically generated may be rejected without
further discussion.
I declare that I fully understand all code I pushed into this PR, and
wrote all this code myself and own the rights to this code.
2024-11-14 22:40:26 +01:00
O1LER
4edae00998
Swap build instruction sequence 2024-11-14 18:29:30 +01:00
Lion
17e9c05f46
add PR template 2024-11-13 16:21:49 +01:00
Lion
71e3cb83ae
Allow for empty icon param in MP.SendNotification (#389)
This PR allows you to call MP.SendNotification with only a player ID and
a message, removing the requirement for an icon.
2024-11-12 13:32:58 +01:00
Tixx
fb2e26bd28
Allow for empty icon param in MP.SendNotification 2024-11-12 12:35:12 +01:00
Tixx
976ab68ca3
Bump version v3.7.1 2024-11-05 23:13:46 +01:00
Tixx
58a76e1df2
Add some information about tags in the build instructions (#386) 2024-11-05 10:30:05 +01:00
O1LER
c696276fc3
Update README.md
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
2024-11-02 23:30:22 +01:00
O1LER
6ce0608bb3 Third times the charm 2024-11-02 14:35:17 +01:00
O1LER
52ad237419 Fix bracket skill issue 2024-11-02 14:33:52 +01:00
O1LER
71038dc617 Hide links 2024-11-02 14:32:47 +01:00
O1LER
dc3bb517a3
Update README.md
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
2024-11-02 14:29:48 +01:00
O1LER
7b2c48c8d4 Add some information about tags in the build instructions 2024-11-02 14:04:09 +01:00
Lion
ef557ebfc4
Fix backend heartbeat (#385) 2024-11-01 17:40:33 +01:00
Tixx
b2e953b92a Fix JSON heartbeat request 2024-11-01 17:30:17 +01:00
Lion Kortlepel
576d765557
fix crash when double closing 2024-11-01 15:07:54 +01:00
Lion Kortlepel
e3416804e4
bump version v3.7.0 2024-11-01 12:50:11 +01:00
Lion
9ad4f61209
Information packet (#382)
This PR adds an "I" packet which returns the server information. This
can be used by external programs and the launcher to get information
about a server without having to connect it to. It can be toggled in the
config and in lua.
2024-11-01 12:27:31 +01:00
Tixx
aed6311146 Run clang-format on THeartbeatThread.cpp 2024-11-01 12:22:56 +01:00
Lion
5e41cefa87
Paint packet (#381)
Adds a packet for live color updating `vid:[{}]`
2024-11-01 12:18:06 +01:00
Tixx
b1710ee826 Add explanation for why uuid is added later 2024-10-20 18:33:49 +02:00
Lion
03b0bd4d2c
Add 'P' packet on UDP (#379)
This can be used to check if UDP works :)

I've tested this a bit with snep ingame, even spamming this on localhost
with a large number of connections seems to not impact gameplay at all.
2024-10-20 18:29:12 +02:00
Tixx
5179ac1fdc Paint packet 2024-10-20 15:38:07 +02:00
Tixx
54e31ce2ec Move backend heartbeat to json 2024-10-14 00:42:14 +02:00
Tixx
4abe9b8636 Add informationpacket setting to the config 2024-10-14 00:39:12 +02:00
Tixx
956d6f50e1 Add setting for the information packet 2024-10-14 00:39:12 +02:00
Tixx
6aeb2eb736 Add server identification packet 2024-10-14 00:39:12 +02:00
Lion Kortlepel
f40d4c1ddd
add 'P' packet on UDP
this can be used to check if UDP works :)
2024-10-13 22:13:05 +02:00
Lion
4f052a3e0a
Make modlist an empty array by default instead of null (#377)
Related launcher PR: https://github.com/BeamMP/BeamMP-Launcher/pull/136
2024-10-12 21:06:41 +02:00
Tixx
2bf9e7d916 Make modlist [] by default instead of null 2024-10-09 19:42:47 +02:00
Lion
89c906232d
Report correct client minimum version to the backend (#376) 2024-10-09 18:06:03 +02:00
Lion
c39beb5b72
reuse minclientversion where possible
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
2024-10-09 18:03:01 +02:00
Lion Kortlepel
7dd2d89ad9
clarify auth version reject message 2024-10-09 16:48:40 +02:00
Lion Kortlepel
3403c8acba
fix version check on auth 2024-10-09 16:44:38 +02:00
Lion Kortlepel
0a6eecee69
report correct client minimum version to the backend 2024-10-09 16:37:16 +02:00
Lion
cf3985ce00
Add Lua function to get a player's role (#366)
Adds `MP.GetPlayerRole(player_id)` to the Lua API to get a player's role
("USER", "EA", "MDEV", "STAFF", "ET") by their player id.
Currently you can only get someone's role in onPlayerAuth from the
parameters and in onVehicleSpawned and onVehicleEdited from the packet
data, but not in onPlayerJoin for example without storing it.
v3.6.0
2024-10-05 16:09:37 +02:00
Lion Kortlepel
b04c5068ea
bump version 2024-10-05 16:09:02 +02:00
Lion
077bb6b1cd
Add player limit bypass to onPlayerAuth (#372)
With this PR, returning 2 in onPlayerAuth will allow the player to join
without checking if the server is full. This makes it easier for plugin
developers to allow for example their staff to join without having to
change the max player count.
2024-10-05 16:07:53 +02:00
Lion
0850cde1fb
Add MP.SendNotification (#373)
Adds MP.SendNotification(message, icon, category (optional) ) to the Lua
api. Uses the newly added "N" packet in the mod.
2024-10-05 16:07:27 +02:00
Lion
611e53b484
Mod hashing + better download (#374) 2024-10-04 23:29:11 +02:00
Tixx
f039f57f11 Fix error messages on sendnotification 2024-10-04 20:24:30 +02:00