66 Commits

Author SHA1 Message Date
Arthur
6d77b81343
feat(debug): Add Tunables Tab (#3431)
Added a Tunables tab similar to Globals/Locals that can be used to read and write tunables by inputting their unsigned/signed or hexadecimal hash, as well as their pre-joaat name. It also displays the offset of the given tunable.

Removed the animation players in the Debug tab as the one in the Self tab makes them redundant.
2024-07-26 11:05:47 +02:00
Arthur
f16f35d6e0
Refactor Debug Threads & Expose More Functions (#3408)
- Added a search box for the script names in Debug -> Threads.
- Added `is_session_started` and `force_script_on_player` functions to the Lua network class.
- Added `is_active` and `start_launcher_script` functions to the Lua script class.
- Moved `view_stat_editor.cpp` to `src/views/network` from `src/views/settings`.
- Added a help text for directly editing the sliders in outfit editor.
2024-07-23 15:34:30 +02:00
gir489
e08ab4ca80
Project include cleanup (#3404) 2024-07-23 13:40:30 +02:00
maybegreat48
61ddba1634
Update for b3258 (#3288)
* fix: update script names
* fix: use original chat sender
* feat(tunables): fix tunable service
* fix: explode patch (thanks @Mr-X-GTA)
* fix: fix compile errors
* fix: use unique_ptr
* Added 1.69 vehicles.
* Added new weather for 1.69 and updated stack sizes.
* Fixed garage.
* Made Unload button a developer-only feature. (Disabled on Release)
* Redesigned Network tab to not be a giant mess.
* Added new json_serializer code from @tupoy-ya.
* chore: correct dependency

------

Co-authored-by: maybegreat48 <email@hostname>
Co-authored-by: Andreas Maerten <24669514+Yimura@users.noreply.github.com>
Co-authored-by: gir489returns <redacted@example.com>
2024-07-03 23:04:06 +02:00
maybegreat48
4589b87553
Menu revamp (#3274)
* Complete player and network UI redesign, meant to show all features instead of stuffing them into tiny boxes
* Added option to delete player vehicles
* Better clone player (now clones head blend too)
* Better host token spoofing, with an option to enter your own
* Better host token spoofing detection
* Better desync kick prot detections
* A script blocker for the entire session (per-player options will be added later)
* Added option to spoof data/DLC hashes
* Logging framework that allows developers to easily debug false positives
* Major protection improvements
2024-06-27 10:32:17 +02:00
gir489
254f64f1af
Added filtering system to prepare_metric_for_sending. (#3139) 2024-05-19 00:04:12 +02:00
gir489
73120c6b94
Added file-based log to debug.packet_logs. (#3127) 2024-05-15 19:54:34 +02:00
maybegreat48
29f226b316
Assorted fixes (#3073)
* feat: unstuck more when removing blackscreen
* fix: make kicks more versatile
2024-05-09 11:05:56 +02:00
R.K
499fc6b906
[Workaround]: Remove Start LS Customs Button from LS Customs Menu (#3065) 2024-05-06 22:19:38 +02:00
Andreas Maerten
cba19d0c33
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
e07601347d
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
d4d504dca2
feat: Add menu onboarding to YimMenu (#2492) 2024-02-23 22:54:25 +01:00
maybegreat48
1127e51a52
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
gir489
695a6dd20e
Fixes for b3095 (#2537)
* Refactored TRIGGER_SCRIPT_EVENT for the duplicate f_2 argument they added in 3095.
Fixed OOB gadget spam caused by the tow truck.
Increased max interiors in InteriorControl.
* Updated scripted_game_event.
* Update GTAV-Classes repo.
* Fixed locals for 3095.
* Bump project to Build 3095.
2023-12-14 00:56:40 +01:00
gir489
b7b901d77f
Fixed TRIGGER_SCRIPT_EVENT for 3095. (#2527) 2023-12-13 19:32:26 +01:00
gir489
3b9413db92
Input sanitation for Debug Locals (#2505) 2023-12-12 09:19:51 +01:00
gir489
b9b49790e7
Various Debug Locals fixes. (#2426)
* Fixed Debug -> Locals crashing if the user added an invalid Local Read.
Fixed Debug Local addendum being way too wide on the page.

* Added the same boundary check for Debug -> Globals.
2023-11-19 22:46:44 +01:00
gir489
48e83d9d5d
Clone Debug Globals into Debug Locals (#2419)
* Copied code from Debug Globals to Debug Locals.
Redesigned components::input_text to return the InputText result, and add an overloaded method to take a std::string.
Fixed Debug Globals having static text and not using components::input_text to prevent sending the input to the game.
Fixed view_debug_threads::thread_states not properly ending its string causing ImGui to read more than it should from memory.
Made Debug Globals cap the input index to UINT32, as the user could potentially overflow the get_ptr function and cause the game to crash.

* Removed extraneous does_thread_exist deceleration.
2023-11-16 14:17:46 +01:00
gir489
1193c0a520
feat: Improve Debug/Globals interface to match Debug/Locals (#2409) 2023-11-12 00:26:36 +01:00
Andreas Maerten
d2005ec42d
fix: thread pool rescaling incorrectly (#2357) 2023-10-31 20:21:40 +01:00
gir489
37468ca7b0
Converted all static strings to translation keys. (#2284) 2023-10-20 18:24:44 +02:00
gir489
d6c32533be
Fixed LOCAL_CPED translation keyword not being in all uppercase. (#2274) 2023-10-13 17:01:25 +02:00
gir489
347f33fb2d
Disable input when typing into a text field. (#2140)
Closes #2139
2023-09-17 22:23:26 +02:00
maybegreat48
5eead0436f
Huge protection improvements and other stuff (#1963)
* feat(protections): add a fuzzer
* feat(protections): improve protections
* feat(spoofing): add warning
* feat(world): force object cleanup
* fix(weapons): fix custom weapon code
* fix(weapons): fix for #1983
2023-08-19 13:01:08 +02:00
DayibBaba
ee364cd684
Ped animations interface (#1668) 2023-08-04 14:43:35 +02:00
gir489
9cd37dd81b
Use ImGui::SetClipboardText instead of inline function. (#1902) 2023-07-31 23:39:40 +02:00
gir489
cb4652b241
Debug: implement debugging tools for scripts (#1899)
Closes #1664
2023-07-31 22:34:10 +02:00
Andreas Maerten
96493b5a22
refactor!: Modify command argument handling and move on_ method to bool_command (#1826) 2023-07-26 22:22:40 +02:00
Andreas Maerten
17d3ad7658
refactor: make window hook into a bool command (#1824) 2023-07-23 22:52:30 +02:00
gir489
42d7714d48
Fixed Debug Locals using improper casting for the float scenario. (#1823) 2023-07-23 19:54:01 +02:00
gir489
65a5dbd88e
Fixed typo in view_debug_locals that caused freezing floats to inject garbage. (#1820) 2023-07-23 18:38:22 +02:00
gir489
81bd1f9dc7
Fixed Debug Globals displaying value as a 64-bit integer and not a 32-bit integer. (#1761)
Resolves #1760.
2023-07-18 20:46:38 +02:00
maybegreat48
61bb60d1f4
Player database improvements (#1705)
* feat(protections): add per-player sync block options
* feat(player_database): improve player tracker
* fix(rapid_fire): remove unnecessary log statement
* fix(player_database): default state should be UNKNOWN, not INVALID
2023-07-14 11:02:47 +02:00
gir489
5770466a84
Redesigned Debug Globals. (#1696) 2023-07-13 18:42:21 +02:00
Quentin
0c050d82c9
Log GTA error message boxes and don't make them close the game. (#1671)
* refactor: move utf 16 to code page string conversion to its own util file

* feat(error-handling): log error message box generated from gta.
2023-07-10 19:01:34 +02:00
Andreas Maerten
f13eab76a6
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
Quentin
d1e839651b
Fix lua native bindings and lua script reload (#1575)
* fix: script manager and lua scripts: change the api so that the m_scripts array is only modified in a specific safe location: before it gets ticked.
* fix script manager: don't expose the script vector directly, for multithreading safety
* fix lua manager usage: don't iterate the module array without locking, nor un/load module from a script thread
* lua script: only do actual loading of lua modules in script mgr
* lua native bindin: fix pointer parameters, out C style parameters are returned as multiple return values lua-style
2023-07-01 22:40:17 +02:00
DayibBaba
5fc6ef8fb5
General UI tweaks (#1538) 2023-06-27 14:05:44 +02:00
tupoy-ya
1eae251012
feat(Outfit Editor): Add [+] & [-] buttons (#1441)
* And other general UI improvements
2023-06-23 10:44:06 +02:00
maybegreat48
5e0efaaed5
Tunables service fix and theme changes (#1507) 2023-06-23 08:43:44 +02:00
Rxann
ffc955f6c1
chore(debug misc translations) (#1331) 2023-06-10 15:21:57 +02:00
Andreas Maerten
118c9acedc
fix(Debug/Threads): can't switch to later tabs (#1378) 2023-05-28 17:36:15 +01:00
DayibBaba
6d9026e26b
Added dev tool for animations (#1332) 2023-05-10 22:29:40 +01:00
Takoyaki White
c2c776553f
Fix DEBUG_REMOVE_FROM_BAD_SPORT (#1296) 2023-04-26 19:16:41 +01:00
DayibBaba
a908b3fbc8
Squad Spawner (#1250) 2023-04-23 16:23:00 +01:00
DayibBaba
530a798d62
Improved does_script_exist() and local editor (#1265) 2023-04-20 20:07:16 +01:00
maybegreat48
3c2245f780
General fixes (#1251) 2023-04-16 19:28:49 +01:00
Quentin E. / iDeath
74c3931209
Feat ptr cache continued (#1227) 2023-04-14 17:54:07 +01:00
DayibBaba
31d2db48df
Locals editor (#1211) 2023-04-11 20:36:43 +01:00
DayibBaba
96d1c26242
feat: Vehicle control & Summon (#1175) 2023-04-05 18:54:29 +01:00