-
Notifications
You must be signed in to change notification settings - Fork 464
fix: add flag dedicated server override v2.x #3760
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
base: develop-2.0.0
Are you sure you want to change the base?
fix: add flag dedicated server override v2.x #3760
Conversation
com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs
Outdated
Show resolved
Hide resolved
…override # Conflicts: # com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs
… fix/v2.x/add-flag-dedicated-server-override
EmandM
left a comment
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.
Looks great! 🚀
…override # Conflicts: # com.unity.netcode.gameobjects/Documentation~/TableOfContents.md # com.unity.netcode.gameobjects/Documentation~/configuration.md
com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs
Outdated
Show resolved
Hide resolved
…com:Unity-Technologies/com.unity.netcode.gameobjects into fix/v2.x/add-flag-dedicated-server-override
NoelStephensUnity
left a comment
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.
Looks good Noellie!
👍
jabbacakes
left a comment
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.
The content is good, suggestions are mostly for consistency/formatting. Tl;dr:
- Command-line arguments needs a hyphen, so added that for all instances
- Headers should be in sentence case (capitalise only the first letter)
- Removed section breaks, we don't use those in the docs generally
- Added note formatting so that it'll render in the package docs properly
com.unity.netcode.gameobjects/Documentation~/command-line-arguments.md
Outdated
Show resolved
Hide resolved
com.unity.netcode.gameobjects/Documentation~/TableOfContents.md
Outdated
Show resolved
Hide resolved
com.unity.netcode.gameobjects/Documentation~/command-line-arguments.md
Outdated
Show resolved
Hide resolved
com.unity.netcode.gameobjects/Documentation~/command-line-arguments.md
Outdated
Show resolved
Hide resolved
com.unity.netcode.gameobjects/Documentation~/command-line-arguments.md
Outdated
Show resolved
Hide resolved
com.unity.netcode.gameobjects/Documentation~/command-line-arguments.md
Outdated
Show resolved
Hide resolved
com.unity.netcode.gameobjects/Documentation~/command-line-arguments.md
Outdated
Show resolved
Hide resolved
com.unity.netcode.gameobjects/Documentation~/command-line-arguments.md
Outdated
Show resolved
Hide resolved
| /// <param name="listenAddress">The address the server is going to listen on.</param> | ||
| public void SetConnectionData(string ipv4Address, ushort port, string listenAddress = null) | ||
| /// <param name="forceOverrideCommandLineArgs">When true, any command line arguments will be ignored.</param> | ||
| public void SetConnectionData(string ipv4Address, ushort port, string listenAddress = null, bool forceOverrideCommandLineArgs = false) |
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.
This is a breaking change. Example: Precompiled assemblies will fail when querying the old method.
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.
forceOverrideCommandLineArgs has a default value so when using SetConnectionData method as before (without the added bool) I guess it should not fail.
That said, there is a failure in the API validation vetting job, is it related @NoelStephensUnity?

Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Amy Reeve <[email protected]>
Co-authored-by: Amy Reeve <[email protected]>
Titles in sentence case, adding a hyphen to `command-line arguments` and styling Co-authored-by: Amy Reeve <[email protected]>
Purpose of this PR
fix: #3490
Jira ticket
MTTB-1557
Changelog
SetConnectionData.Documentation
Testing & QA (How your changes can be verified during release Playtest)
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
No back port required.