Commit Graph

  • 4f57680a67 more lua stuff working now + cleanup client code Luuk van Oijen 2023-11-14 14:06:05 +01:00
  • 1c21298351 more work on the lua stuff Luuk van Oijen 2023-11-14 09:53:46 +01:00
  • e781bbac8e fixed the event handler registration stuff Luuk van Oijen 2023-11-13 16:57:45 +01:00
  • a0db8aa8be more steps towards reducing cpu load Luuk van Oijen 2023-11-13 16:37:53 +01:00
  • f2b9384447 first step towards less cpu usage Luuk van Oijen 2023-11-13 12:33:15 +01:00
  • b5c6f2c3c7 Update backend_lua.rs Luuk van Oijen 2023-11-12 23:03:59 +01:00
  • 6dee028a88 Update backend_lua.rs Luuk van Oijen 2023-11-12 22:20:59 +01:00
  • 4f52e30545 wip lua event stuff Luuk van Oijen 2023-11-12 21:26:23 +01:00
  • 01fb538129 now its just MP.function instead of MP:function Luuk van Oijen 2023-11-12 16:35:15 +01:00
  • a23b5a43c0 more lua api stuff Luuk van Oijen 2023-11-12 16:29:22 +01:00
  • 8ee6ba16f2 very early version of plugin system Luuk van Oijen 2023-11-12 15:31:15 +01:00
  • 0b6ad43fbb wip small stuff Luuk van Oijen 2023-11-11 00:02:25 +01:00
  • 5d8c9cd792 interval introduced to avoid massive cpu usage Luuk van Oijen 2023-11-10 10:04:56 +01:00
  • c5ce152a30 license? Luuk van Oijen 2023-11-09 23:27:39 +01:00
  • 6c60f220eb comments + todo Luuk van Oijen 2023-11-09 15:53:29 +01:00
  • ff5a5204c9 bit of cleanup of unused old code Luuk van Oijen 2023-11-09 14:54:45 +01:00
  • ad85317f60 mod download now gets halfway Luuk van Oijen 2023-11-09 14:15:33 +01:00
  • efad9ec03e implemented the playerlist and player count Luuk van Oijen 2023-11-09 10:57:34 +01:00
  • 5011ae280c wip downloading (it doesnt work) Luuk van Oijen 2023-11-08 21:35:13 +01:00
  • ebc0dba4ef syncing cars when joining works now Luuk van Oijen 2023-11-08 17:00:48 +01:00
  • ad15846625 wip syncing of vehicles when joining Luuk van Oijen 2023-11-08 13:26:10 +01:00
  • e1b9f2b969 clients joining should no longer block acception runtime Luuk van Oijen 2023-11-08 12:52:34 +01:00
  • 3fedcf5bd5 Update mod.rs Luuk van Oijen 2023-11-08 12:04:59 +01:00
  • 190cc8f238 Update mod.rs Luuk van Oijen 2023-11-08 11:47:23 +01:00
  • 38aaf29fe8 initial commit Luuk van Oijen 2023-11-07 22:48:41 +01:00
  • 8c967a5608 test state commit rc-v3.2.0 Anonymous-275 2023-06-23 08:09:56 +01:00
  • 57a58b1a38 fix hang and crash caused by client kick Anonymous-275 2023-04-24 11:41:09 +01:00
  • 2c29a195f9 optimize: Add conditional variable to LuaResult (#162) old-master Lion 2023-03-27 13:31:21 +02:00
  • 222d2492ff Merge branch 'master' into optimize/add_cv_to_luaresult rgnter 2023-03-21 20:17:17 +01:00
  • 879b9772f5 Apply suggestions from code review Simon 2023-01-15 17:11:43 +00:00
  • c51cf090ef fix linux build Anonymous275 2022-12-29 17:20:34 +00:00
  • d677d8d58d rename Hash function to HashPassword move HashPassword to cpp only move check to line 285 Anonymous275 2022-12-29 17:06:06 +00:00
  • 4b30918659 - add 120 seconds timeout Anonymous275 2022-12-23 16:24:24 +00:00
  • 688e46f524 - fix linux build Anonymous275 2022-12-21 22:34:21 +00:00
  • 9f59c27b1f - add hash function - add password config - add debug messages for password stages - add pass boolean for heartbeat - adjust network codes Anonymous275 2022-12-21 22:26:45 +00:00
  • 058247ff13 Apply suggestions from code review feature-password-protection Simon 2023-01-15 17:11:43 +00:00
  • 5ea4bde5e2 fix linux build Anonymous275 2022-12-29 17:20:34 +00:00
  • 99e249ab2a rename Hash function to HashPassword move HashPassword to cpp only move check to line 285 Anonymous275 2022-12-29 17:06:06 +00:00
  • 2ab4ebc264 - add 120 seconds timeout Anonymous275 2022-12-23 16:24:24 +00:00
  • 16bcabbc97 - fix linux build Anonymous275 2022-12-21 22:34:21 +00:00
  • bcf6b4624a - add hash function - add password config - add debug messages for password stages - add pass boolean for heartbeat - adjust network codes Anonymous275 2022-12-21 22:26:45 +00:00
  • 6a11bcd20b fix bad package name for Ubuntu in Readme (#161) Lion 2022-12-21 16:29:49 +01:00
  • 2cf27ad837 potentially fix ghost car bug Lion Kortlepel 2022-12-20 02:56:04 +01:00
  • e8ef7de4b9 fix a bug in TriggerLocalEvent which would cause the server to std::terminate() Lion Kortlepel 2022-12-19 12:41:45 +01:00
  • 8ea7b75874 fix sol assert not actually checking the assertion *facepalm* Lion Kortlepel 2022-12-19 12:41:16 +01:00
  • 59503ccc90 use a beammp_lua_errorf instead of a std::terminate on sol2 assertion failure Lion Kortlepel 2022-12-19 11:52:22 +01:00
  • b7b578bf3e add conditional variable to LuaResult rgnter 2022-12-18 14:45:33 +01:00
  • 6c145a6dbf fix: Bad package name for Ubuntu rgnter 2022-12-18 12:32:45 +01:00
  • 7316dff519 fix not removing client when disconnecting them Lion Kortlepel 2022-11-25 14:40:21 +01:00
  • b1a89125fe fix spinning a single thread in lua result check thread Lion Kortlepel 2022-11-25 14:21:45 +01:00
  • 4a6504ec2c fix "disconnect was called twice" error Lion Kortlepel 2022-11-23 09:33:39 +01:00
  • b3594dd147 remove invalid naming of settings again Lion Kortlepel 2022-11-14 23:32:22 +01:00
  • 7cc426cb96 fix reading and defaulting the IncludeSubdirectories config option Lion Kortlepel 2022-11-14 23:31:54 +01:00
  • a91eb02f5f remove debug print 20dka 2022-11-14 18:50:07 +01:00
  • 6b65907a7f add ID parameter to onPlayerRequestMods and update Changelog.md 20dka 2022-11-14 00:17:52 +01:00
  • 468a6b340e add event 'onPlayerRequestMods', restructure modloading 20dka 2022-11-14 00:10:36 +01:00
  • 056827546e assign IDs to new players earlier in the connection process 20dka 2022-11-14 00:07:43 +01:00
  • 6a47521c7c fix lua autocomplete crash when a table contains number keys 20dka 2022-11-11 23:56:47 +01:00
  • eaab5eaf30 fix crash which could happen when closing an invalid socket Lion Kortlepel 2022-11-14 23:37:54 +01:00
  • 35b38f35bb replace usages of ForEachClientWeak with ForEachClient Lion Kortlepel 2022-11-13 14:55:39 +01:00
  • 2572530957 ensure clients are valid when iterated over Lion Kortlepel 2022-11-13 14:54:41 +01:00
  • 8551e68184 fix bug which could cause multiple players to have the same ID (closes #154) Lion Kortlepel 2022-11-13 14:00:31 +01:00
  • 2f85c708c5 rework GetClient to use new ForEachClient, return shared_ptr Lion Kortlepel 2022-11-13 13:36:04 +01:00
  • 844b64f5d9 rework ForEachClient to use concepts instead of SFINAE Lion Kortlepel 2022-11-13 13:35:25 +01:00
  • d7369c3bc5 deprecate ForEachClientWeak in favor of new ForEachClient Lion Kortlepel 2022-11-13 12:57:09 +01:00
  • a8ad9034b2 update lk-result Lion Kortlepel 2022-11-13 02:24:59 +01:00
  • b756ce3c3f fix formatting in all files Lion Kortlepel 2022-11-13 00:32:55 +01:00
  • 3f05b72cc2 change internal setting names to set apart categories Lion Kortlepel 2022-11-13 00:30:26 +01:00
  • 152393f8bf switch boost variant for std::variant for settings, for sol2 Lion Kortlepel 2022-11-13 00:29:52 +01:00
  • dd36299436 add lk/result to includes Lion Kortlepel 2022-11-13 00:29:12 +01:00
  • da65e97ed1 add lk/result Lion Kortlepel 2022-11-13 00:27:57 +01:00
  • 4cc163ea1c switch to c++20 Lion Kortlepel 2022-11-13 00:25:06 +01:00
  • 01bcc3d18c replace all clocks with a generic TimeType Lion Kortlepel 2022-11-11 21:58:00 +01:00
  • c7f6835702 use high_resolution_clock instead of system_clock Lion Kortlepel 2022-11-11 21:49:54 +01:00
  • 0327b41611 change to system_clock for times converted to time_t Lion Kortlepel 2022-11-11 21:40:04 +01:00
  • 48135f4544 add new onShutdown timing to changelog Lion Kortlepel 2022-11-11 21:33:06 +01:00
  • 0411ba533d change onShutdown to be called before all players are kicked Lion Kortlepel 2022-11-11 21:28:20 +01:00
  • 41dd4ff678 add version to changelog Lion Kortlepel 2022-11-11 21:05:20 +01:00
  • e1c2d0d5fb add version command Lion Kortlepel 2022-11-11 21:04:42 +01:00
  • 69c2868025 fix server not closing after detecting an invalid config (fixes #151) Lion Kortlepel 2022-11-11 19:40:37 +01:00
  • c8ca4564a1 fix error which complains about AuthKey not being present before reading the config file Lion Kortlepel 2022-11-11 19:39:08 +01:00
  • 0c6112c28a add boost to requirements in README for windows Lion Kortlepel 2022-11-10 19:40:48 +01:00
  • 4860849f2f add boost-uuid to vcpkg on windows Lion Kortlepel 2022-11-10 19:39:50 +01:00
  • 3bd67d959f handle all exceptions which happen inside a logging macro Lion Kortlepel 2022-11-10 19:13:43 +01:00
  • 13a86d3e77 add explanative debug messages to parse errors in GetPidVid Lion Kortlepel 2022-11-10 18:52:37 +01:00
  • dff94a41be fix potential out of bounds exception in GetPidVid Lion Kortlepel 2022-11-10 18:51:43 +01:00
  • 79ee5915b4 fix unhandled out of bounds in Authentication Lion Kortlepel 2022-11-10 18:50:58 +01:00
  • 3fcf23977b fix fix for out-of-bounds crash, add disconnect messages to some failure conditions Lion Kortlepel 2022-11-10 18:41:22 +01:00
  • 487917482f fix out-of-range crash in SendFile Lion Kortlepel 2022-11-10 18:13:20 +01:00
  • 2ca39a7368 fix cmakelists Lion Kortlepel 2022-11-07 23:08:20 +01:00
  • 9d8aeef423 refactor of vehicle packet handling 20dka 2022-11-07 22:04:17 +01:00
  • dee7f74906 remove unused PPSMonitor parameter 20dka 2022-11-07 16:13:39 +01:00
  • 66f014ae42 add autocomplete for lua,kick,settings commands 20dka 2022-11-07 16:04:27 +01:00
  • 12245d81a1 fix compilation error and use boost for string lowercase 20dka 2022-11-07 16:02:45 +01:00
  • a6e0332e3c add command 'quit' as alternative to 'exit' 20dka 2022-11-07 15:49:22 +01:00
  • c461a63d9d update client pointer lock approach 20dka 2022-11-07 15:42:54 +01:00
  • 69726a9b03 add owner check to other vehicle packets 20dka 2022-11-04 23:40:52 +01:00
  • 9acb6951d6 add owner check to position packets 20dka 2022-11-04 23:39:11 +01:00
  • 6ebfe5743c add :Wait(timeout_s) function to the result of MP.TriggerGlobalEvent Lion Kortlepel 2022-11-06 02:16:55 +01:00
  • 3c138e2891 change date format from d/m/y to Y/m/d Lion Kortlepel 2022-11-06 01:40:55 +01:00