Skip to content

Commit

Permalink
Merge pull request #872 from Unity-Technologies/release/2.4.0
Browse files Browse the repository at this point in the history
release: v2.4.0
  • Loading branch information
fernando-cortez authored Dec 13, 2023
2 parents 1b5d166 + 0bd36bf commit e48babb
Show file tree
Hide file tree
Showing 18 changed files with 91 additions and 56 deletions.
6 changes: 3 additions & 3 deletions Assets/Scripts/Gameplay/GameState/ServerBossRoomState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ void SpawnPlayer(ulong clientId, bool lateJoin)
}
}

networkAvatarGuidState.AvatarGuid.Value =
persistentPlayer.NetworkAvatarGuidState.AvatarGuid.Value;
// instantiate new NetworkVariables with a default value to ensure they're ready for use on OnNetworkSpawn
networkAvatarGuidState.AvatarGuid = new NetworkVariable<NetworkGuid>(persistentPlayer.NetworkAvatarGuidState.AvatarGuid.Value);

// pass name from persistent player to avatar
if (newPlayer.TryGetComponent(out NetworkNameState networkNameState))
{
networkNameState.Name.Value = persistentPlayer.NetworkNameState.Name.Value;
networkNameState.Name = new NetworkVariable<FixedPlayerName>(persistentPlayer.NetworkNameState.Name.Value);
}

// spawn players characters with destroyWithScene = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public override void Publish(T message)

void SendMessageThroughNetwork(T message)
{
// Avoid throwing an exception if you are in the middle of shutting down and either
// NetworkManager no longer exists or the CustomMessagingManager no longer exists.
if (m_NetworkManager == null || m_NetworkManager.CustomMessagingManager == null)
{
return;
}
var writer = new FastBufferWriter(FastBufferWriter.GetWriteSize<T>(), Allocator.Temp);
writer.WriteValueSafe(message);
m_NetworkManager.CustomMessagingManager.SendNamedMessageToAll(m_Name, writer);
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com).

## [2.4.0] - 2023-12-13

### Changed
* Upgraded editor version to 2022.3.14f1 (#871)
* com.unity.ai.navigation upgraded to v1.1.5
* com.unity.render-pipelines.universal upgraded to v14.0.9
* com.unity.services.authentication upgraded to v2.7.1
* Upgraded Boss Room to Netcode for GameObjects v1.7.1 (#871)

### Fixed
* Fixed NetworkVariable warnings that would be logged when a player was spawned (#863) For a player, certain NetworkVariable values were previously modified before the player's NetworkObject was spawned, resulting in warnings. Now, the NetworkVariable itself is instantiated on the server pre-spawn, such that it is instantiated with the new default value, ensuring the new default value is ready to be read on subsequent OnNetworkSpawn methods for said NetworkObject.

## [2.3.0] - 2023-09-07

### Changed
Expand Down
4 changes: 2 additions & 2 deletions Documentation/Images/BuildProject.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Documentation/Images/StartupScene.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Packages/com.unity.multiplayer.samples.coop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Multiplayer Samples Co-op Changelog

## [1.8.0] - 2023-12-13

### Changed
* Upgraded Utilities package to Netcode for GameObjects v1.7.1 (#871)

## [1.7.0] - 2023-09-07

### Changed
Expand Down
4 changes: 2 additions & 2 deletions Packages/com.unity.multiplayer.samples.coop/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "com.unity.multiplayer.samples.coop",
"displayName": "Multiplayer Samples Utilities",
"version": "1.6.1",
"version": "1.8.0",
"type": "template",
"host": "hub",
"unity": "2020.3",
"description": "Utilities package built on top of Netcode for GameObjects, providing useful scripts and tools.",
"dependencies": {
"com.unity.learn.iet-framework": "3.1.3",
"com.unity.multiplayer.tools": "1.1.0",
"com.unity.netcode.gameobjects": "1.6.0",
"com.unity.netcode.gameobjects": "1.7.1",
"com.unity.services.relay": "1.0.5"
}
}
18 changes: 9 additions & 9 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"dependencies": {
"com.unity.2d.sprite": "1.0.0",
"com.unity.ai.navigation": "1.1.4",
"com.unity.ai.navigation": "1.1.5",
"com.unity.cinemachine": "2.9.5",
"com.unity.collab-proxy": "2.0.5",
"com.unity.ide.rider": "3.0.24",
"com.unity.ide.visualstudio": "2.0.18",
"com.unity.collab-proxy": "2.2.0",
"com.unity.ide.rider": "3.0.26",
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.ide.vscode": "1.2.5",
"com.unity.learn.iet-framework": "3.1.3",
"com.unity.memoryprofiler": "1.0.0",
"com.unity.memoryprofiler": "1.1.0",
"com.unity.multiplayer.tools": "2.0.0-pre.3",
"com.unity.netcode.gameobjects": "1.6.0",
"com.unity.netcode.gameobjects": "1.7.1",
"com.unity.performance.profile-analyzer": "1.2.2",
"com.unity.postprocessing": "3.2.2",
"com.unity.render-pipelines.universal": "14.0.8",
"com.unity.services.authentication": "2.7.1",
"com.unity.render-pipelines.universal": "14.0.9",
"com.unity.services.authentication": "2.7.2",
"com.unity.services.lobby": "1.1.0",
"com.unity.services.relay": "1.0.5",
"com.unity.test-framework": "1.1.33",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.7.5",
"com.unity.timeline": "1.7.6",
"com.unity.toolchain.macos-x86_64-linux-x86_64": "2.0.4",
"com.unity.transport": "2.0.2",
"com.unity.ugui": "1.0.0",
Expand Down
53 changes: 31 additions & 22 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {}
},
"com.unity.ai.navigation": {
"version": "1.1.4",
"version": "1.1.5",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -16,7 +16,7 @@
"url": "https://packages.unity.com"
},
"com.unity.burst": {
"version": "1.8.7",
"version": "1.8.10",
"depth": 1,
"source": "registry",
"dependencies": {
Expand All @@ -34,7 +34,7 @@
"url": "https://packages.unity.com"
},
"com.unity.collab-proxy": {
"version": "2.0.5",
"version": "2.2.0",
"depth": 0,
"source": "registry",
"dependencies": {},
Expand Down Expand Up @@ -66,7 +66,7 @@
"url": "https://packages.unity.com"
},
"com.unity.ide.rider": {
"version": "3.0.24",
"version": "3.0.26",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -75,7 +75,7 @@
"url": "https://packages.unity.com"
},
"com.unity.ide.visualstudio": {
"version": "2.0.18",
"version": "2.0.22",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down Expand Up @@ -108,7 +108,7 @@
"url": "https://packages.unity.com"
},
"com.unity.memoryprofiler": {
"version": "1.0.0",
"version": "1.1.0",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -123,7 +123,7 @@
"dependencies": {
"com.unity.learn.iet-framework": "3.1.3",
"com.unity.multiplayer.tools": "1.1.0",
"com.unity.netcode.gameobjects": "1.6.0",
"com.unity.netcode.gameobjects": "1.7.1",
"com.unity.services.relay": "1.0.5"
}
},
Expand All @@ -143,12 +143,12 @@
"url": "https://packages.unity.com"
},
"com.unity.netcode.gameobjects": {
"version": "1.6.0",
"version": "1.7.1",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.nuget.mono-cecil": "1.10.1",
"com.unity.transport": "1.3.4"
"com.unity.transport": "1.4.0"
},
"url": "https://packages.unity.com"
},
Expand Down Expand Up @@ -190,7 +190,7 @@
"url": "https://packages.unity.com"
},
"com.unity.render-pipelines.core": {
"version": "14.0.8",
"version": "14.0.9",
"depth": 1,
"source": "builtin",
"dependencies": {
Expand All @@ -201,14 +201,23 @@
}
},
"com.unity.render-pipelines.universal": {
"version": "14.0.8",
"version": "14.0.9",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.mathematics": "1.2.1",
"com.unity.burst": "1.8.4",
"com.unity.render-pipelines.core": "14.0.8",
"com.unity.shadergraph": "14.0.8"
"com.unity.burst": "1.8.9",
"com.unity.render-pipelines.core": "14.0.9",
"com.unity.shadergraph": "14.0.9",
"com.unity.render-pipelines.universal-config": "14.0.9"
}
},
"com.unity.render-pipelines.universal-config": {
"version": "14.0.9",
"depth": 1,
"source": "builtin",
"dependencies": {
"com.unity.render-pipelines.core": "14.0.9"
}
},
"com.unity.searcher": {
Expand All @@ -219,7 +228,7 @@
"url": "https://packages.unity.com"
},
"com.unity.services.authentication": {
"version": "2.7.1",
"version": "2.7.2",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -231,7 +240,7 @@
"url": "https://packages.unity.com"
},
"com.unity.services.core": {
"version": "1.10.1",
"version": "1.12.0",
"depth": 1,
"source": "registry",
"dependencies": {
Expand Down Expand Up @@ -290,13 +299,13 @@
"url": "https://packages.unity.com"
},
"com.unity.services.wire": {
"version": "1.2.0",
"version": "1.2.2",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.services.core": "1.10.1",
"com.unity.services.core": "1.11.0",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.services.authentication": "2.6.1"
"com.unity.services.authentication": "2.7.2"
},
"url": "https://packages.unity.com"
},
Expand All @@ -308,11 +317,11 @@
"url": "https://packages.unity.com"
},
"com.unity.shadergraph": {
"version": "14.0.8",
"version": "14.0.9",
"depth": 1,
"source": "builtin",
"dependencies": {
"com.unity.render-pipelines.core": "14.0.8",
"com.unity.render-pipelines.core": "14.0.9",
"com.unity.searcher": "4.9.2"
}
},
Expand Down Expand Up @@ -353,7 +362,7 @@
"url": "https://packages.unity.com"
},
"com.unity.timeline": {
"version": "1.7.5",
"version": "1.7.6",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions ProjectSettings/NetcodeForGameObjects.asset
Git LFS file not shown
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectSettings.asset
Git LFS file not shown
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 2022.3.7f1
m_EditorVersionWithRevision: 2022.3.7f1 (b16b3b16c7a0)
m_EditorVersion: 2022.3.14f1
m_EditorVersionWithRevision: 2022.3.14f1 (eff2de9070d8)
4 changes: 2 additions & 2 deletions ProjectSettings/ShaderGraphSettings.asset
Git LFS file not shown
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<br>

[![UnityVersion](https://img.shields.io/badge/Unity%20Version:-2022.3%20LTS-57b9d3.svg?logo=unity&color=2196F3)](https://unity.com/releases/editor/whats-new/2022.3.0)
[![NetcodeVersion](https://img.shields.io/badge/Netcode%20Version:-1.6.0-57b9d3.svg?logo=unity&color=2196F3)](https://docs-multiplayer.unity3d.com/netcode/1.6.0/about)
[![LatestRelease](https://img.shields.io/badge/Latest%20Github%20Release:-v2.3.0-57b9d3.svg?logo=github&color=brightgreen)](https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop/releases/tag/v2.3.0)
[![NetcodeVersion](https://img.shields.io/badge/Netcode%20Version:-1.7.1-57b9d3.svg?logo=unity&color=2196F3)](https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/releases/tag/ngo%2F1.7.1)
[![LatestRelease](https://img.shields.io/badge/Latest%20Github%20Release:-v2.4.0-57b9d3.svg?logo=github&color=brightgreen)](https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop/releases/tag/v2.4.0)
<br><br>

Boss Room is a fully functional co-op multiplayer RPG made with Unity Netcode. It is an educational sample designed to showcase typical netcode [patterns](https://docs-multiplayer.unity3d.com/netcode/current/learn/bossroom/bossroom-actions/index.html) that are frequently featured in similar multiplayer games.
Expand Down

0 comments on commit e48babb

Please sign in to comment.