Skip to content

Commit 579c50a

Browse files
update to latest game version
1 parent acaab47 commit 579c50a

5 files changed

Lines changed: 35 additions & 22 deletions

File tree

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,14 @@
4040
*.pdb
4141
*.log
4242
*.tlog
43+
.vs/InjectableGenericCameraSystem/FileContentIndex/f3064529-7ad9-4fc6-912f-dd388da63cb9.vsidx
44+
.vs/InjectableGenericCameraSystem/FileContentIndex/read.lock
45+
.vs/InjectableGenericCameraSystem/v17/Browse.VC.db-shm
46+
.vs/InjectableGenericCameraSystem/v17/Browse.VC.db-wal
47+
.vs/InjectableGenericCameraSystem/v17/Browse.VC.opendb
48+
x64/Debug/vc143.idb
49+
x64/Debug/DarkSoulsII_CameraTools.dll.recipe
50+
x64/Debug/DarkSoulsII_CameraTools.ilk
51+
x64/Debug/InjectableGenericCameraSystem.vcxproj.FileListAbsolute.txt
52+
x64/Release/DarkSoulsII_CameraTools.dll.recipe
53+
x64/Release/InjectableGenericCameraSystem.vcxproj.FileListAbsolute.txt

GameConstants.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
// End Mandatory constants
4040

4141
// Offsets for camera intercept code. Used in interceptor.
42-
#define CAMERA_ADDRESS_INTERCEPT_START_OFFSET 0x1F1A4E
43-
#define CAMERA_ADDRESS_INTERCEPT_CONTINUE_OFFSET 0x1F1A5D
42+
#define CAMERA_ADDRESS_INTERCEPT_START_OFFSET 0x1F521E
43+
#define CAMERA_ADDRESS_INTERCEPT_CONTINUE_OFFSET 0x1F5237
4444

45-
#define CAMERA_WRITE_INTERCEPT1_START_OFFSET 0xAE07E0
46-
#define CAMERA_WRITE_INTERCEPT1_CONTINUE_OFFSET 0xAE0802
45+
#define CAMERA_WRITE_INTERCEPT1_START_OFFSET 0xAE7DC3
46+
#define CAMERA_WRITE_INTERCEPT1_CONTINUE_OFFSET 0xAE7DE2
4747

4848
// Indices in the structures read by interceptors
4949
#define CAMERA_LOOK_MATRIX 0x170

InjectableGenericCameraSystem.vcxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@
2929
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
3030
<ConfigurationType>DynamicLibrary</ConfigurationType>
3131
<UseDebugLibraries>true</UseDebugLibraries>
32-
<PlatformToolset>v142</PlatformToolset>
32+
<PlatformToolset>v143</PlatformToolset>
3333
<CharacterSet>Unicode</CharacterSet>
3434
</PropertyGroup>
3535
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
3636
<ConfigurationType>DynamicLibrary</ConfigurationType>
3737
<UseDebugLibraries>false</UseDebugLibraries>
38-
<PlatformToolset>v142</PlatformToolset>
38+
<PlatformToolset>v143</PlatformToolset>
3939
<WholeProgramOptimization>true</WholeProgramOptimization>
4040
<CharacterSet>Unicode</CharacterSet>
4141
</PropertyGroup>
4242
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
4343
<ConfigurationType>DynamicLibrary</ConfigurationType>
4444
<UseDebugLibraries>true</UseDebugLibraries>
45-
<PlatformToolset>v142</PlatformToolset>
45+
<PlatformToolset>v143</PlatformToolset>
4646
<CharacterSet>Unicode</CharacterSet>
4747
</PropertyGroup>
4848
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
4949
<ConfigurationType>DynamicLibrary</ConfigurationType>
5050
<UseDebugLibraries>false</UseDebugLibraries>
51-
<PlatformToolset>v142</PlatformToolset>
51+
<PlatformToolset>v143</PlatformToolset>
5252
<WholeProgramOptimization>true</WholeProgramOptimization>
5353
<CharacterSet>Unicode</CharacterSet>
5454
</PropertyGroup>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<PropertyGroup />
3+
<PropertyGroup>
4+
<ShowAllFiles>false</ShowAllFiles>
5+
</PropertyGroup>
46
</Project>

Interceptor.asm

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ EXTERN _cameraEnabled: byte
4444
EXTERN _cameraStructInterceptionContinue: qword
4545
EXTERN _cameraWriteInterceptionContinue1: qword
4646

47-
;DarkSoulsII.exe+1F1A4E - 0F28 81 A0010000 - movaps xmm0,[rcx+000001A0]
48-
;DarkSoulsII.exe+1F1A55 - 48 89 9C 24 80000000 - mov [rsp+00000080],rbx
49-
;DarkSoulsII.exe+1F1A5D - 48 8B 5F 08 - mov rbx,[rdi+08]
50-
;DarkSoulsII.exe+1F1A61 - 66 0F7F 44 24 20 - movdqa [rsp+20],xmm0
47+
;DarkSoulsII.exe+1F521E - 0F28 81 A0010000 - movaps xmm0,[rcx+000001A0]
48+
;DarkSoulsII.exe+1F5225 - 48 89 9C 24 80000000 - mov [rsp+00000080],rbx
49+
;DarkSoulsII.exe+1F522D - 48 8B 5F 08 - mov rbx,[rdi+08]
50+
;DarkSoulsII.exe+1F5231 - 66 0F7F 44 24 20 - movdqa [rsp+20],xmm0
5151
.code
5252
cameraAddressInterceptor PROC
5353
mov [_cameraStructAddress], rcx ; intercept address of camera struct
@@ -64,15 +64,15 @@ cameraAddressInterceptor ENDP
6464

6565

6666
;CameraInterceptLocation
67-
;DarkSoulsII.exe+AE07E0 - 0F 28 02 - movaps xmm0,[rdx]
68-
;DarkSoulsII.exe+AE07E3 - 66 0F 7F 01 - movdqa [rcx],xmm0
69-
;DarkSoulsII.exe+AE07E7 - 0F 28 4A 10 - movaps xmm1,[rdx+10]
70-
;DarkSoulsII.exe+AE07EB - 66 0F 7F 49 10 - movdqa [rcx+10],xmm1
71-
;DarkSoulsII.exe+AE07F0 - 0F28 42 20 - movaps xmm0,[rdx+20]
72-
;DarkSoulsII.exe+AE07F4 - 66 0F7F 41 20 - movdqa [rcx+20],xmm0
73-
;DarkSoulsII.exe+AE07F9 - 0F28 4A 30 - movaps xmm1,[rdx+30]
74-
;DarkSoulsII.exe+AE07FD - 66 0F7F 49 30 - movdqa [rcx+30],xmm1
75-
;DarkSoulsII.exe+AE0802 - C3 - ret
67+
;DarkSoulsII.exe+AE7DC3 - 66 0F7F 01 - movdqa [rcx],xmm0
68+
;DarkSoulsII.exe+AE7DC7 - 0F28 4A 10 - movaps xmm1,[rdx+10]
69+
;DarkSoulsII.exe+AE7DCB - 66 0F7F 49 10 - movdqa [rcx+10],xmm1
70+
;DarkSoulsII.exe+AE7DD0 - 0F28 42 20 - movaps xmm0,[rdx+20]
71+
;DarkSoulsII.exe+AE7DD4 - 66 0F7F 41 20 - movdqa [rcx+20],xmm0
72+
;DarkSoulsII.exe+AE7DD9 - 0F28 4A 30 - movaps xmm1,[rdx+30]
73+
;DarkSoulsII.exe+AE7DDD - 66 0F7F 49 30 - movdqa [rcx+30],xmm1
74+
;DarkSoulsII.exe+AE7DE2 - C3 - ret
75+
7676
cameraWriteInterceptor1 PROC
7777
cmp byte ptr [_cameraEnabled], 1 ; check if the user enabled the camera. If so, just skip the write statements, otherwise just execute the original code.
7878
je exit ; our own camera is enabled, just skip the writes

0 commit comments

Comments
 (0)