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

Handle scene UIDs in MultiplayerSpawner #99137

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Nov 12, 2024

Fixes #99116

The spawn issue occurred, because spawner will compare scene_file_path of a node with spawnable paths. Thus we either need to make sure that every path is a path, or convert scene path to UID for comparison.
When SpawnableScenes are created, they get paths assigned, but they need to saved as UID. I'm keeping both values to avoid repeated conversions.

@KoBeWi KoBeWi added this to the 4.4 milestone Nov 12, 2024
@KoBeWi KoBeWi requested a review from a team as a code owner November 12, 2024 18:47
Copy link
Contributor

@Summersay415 Summersay415 left a comment

Choose a reason for hiding this comment

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

Tested locally, it works!

@akien-mga
Copy link
Member

@Faless still needs to review this a bit more closely, but we agreed to merge this as a stopgap solution for 4.4-dev5, and let Fabio re-review later to see if he'd prefer a different approach.

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Approved as a stopgap solution for now.

@Repiteo Repiteo merged commit dd0c24b into godotengine:master Nov 19, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 19, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MultiplayerSpawner is broken due to not working with UIDs
4 participants