Skip to content

Commit

Permalink
update for 1.63
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Jun 22, 2023
1 parent 1b79e8e commit 440a237
Show file tree
Hide file tree
Showing 14 changed files with 135 additions and 111 deletions.
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "cppvsdbg",
"request": "launch",
"name": "Debug",
"preLaunchTask": "Install Mod",
"program": "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Cyberpunk 2077\\bin\\x64\\Cyberpunk2077.exe",
"cwd": "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Cyberpunk 2077\\",
"visualizerFile": "${workspaceFolder}/deps/cyberpunk_cmake/.natvis",
// "showDisplayString": true
}
]
}
7 changes: 0 additions & 7 deletions cmake/FindModSettings.cmake

This file was deleted.

2 changes: 0 additions & 2 deletions cmake/FindRedLib.cmake

This file was deleted.

156 changes: 84 additions & 72 deletions compile_commands.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deps/cyberpunk_cmake
2 changes: 1 addition & 1 deletion deps/mod_settings
2 changes: 1 addition & 1 deletion deps/red4ext.sdk
Submodule red4ext.sdk updated 40 files
+2 −1 cmake/GameVersions.json
+1 −1 cmake/pch.hpp.in
+356 −369 include/RED4ext/Addresses-Found.hpp
+41,676 −41,877 include/RED4ext/Addresses-VFT.hpp
+134 −113 include/RED4ext/Addresses-Zoltan.hpp
+101 −101 include/RED4ext/Addresses.hpp
+2 −1 include/RED4ext/Api/v0/Runtime.hpp
+11 −0 include/RED4ext/CName-inl.hpp
+2 −0 include/RED4ext/CName.hpp
+1 −1 include/RED4ext/CNamePool-inl.hpp
+1 −1 include/RED4ext/CString-inl.hpp
+359 −353 include/RED4ext/Definitions.hpp
+1 −1 include/RED4ext/DynArray.hpp
+41,676 −41,877 include/RED4ext/Enum-VFT.hpp
+1 −1 include/RED4ext/GameEngine-inl.hpp
+10 −10 include/RED4ext/GameEngine.hpp
+5 −1 include/RED4ext/Handle.hpp
+1 −1 include/RED4ext/IO/MemoryStream-inl.hpp
+1 −1 include/RED4ext/ISerializable-inl.hpp
+1 −1 include/RED4ext/JobQueue-inl.hpp
+1 −1 include/RED4ext/Memory/Allocators.hpp
+1 −1 include/RED4ext/Memory/SharedPtr.hpp
+1 −1 include/RED4ext/Memory/Vault-inl.hpp
+1 −1 include/RED4ext/RTTISystem-inl.hpp
+1 −1 include/RED4ext/RTTITypes-inl.hpp
+2 −0 include/RED4ext/Relocation.hpp
+1 −1 include/RED4ext/ResourceDepot-inl.hpp
+1 −1 include/RED4ext/ResourceLoader-inl.hpp
+1 −1 include/RED4ext/ResourceLoader.hpp
+1 −1 include/RED4ext/Scripting/CProperty.hpp
+1 −1 include/RED4ext/Scripting/Functions-inl.hpp
+1 −1 include/RED4ext/Scripting/IScriptable-inl.hpp
+2 −0 include/RED4ext/Scripting/Natives/Generated/game/ui/MappinsContainerController.hpp
+1 −1 include/RED4ext/Scripting/Natives/Generated/physics/FilterData.hpp
+1 −1 include/RED4ext/Scripting/Natives/IUpdatableSystem.hpp
+1 −1 include/RED4ext/Scripting/OpcodeHandlers-inl.hpp
+1 −1 include/RED4ext/Scripting/Stack-inl.hpp
+1 −1 include/RED4ext/SortedArray.hpp
+1 −1 include/RED4ext/SystemUpdate-inl.hpp
+1 −1 include/RED4ext/TweakDB-inl.hpp
2 changes: 1 addition & 1 deletion deps/red_lib
2 changes: 1 addition & 1 deletion deps/tweak_xl
42 changes: 21 additions & 21 deletions src/red4ext/Addresses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,65 +5,65 @@
#define __LINE_STR__ ZOLTAN_EXPAND_THEN_STRINGISE(__LINE__)

#ifndef CreateCRTTIArrayTypeFromClass_Addr
#define CreateCRTTIArrayTypeFromClass_Addr 0x20A490
#define CreateCRTTIArrayTypeFromClass_Addr 0x20A6B0
#endif
#ifndef CreateCRTTIHandleTypeFromClass_Addr
#define CreateCRTTIHandleTypeFromClass_Addr 0x20A580
#define CreateCRTTIHandleTypeFromClass_Addr 0x20A7A0
#endif
#ifndef CreateCRTTIRaRefTypeFromClass_Addr
#define CreateCRTTIRaRefTypeFromClass_Addr 0x20A750
#define CreateCRTTIRaRefTypeFromClass_Addr 0x20A970
#endif
#ifndef CreateCRTTIWeakHandleTypeFromClass_Addr
#define CreateCRTTIWeakHandleTypeFromClass_Addr 0x20A920
#define CreateCRTTIWeakHandleTypeFromClass_Addr 0x20AB40
#endif
#ifndef CreateStaticEffect_Addr
#define CreateStaticEffect_Addr 0x14A19A0
#define CreateStaticEffect_Addr 0x14A30B0
#endif
#ifndef Entity_InitializeComponents_Addr
#define Entity_InitializeComponents_Addr 0x105DFD0
#define Entity_InitializeComponents_Addr 0x105F6E0
#endif
#ifndef FPPCameraUpdate_Addr
#define FPPCameraUpdate_Addr 0x172BD30
#define FPPCameraUpdate_Addr 0x172EC40
#endif
#ifndef FourWheelTorque_Addr
#define FourWheelTorque_Addr 0x1D4DA20
#define FourWheelTorque_Addr 0x1D509F0
#endif
#ifndef GetMatrixFromOrientation_Addr
#define GetMatrixFromOrientation_Addr 0x1D3F60
#define GetMatrixFromOrientation_Addr 0x1D4180
#endif
#ifndef LoadResRefT_Addr
#define LoadResRefT_Addr 0x20E8C0
#define LoadResRefT_Addr 0x20EAE0
#endif
#ifndef LookupLocalizedString_Addr
#define LookupLocalizedString_Addr 0x7093F0
#define LookupLocalizedString_Addr 0x7096C0
#endif
#ifndef PhysicsUnkStructVelocityUpdate_Addr
#define PhysicsUnkStructVelocityUpdate_Addr 0x1D20160
#define PhysicsUnkStructVelocityUpdate_Addr 0x1D23130
#endif
#ifndef ProcessAirResistance_Addr
#define ProcessAirResistance_Addr 0x1D4D740
#define ProcessAirResistance_Addr 0x1D50710
#endif
#ifndef ProcessScriptTypes_Addr
#define ProcessScriptTypes_Addr 0x281390
#define ProcessScriptTypes_Addr 0x2815B0
#endif
#ifndef RollFactorTorqueThing_Addr
#define RollFactorTorqueThing_Addr 0x1D6E3E0
#define RollFactorTorqueThing_Addr 0x1D713B0
#endif
#ifndef SetLocalizedTextString_Addr
#define SetLocalizedTextString_Addr 0x709460
#define SetLocalizedTextString_Addr 0x709730
#endif
#ifndef TPPCameraStats_Update_Addr
#define TPPCameraStats_Update_Addr 0x1D06600
#define TPPCameraStats_Update_Addr 0x1D095D0
#endif
#ifndef VehicleHelperUpdate_Addr
#define VehicleHelperUpdate_Addr 0x1D51500
#define VehicleHelperUpdate_Addr 0x1D544D0
#endif
#ifndef VehicleObject_ProcessWeapons_Addr
#define VehicleObject_ProcessWeapons_Addr 0x1C9F220
#define VehicleObject_ProcessWeapons_Addr 0x1CA21F0
#endif
#ifndef VehicleUpdateOrientationWithPID_Addr
#define VehicleUpdateOrientationWithPID_Addr 0x1CACFD0
#define VehicleUpdateOrientationWithPID_Addr 0x1CAFFA0
#endif
#ifndef vehicle_PhysicsStructUpdate_Addr
#define vehicle_PhysicsStructUpdate_Addr 0x1D20B70
#define vehicle_PhysicsStructUpdate_Addr 0x1D23B40
#endif
2 changes: 2 additions & 0 deletions src/red4ext/FlightConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ RED4ext::CClass* IFlightConfiguration::GetConfigurationClass(RED4ext::ent::Entit
configurationCls = rtti->GetClassByScriptName("BikeFlightConfiguration");
}
}
} else {
spdlog::info("Found custom flight configuration class: {}", className);
}
return configurationCls;
}
Expand Down
5 changes: 3 additions & 2 deletions src/red4ext/FlightSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <RED4ext/Common.hpp>
#include <RED4ext/RTTITypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/Vector4.hpp>
#include <RED4ext/Addresses.hpp>
#include <RED4ext/Addresses-Zoltan.hpp>
#include <RED4ext/Scripting/Natives/ScriptGameInstance.hpp>
#include <RED4ext/Scripting/Natives/GameInstance.hpp>
#include <RED4ext/Scripting/Natives/vehiclePhysicsData.hpp>
Expand Down Expand Up @@ -52,7 +52,8 @@
// 1.61 RVA: 0x484B3A0
// 1.61hf1 RVA: 0x484D590
// 1.62hf1 RVA: 0x4891050
RED4ext::RelocPtr<RED4ext::GameOptionBool> physicsCCD(0x4891050);
// 1.63 RVA: 0x489C060
RED4ext::RelocPtr<RED4ext::GameOptionBool> physicsCCD(0x489C060);
// 1.52 RVA: 0x4781FE8
// 1.6 RVA: 0x4846388
// 1.61 RVA: 0x484CA28
Expand Down
2 changes: 1 addition & 1 deletion src/red4ext/LoadResRef.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <RED4ext/Addresses.hpp>
#include <RED4ext/Addresses-Zoltan.hpp>
#include <RED4ext/NativeTypes.hpp>
#include "Addresses.hpp"

Expand Down

0 comments on commit 440a237

Please sign in to comment.