Commit Graph
58 Commits
Author SHA1 Message Date
Andreas Maerten 7ce99f9ef6 fix(GtaDataService): Rebuild Cache button not working (#3411)
Changes:
- Switch from pointer singleton to pre-instanced singleton
- Added default constructor to cache_file object
- Fixed an issue where maps and vectors would not be cleared before (re)generating a cache.
2024-07-23 20:15:19 +02:00
gir489 f66f96295b Project include cleanup (#3404) 2024-07-23 13:40:30 +02:00
Andreas Maerten 99afa8dfbb refactor!: Rewrite of the old notification service (#2866)
The main goal was improving the readability of the original code however some ugliness remains.

- Swapped from pointer singleton to instance singleton
- Actually make use of the alpha logic that used to be present
- Added a counter to notifications to indicate if something is being spammed
- Notification timeouts reset if they're sent to the queue again
2024-03-23 00:04:49 +01:00
Andreas Maerten e46bb8884b fix(Logger): not logging anymore after setup is done (#2858)
Regression introduced in #2492
Closes #2773
2024-03-21 22:22:33 +01:00
Andreas Maerten 88036b91da refactor: switch RAGE_JOAAT with string literal functions (#2806)
Why? Shorter to write and removes the macro usage

I used the following regex to find all occurrences:
```r
RAGE_JOAAT\("(.*?)"\)
```
then the following to replace it all:
```r
"$1"_J
```
2024-03-12 09:42:11 +01:00
Andreas Maerten 681d6590a8 feat: Add menu onboarding to YimMenu (#2492) 2024-02-23 22:54:25 +01:00
Andreas Maerten 1064077b9c feat(renderer): added dynamic font loading based on lang requirements (#2738)
Related YimMenu/Translations#117
Closes #2723

Changes made:
 - Renderer class was changed to a static instance
 - Some throw code was removed because of change of instantiation of the renderer
 - Fonts are dynamically loaded based on the language requirements
 - renderer files have been moved to make the root directory less messy
 - Added a font mgr to improve the ease of adding more language support
2024-02-21 21:26:29 +01:00
Andreas Maerten 792d451a88 fix: issues with proton installations (#2711) 2024-02-13 00:16:10 +01:00
gir489 59441b822c Fixed memory leak caused by not releasing the memory from GetWindowsVersion. (#2699) 2024-02-10 21:34:30 +01:00
gir489 3845d765f1 Fixed Fonts. (#2698)
Added Windows Build Info to log.
2024-02-10 20:50:27 +01:00
Quentin 0f083113c9 feat(log): print if debug build (#2695) 2024-02-09 22:02:30 +01:00
maybegreat48 22e15e95d6 Optimizations (#2649)
* fix(Respawn): fix respawn in SP
* fix: re-enable bigobj
* fix: update creator's stack size
* fix: use BOOLs instead of bools
* fix(gitignore): hide .pyc files
2023-12-29 17:07:00 +01:00
Quentin 22e2c36249 feat(lua): expose io.open (limited to scripts_config folder) (#2495) 2023-12-08 09:14:57 +01:00
yubie cf02476c58 fix(anticheat): Fix AC bypass not working when injecting too early (#2473) 2023-12-02 17:31:09 +01:00
yubie 60887cb816 feat(anticheat): Anticheat bypass improvements (#2463)
- Add more metrics to bad_metrics set
- Add MM Filtering (This metric shouldnt be normally called anyway)
- Improve QD Hook to increase AC verifier delay when detected
- Removed gameskeleton hook in favor of patching ac at init
- Added tamperactions check to gameskeleton patcher
2023-11-30 10:47:39 +01:00
Andreas Maerten eadbc585b1 chore: remove migration code (#2424) 2023-11-16 23:43:04 +01:00
DayibBabaandYimura fba0098ca3 Xml Map Loader (Menyoo) (#2233)
Co-authored-by: Yimura <[email protected]>
2023-11-04 00:23:37 +01:00
Andreas Maerten 487da0ac76 refactor: Implement HTTP client with proxy support (#2146) 2023-10-30 21:18:32 +01:00
Quentin 0813fa50d8 Small refactor: main start/cleanup threads logic (#2142) 2023-09-18 23:13:46 +02:00
DayibBaba a1daa92665 Ped animations interface (#1668) 2023-08-04 14:43:35 +02:00
gir489 06cf2a579e Redesigned Debug Globals. (#1696) 2023-07-13 18:42:21 +02:00
Quentin 21277e4039 Fix(lua / script manager): Potential fix for stack overflow when yielding from lua scripts. Fix io / os lua libs being accessible. (#1681)
* fix(script-mgr / lua): first kill all scripts, then unload lua modules: because the lua scripts depend on lua state (which is stored inside lua module instance), killing the lua module first would not allow proper cleaning because of the lua state getting destroyed while the lua script might still be running.

* fix(unloading): Why even reset the fiber pool here?

* fix(lua): don't allow for io / os lua lib to be accessed for security reasons.

* fix(lua): Potential fix for C stack overflow error by using lua coroutine yielding instead of calling fiber yield directly from lua functions.

* feat(unloading): allow to unload in the main title screen. Also revert https://github.com/YimMenu/YimMenu/commit/309c37460208d23402b17e8b252e379434e2fe8d due to fiber pool being potentially exhausted, we want commands to have their cleanup code ran in priority.
2023-07-11 09:24:44 +02:00
Andreas Maerten 5c6fb1064b refactor!: File Manager (#1633)
* feat(vscode): added launch.json to dbg
* feat(file_manager): Make use of a global instance
* feat(file_manager): Allow for file and folder instances to be empty
* refactor(GlobalsService): Update code of global service (untested)
2023-07-08 17:54:59 +02:00
DayibBaba f71f899e6b Xml vehicles (Menyoo) (#1594) 2023-07-07 11:11:54 +02:00
maybegreat48 11cd9ab004 Mission fixes and modder detection improvements (#1598)
* feat(protections): improve protections
* fix: fix mission start
2023-07-05 09:30:06 +02:00
Quentin ed18f7e70d Lua: refactor script api, more doc, add button for Open Lua Scripts Folder (#1588)
* lua manager: pass down the scripts folder to the instance instead of hard coding calls to the file manager everywhere
* lua: add open lua scripts folder button
* lua api: change script binding so that user cannot by mistake try to sleep or yield in a non script context
2023-07-03 13:01:12 +02:00
Andreas Maerten 346960b012 refactor!: General changes (#1578)
- Removed try catch from main.cpp for better error logging
- Added migration code to the YimMenu folder
- Renamed globals to settings
- refactor!: changed symlink
2023-07-02 00:52:36 +02:00
maybegreat48 f1f5d4f6c0 Set menu language to game language on first run (#1577)
* feat(translations): set menu language to game language on first run
* fix(translations): add exception handlers
* fix: more exception handlers
2023-07-02 00:25:40 +02:00
maybegreat48 1d75981731 Tunables service fix and theme changes (#1507) 2023-06-23 08:43:44 +02:00
Sainan 4b73b46053 Fix copy-paste error (#1446) 2023-06-17 15:17:46 +02:00
maybegreat48 03c1a96b67 Lua Scripting (#1334)
Closes #83
Fixes #1309
Fixes #1287
Fixes #1129 (actually fixed now)
2023-06-06 09:40:40 +02:00
Andreas Maerten c9fc44e06b refactor(PlayerDB): Improve code (#1313)
This PR includes some improvements to the player DB service:
 - Added `Get Gamer Online State` function pointer
 - Added sorting of players alphabetically and grouping of players by their online state
 - The player DB service will now update 32 players at a time for their online state
 - Player entries will automatically save when changing any data from them
 - Update the player online states every 5min
2023-05-01 22:23:07 +01:00
DayibBaba 5299fe52ef Squad Spawner (#1250) 2023-04-23 16:23:00 +01:00
Quentin E. / iDeath 5a4dc03121 Feat ptr cache continued (#1227) 2023-04-14 17:54:07 +01:00
DayibBaba 7c912885fe feat: Vehicle control & Summon (#1175) 2023-04-05 18:54:29 +01:00
Aure7138 205836dd74 feat(cache): expand ped (#1156) 2023-04-01 17:37:26 +01:00
DayibBabaandYimura 8ad4cf01dd Orbital Drone Feature (#1148)
* Orbital Drone Feature

* Fixed PR review comments

* chore: cleanup code

* UI & globals saving

* Fixed typo

* Fixed noclip conflict & Applied review suggestions & Added another changeable variable

---------

Co-authored-by: Yimura <[email protected]>
2023-03-30 00:37:10 +02:00
Aure7138 92085b4398 Hotfix outfit random component crash (#1124) 2023-03-20 13:23:43 +01:00
TheGreenBandit 808640181d Several feature additions (#889)
* Added Infinite Range
* Added Fill Ammo
* Added Aim Assist
* Added Hud Color Options
* Added Clear Wanted Level
* Added Health Regen
* curly brackets in invisibility
* Added hotkeys
* Improved Increased Damage
2023-03-13 21:10:21 +00:00
maybegreat48andYimura 97a8c5d60b Add more spoofing options and added clang-format (#1020)
* feat(Spoofing): add spoofing
* feat(Spoofing): prepare code for player attach
* remove(PlayerAttach): isn't going to work due to netsync architecture
* fix(GUI): fix scaling
* feat(Project): add clang-format file
* feat(Classes): update classes
* fix(BlackHole): remove unnecessary cleanup
* fix(Formatting): fix formatting for initializer lists
* feat(clang-format): Set tab width and 1 space before comment

Co-authored-by: Yimura <[email protected]>
2023-03-01 21:27:15 +00:00
c4a85050a6 feat(logger): use AsyncLogger instead of g3log (#882)
* feat(exception_handler): skip certain exception codes
* feat(zydis): Disable BUILD_DOXYGEN and FEATURE_ENCODER
* feat(cmake): link dbghelp
* feat(exception_handler): implement stack dumper
* feat(logger): differentiate between wine and non-wine
* feat(logger): add NO_COLOR env var support
* fix(logger): fix wine logging (#960)
* feat(exception_handler): added string logging of exception
* fix(logger): exception access violation NO_COLOR

--------

Co-authored-by: Aure7138 <[email protected]>
Co-authored-by: tupoy-ya <[email protected]>
2023-02-08 22:36:55 +00:00
8028db84b3 feat: Translation Service (#844)
Co-authored-by: mrwoowoo <[email protected]>
Co-authored-by: LiamD-Flop <[email protected]>
2023-02-01 18:46:33 +00:00
maybegreat48 8173adb87f Toxic features and improve protections (#897) 2023-01-22 21:57:32 +00:00
maybegreat48andYimura ce5c317d87 Commands (#725)
* feat(Commands): Prototype command system
* feat(Commands): Chat commands
* refactor(Toxic): convert most options into commands
* feat(Protections): block breakup kicks on other players as host
* refactor(Kicks): convert most options into commands
* refactor(Commands): add labels and descriptions to all commands
* feat(Commands): cleanup on unload
* refactor(Troll): convert most options into commands
* refactor(Misc): convert most options into commands
* refactor(Teleport): convert most options into commands
* feat(Commands): Variadic commands and toggleable bools
* feat(Hotkeys): hotkeys now use commands
* fix(Chat): fix the chat window locking up when a message is sent
* fix(Commands): properly handle spoofed username
* fix(Spam): update filter

Co-authored-by: Yimura <[email protected]>
2022-12-22 21:23:32 +00:00
Yimura 20e53e620f fix(globals): keep thread running (#721) 2022-12-18 23:22:01 +00:00
Yimura ddddbd4efd refactor!: globals (#717)
* refactor(globals): use macro's for to_json/from_json
* refactor(globals): switch from global pointer to global instance
2022-12-18 22:15:52 +00:00
BugisoftandYimura ac94dd5311 feat(Api): Implemented SCUI Api (#712)
* feat(Api): Async joining via rid joiner
* feat(cmake): disable cpr tests

Co-authored-by: Yimura <[email protected]>
2022-12-17 16:24:45 +00:00
Yimura d624f1aaa1 refactor: Renderer (#694)
* Simplified SwapCHain, Device and DeviceContext pointers
* Added DX and WndProc callback registration
* Cleaned up GUI code
* Optimised Mouse Toggle
2022-12-16 17:55:55 +00:00
Yimura a17aed317e feat(cmake): embed git info in binary (#644) 2022-11-28 17:19:03 +00:00
Aure7138andYimura 89ad2755ac feat(services): added hotkey_service (#634)
Co-authored-by: Yimura <[email protected]>
2022-11-26 17:29:14 +00:00