#Latest mirror version breaks changing team settings at runtime

1 messages · Page 1 of 1 (latest)

grave maple
#

updating to latest Mirror version breaks changing networkTeams at runtime.
you used to be able to call
SetPlayerTeamID
and
SetForceShown
but these were changed to syncvars with no public functions. This results in:
Modifying a [SyncVar] from another assembly is not supported

distant valley
#

@thorn shore

thorn shore
grave maple
#

I "fixed" it by monkeypatching the two functions back into NetworkTeam. On first glance this doesn't cause any issues but I obviously would prefer this to not be reverted everytime I update mirror

grave maple
#

@thorn shore I really don't see how you can mark this as resolved? you had a feature that got removed. Even if you overhauled it to a different system the documentation shows nothing about changing teams at runtime now, so does that mean we are just not supposed to?

thorn shore
grave maple
thorn shore
# grave maple so if thats the case changing teams at runtime is just broken in the latest stor...

This release has the Improved Team IM
https://github.com/MirrorNetworking/Mirror/releases/tag/v87.1.1

Updating Mirror:

0. Make new branch in version control
1. Remove old Mirror folder
2. Import the Mirror Unity Package from the above release
3. Close Unity
4. Delete Library/ScriptAssemblies folder
5. Restart Unity
6. Make any necessary changes per console warnings / errors
7. test and merge branch to main / master
grave maple
#

cheers for the link

thorn shore