Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bully] Clothing.BuildPlayer() crashes the game #101

Open
user-grinch opened this issue Sep 25, 2023 · 1 comment
Open

[Bully] Clothing.BuildPlayer() crashes the game #101

user-grinch opened this issue Sep 25, 2023 · 1 comment
Labels
type:bug Something isn't working

Comments

@user-grinch
Copy link
Contributor

Whenever calling the Clothing.BuildPlayer() command (0x5BB082) seems to crash the game at address 0x73AD3F. I've tried directly calling it using Memory.CallFunction() same result.

This is my code,
image

If I comment out the Clothing.BuildPlayer() and test the rest of the code out, the clothes do change when the game internally calls the Clothing.BuildPlayer() function (can check entering-exiting doors/ wardrobe). (Probably works fine when called from the main thread?)

Logs,
image
image

@x87 x87 added the type:bug Something isn't working label Sep 25, 2023
@x87
Copy link
Contributor

x87 commented Jan 8, 2024

Note to self:

Clothing.BuildPlayer calls CStreaming::LoadAllRequestedModels (synchronously reads data from disk and loads into memory).

Crashes inside CTxdStore::LoadTxd that is only called as part of CStreaming::LoadAllRequestedModels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants