Skip to content

Commit

Permalink
Dragon's Dogma 2: Fix various features (freecam, VR, ultrawide, etc)
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 12, 2024
1 parent e1a13a6 commit 4bd6889
Show file tree
Hide file tree
Showing 109 changed files with 17,002 additions and 8 deletions.
1,052 changes: 1,052 additions & 0 deletions reversing/apollojustice.genny

Large diffs are not rendered by default.

1,052 changes: 1,052 additions & 0 deletions reversing/dd2.genny

Large diffs are not rendered by default.

13,163 changes: 13,163 additions & 0 deletions reversing/dd2.rcnet

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions shared/sdk/ReClass_Internal_DD2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ class REGameObject : public REManagedObject
bool shouldUpdateSelf; //0x0012
bool shouldDrawSelf; //0x0013
bool shouldSelect; //0x0014
char pad_0015[11]; //0x0015
class RETransform *transform; //0x0020
class REFolder *folder; //0x0028
class SystemString *name; //0x0030 This can either be a pointer to the name or embedded directly
uint32_t N00000DDA; //0x0038
float timescale; //0x003C
}; //Size: 0x0040
static_assert(sizeof(REGameObject) == 0x40);
char pad_0015[3]; //0x0015
class RETransform *transform; //0x0018
class REFolder *folder; //0x0020
class SystemString *name; //0x0028 This can either be a pointer to the name or embedded directly
uint32_t N00000DDA; //0x0030
float timescale; //0x0034
}; //Size: 0x0038
static_assert(sizeof(REGameObject) == 0x38);

class REFieldList
{
Expand Down
8 changes: 8 additions & 0 deletions shared/sdk/regenny/dd2/BullShit.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#pragma once
namespace regenny {
#pragma pack(push, 1)
struct BullShit {
private: char pad_0[0x5000]; public:
}; // Size: 0x5000
#pragma pack(pop)
}
18 changes: 18 additions & 0 deletions shared/sdk/regenny/dd2/DeserializeSequence.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#pragma once
namespace regenny::tdb71 {
struct TypeDefinition;
}
namespace regenny {
#pragma pack(push, 1)
struct DeserializeSequence {
uint32_t code : 8; // 0x0
uint32_t size : 8; // 0x0
uint32_t align : 8; // 0x0
uint32_t depth : 6; // 0x0
uint32_t is_array : 1; // 0x0
uint32_t is_static : 1; // 0x0
uint32_t offset; // 0x4
regenny::tdb71::TypeDefinition* native_type; // 0x8
}; // Size: 0x10
#pragma pack(pop)
}
12 changes: 12 additions & 0 deletions shared/sdk/regenny/dd2/ManagedVtable.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once
namespace regenny::tdb71 {
struct TypeDefinition;
}
namespace regenny {
#pragma pack(push, 1)
struct ManagedVtable {
regenny::tdb71::TypeDefinition* t; // 0x0
void* funcs[32]; // 0x8
}; // Size: 0x108
#pragma pack(pop)
}
40 changes: 40 additions & 0 deletions shared/sdk/regenny/dd2/RTInternal.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#pragma once
#include "via\vec3.hpp"
namespace regenny {
#pragma pack(push, 1)
struct RTInternal {
private: char pad_0[0x168]; public:
// Metadata: utf8*
char* name; // 0x168
private: char pad_170[0x10]; public:
uint32_t unkint; // 0x180
uint32_t unkint2; // 0x184
uint32_t RayTracingMode; // 0x188
uint32_t Spp; // 0x18c
uint8_t unk2; // 0x190
private: char pad_191[0xb]; public:
regenny::via::vec3 params; // 0x19c
private: char pad_1a8[0x4]; public:
bool use_transparent; // 0x1ac
private: char pad_1ad[0x1]; public:
bool specular_secondary_bounce; // 0x1ae
bool use_no_movement_depth_comp; // 0x1af
float normal_compare_thresh; // 0x1b0
bool use_diffuse_bounce_intensity; // 0x1b4
private: char pad_1b5[0x3]; public:
float diffuse_bounce_intensity_mult; // 0x1b8
bool use_specular_bounce_intensity; // 0x1bc
private: char pad_1bd[0x3]; public:
float specular_bounce_intensity; // 0x1c0
bool ray_trace_ambient_occlusion; // 0x1c4
private: char pad_1c5[0x3]; public:
float ray_trace_ratio; // 0x1c8
float unkflooat; // 0x1cc
uint32_t sampling_pattern; // 0x1d0
private: char pad_1d4[0x8]; public:
float surfel_size; // 0x1dc
float asdfasdgadsg; // 0x1e0
private: char pad_1e4[0xe1c]; public:
}; // Size: 0x1000
#pragma pack(pop)
}
13 changes: 13 additions & 0 deletions shared/sdk/regenny/dd2/RayTrace.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#pragma once
#include "RenderEntity.hpp"
namespace regenny {
struct RTInternal;
}
namespace regenny {
#pragma pack(push, 1)
struct RayTrace : public RenderEntity {
regenny::RTInternal* impl; // 0x498
private: char pad_4a0[0xb60]; public:
}; // Size: 0x1000
#pragma pack(pop)
}
9 changes: 9 additions & 0 deletions shared/sdk/regenny/dd2/RenderEntity.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once
#include "via\Component.hpp"
namespace regenny {
#pragma pack(push, 1)
struct RenderEntity : public via::Component {
private: char pad_30[0x468]; public:
}; // Size: 0x498
#pragma pack(pop)
}
11 changes: 11 additions & 0 deletions shared/sdk/regenny/dd2/System/String.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#pragma once
#include "..\via\clr\ManagedObject.hpp"
namespace regenny::System {
#pragma pack(push, 1)
struct String : public regenny::via::clr::ManagedObject {
int32_t len; // 0x10
// Metadata: utf16*
char data[256]; // 0x14
}; // Size: 0x114
#pragma pack(pop)
}
7 changes: 7 additions & 0 deletions shared/sdk/regenny/dd2/TypeDefinition.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once
namespace regenny {
#pragma pack(push, 1)
struct TypeDefinition {
}; // Size: 0x0
#pragma pack(pop)
}
41 changes: 41 additions & 0 deletions shared/sdk/regenny/dd2/game/IkArmFit.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#pragma once
#include "..\via\Range.hpp"
#include "..\via\clr\ManagedObject.hpp"
#include "..\via\mat4.hpp"
#include "..\via\motion\AxisDirection.hpp"
namespace regenny::via {
struct Joint;
}
namespace regenny::System {
struct String;
}
namespace regenny::game {
#pragma pack(push, 1)
struct IkArmFit {
struct ArmSolver : public regenny::via::clr::ManagedObject {
regenny::via::Joint* ApplyJoint; // 0x10
regenny::via::motion::AxisDirection Dir; // 0x18
regenny::via::motion::AxisDirection Up; // 0x1c
regenny::via::motion::AxisDirection Rot; // 0x20
float L0; // 0x24
float L1; // 0x28
private: char pad_2c[0x4]; public:
}; // Size: 0x30

struct ArmData : public regenny::via::clr::ManagedObject {
float BlendRate; // 0x10
regenny::via::Range ReachRate; // 0x14
private: char pad_1c[0x4]; public:
regenny::System::String* ApplyHandName; // 0x20
bool LeftHand; // 0x28
private: char pad_29[0x3]; public:
float DefaultHandAngle; // 0x2c
regenny::via::Range AxisYRange; // 0x30
regenny::via::Range AxisZRange; // 0x38
regenny::via::mat4 TargetMatrix; // 0x40
}; // Size: 0x80

private: char pad_0[0x100]; public:
}; // Size: 0x100
#pragma pack(pop)
}
9 changes: 9 additions & 0 deletions shared/sdk/regenny/dd2/game/InputSystem.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#pragma once
#include "..\via\clr\ManagedObject.hpp"
namespace regenny::game {
#pragma pack(push, 1)
struct InputSystem : public regenny::via::clr::ManagedObject {
private: char pad_10[0x160]; public:
}; // Size: 0x170
#pragma pack(pop)
}
7 changes: 7 additions & 0 deletions shared/sdk/regenny/dd2/tdb71/AttributeDef.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once
namespace regenny::tdb71 {
#pragma pack(push, 1)
struct AttributeDef {
}; // Size: 0x0
#pragma pack(pop)
}
12 changes: 12 additions & 0 deletions shared/sdk/regenny/dd2/tdb71/Field.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once
namespace regenny::tdb71 {
#pragma pack(push, 1)
struct Field {
uint64_t declaring_typeid : 19; // 0x0
uint64_t impl_id : 19; // 0x0
uint64_t field_typeid : 19; // 0x0
uint64_t init_data_hi : 6; // 0x0
private: uint64_t pad_bitfield_0_3f : 1; public:
}; // Size: 0x8
#pragma pack(pop)
}
15 changes: 15 additions & 0 deletions shared/sdk/regenny/dd2/tdb71/FieldImpl.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#pragma once
namespace regenny::tdb71 {
#pragma pack(push, 1)
struct FieldImpl {
uint16_t attributes; // 0x0
uint16_t unk : 1; // 0x2
uint16_t flags : 15; // 0x2
uint32_t offset : 26; // 0x4
uint32_t init_data_lo : 6; // 0x4
uint32_t name_offset : 22; // 0x8
uint32_t init_data_mid : 4; // 0x8
private: uint32_t pad_bitfield_8_1a : 6; public:
}; // Size: 0xc
#pragma pack(pop)
}
12 changes: 12 additions & 0 deletions shared/sdk/regenny/dd2/tdb71/MethodDefinition.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once
namespace regenny::tdb71 {
#pragma pack(push, 1)
struct MethodDefinition {
uint32_t declaring_typeid : 19; // 0x0
uint32_t pad : 13; // 0x0
uint32_t impl_id : 19; // 0x4
uint32_t params : 13; // 0x4
int32_t offset; // 0x8
}; // Size: 0xc
#pragma pack(pop)
}
12 changes: 12 additions & 0 deletions shared/sdk/regenny/dd2/tdb71/MethodImpl.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once
namespace regenny::tdb71 {
#pragma pack(push, 1)
struct MethodImpl {
uint16_t attributes_id; // 0x0
int16_t vtable_index; // 0x2
uint16_t flags; // 0x4
uint16_t impl_flags; // 0x6
uint32_t name_offset; // 0x8
}; // Size: 0xc
#pragma pack(pop)
}
11 changes: 11 additions & 0 deletions shared/sdk/regenny/dd2/tdb71/ParamList.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#pragma once
namespace regenny::tdb71 {
#pragma pack(push, 1)
struct ParamList {
uint16_t numParams; // 0x0
int16_t invokeID; // 0x2
uint32_t returnType; // 0x4
uint32_t params[256]; // 0x8
}; // Size: 0x408
#pragma pack(pop)
}
13 changes: 13 additions & 0 deletions shared/sdk/regenny/dd2/tdb71/ParameterDef.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#pragma once
namespace regenny::tdb71 {
#pragma pack(push, 1)
struct ParameterDef {
uint16_t attributes_id; // 0x0
uint16_t init_data_index; // 0x2
uint32_t name_offset : 30; // 0x4
uint32_t modifier : 2; // 0x4
uint32_t type_id : 18; // 0x8
uint32_t flags : 14; // 0x8
}; // Size: 0xc
#pragma pack(pop)
}
7 changes: 7 additions & 0 deletions shared/sdk/regenny/dd2/tdb71/Property.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once
namespace regenny::tdb71 {
#pragma pack(push, 1)
struct Property {
}; // Size: 0x0
#pragma pack(pop)
}
7 changes: 7 additions & 0 deletions shared/sdk/regenny/dd2/tdb71/PropertyImpl.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once
namespace regenny::tdb71 {
#pragma pack(push, 1)
struct PropertyImpl {
}; // Size: 0x0
#pragma pack(pop)
}
80 changes: 80 additions & 0 deletions shared/sdk/regenny/dd2/tdb71/TDB.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#pragma once
namespace regenny::tdb71 {
struct Field;
}
namespace regenny::tdb71 {
struct TypeDefinition;
}
namespace regenny::tdb71 {
struct PropertyImpl;
}
namespace regenny::tdb71 {
struct MethodImpl;
}
namespace regenny::tdb71 {
struct TypeImpl;
}
namespace regenny::tdb71 {
struct MethodDefinition;
}
namespace regenny::tdb71 {
struct FieldImpl;
}
namespace regenny::tdb71 {
struct Property;
}
namespace regenny::tdb71 {
struct ParameterDef;
}
namespace regenny::tdb71 {
struct AttributeDef;
}
namespace regenny::tdb71 {
#pragma pack(push, 1)
struct TDB {
struct test {
}; // Size: 0x0

uint32_t magic; // 0x0
uint32_t version; // 0x4
uint32_t initialized; // 0x8
uint32_t numTypes; // 0xc
uint32_t numMethods; // 0x10
uint32_t numFields; // 0x14
uint32_t numTypeImpl; // 0x18
uint32_t numFieldImpl; // 0x1c
uint32_t numMethodImpl; // 0x20
uint32_t numPropertyImpl; // 0x24
uint32_t numProperties; // 0x28
uint32_t numEvents; // 0x2c
uint32_t numParams; // 0x30
uint32_t numAttributes; // 0x34
int32_t numInitData; // 0x38
uint32_t numAttributes2; // 0x3c
uint32_t numInternStrings; // 0x40
uint32_t numModules; // 0x44
int32_t devEntry; // 0x48
int32_t appEntry; // 0x4c
uint32_t numStringPool; // 0x50
uint32_t numBytePool; // 0x54
void* modules; // 0x58
regenny::tdb71::TypeDefinition* types; // 0x60
regenny::tdb71::TypeImpl* typesImpl; // 0x68
regenny::tdb71::MethodDefinition* methods; // 0x70
regenny::tdb71::MethodImpl* methodsImpl; // 0x78
regenny::tdb71::Field* fields; // 0x80
regenny::tdb71::FieldImpl* fieldsImpl; // 0x88
regenny::tdb71::Property* properties; // 0x90
regenny::tdb71::PropertyImpl* propertiesImpl; // 0x98
void* events; // 0xa0
regenny::tdb71::ParameterDef* params; // 0xa8
regenny::tdb71::AttributeDef* attributes; // 0xb0
int32_t* initData; // 0xb8
void* unk; // 0xc0
int32_t* attributes2; // 0xc8
char* stringPool; // 0xd0
uint8_t* bytePool; // 0xd8
int32_t* internStrings; // 0xe0
}; // Size: 0xe8
#pragma pack(pop)
}
Loading

0 comments on commit 4bd6889

Please sign in to comment.