Skip to content

Fallout4: fix FakeMoveLight crash on CK 1.10.162.0 when dragging a primitive - #244

Merged
Perchik71 merged 1 commit into
Perchik71:masterfrom
frakkin64:fix-fakemovelight-162
Oct 14, 2026
Merged

Perchik71 merged 1 commit into
Perchik71:masterfrom
frakkin64:fix-fakemovelight-162

Conversation

@frakkin64

Copy link
Copy Markdown
Contributor

The 11 bytes written before the SetPosition hook call load the reference from r12, the position from [rbp-49h] and the render window edit module from r14. That is the register layout of 1.10.982.3, 1.11.137.0 and 1.11.240.0 only. In 1.10.162.0 the reference is in rbx, the edit module in rsi and the source position at [rbp-61h], so the hook got a non-reference object and the CK crashed in BSSpinLock::Lock while dragging a primitive.

Write the 1.10.162.0 register layout for that runtime.

…imitive

The 11 bytes written before the SetPosition hook call load the reference
from r12, the position from [rbp-49h] and the render window edit module
from r14. That is the register layout of 1.10.982.3, 1.11.137.0 and
1.11.240.0 only. In 1.10.162.0 the reference is in rbx, the edit module in
rsi and the source position at [rbp-61h], so the hook got a non-reference
object and the CK crashed in BSSpinLock::Lock while dragging a primitive.

Write the 1.10.162.0 register layout for that runtime.
@Perchik71
Perchik71 merged commit 14dbbc5 into Perchik71:master Oct 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants