Skip to content

Commit

Permalink
Fix empty values in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberx committed Jan 31, 2024
1 parent 1cb2740 commit 0d2188e
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ containing essential information about game entities and behavior.

### Compatibility

- Cyberpunk 2077 2.1
- Cyberpunk 2077 2.11
- [redscript](https://github.com/jac3km4/redscript) 0.5.16+

### Installation

1. Install requirements:
- [RED4ext](https://docs.red4ext.com/getting-started/installing-red4ext) 1.19.0+
- [RED4ext](https://docs.red4ext.com/getting-started/installing-red4ext) 1.22.0+
2. Extract the release archive `TweakXL-x.x.x.zip` into the Cyberpunk 2077 directory.

## Documentation
Expand Down
2 changes: 1 addition & 1 deletion src/App/Project.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ constexpr auto Author = "psiberx";
constexpr auto NameW = L"TweakXL";
constexpr auto AuthorW = L"psiberx";

constexpr auto Version = semver::from_string_noexcept("1.6.3").value();
constexpr auto Version = semver::from_string_noexcept("1.7.0").value();
}
8 changes: 4 additions & 4 deletions src/App/Version.rc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#define VER_PRODUCTVERSION 1,6,3,0
#define VER_FILEVERSION 1,6,3,2401210423
#define VER_PRODUCTVERSION 1,7,0,0
#define VER_FILEVERSION 1,7,0,2401311900

#define VER_PRODUCTNAME_STR "TweakXL\0"
#define VER_PRODUCTVERSION_STR "1.6.3\0"
#define VER_FILEVERSION_STR "1.6.3.2401210423\0"
#define VER_PRODUCTVERSION_STR "1.7.0\0"
#define VER_FILEVERSION_STR "1.7.0.2401311900\0"

1 VERSIONINFO
FILEVERSION VER_FILEVERSION
Expand Down
22 changes: 11 additions & 11 deletions src/Red/Addresses.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

// Generated by cp77ida.py on 2023-12-05 for Cyberpunk 2077 v.2.1
// Generated by cp77ida.py on 2024-01-31 for Cyberpunk 2077 v.2.11
// DO NOT MODIFY. USE tools\ida\scan.py TO GENERATE THIS FILE.

#include <cstdint>
Expand All @@ -9,17 +9,17 @@ namespace Red::Addresses
{
constexpr uintptr_t ImageBase = 0x140000000;

constexpr uintptr_t Main = 0x140827094 - ImageBase; // 40 55 53 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? FF 15 ? ? ? ? E8, expected: 1, index: 0
constexpr uintptr_t Main = 0x1406A4828 - ImageBase; // 40 55 53 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? FF 15 ? ? ? ? E8, expected: 1, index: 0

constexpr uintptr_t StatsDataSystem_InitializeRecords = 0x14055FD88 - ImageBase; // 48 89 5C 24 ? 55 56 57 41 56 41 57 48 8B EC 48 83 EC ? 48 8B F9 E8 ? ? ? ? 48 8B C8 48 8B 10 4C 8B 42 ? 48 BA 8D 46 27 9F 31 66 30 74, expected: 1, index: 0
constexpr uintptr_t StatsDataSystem_InitializeParams = 0x140BCA470 - ImageBase; // 40 55 53 56 57 41 56 48 8B EC 48 83 EC ? 8B 91 ? ? ? ? 48 8D B1 ? ? ? ? 48 8B F9 39 56 ? 73 ? 48 83 64 24, expected: 1, index: 0
constexpr uintptr_t StatsDataSystem_GetStatRange = 0x1401865DD - ImageBase; // 48 89 6C 24 ? 48 89 74 24 ? 57 48 83 EC ? 41 8B F0 48 8B FA 48 8B E9 41 81 F8 ? ? ? ? 73, expected: 1, index: 0
constexpr uintptr_t StatsDataSystem_GetStatFlags = 0x1402862E4 - ImageBase; // 48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 8B FA 48 8B F1 81 FA ? ? ? ? 73, expected: 1, index: 0
constexpr uintptr_t StatsDataSystem_CheckStatFlag = 0x1402862C8 - ImageBase; // 40 53 48 83 EC 20 41 8B D8 E8 ? ? ? ? 85 C3 0F 95 C0 48 83 C4 20 5B C3, expected: 1, index: 0
constexpr uintptr_t StatsDataSystem_InitializeRecords = 0x1401F52BC - ImageBase; // 48 89 5C 24 ? 55 56 57 41 56 41 57 48 8B EC 48 83 EC ? 48 8B F9 E8 ? ? ? ? 48 8B C8 48 8B 10 4C 8B 42 ? 48 BA 8D 46 27 9F 31 66 30 74, expected: 1, index: 0
constexpr uintptr_t StatsDataSystem_InitializeParams = 0x140BA9CE0 - ImageBase; // 40 55 53 56 57 41 56 48 8B EC 48 83 EC ? 8B 91 ? ? ? ? 48 8D B1 ? ? ? ? 48 8B F9 39 56 ? 73 ? 48 83 64 24, expected: 1, index: 0
constexpr uintptr_t StatsDataSystem_GetStatRange = 0x14015123D - ImageBase; // 48 89 6C 24 ? 48 89 74 24 ? 57 48 83 EC ? 41 8B F0 48 8B FA 48 8B E9 41 81 F8 ? ? ? ? 73, expected: 1, index: 0
constexpr uintptr_t StatsDataSystem_GetStatFlags = 0x1403554C4 - ImageBase; // 48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 8B FA 48 8B F1 81 FA ? ? ? ? 73, expected: 1, index: 0
constexpr uintptr_t StatsDataSystem_CheckStatFlag = 0x1403554A8 - ImageBase; // 40 53 48 83 EC 20 41 8B D8 E8 ? ? ? ? 85 C3 0F 95 C0 48 83 C4 20 5B C3, expected: 1, index: 0

constexpr uintptr_t TweakDB_Init = 0x1404E6D28 - ImageBase; // 48 89 5C 24 ? 57 48 83 EC ? 4C 8B 42 ? 48 8B D9 BF ? ? ? ? 4D 85 C0 74 ? 65 48 8B 04 25 ? ? ? ? 4D 8B 00 48 8B 10 41 8A 40 ? 88 04 17 48 8B 41 08 8B 08 85 C9 74 ? E8 ? ? ? ? E8, expected: 1, index: 0
constexpr uintptr_t TweakDB_Load = 0x14032F820 - ImageBase; // 48 89 5C 24 ? 48 89 7C 24 ? 55 48 8B EC 48 ? EC ? ? ? ? 48 8B F9 48 8B DA 48 8B 0D, expected: 1, index: 0
constexpr uintptr_t TweakDB_CreateRecord = 0x1401D50D0 - ImageBase; // 48 89 5C 24 08 48 89 74 24 10 57 48 83 EC 30 8B C2 49 8B D8 83 E0 1F, expected: 1, index: 0
constexpr uintptr_t TweakDB_Init = 0x140897CE0 - ImageBase; // 48 89 5C 24 ? 57 48 83 EC ? 4C 8B 42 ? 48 8B D9 BF ? ? ? ? 4D 85 C0 74 ? 65 48 8B 04 25 ? ? ? ? 4D 8B 00 48 8B 10 41 8A 40 ? 88 04 17 48 8B 41 08 8B 08 85 C9 74 ? E8 ? ? ? ? E8, expected: 1, index: 0
constexpr uintptr_t TweakDB_Load = 0x140528F6C - ImageBase; // 48 89 5C 24 ? 48 89 7C 24 ? 55 48 8B EC 48 ? EC ? ? ? ? 48 8B F9 48 8B DA 48 8B 0D, expected: 1, index: 0
constexpr uintptr_t TweakDB_CreateRecord = 0x14018F0D8 - ImageBase; // 48 89 5C 24 08 48 89 74 24 10 57 48 83 EC 30 8B C2 49 8B D8 83 E0 1F, expected: 1, index: 0

constexpr uintptr_t TweakDBID_Derive = 0x1401D4ED4 - ImageBase; // 48 89 5C 24 10 48 89 6C 24 18 48 89 74 24 20 57 45 33 C9 48 8B FA, expected: 1, index: 0
constexpr uintptr_t TweakDBID_Derive = 0x14018EF44 - ImageBase; // 48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 33 C0 4D 8B C8 48 8B F2 4D 85 C0 74, expected: 1, index: 0
}
2 changes: 1 addition & 1 deletion tools/ida/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def patterns():
]),
Group(name="TweakDBID", functions=[
Item(name="Derive",
pattern="48 89 5C 24 10 48 89 6C 24 18 48 89 74 24 20 57 45 33 C9 48 8B FA"),
pattern="48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 33 C0 4D 8B C8 48 8B F2 4D 85 C0 74"),
]),
Group(name="StatsDataSystem", functions=[
Item(name="InitializeRecords",
Expand Down
2 changes: 1 addition & 1 deletion vendor/RED4ext.SDK
Submodule RED4ext.SDK updated 42 files
+96 −96 include/RED4ext/Addresses.hpp
+1 −0 include/RED4ext/Api/Runtime.hpp
+2 −1 include/RED4ext/Api/v0/Runtime.hpp
+26 −0 include/RED4ext/Scripting/Natives/Generated/AI/RunAwayFromPlayerCommand.hpp
+7 −6 include/RED4ext/Scripting/Natives/Generated/AI/VehicleOnSplineCommand.hpp
+7 −6 include/RED4ext/Scripting/Natives/Generated/AI/VehicleRacingCommand.hpp
+2 −1 include/RED4ext/Scripting/Natives/Generated/AI/VehicleToNodeCommand.hpp
+7 −6 include/RED4ext/Scripting/Natives/Generated/AI/behavior/DriveRacingTreeNodeDefinition.hpp
+2 −1 include/RED4ext/Scripting/Natives/Generated/AI/behavior/DriveToNodeTreeNodeDefinition.hpp
+5 −3 include/RED4ext/Scripting/Natives/Generated/audio/MeleeWeaponConfiguration.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/cp/PlayerSystem.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/game/DynamicEntityHandler.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/game/DynamicSpawnSystem.hpp
+26 −0 include/RED4ext/Scripting/Natives/Generated/game/EffectObjectFilter_HitRepresentation_Quickhack.hpp
+2 −1 include/RED4ext/Scripting/Natives/Generated/game/ItemModParams.hpp
+4 −2 include/RED4ext/Scripting/Natives/Generated/game/JournalCodexGroup.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/game/RazerChromaEffectsSystem.hpp
+4 −4 include/RED4ext/Scripting/Natives/Generated/game/audio/events/HitEvent.hpp
+69 −68 include/RED4ext/Scripting/Natives/Generated/game/data/ItemType.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/game/data/StatusEffectPrereq_Record.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/game/data/Vehicle_Record.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/game/ui/WorldMappinsContainerController.hpp
+27 −0 include/RED4ext/Scripting/Natives/Generated/ink/SelectItemIndexEvent.hpp
+1 −0 include/RED4ext/Scripting/Natives/Generated/quest/CameraPlanesPreset.hpp
+28 −0 include/RED4ext/Scripting/Natives/Generated/quest/JoinTraffic_NodeType.hpp
+1 −2 include/RED4ext/Scripting/Natives/Generated/quest/JournalNodeDefinition.hpp
+7 −6 include/RED4ext/Scripting/Natives/Generated/quest/ParamRubberbanding.hpp
+29 −0 include/RED4ext/Scripting/Natives/Generated/quest/PlayRazerAnimation_NodeTypeParams.hpp
+33 −0 include/RED4ext/Scripting/Natives/Generated/quest/RazerAnimation_NodeType.hpp
+29 −0 include/RED4ext/Scripting/Natives/Generated/quest/SetIdleRazerAnimation_NodeTypeParams.hpp
+27 −0 include/RED4ext/Scripting/Natives/Generated/quest/StopRazerAnimation_NodeTypeParams.hpp
+2 −1 include/RED4ext/Scripting/Natives/Generated/quest/vehicle/ToNodeParams.hpp
+2 −1 include/RED4ext/Scripting/Natives/Generated/text/WrappingInfo.hpp
+24 −22 include/RED4ext/Scripting/Natives/Generated/vehicle/AutonomousData.hpp
+7 −0 include/RED4ext/Scripting/Natives/entEntityID.hpp
+25 −23 include/RED4ext/Scripting/Natives/gameITransactionSystem.hpp
+80 −0 include/RED4ext/Scripting/ScriptReport-inl.hpp
+36 −0 include/RED4ext/Scripting/ScriptReport.hpp
+1 −1 scripts/find_patterns.py
+7 −7 scripts/patterns.py
+3 −0 src/Scripting/Natives.cpp
+5 −0 src/Scripting/ScriptReport.cpp
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set_xmakever("2.5.9")

set_project("TweakXL")
set_version("1.6.3", {build = "%y%m%d%H%M"})
set_version("1.7.0", {build = "%y%m%d%H%M"})

set_arch("x64")
set_languages("cxx2a")
Expand Down

0 comments on commit 0d2188e

Please sign in to comment.