Bug: ArgumentNullException in WorldMapIsland during Campaign mode world generation
142 °C
Bug #17
ArgumentNullException in WorldMapIsland during Campaign mode world generation
| Status: | Resolved |
| Priority: |
Critical |
| Added by: |
|
| Assigned to: |
Unassigned
|
| Due date: | |
| Reported for: |
V0.681
Auto
|
Steps to Reproduce
No steps to reproduce
Explanation
WorldMapIsland is experiencing ArgumentNullException when generating a new world in Campaign mode, resulting in failure to create island visuals due to a null shader parameter.
This issue was created from the following Discord message:
Bug: On generating a new world in Campaign mode
ArgumentNullException: Value cannot be null.
Parameter name: shader
at UnityEngine.Bindings.ThrowHelper.ThrowArgumentNullException (System.Object obj, System.String parameterName) [0x00018] in :0
at UnityEngine.Material.CreateWithShader (UnityEngine.Material self, UnityEngine.Shader shader) [0x00003] in :0
at UnityEngine.Material..ctor (UnityEngine.Shader shader) [0x00008] in :0
at WorldMapIsland.CreateIslandVisual () [0x00107] in :0
at WorldMapIsland.Initialize (UnityEngine.Vector2Int coords, WorldMapIslandSettings islandSettings) [0x00046] in :0
at WorldMapTile.CreateIsland () [0x0006b] in :0
at WorldMapTile.LoadTile () [0x00030] in :0
at WorldMapGenerator.LoadTile (UnityEngine.Vector2Int coordinates) [0x000cd] in :0
at WorldMapGenerator.ProcessTileQueues () [0x00076] in :0
at WorldMapGenerator.Update () [0x0004e] in :0
Link
ArgumentNullException: Value cannot be null.
Parameter name: shader
at UnityEngine.Bindings.ThrowHelper.ThrowArgumentNullException (System.Object obj, System.String parameterName) [0x00018] in :0
at UnityEngine.Material.CreateWithShader (UnityEngine.Material self, UnityEngine.Shader shader) [0x00003] in :0
at UnityEngine.Material..ctor (UnityEngine.Shader shader) [0x00008] in :0
at WorldMapIsland.CreateIslandVisual () [0x00107] in :0
at WorldMapIsland.Initialize (UnityEngine.Vector2Int coords, WorldMapIslandSettings islandSettings) [0x00046] in :0
at WorldMapTile.CreateIsland () [0x0006b] in :0
at WorldMapTile.LoadTile () [0x00030] in :0
at WorldMapGenerator.LoadTile (UnityEngine.Vector2Int coordinates) [0x000cd] in :0
at WorldMapGenerator.ProcessTileQueues () [0x00076] in :0
at WorldMapGenerator.Update () [0x0004e] in :0
Watchers
Screenshots
None
Video Clips
None
Log Files
None
Device
No device information
No comments yet.
You need to join this project to comment on issues.
Join Project