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

Values not read propperly #4

Open
Dandrum opened this issue Oct 23, 2022 · 3 comments
Open

Values not read propperly #4

Dandrum opened this issue Oct 23, 2022 · 3 comments

Comments

@Dandrum
Copy link

Dandrum commented Oct 23, 2022

Hi,

semes Like any value after

const tcinAction = reader.ReadUInt32()

Are not working even if i log out the direct reader value...
I like to have this values but they not working:

result.ignitionOn = reader.ReadUInt32() > 0
result.starterEngineOn = reader.ReadUInt32() > 0
result.isEngineRunning = reader.ReadUInt32() > 0
@QuadratoTV
Copy link

This issue is caused because the buffer doesnt read the full length of the mmapped file as the variable "m_physics_length" was set up for an earlier acc version. I encountered this today as well and fixed it by changing it from the default value of 712 to 790.

m_physics_length = 712

@FynniX
Copy link
Owner

FynniX commented Aug 2, 2023

Yes this wrapper isn't up to date. In another version of the wrapper which isn't public I use the sizes:
Physics: 800,
Graphic: 1588,
Static: 756

But in the private version I also use a native addon (There I get this sizes from a struct). But it shouldn't be much to edit this wrapper.

@FynniX
Copy link
Owner

FynniX commented Aug 2, 2023

When you would create a pull request then I would add those changes to the repo

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

No branches or pull requests

3 participants