Commit Graph

1552 Commits

Author SHA1 Message Date
911a3b71e7 fix(ci): native split (#1752) 2023-07-18 09:30:03 +02:00
9dcdf3c00f fix(ci): tentative fix for compiler out of heap space (#1746) 2023-07-17 22:57:14 +02:00
d2d75e5d04 bump gtav-classes dependency (#1748) 2023-07-17 22:45:18 +02:00
14f4241bd8 feat(lua): much more complete imgui bindings, allow lua imgui callbacks from outside yimmenu classic tabs through gui.add_imgui(func) but also inside yimmenu classic tabs through tab:add_imgui(func) (#1736) 2023-07-17 14:55:42 +02:00
5a76164d43 fix(lua): better exception handling (#1734) 2023-07-16 23:32:34 +02:00
2a81a041cf Fixed issue #1727 DIRT_LEVEL is calling natives inside the presentati… (#1732) 2023-07-16 23:31:27 +02:00
7a00db1c46 feat(Dbg): disable GTA window hook (#1733) 2023-07-16 22:21:19 +02:00
152642cf1b Refactored Allow All Weapons In Vehicle to force all vehicles to use … (#1730)
* Refactored Allow All Weapons In Vehicle to force all vehicles to use all GROUPs.
* Refactored project to not depend on src/gta files that already exist in the GTA-V-Classes project.
* feat(cmake): bump GTAV-Classes
2023-07-16 18:24:40 +02:00
8c097f0915 fix(cache): weapon cache weapon types array not filled properly when filling from cache file (#1726) 2023-07-16 12:04:24 +02:00
d12c1309c4 feat(Protections): Added buttons for controlling the states of protections (#1717) 2023-07-15 23:19:38 +02:00
4cbea87b16 feat(Vehicle): Added vehicle dirt control (#1714) 2023-07-15 22:58:09 +02:00
2b6cb52986 More player database improvements (#1725) 2023-07-15 22:37:20 +02:00
c161ee9413 fix(lua): log not supported lua functions (#1722) 2023-07-15 22:07:10 +02:00
1b52f4ee7c Add more requests and reorganize network tab (#1709) 2023-07-15 00:57:30 +02:00
8974300e78 feat(ScriptGlobal): Allow for constexpr offset calculation (#1721) 2023-07-15 00:55:09 +02:00
a57027b198 Tp, Paintgun, refractor rainbow controller, refractor raycast (#1708) 2023-07-14 23:31:03 +02:00
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
5770466a84 Redesigned Debug Globals. (#1696) 2023-07-13 18:42:21 +02:00
05a917bbbb fix(rapid-fire): fix rapid fire for some reason not shooting from the weapon position but instead from the cam. Fix rapid fire not being available in vehicles. (#1700) 2023-07-13 16:50:30 +02:00
f26514f8e4 fix(lua) (#1697)
- sandbox stuff.
- Fix lua scripts that could run when their lua state was destroyed, causing chaos.
2023-07-13 09:36:13 +02:00
f09b1cbda3 General improvements (#1693)
* remove(replay): remove replay interface
* fix(context_menu): better console controls
* feat(protections): improve protections
* feat(protections): actually fix parachute crash
* feat(protections): kick rejoin
* feat(context_menu): more context menu stuff
2023-07-12 19:03:29 +02:00
c570df8e48 Fixed Weapon Hotkeys and introduced Hold For Boost to Boost. (#1692)
* Fixed #1690.

* Added Hold For Boost to Boost Behavior.

* Added Teleport into Personal Vehicle and Toggle Vehicle Fly Mode as hotkeys.

* Fixed pvtp command not working if you were inside a building.
2023-07-12 18:55:53 +02:00
400556c63a fix(mobile): PV summon timer (#1689)
* feat(script_local): allow for global single instance definition
2023-07-11 23:53:15 +02:00
17c8ab0e68 chore: remove chat profanity bypass (#1688)
Closes #1682
2023-07-11 23:14:46 +02:00
098b15eca6 Weapon Hotkeys (#1685) 2023-07-11 23:14:35 +02:00
47891cbcae chore(CanApply): remove notifications for sector and train prots (#1679)
* chore(CanApply): remove notifications for sector and train prots

* revert: partial revert

@maybegreat48 will be implementing a fix for the false positives.
2023-07-11 10:02:55 +02:00
15745eebe1 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 309c374602 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
9d756f6936 fix(session): hard lock when switching too early (#1678) 2023-07-10 23:06:08 +02:00
a2609bbdc6 fix(gui): dont draw two gui separators at the top for lua only tab. (#1677) 2023-07-10 20:37:28 +02:00
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
5ddf1c1d90 fix lua gui: imgui Separator between modules instead of same line which is non sense (#1672) 2023-07-10 19:01:01 +02:00
2f1f094b89 feat(GTA Cache): removed unused old code (#1663) 2023-07-10 00:40:47 +02:00
ee61858489 Custom teleport sub tab (#1652) 2023-07-09 23:03:05 +02:00
7f777900a1 Persist Weapons (#1647) 2023-07-09 23:01:42 +02:00
95f1db0894 fix(cache): ignore modded rpfs. (#1651) 2023-07-09 16:05:41 +02:00
a83bc4f44c fix(cache): change how the game folder is retrieved, use GetModuleFileNameW instead of std::filesystem::path (#1645) 2023-07-08 18:13:19 +02:00
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
6f40a38045 Refactored weapons.bin into weapons.json for extensibility and readability. (#1632)
* Refactored weapons.bin into weapons.json for extensibility and human readability.
Added weapon attachments scraping from the meta files (currently is missing a lot of attachments, more than half, requires RPF reading refactoring to fix.)
Added Ammunation to Self -> Weapons, because it's vital you protect yourself, the patriotic way.

* Fixed weapons.xml not properly populating all the components.
Refactored buttons to use components::button.

* Refactored the Attachments code to implicitly trust that the attachments will be there now.
Added proper versioning to the weapons.json file.
Removed debug logging from gta_data_service.cpp.

* Fixed Ammunation buttons.
Added loading message for the new weapons.json system.
Fixed a bug where two components shared the same name, the user could not select the 2nd component.
Fixed Attachments displaying an attachment from a previous weapon if the user changed weapons.

* Fixed Tint Apply button not using the components::button template.
2023-07-08 00:52:52 +02:00
f10c698396 fix(cache): fs::path.string() can throw when it try to convert windows utf16 wstring to multi byte std::string when user code page isnt utf8 (#1641) 2023-07-08 00:16:29 +02:00
5ffe6c7d3b Xml vehicles (Menyoo) (#1594) 2023-07-07 11:11:54 +02:00
c121e72eb6 Fix GTA data service (#1635)
* fix(gta_data): service now parses unloaded RPF files
2023-07-07 07:57:38 +02:00
ac302d2bbb fix(PlayerInfo): money overflow (#1631) 2023-07-06 21:58:46 +02:00
bae5d3adfd refactor(PlayerList): height calculation code +horizontal scroll fix (#1629)
Fixes #752
2023-07-06 20:35:42 +02:00
c571f5a1e7 fix(CmdExecutor): Set sizing of input w/ frame padding (#1618) 2023-07-06 07:46:42 +02:00
6dc7da4dbe Fix windows that shouldn't move (#1617)
* fix(overlay): don't move while menu closed
* fix(CmdExecutor): don't move by user input
2023-07-05 23:54:06 +02:00
6ea93ee333 feat(Vehicle Controller): Added vehicle window controls (#1607)
* feat(Overlay): Added Invisibility indicator and its able to save on unload
* feat(Vehicle Controller): Added vehicle window controls
2023-07-05 23:51:19 +02:00
a0beeea767 Added Always Full Ammo. (#1616) 2023-07-05 23:29:07 +02:00
cbc80e6caf Mission fixes and modder detection improvements (#1598)
* feat(protections): improve protections
* fix: fix mission start
2023-07-05 09:30:06 +02:00
167e1f8d54 Lua documentation: commands (#1595)
* lua api: fix command call null context

* lua doc: generate commands doc
2023-07-05 00:31:06 +02:00
89f57a9a4c Lua: can make new tabs from lua scripts, doc generation for available tabs to use (#1593)
* lua api: add globals.get_uint and globals.set_uint

* lua doc: remove duplicate function check as we can overload so it doesn't make sense

* lua doc gen: add support for parsing the tabs enum

* gui: custom lua tabs don't have a `func` rendering function but can still have elements to draw

* lua doc: update generated doc

* chore: code style

* chore: minor spelling mistake

* chore: code style

* gui_service: add runtime removal of tabs

* refactor: make it so that it's less likely defining tabs and their translation key in a wrong way.

* lua api: ability to add custom tabs to the gui from lua
2023-07-05 00:30:57 +02:00