com.unity.multiplayer.sampl.../CHANGELOG.md

333 строки
12 KiB
Markdown
Исходник Обычный вид История

# Changelog
## [unreleased] yyyy-mm-dd
### Bitesize Samples Repository
#### Cleanup
- Formatted .cs files inside the Bitesize Samples repository to adhere to coding standards (#156) Internal testing job definition files were added in order for internal processes to execute.
### Client Driven
#### Fixed
- Added Spawner with event executed on Server Start to fix inconsistent ghost ingredients issue (#157)
2023-12-15 21:55:30 +03:00
## [1.5.0] 2023-12-15
### Bitesize Samples Repository
#### Cleanup
- Removed the usage of System.Linq across the repository (#146)
### 2D Space Shooter
#### Changed
- Upgraded to Netcode for GameObjects v1.7.1 (#147)
- Upgraded sample to 2022.3.14f1 LTS (#147)
2023-12-15 19:54:52 +03:00
- Upgraded Samples Utilities package to v1.8.0 (#151)
2023-12-15 22:11:19 +03:00
#### Fixed
- Corrected the variables used for initialization of Health and Energy (#150)
- Converted unnecessary ship thrust NetworkVariable to a float (#149)
- Fixed non-host clients not hearing the Fire SFX (#148)
### Client Driven
#### Changed
- Upgraded to Netcode for GameObjects v1.7.1 (#147)
- Upgraded sample to 2022.3.14f1 LTS (#147)
2023-12-15 19:54:52 +03:00
- Upgraded Samples Utilities package to v1.8.0 (#151)
### Dynamic Addressables Network Prefabs
#### Changed
- Upgraded to Netcode for GameObjects v1.7.1 (#147)
- Upgraded sample to 2022.3.14f1 LTS (#147)
### Invaders
#### Changed
- Upgraded to Netcode for GameObjects v1.7.1 (#147)
- Upgraded sample to 2022.3.14f1 LTS (#147)
2023-12-15 19:54:52 +03:00
- Upgraded Samples Utilities package to v1.8.0 (#151)
## [1.4.0] - 2023-09-25
### 2D Space Shooter
#### Changed
- Upgraded to Netcode for GameObjects v1.6.0 (#134)
- Upgraded sample to 2022.3.9f1 LTS (#134)
#### Fixed
- Fixed warnings when spawning new bullets or asteroids by instantiating a new NetworkVariable pre-spawn (#134)
### Client Driven
#### Changed
- Upgraded to Netcode for GameObjects v1.6.0 (#134)
- Upgraded sample to 2022.3.9f1 LTS (#134)
#### Fixed
- Added a script to handle NetworkObject parent changes on Ingredients to address a bug where Ingredients would not get stuck on client disconnect events (#136)
### Dynamic Addressables Network Prefabs
#### Changed
- Upgraded to Netcode for GameObjects v1.6.0 (#134)
- Upgraded sample to 2022.3.9f1 LTS (#134)
#### Fixed
- Fixed loaded status displayed on UI for synchronous prefab spawns inside 05_API Playground Showcasing All Post-Connection Use-Cases scene (#132)
2021-04-14 01:26:44 +03:00
### Invaders
#### Changed
- Upgraded to Netcode for GameObjects v1.6.0 (#134)
- Upgraded sample to 2022.3.9f1 LTS (#134)
Added Dedicated Game Server Sample (experimental) (#160) * feat: dgs core [MTT-6058] (#1) * Creating base project based on NGO template * feat: adding dedicated server package to DGS sample [MTT-6834] (#2) * Adding dedicated server package * enabling content selection and stripping rendering, UI, and Audio components on servers * using multiplayer role instead of configuration to define if server or client * Adding scene bootstrapper from Boss Room * Adding multiplayerRoleRestricted attribute to relevant scripts * updating to MPPM 0.5.0 * refactored game application and gamestate to isolate client and server code * Adding min number of players to config and using max from config * Shutting down the server after game ends or all clients disconnect * setting vsync count to 0 on servers * setting multiplayer role when building via BuildProcessor.cs * updating project editor version to 2023.3.0a7 * Updating CLIArgParser to use CLI Arguments from DedicatedServer * removing port and server ip from config file * Adding default config to additional build files * enabling dedicated server build optimizations in player settings * feature: adding DGS sample to CI [MTT-7459] (#3) * split the pr trigger and build jobs in separate files * moving test-editors as fields under each project, and adding the dgs sample to projects * adding tests to CI * renaming project to remove spaces in name * Adding support to build Linux/Mac/Windows clients and servers through menus * feat: player character and base level design [MTT-6059][MTT-7372][MTT-6063] (#5) * adding com.unity.multiplayer.samples.coop package * Adding third person starter assets * adding back animation module and updating assembly dependencies * adding starter assets asmdef * creating player character * creating environment * cleaning up UI and adding quit button * adding menu toggle action * cleaning up disconnect flow * setting builds to windowed mode * Adding game menu * displaying number of connected players * feat: DGS Sample AI characters [MTT-6062] (#6) * creating basic AI character patrolling between points * using NetcodeHooks class for spawn and despawn hooks * extracting character geometry and skeleton to prefabs * replacing network variable with rpc * updating mac image to more recent one * feature: add readme to DGS sample (#7) * creating readme file * adding UGS setup instructions * syntax fixes and adding links to package docs * Apply suggestions from code review Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> * add details for how to use MPPM * clarifying local multiplayer flow * removing doc link to page that doesnt exist yet * clarifying how to use autoconnect mode * Apply suggestions from code review Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> * adding link to doc for port forwarding * Apply suggestions from code review Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> * Apply suggestions from code review Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> Co-authored-by: Louis-Philippe Lafontaine-Bédard <louisphilippe.lb@unity3d.com> * [Documentation] Removed useless section * [Documentation] Applied feedback from PR * Update Experimental/DedicatedGameServer/README.md Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> * Apply suggestions from code review Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> * chore: updated readme with suggestions * Update Experimental/DedicatedGameServer/README.md Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> * Update Experimental/DedicatedGameServer/README.md Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> * chore: Fixed typos --------- Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> Co-authored-by: Paolo Abela <paolo.abela@unity3d.com> Co-authored-by: Paolo Abela <rikudefuffs@gmail.com> * Project version upgrade + mini fix [MTT-7789] (#10) * chore: updated project version to alpha 17 * chore: Updated multiplayer packages * chore: reserealized proejct settings * fix: stripped AICharacter animator component from server instances * chore: disabled default network prefabs generation [skip ci] * feat: removed Bootstrapper tool [MTT-7632] (#11) * feat: removed Bootstrapper tool and used serialized fields instead [MTT-7632] * fix: fixed faulty initialization due to race conditions * chore: added comments and error logs * Doors integration [MTT-6061] (#12) * importing door scripts, models and animations from boss room * adding doors to environment * changing match duration to 5 minutes * feat: Added logic that allows doors to be opened if at least one player is nearby, and to display the related UI on clients chore: removed FloorSwitch assets * feat: players can now be detected by doors when they collide * feat: added "OpenDoor" input detection * feat: doors open when a player asks them to do so --------- Co-authored-by: LPLafontaineB <louisphilippe.lb@unity3d.com> * chore: updated multiplayer packages to solve UGS integration issues * DGS door UI (#13) * feat: Added predicted and reconciled UI for InteractiveDoor * fix: fixed scaling of door interaction UI * chore: updated CI windows image --------- Co-authored-by: Paolo Abela <rikudefuffs@gmail.com> * DGS readme corrections [MTT-7869] (#14) * chore: updated README * chore: Apply suggestions from code review Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> --------- Co-authored-by: Paolo Abela <rikudefuffs@gmail.com> Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> * Feature: Dedicated Game Server Sample Art Pass [MTT-7403] (#8) * URP settings updates: deleted 2D version and replaced with 3D version * added colors and landmarks to the enviro, reorganized enviro prefab * updated UI with stylesheet from other samples * Added character color shader * updated player colors * Color updates and the addition of player icons * Reorg of environment prefab, reimplementation of character numbers * deletion of unneeded assets * removed debugging method * adjusted URP asset to minimize shadow artifacts * environment tweaks * slightly update door UI * moved a pillar to be in desired position * chore: Updated NGO to 1.8.0 to match the version ran in the CI * deleted unused script * made unnecessarily public class internal, also cleaned out some redundant code --------- Co-authored-by: Paolo Abela <paolo.abela@unity3d.com> * [DGS] Unneded systems strip [MTT-8054] (#15) * chore: added missing newline to readme * chore: optimization. stripped out all default rendering, UI and audio components * Fixed incorrect CI settings (#16) * chore: fixed CI tests not running properly * chore: (CI) updated Windows image and added specific editor version * chore: (CI) updated mac image * chore: updated dedicated server and multiplayer play mode packages to 1.0.0 (#18) * chore: updated documentation links * chore: removed unneeded folders * chore: added instructions related to how to change the amount of players in a section [skip ci] --------- Co-authored-by: Louis-Philippe Lafontaine-Bédard <louisphilippe.lb@unity3d.com> Co-authored-by: Vic Cooper <vic.cooper@unity3d.com> Co-authored-by: Paolo Abela <paolo.abela@unity3d.com> Co-authored-by: Fernando Cortez <fernando.cortez@unity3d.com> Co-authored-by: Jil Franco <jillian.franco@unity3d.com>
2024-03-22 15:05:57 +03:00
## [Unreleased]
### Dedicated Game Server
todo: the changelog entry for this sample will be updated with subsequent PRs before being merged when ready
- New Dedicated Game Server sample. (#1) This sample's goal is to demonstrate how to use the different tools and packages available to create a game using the dedicated server approach. It requires editor version 2023.3.
## [1.3.0] - 2023-07-07
### Dynamic Addressables Network Prefabs
#### Changed
- Upgrade to Netcode for GameObjects 1.4.0 (#118)
- Upgraded sample to 2021.3.24f1 LTS (#119)
- Upgraded sample to 2022.3.0f1 LTS (#124)
#### Fixed
- Resolved visual bug where the load status of dynamic prefabs on the host was not correct (#111)
### 2D Space Shooter
#### Changed
- Upgrade to Netcode for GameObjects 1.4.0 (#118)
- Upgraded sample to 2021.3.24f1 LTS (#119)
- Upgraded sample to 2022.3.0f1 LTS (#124)
- Upgraded Samples Utilities version to v2.2.0 (#129)
### Client Driven
#### Changed
- Upgrade to Netcode for GameObjects 1.4.0 (#118)
- Upgraded sample to 2021.3.24f1 LTS (#119)
- Upgraded sample to 2022.3.0f1 LTS (#124)
- Upgraded Samples Utilities version to v2.2.0 (#129)
### Invaders
#### Changed
- Upgrade to Netcode for GameObjects 1.4.0 (#118)
- Upgraded sample to 2021.3.24f1 LTS (#119)
- Upgraded sample to 2022.3.0f1 LTS (#124)
- Upgraded Samples Utilities version to v2.2.0 (#129)
#### Fixed
- IP address input field text value is now passed into UTP's ConnectionData, allowing for remote IP address hosting (#112)
- Enemy and Player bullet explosion FX are now replicated on clients via ClientRpcs (#113)
- Fixed an error produced when a client disconnected once the host disconnected after the game was complete (#124)
### Bitesize Samples Repository
#### Fixed
- Removed individual gitignore files for individual projects and added parrelsync clones to root gitignore file (#117)
- Fixed link to old tutorial and clarified supported platforms (#120)
## [1.2.1] - 2023-02-17
### Dynamic Addressables Network Prefabs
#### Changed
- Readme updated with link to the Dynamic Addressables Network Prefabs sample documentation, and broken links fixed (#106)
### 2D Space Shooter
#### Changed
- Readme updated with link to the 2D Space Shooter sample documentation, and broken links fixed (#106)
### Client Driven
#### Changed
- Readme updated with link to the Client Driven sample documentation, and broken links fixed (#106)
### Invaders
#### Changed
- Readme updated with link to the Invaders samples documentation, and broken links fixed (#106)
### Bitesize Samples Repository
#### Fixed
- Readme formatting adjustments and broken link fixes (#106) (#108)
## [1.2.0] - 2023-02-16
### Dynamic Addressables Network Prefabs Sample
Added the Dynamic Addressables Network Prefabs Sample. This sample showcases the available use-cases for the dynamic prefab system, which allows us to add new spawnable prefabs at runtime. This would be useful for games trying to use both [Addressables](https://docs.unity3d.com/Packages/com.unity.addressables@0.8/manual/index.html) and Netcode for GameObjects (#63) (#94) (#96) (#97) (#98) (#99) (#100) (#101) (#103)
### 2DSpaceShooter
#### Fixed
- Resolved issue where the colour of powerups was not displayed correctly (#91)
- Removing warning when spawning powerups (#90). Fixed the order in which powerups were spawned and when their NetworkVariable value was initialized. Now they are spawned beforehand.
- Fixing bullet explosion desync (#89). Bullet explosion vfx were happening too early on clients because of NetworkTransform's interpolation. Bullets are now no longer synchronised by NetworkTransforms and instead only have their velocity set through client rpcs when they are spawned. Since they are no longer interpolated, they are not lagging behind the server and are at the correct position when they receive the despawn message from the server.
- Fix: Broken Reference for Underline Character in Font Asset (#87)
#### Changed
- Upgraded sample to 2021.3.18f1 LTS (#91)
- Readme was updated (#96)
- Added readme banner image (#101)
### Client Driven
#### Changed
- Upgraded sample to 2021.3.18f1 LTS (#91)
- Readme was updated (#96)
- Added readme banner image (#101)
### Invaders
#### Changed
- Upgraded sample to 2021.3.18f1 LTS (#91)
- Readme was updated (#96)
- Added readme banner image (#101)
### Bitesize Samples Repository
#### Changed
- Readme was updated (#96)
## [1.1.0] - 2022-12-13
feat: Third Person Character Controller integration with custom IP UI (#66) * third person controller assets added * dependencies updated * integration of networked third person character avatar * using NGO 1.1.0 * targeting Boss Room's utility package commit for ClientNetworkAnimator * IP window allows for custom IP using UI Toolkit, player apply force re-added * feedback: non-alloc raycasts, less spawns, format, etc * removing motionspeed animation speed multiplier * player spawned after spawn points are consumed is spawned at world origin * feedback on formatting & interactivity * changlog addition, more feedback changes * MTT stamps for thirdpersoncontroller script * reordering when iskinematic is enabled * capsule collider added to ghost players, ingredient is dropped overhead * ground layer usage * stove collider upsize * restoring drop overhead, removing fixedupdate usage * re-enabling footstep sound on ghost clients * more description on MTT usage * re-added MotionSpeed functionality, any mapping can apply input (input disabled on out of focus devices) * pickup height bumped up * documenting NGO workaround to set in-scene NetworkVariable starting values * dropzone prefab scale correction * removing old host/join component, player motionspeed default param set to 1 * removing workaround on networkvariables on in-scene placed NetworkObjects * updating the project to 2021.3.15f1 * adding rigidbody interpolation to the ingredient prefabs * turning off interpolation while object is picked up * updating boss room utilites package version
2022-12-06 22:43:26 +03:00
### Client Driven
#### Changed
- Changed connection UI to use UI buttons and events instead of OnGUI [MTT-4201] (#60)
- ThirdPersonController starter assets added (#62)
- Uniformize gitignore files (#65)
- Art Pass (#68)
- Anti Aliasing (#72)
- Third Person Character Controller integration with custom IP UI (#66) The sample has been refactored to feature a PlayerPrefab inside NetworkManager that is a networked variant of a prefab from [Unity's Starter Assets](https://assetstore.unity.com/packages/essentials/starter-assets-third-person-character-controller-196526). Other improvements include:
feat: Third Person Character Controller integration with custom IP UI (#66) * third person controller assets added * dependencies updated * integration of networked third person character avatar * using NGO 1.1.0 * targeting Boss Room's utility package commit for ClientNetworkAnimator * IP window allows for custom IP using UI Toolkit, player apply force re-added * feedback: non-alloc raycasts, less spawns, format, etc * removing motionspeed animation speed multiplier * player spawned after spawn points are consumed is spawned at world origin * feedback on formatting & interactivity * changlog addition, more feedback changes * MTT stamps for thirdpersoncontroller script * reordering when iskinematic is enabled * capsule collider added to ghost players, ingredient is dropped overhead * ground layer usage * stove collider upsize * restoring drop overhead, removing fixedupdate usage * re-enabling footstep sound on ghost clients * more description on MTT usage * re-added MotionSpeed functionality, any mapping can apply input (input disabled on out of focus devices) * pickup height bumped up * documenting NGO workaround to set in-scene NetworkVariable starting values * dropzone prefab scale correction * removing old host/join component, player motionspeed default param set to 1 * removing workaround on networkvariables on in-scene placed NetworkObjects * updating the project to 2021.3.15f1 * adding rigidbody interpolation to the ingredient prefabs * turning off interpolation while object is picked up * updating boss room utilites package version
2022-12-06 22:43:26 +03:00
- Input polling via the new Input System
- Connection UI utilizes UI Toolkit
- Updated to Unity 2021.3.15f1 LTS
- Change URP grading mode to HDR (#73)
- Player Colors (#75)
- UI Art (#69)
- Readme added (#76)
- Upgrade to Netcode for GameObjects v1.2.0 & cleaned up in-scene NetworkVariables (#78)
- Ingredient spawn position offset (#81)
- In-game UI backgrounds (#82)
- Initial position sync fix on owning clients (#85)
### 2DSpaceShooter
#### Changed
- UI Pass using UI Toolkit (#55)
- Uniformize gitignore files (#65)
- 2DSpaceShooter & Invaders 2021.3.15f1 LTS update & Readmes (#77)
- Updating Invaders and 2DSpaceShooter to Netcode for GameObjects v1.2.0 (#84)
### Invaders
#### Fixed
- Fixing NotServerException [MTT-4029] (#59)
- Despawning enemies instead of destroying them (#74)
#### Changed
- Updated to Unity 2021.3.15f1 LTS
- 2DSpaceShooter & Invaders 2021.3.15f1 LTS update & Readmes (#77)
- Updating Invaders and 2DSpaceShooter to Netcode for GameObjects v1.2.0 (#84)
feat: Third Person Character Controller integration with custom IP UI (#66) * third person controller assets added * dependencies updated * integration of networked third person character avatar * using NGO 1.1.0 * targeting Boss Room's utility package commit for ClientNetworkAnimator * IP window allows for custom IP using UI Toolkit, player apply force re-added * feedback: non-alloc raycasts, less spawns, format, etc * removing motionspeed animation speed multiplier * player spawned after spawn points are consumed is spawned at world origin * feedback on formatting & interactivity * changlog addition, more feedback changes * MTT stamps for thirdpersoncontroller script * reordering when iskinematic is enabled * capsule collider added to ghost players, ingredient is dropped overhead * ground layer usage * stove collider upsize * restoring drop overhead, removing fixedupdate usage * re-enabling footstep sound on ghost clients * more description on MTT usage * re-added MotionSpeed functionality, any mapping can apply input (input disabled on out of focus devices) * pickup height bumped up * documenting NGO workaround to set in-scene NetworkVariable starting values * dropzone prefab scale correction * removing old host/join component, player motionspeed default param set to 1 * removing workaround on networkvariables on in-scene placed NetworkObjects * updating the project to 2021.3.15f1 * adding rigidbody interpolation to the ingredient prefabs * turning off interpolation while object is picked up * updating boss room utilites package version
2022-12-06 22:43:26 +03:00
2021-10-21 01:21:30 +03:00
## [1.0.0] - 2021-10-20
2021-10-21 01:41:50 +03:00
### Client Driven
A new sample was added named client driven. It focus on client driven movements, networked physics, spawning vs statically placed objects, object reparenting
2021-10-21 01:21:30 +03:00
### Invaders
#### Changed
- Updated to Netcode for GameObjects 1.0.0.
- Player now use ClientNetworkTransform for client driven movement
- Network Manager now uses Unity Transport instead of UNet
- SceneTransitionHandler : now uses the new Scene Manager and Scene Loading events
- InvadersGame : replicated time remaining now uses a RPC instead of a one time synchonized NetworkVariable
#### Fixed
- Network behaviour in OnDestroy was moved to OnNetworkDespawn
### 2DSpaceShooter
#### Changed
- Updated to Netcode for GameObjects 1.0.0.
- Player name is no longer static but based on the client id.
#### Fixed
- Fixed a bug where explosions from bullet impacts where only visible on the host.
- Fixed a bug where setting the hosts port in the UI wouldn't change the port on which the server was hosted.
2021-07-21 14:21:14 +03:00
## [0.2.0] - 2021-07-21
2021-07-20 18:16:36 +03:00
2021-07-21 14:21:14 +03:00
### Invaders
#### New Changes
2021-07-20 18:16:36 +03:00
- Game - rename all our alien prefabs to have a more generic name, the same principle was applied to our codebase, renamed variables/fields/classes to something more generic
- Game: Fix a crash in shipping build
- Enemies: Rename our main enemy class to EnemyAgent + minor clean-ups + implement a grace shoot timer period
- InvadersGame: Some big refactories here, the UpdateEnemies function not outputs a set of flags (bitmask) rather than having separated booleans to keep track off
- InvadersGame: Fix an edge case of the game loop where if the enemies would reach the bottom they would never respawn, now when they do reach that bottom boundary it will be game over
- InvadersGame: Introduce additional game over reasons
- LobbyControl: Introduce a minimum player count variable that could be tweaked in the inspector so that the users can start playing in the editor with just the host in the lobby
- PlayerControl: Unified the NotifyGameOver function with the InvadersGame one + added different texts for all the possible game over reasons to be displayed
- PlayerControl: Fix a minor issue where the Player graphics are not hidden on all connected instances upon "death".
2021-07-21 14:21:14 +03:00
#### Known Issues
2021-07-20 18:16:36 +03:00
- Upon import a MissingReferenceException is triggered from within MLAPI: **"MissingReferenceException: The object of type GameObject has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object."** in:
- UnityEngine.GameObject.GetComponent[T] () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/GameObject.bindings.cs:28)
2021-07-21 14:21:14 +03:00
### 2DSpaceShooter
#### New Changes
- Cleaned up project structure, removed duplicate art assets and moved remaining asset into sub folders.
- Removed empty MonoBehaviours which were used as tags and using the Unity tag system instead.
- Removed the dependency to the community contributions repository and copied `NetworkManagerHud` and `NetworkObjectPool` into the sample.
- Small QoL improvements to scripting. Using `TryGetComponent` and `CompareTag`.
2021-07-22 11:53:47 +03:00
- Fix audio issues by moving the audio listener onto the player ship object.
2021-07-21 14:21:14 +03:00
#### Known Issues
- Missing Reference Exception thrown when leaving playmode, can be ignored:<br>
*MissingReferenceException: The object of type 'NetworkObjectPool' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
MLAPI.Extensions.NetworkObjectPool.ReturnNetworkObject*
2021-04-14 01:26:44 +03:00
## [0.1.0] - 2021-04-07
Initial release of MLAPI Bitesize Samples repository. Samples support the following versions:
2021-04-14 01:26:44 +03:00
| Unity Version | Unity MLAPI Version |
| -- | -- |
| 2020.3 | 0.1.0 |
### New features
- Added Invaders sample.
- Added 2D Space Shooter sample.
2021-04-22 20:09:01 +03:00
### License
2021-10-21 01:37:30 +03:00
The Bitesize Samples repository and code projects are licensed under the Unity Companion License for Unity-dependent projects (see https://unity3d.com/legal/licenses/unity_companion_license). See [LICENSE](https://github.com/Unity-Technologies/com.unity.multiplayer.samples.bitesize/blob/main/LICENSE.md) for full details.