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

Rework NUID #26

Closed
Ismoh opened this issue Feb 24, 2022 · 1 comment
Closed

Rework NUID #26

Ismoh opened this issue Feb 24, 2022 · 1 comment
Assignees
Labels
bug Something isn't working. This will increase PATCH version number, when merged into develop. enhancement New feature or request. This will increase MINOR version number, when merged into develop.

Comments

@Ismoh
Copy link
Owner

Ismoh commented Feb 24, 2022

There is an unique network identifier used to have persistent entities.

Atm each entity has a variableStorageComponent, which holds a serialised lua table. This leads to problems when deserialising for some reason.

Better way is:
Clients despawn their entities and server send their entities to all clients. Each entity will have one variable storage component per attribute of network component, without serialising this network component. Therefore the entity will have persistent data after saving and restarting Noita.

@Ismoh Ismoh added bug Something isn't working. This will increase PATCH version number, when merged into develop. enhancement New feature or request. This will increase MINOR version number, when merged into develop. labels Feb 24, 2022
@Ismoh Ismoh self-assigned this Feb 24, 2022
@Ismoh
Copy link
Owner Author

Ismoh commented Mar 11, 2022

Whoopsi. Have a look on #27 :D

@Ismoh Ismoh closed this as completed Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. This will increase PATCH version number, when merged into develop. enhancement New feature or request. This will increase MINOR version number, when merged into develop.
Projects
Status: Done
Development

No branches or pull requests

1 participant