Commit Graph

1239 Commits

Author SHA1 Message Date
Lion Kortlepel 48135f4544 add new onShutdown timing to changelog 2022-11-23 09:34:50 +01:00
Lion Kortlepel 0411ba533d change onShutdown to be called before all players are kicked 2022-11-23 09:34:50 +01:00
Lion Kortlepel 41dd4ff678 add version to changelog 2022-11-23 09:34:50 +01:00
Lion Kortlepel e1c2d0d5fb add version command 2022-11-23 09:34:50 +01:00
Lion Kortlepel 69c2868025 fix server not closing after detecting an invalid config (fixes #151) 2022-11-23 09:34:50 +01:00
Lion Kortlepel c8ca4564a1 fix error which complains about AuthKey not being present before reading the config file 2022-11-23 09:34:50 +01:00
Lion Kortlepel 0c6112c28a add boost to requirements in README for windows 2022-11-23 09:34:50 +01:00
Lion Kortlepel 4860849f2f add boost-uuid to vcpkg on windows 2022-11-23 09:34:50 +01:00
Lion Kortlepel 3bd67d959f handle all exceptions which happen inside a logging macro
and print them ;)
2022-11-23 09:34:50 +01:00
Lion Kortlepel 13a86d3e77 add explanative debug messages to parse errors in GetPidVid 2022-11-23 09:34:50 +01:00
Lion Kortlepel dff94a41be fix potential out of bounds exception in GetPidVid 2022-11-23 09:34:50 +01:00
Lion Kortlepel 79ee5915b4 fix unhandled out of bounds in Authentication 2022-11-23 09:34:50 +01:00
Lion Kortlepel 3fcf23977b fix fix for out-of-bounds crash, add disconnect messages to some failure conditions 2022-11-23 09:34:50 +01:00
Lion Kortlepel 487917482f fix out-of-range crash in SendFile
when the UnsafeName does not contain a `/`, the server would simply
crash, as an invalid substr() index was given, which triggered a
std::out_of_range.
2022-11-23 09:34:50 +01:00
Lion Kortlepel 2ca39a7368 fix cmakelists 2022-11-23 09:34:50 +01:00
20dka 9d8aeef423 refactor of vehicle packet handling 2022-11-23 09:34:50 +01:00
20dka dee7f74906 remove unused PPSMonitor parameter 2022-11-23 09:34:50 +01:00
20dka 66f014ae42 add autocomplete for lua,kick,settings commands 2022-11-23 09:34:50 +01:00
20dka 12245d81a1 fix compilation error and use boost for string lowercase 2022-11-23 09:34:50 +01:00
20dka a6e0332e3c add command 'quit' as alternative to 'exit' 2022-11-23 09:34:50 +01:00
20dka c461a63d9d update client pointer lock approach 2022-11-23 09:34:50 +01:00
20dka 69726a9b03 add owner check to other vehicle packets 2022-11-23 09:34:50 +01:00
20dka 9acb6951d6 add owner check to position packets 2022-11-23 09:34:50 +01:00
Lion Kortlepel 6ebfe5743c add :Wait(timeout_s) function to the result of MP.TriggerGlobalEvent 2022-11-23 09:34:50 +01:00
Lion Kortlepel 3c138e2891 change date format from d/m/y to Y/m/d 2022-11-23 09:34:50 +01:00
Lion Kortlepel 2279ba4d6b attempt to report errors from event triggers 2022-11-23 09:34:50 +01:00
Lion Kortlepel 30b038a6bb revert adding nil to json
it causes issues, not worth it
2022-11-23 09:34:50 +01:00
Lion Kortlepel c39c7bb0a4 add scripts & dockerfiles to build on multiple platforms 2022-11-23 09:34:50 +01:00
Lion Kortlepel 06b238d63f remove unused code 2022-11-23 09:34:50 +01:00
Lion Kortlepel 1856dd2002 fix various little things in the json encode and decode 2022-11-23 09:34:50 +01:00
Lion Kortlepel b068a9b48f fix TriggerGlobalEvent not passing event arguments correctly (closes #106) 2022-11-23 09:34:50 +01:00
Lion Kortlepel e8d66ef983 add git hash to version print on startup
this helps us debug issues
2022-11-23 09:34:50 +01:00
Lion Kortlepel 7f47337e1b modify authkey notice to mention the possibility of entering an invalid key
this makes it clear that you may put anything as your key, as long as
you only want private servers.
2022-11-23 09:34:50 +01:00
Lion Kortlepel b0b4dc51b0 fix crash when the header of a TCP packet is negative 2022-11-23 09:34:50 +01:00
Lion Kortlepel 7abfae425d move around includes to satisfy the magical msvc 2022-11-23 09:34:50 +01:00
Lion Kortlepel 4791af4453 use system_clock::to_time_t instead of high_resolution_clock::* 2022-11-23 09:34:50 +01:00
Lion Kortlepel a44f9b3dba fix various build warnings and errors with clang++ 2022-11-23 09:34:50 +01:00
Lion Kortlepel c51d713969 add uuid source files
were missed last commit related to uuids
2022-11-23 09:34:50 +01:00
Lion Kortlepel 3781f2960a add debug to the changelog 2022-11-23 09:34:50 +01:00
Lion Kortlepel 9e469b04f1 add Util.GenerateUUID lua api
This api generates a pseudorandom RFC 4122 compliant UUID
(https://www.ietf.org/rfc/rfc4122.txt). It's pseudorandom, so it is
*unlikely* to have collisions.
2022-11-23 09:34:49 +01:00
Lion Kortlepel 96273e1d06 fix invalid include, reformat TConsole 2022-11-23 09:34:49 +01:00
Lion Kortlepel c717037895 add debug command to track statistics and debug client connections
The `debug` command shows info useful to develpers of the client and
server
2022-11-23 09:34:49 +01:00
Lion Kortlepel 692129cb81 add ToHumanReadableSize, which formats data sizes into MiB, GiB, etc.
this is needed in order to display data sizes in upcoming changes
related to tracking statistics about the server's performance
2022-11-23 09:34:49 +01:00
Lion Kortlepel 6842dccfc3 rework UDP recv loop, add packet statistics tracking
The UDPServerMain was badly designed and had multiple potential bugs and
unexpected & silent failures. The changes simplify the code here, and
tracks those unexpected failures in app-wide statistics. Also added,
while at that, some more tracking of how many packets and bytes are
sent & received per client
2022-11-23 09:34:49 +01:00
Lion Kortlepel e77dfd5a57 add boost to vcpkg requirements 2022-11-23 09:34:49 +01:00
Lion Kortlepel 54ad1c2715 add settings to changelog 2022-11-23 09:34:49 +01:00
Lion Kortlepel 48ce7c9721 add settings set/get/list/help console command
this makes use of the new settings-in-a-hashmap in order to make
changing any settings (except authkey) easy.
2022-11-23 09:34:49 +01:00
Lion Kortlepel 3aa6784627 bump version to 3.2.0 2022-11-23 09:34:49 +01:00
Lion Kortlepel bec09a4761 change settings to be a hash map instead of a fixed struct
this makes adding settings and changing settings incredibly easy, both
from the console and from lua.
2022-11-23 09:34:49 +01:00
Lion Kortlepel 7d35595683 potential fix for #141 2022-11-23 09:34:49 +01:00