Skip to content
New issue

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

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

Already on GitHub? # to your account

Last minute additions #2217

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tornac1234
Copy link
Collaborator

  • Keypad sync fix
  • Fix falling through the Aurora when spawning inside

I might want to add a things or two before release which I'll put in here

@tornac1234 tornac1234 added this to the 1.8 milestone Jan 1, 2025
Copy link
Member

@dartasen dartasen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be separate PR's ?

// Constructor for serialization. Has to be "protected" for json serialization.
}
[DataMember(Order = 2)]
public string PathFromRoot { get; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really a metadata ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This metadata is applied to an object which doesn't necessarily hold the KeypadDoorConsole component. Thus we need a way to find the component, which varies from one prefab to another

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not do this by extracting it from the object it's on rather than using the path?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetComponentInChildren is quite costy and might pick the wrong door is there are two available in the children

{
Entities entities = NitroxServiceLocator.LocateService<Entities>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be using dependency injection, this will generate a warning from our analyzers

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't work in this static context

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terrain is already being required inside Mutiplayer mb, so static can be removed

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants