-
Notifications
You must be signed in to change notification settings - Fork 462
fix: [backport] add better error messages for a couple of error cases #3744
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* fix: add better error messages for a couple of error cases - When using a generic INetworkSerializable+IEquatable combo and update documentation with workaround - When there are no initialized elements in the network prefab list (fix null reference exception) * update changelog * style Removing single whitespace at end of sentence. * style Keeping the most recent changelog entry chronologically ordered (ordered by PR number). * Apply suggestions from code review Co-authored-by: Emma <[email protected]> * add missing pr number * move to inetworkserializable section * switch to testing NetworkConfig directly * remove uninitialized from list instead of ignoring --------- Co-authored-by: Noel Stephens <[email protected]> Co-authored-by: Emma <[email protected]>
jabbacakes
approved these changes
Oct 28, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving with suggestions that match the changes just landed in #3754
...ity.netcode.gameobjects/Documentation~/advanced-topics/serialization/inetworkserializable.md
Outdated
Show resolved
Hide resolved
...ity.netcode.gameobjects/Documentation~/advanced-topics/serialization/inetworkserializable.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Amy Reeve <[email protected]>
EmandM
approved these changes
Nov 3, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of this PR
add better error messages for a couple of error cases
Example error printed with the generic IEquatable error is
which is printed in addition to the usual error for not implementing IEquatable.
Jira ticket
MTTB-1202
MTTB-1306
Changelog
Documentation
Testing & QA (How your changes can be verified during release Playtest)
Manually tested the codegen errors with IEquatable.
Functional Testing
Manual testing :
Manual testing doneAutomated tests:
Covered by existing automated testsCovered by new automated testsDoes the change require QA team to:
Review automated tests?Execute manual tests?Provide feedback about the PR?If any boxes above are checked the QA team will be automatically added as a PR reviewer.
Backports
This is a backport of 3739