220 Commits

Author SHA1 Message Date
gir489
e08ab4ca80
Project include cleanup (#3404) 2024-07-23 13:40:30 +02:00
Andreas Maerten
f62c8c875e
fix(FontMgr): also keep in mind game language when generating font texture (#2892) 2024-07-23 08:47:38 +02:00
gir489
a341753748
Fixes #3341 (#3342) 2024-07-13 13:25:19 +02:00
DayibBaba
b90ce402a1
Expand Cmd Executor (#2884)
Some checks failed
Nightly Build / Check Recent Commit (push) Failing after 5s
Nightly Build / Build Nightly (push) Has been skipped
Nightly Build / Recreate Release (push) Has been skipped
Added additional commands to showcase suggestion system.
Added a new util file to operate on strings in a unified manner.
Changed input_text_with_hint component to allow for more flags than one.
Added more player seeking features to player_service such as get_by_name()

* Fixed out of bounds suggestion navigation

* Added suggestions to spawn_vehicle command

* Created command play_animation

* Added suggestion support for multi commands

using a semicolon allows for more commands to fire at once, and is now supported with appropriate suggestions

* Added rotation to teleport_to_location command

* Fixed stupid error & added multiple raw command auto fills

* Added sanity checks to avoid nullpointers

* Added context identifiers to player commands

* Added temporary self inclusion to player commands

Needs translation on the translations repo

* Applied rudamentary reviews

* Experimental proxy globalization

* Fixed argument sensitivity on spawn vehicle

* Scrapped 2 ideas (maybe for future)

* Added true and false suggestions to bool commands

---------

Co-authored-by: Andreas Maerten <24669514+Yimura@users.noreply.github.com>
Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
2024-07-13 00:26:34 +02:00
Mr-X-GTA
3bffd92839
Bug fixes and improvements (#3324)
Some checks failed
Nightly Build / Check Recent Commit (push) Failing after 4m28s
Nightly Build / Build Nightly (push) Has been skipped
Nightly Build / Recreate Release (push) Has been skipped
* feat: handle exceptions on jumps correctly
* fix(player_db): fix invite player
* fix: remove old stuff
* fix(script__vm): fix script vm crashes
* remove debug code
* fix(scr_globals): fix globals and locals
2024-07-10 13:43:39 +02:00
gir489
cc3bcea9f1
Pull down changes from gtav-classes project. (#3300)
Some checks are pending
Nightly Build / Build Nightly (push) Blocked by required conditions
Nightly Build / Recreate Release (push) Blocked by required conditions
Nightly Build / Check Recent Commit (push) Successful in 13s
2024-07-04 20:34:49 +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
Quentin
10d0e72285
block_join_reasons cleanup (#3290) 2024-06-27 22:11:08 +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
CringeArab
43ddc04dbe
Filters to the player database (#3268) 2024-06-24 20:27:16 +02:00
CringeArab
78b4302721
Chat spam to reaction (#3192) 2024-05-30 20:24:33 +02:00
lonelybud
a568dea653
move session lock logic to handle_join_request (#3136) 2024-05-24 23:20:04 +02:00
maybegreat48
c180694199
Session multiplexer and more (#3167) 2024-05-24 23:17:54 +02:00
maybegreat48
1cc7532a1e
Harass players and spam killfeed (#3161) 2024-05-21 23:28:52 +02:00
Mr-X-GTA
28aae52e72
Protection improvements (#3146) 2024-05-19 20:26:44 +02:00
lonelybud
b693509609
elegant crash complete protection (#3109) 2024-05-15 17:38:48 +02:00
gir489
773f57bacc
Remove redundant nullptr checks in player::get_ped(). (#3095)
* chore(Player): remove `this` keyword

Co-authored-by: Andreas Maerten <24669514+Yimura@users.noreply.github.com>
2024-05-11 23:23:26 +02:00
Mr-X-GTA
f81d40854d
fix: crash in transition (#3091) 2024-05-11 20:43:00 +02:00
HCR-750F
f15cb312e7
feat: Chat translator (#2931) 2024-05-10 21:41:59 +02:00
Muhammad007228
dada469c55
Less noticeable multi-kick => smart-kick (#3066) 2024-05-10 11:51:14 +02:00
Mr-X-GTA
9062491f1d
Fix player list crash (#3080)
* Fixed get_rockstar_id returning an incorrect type.
* Added more OOP usage of get_rockstar_id when applicable.
Co-authored-by: gir489returns <gir489returns@outlook.com>
2024-05-09 23:28:11 +02:00
R.K
01f784de18
Hotfix (#3072) 2024-05-09 11:06:25 +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
gir489
b7d75d4fcd
Sanity checks for get_net_data. (#3068) 2024-05-08 10:33:21 +02:00
R.K
f4449bad99
PlayerDB Delete Untrusted Players (#3053) 2024-05-06 20:51:33 +02:00
HCR-750F
a7934ba357
Add more translation keys (#3024) 2024-05-03 17:29:24 +02:00
gir489
e18efc6180
Fix multiple crashes. (#3035) 2024-05-03 17:28:21 +02:00
gir489
7a25403912
Updated the max characters from 64 characters to 41, which seems to be the maximum the Socialclub API actually saves and returns. (#3014) 2024-05-01 10:54:28 +02:00
gir489
d1d72e54b9
Add motorcycle club, too. (#3013)
* Refactor add_callback_for_labels to take an initializer_list.
2024-04-30 23:17:59 +02:00
gir489
17a7ad65b9
Increased the maximum length of CEO Name from 15 to 64 characters. (#3011)
* Added FMMC_KEY_TIP15 replacement of 15 to 64.
* Removed legacy multiplayer chat filter.
2024-04-30 22:59:52 +02:00
R.K
5fec32df4c
fix(VehicleController): Missing translations (#3004) 2024-04-30 18:13:25 +02:00
gir489
79083e34f0
Fixed commands not working in single player. (#2980)
* Fixed commands not working in single player.

* Code review changes.
2024-04-27 16:10:35 +02:00
gir489
1fa3ef8a45
Added StartScriptBegin protection. (#2962)
* Refactored Script Event Logging to log to a file that's kept open, but flushed each event instead of spamming the console.
* Added Rockstar ID to the Script Event Logger.
2024-04-23 22:48:29 +02:00
Andreas Maerten
ca1e7e6b41
Give optimisation hints to compiler (#2929)
feat(invoker): add compiler hints
chore(get network event data): added translation TODO
feat(native hooks): add compiler hint to crashes
feat(render): add likely compiler hint to on_present
feat(thread pool): add compiler hints
Added hook likely/unlikely switches to debug/crash scenarios.
Added HEX_TO_UPPER call on the AC verifier offsets.
Added more fuzzer unlikely attributes.
Replaced some hard coded numbers with their unhashed _J variants.
Added more unlikely attributes to singleton initializer checks.
Added more likely/unlikely attributes to certain scenarios.
2024-04-22 19:48:22 +02:00
gir489
5703338d67
Fixed vehicles in preview exploding. (#2908)
* Closes #2905

* Fixed set_mp_bitset being called from vehicle::spawned if the is_networked parameter was false.
2024-04-04 09:43:10 +02:00
gir489
6ec9d24743
fix: Vehicle Preview same model hash different actual vehicle (#2904)
Closes #2903
2024-04-02 09:55:13 +02:00
gir489
1f556a8c78
Redesigned the preview system entirely. (#2888) 2024-03-30 18:41:12 +01:00
gir489
0fb17b668e
refactor: Model Preview use time delta instead of frame/tick rate (#2881)
Closes #2880
2024-03-27 14:10:14 +01:00
gir489
6212171fc8
ACTUALLY fixes #2675 this time I swear. (#2879) 2024-03-27 11:33:33 +01:00
lonelybud
cfb011d192
increase navigation_struct name size (#2869)
may fix #2852
2024-03-25 15:38:09 +01: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
maybegreat48
d0c5ffaa40
Use the timestamp when validating cache version (#2834) 2024-03-18 14:33:09 +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
183b0eee44
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
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
Aure7138
8b62dadcd5
Update crossmap and natives.hpp to 3095. (#2565) 2023-12-15 16:01:57 +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
3bf7c034d2
Fixed garage globals for 3095. (#2529) 2023-12-13 19:33:07 +01:00
gir489
b7b901d77f
Fixed TRIGGER_SCRIPT_EVENT for 3095. (#2527) 2023-12-13 19:32:26 +01:00
gir489
efef962fe8
Fix script patch signature causing crash (yubie-re) (#2523)
Redesigned the script patcher to assign the signatures names, so if they fail, it will print out its name.
2023-12-12 23:37:31 +01:00