Commit Graph

80 Commits

Author SHA1 Message Date
Tixx a8a4dfb77c Fixed GameDir location issues. (#152)
I couldn't launch the game without this.

---

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-12-23 23:00:47 +01:00
Winos f2b86cd5a0 Improved error handling as requested. 2024-12-16 09:10:54 -03:00
Tixx 3e7d16a8e8 Update Check for Game Files on Native Linux (#92)
Beforehand, the launcher would check only if the game directory existed.
This would lead to an error if the game was moved through Steam since
Steam leaves the BeamNG.Drive directory behind. Now it checks for to see
if integrity.json is inside. I also removed some commented out code I
seem to have left behind when I was porting it.

I agree to this code (and the whole port to native Linux since the #63
was locked and I couldn't agree there) being licensed under AGPL 3.
2024-12-14 20:47:58 +01:00
Winos 63aee03969 Update BeamNG.cpp
As requested:
- Changed 'string' variables that referred to paths to 'filesystem'.
- Added error log for when a valid 'GameDir' isn't found.

Also readded error log for when 'libraryfolders.vdf' is missing for better contextualization for the 'basic_string::_M_replace_aux' error (the code doesn't reach the GameDir segment when that file is not found).
2024-12-10 20:10:07 -03:00
Tixx 46e6fda26e Update license header 2024-12-07 11:26:09 +01:00
Winos 89327b8e20 Update src/Security/BeamNG.cpp
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
2024-12-06 15:03:25 -03:00
Winos ebf1579ce4 Update src/Security/BeamNG.cpp
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
2024-12-06 15:03:19 -03:00
Winos a06470cb70 Update src/Security/BeamNG.cpp
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
2024-12-06 15:02:07 -03:00
Winos 80a3feb349 Update src/Security/BeamNG.cpp
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
2024-12-06 15:02:00 -03:00
Winos ec1a09bbcb Fixed GameDir localization issues.
I couldn't launch the game without this.
2024-12-05 03:56:13 -03:00
Tixx e0041666ca Clarify and change auth message log 2024-11-05 10:26:10 +01:00
Tixx ed686333ec Print message from auth 2024-11-05 10:15:10 +01:00
Pranay Sanghai 43b02f0118 Update Check For Game Files
Beforehand, it would check only if the game directory existed. This would lead to an error if the game is moved through Steam since it leaves the BeamNG.Drive directory. Now it checks for integrity.json. I also removed some commented out code I left behind.
2024-10-12 21:15:10 +02:00
Lion Kortlepel 0c68f91fb2 remove debug print 2024-10-04 23:22:50 +02:00
Lion Kortlepel 85908e42d5 fix download code, error checking 2024-10-04 23:12:23 +02:00
Lion Kortlepel 02465c529d add more logging to exit 2024-09-23 22:08:45 +02:00
Lion Kortlepel c68cbf8946 remove unused """security""" code 2024-09-23 22:04:34 +02:00
Lion Kortlepel 97f58dd413 add better error handling to main() 2024-09-23 21:58:27 +02:00
Tixx e505874af9 Send id from auth to game 2024-08-11 11:39:14 +02:00
Lion Kortlepel a82b9fb36f reformat 2024-06-17 22:01:15 +02:00
Lion Kortlepel 05ffa0b638 Merge branch 'linux' 2024-06-17 21:57:41 +02:00
Lion Kortlepel c0df995e28 fix perms on all source files 2024-03-22 10:47:08 +01:00
Lion Kortlepel 8c9d3a5455 fix not returning error from Login, remove old code 2024-02-24 20:26:26 +01:00
Lion Kortlepel bd4cfe06b1 reset username and role on logout 2024-02-24 20:26:26 +01:00
Lion Kortlepel 9c7034e401 store username and role on key login as well 2024-02-24 20:26:26 +01:00
Lion Kortlepel aeb167c1e8 forward user's role on login 2024-02-24 20:26:26 +01:00
Lion Kortlepel 250be2ccdc fix more breaking bug 2024-02-24 20:26:26 +01:00
Lion Kortlepel 6158069d4d fix game breaking bug 2024-02-24 20:26:26 +01:00
Lion Kortlepel b2e5b8d2d3 print error when throwing exception in auth 2024-02-24 20:26:26 +01:00
Lion Kortlepel 5db1b48e07 Revert "debug print error in case of unexpected login error"
This reverts commit 68d64105de.
2024-02-24 20:26:26 +01:00
Lion Kortlepel 56dcfcc5ed debug print error in case of unexpected login error 2024-02-24 20:26:26 +01:00
Lion Kortlepel 7c1106a46a add username to auth packet 2024-02-24 20:26:26 +01:00
Anonymous275 3b479abf64 v2.0.84
- add hash check
- new routes for updates
- use C++ 20
2023-12-15 18:16:12 +00:00
Anonymous275 c731718f50 v2.0.84
- HTTP Proxy for backend.beammp.com
- Fix Attempt for mod loading, game detecting partial zip file
- Use nlohmann JSON
- Update vcpkg parameters and commit ID
- Add ability to open URL using default browser with filter
2023-12-15 17:38:47 +00:00
gamingdoom 35ad09dd5f Remove extra newline 2023-10-17 21:01:38 -07:00
gamingdoom 1bf7faa34d fix guest account issue and uppercase mods 2023-10-17 20:40:11 -07:00
gamingdoom 5dfb5f3b88 works but linux build is broken and this is an old version of the source 2023-10-16 22:13:30 -07:00
Anonymous275 d881c9faf6 release 2.0.75 2022-09-05 02:59:05 +03:00
Anonymous275 11d9375f36 fix invalid Key being used 2022-09-05 02:58:22 +03:00
snepsnepsnep 832b1d66a0 remove key if auth is unsuccessful 2022-09-04 20:24:27 +02:00
Anonymous-275 61759b8531 0.23.0.0 support 2021-07-01 18:53:50 +03:00
Anonymous-275 6c673e78e5 Fixed invalid string position, Bumped game version 2021-05-11 22:19:42 +03:00
Anonymous-275 ec3bcffe7c New header only http library 2021-04-04 19:20:25 +03:00
Anonymous-275 289402a9ba Switched to new default userdata 2021-03-29 23:29:03 +03:00
Starystars67 ae6725ece3 Possible fix for new backend linix ~Anonymous275 2021-03-29 19:00:23 +01:00
Anonymous-275 fff747afca Replaced cURL with evpp 2021-03-29 16:43:17 +03:00
Anonymous-275 fbc5e28d25 Mingw Compatible 2021-03-29 11:43:24 +03:00
Anonymous275 ba5ba4b8b4 Partial fix for directory startup location 2021-02-22 20:09:36 +02:00
Anonymous275 8e55edaa29 1.80.92, fixed some startup crashes 2021-01-02 02:02:50 +02:00
Anonymous275 c77f8742b4 Update BeamNG.cpp 2021-01-01 16:40:37 +02:00