Skip to content
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

[PROBLEM] the game doesn't start. #12

Open
SashaRomanov opened this issue Jun 14, 2020 · 2 comments
Open

[PROBLEM] the game doesn't start. #12

SashaRomanov opened this issue Jun 14, 2020 · 2 comments

Comments

@SashaRomanov
Copy link

I'm getting this error

UnassignedReferenceException: The variable meshRenderer of UnitModel has not been assigned.
You probably need to assign the meshRenderer variable of the UnitModel script in the inspector.
UnityEngine.Renderer.get_sharedMaterials () (at /home/builduser/buildslave/unity/build/Runtime/Export/Graphics/GraphicsRenderers.bindings.cs:145)
Client.UnitModel.CreateTransparentMaterials () (at Assets/Scripts/Client/Rendering/Unit Renderer/Unit Model/UnitModel.cs:186)
Client.UnitModel.ToggleTransparentMode (System.Boolean apply, System.Single currentAlpha, System.Single targetAlpha) (at Assets/Scripts/Client/Rendering/Unit Renderer/Unit Model/UnitModel.cs:146)
Client.UnitModel.Initialize (Client.UnitModelInitializer initializer) (at Assets/Scripts/Client/Rendering/Unit Renderer/Unit Model/UnitModel.cs:58)
Client.UnitRenderer.ReplaceModel (System.Int32 modelId, Client.UnitModelReplacementMode mode) (at Assets/Scripts/Client/Rendering/Unit Renderer/UnitRenderer.cs:139)
Client.UnitRenderer.Attach (Core.Unit unit) (at Assets/Scripts/Client/Rendering/Unit Renderer/UnitRenderer.cs:29)
Client.RenderingReference+UnitRendererController.AttachRenderer (Core.Unit unit) (at Assets/Scripts/Client/Rendering/Unit Renderer/UnitRendererController.cs:121)
Client.RenderingReference+UnitRendererController.OnServerVisibilityChanged (Core.WorldEntity worldEntity, System.Boolean visible) (at Assets/Scripts/Client/Rendering/Unit Renderer/UnitRendererController.cs:167)
Common.EventHandler.ExecuteEvent[T1,T2] (System.Object target, Common.GameEvents gameGameEvent, T1 arg1, T2 arg2) (at Assets/Scripts/Common/Common/EventHandler.cs:223)
Core.Player+VisibilityController.SetScopeOf (Core.WorldEntity target, System.Boolean inScope) (at Assets/Scripts/Core/Entity/Player/Controllers/Player.VisibilityController.cs:47)
Core.Player+VisibilityController.UpdateVisibilityOf (Core.WorldEntity target) (at Assets/Scripts/Core/Entity/Player/Controllers/Player.VisibilityController.cs:77)
Core.MapGrid+PlayerVisibilityNotifier.HandleUnitVisibility (Core.Unit target) (at Assets/Scripts/Core/World/Grid/MapGrid.PlayerVisibilityNotifier.cs:39)
Core.MapGrid+PlayerVisibilityNotifier.Core.IUnitVisitor.Visit (Core.Player player) (at Assets/Scripts/Core/World/Grid/MapGrid.PlayerVisibilityNotifier.cs:45)
Core.Player.Accept (Core.IUnitVisitor visitor) (at Assets/Scripts/Core/Entity/Player/Player.cs:144)
Core.MapGrid+Cell.Visit (Core.IUnitVisitor unitVisitor) (at Assets/Scripts/Core/World/Grid/MapGrid.Cell.cs:80)
Core.MapGrid.VisitInRadius (Core.WorldEntity referer, System.Single radius, Core.IUnitVisitor unitVisitor) (at Assets/Scripts/Core/World/Grid/MapGrid.Base.cs:158)
Core.MapGrid.UpdateVisibility (Core.Player player, System.Boolean forceUpdateOthers) (at Assets/Scripts/Core/World/Grid/MapGrid.Base.cs:129)
Core.MapGrid+CellRelocator.Core.IUnitVisitor.Visit (Core.Player player) (at Assets/Scripts/Core/World/Grid/MapGrid.CellRelocator.cs:46)
Core.Player.Accept (Core.IUnitVisitor visitor) (at Assets/Scripts/Core/Entity/Player/Player.cs:144)
Core.MapGrid+Cell.Visit (Core.IUnitVisitor unitVisitor) (at Assets/Scripts/Core/World/Grid/MapGrid.Cell.cs:80)
Core.MapGrid.DoUpdate (System.Int32 deltaTime) (at Assets/Scripts/Core/World/Grid/MapGrid.Base.cs:75)
Core.Map.DoUpdate (System.Int32 deltaTime) (at Assets/Scripts/Core/Map/Map.cs:51)
Core.MapManager.DoUpdate (System.Int32 timeDiff) (at Assets/Scripts/Core/Map/MapManager.cs:45)
Core.World.DoUpdate (System.Int32 deltaTime) (at Assets/Scripts/Core/World/World.cs:40)
Server.WorldServer.DoUpdate (System.Int32 deltaTime) (at Assets/Scripts/Server/Multiplayer/WorldServer.cs:45)
Game.GameManager.Update () (at Assets/Scripts/Workflow/GameManager.cs:56)

when i start single or create server, am i missing something here ?

@Reinisch
Copy link
Owner

It looks like one of the models is missing mesh renderer reference. Check model prefabs at Prefabs/Unit/Models, maybe you tried copying new model?

@Reinisch
Copy link
Owner

Probably Mage or Druid Cat prefab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants