RE-SS3D / SS3D

Space Station 3D, another remake of SS13, but with an extra D.
https://ss3d.space/
255 stars 140 forks source link

Loading a map #1407

Closed iamteapot422 closed 9 months ago

iamteapot422 commented 9 months ago

Summary

Game breaks after trying to load Minimap

Steps to Reproduce

  1. Open build menu
  2. Choose load and then "Ministation"
  3. See plenum station appear
  4. See exception appear
    NullReferenceException: Object reference not set to an instance of an object
    SS3D.Systems.Tile.TileMap.CanBuild (SS3D.Systems.Tile.TileObjectSo tileObjectSo, UnityEngine.Vector3 placePosition, SS3D.Systems.Tile.Direction dir, System.Boolean replaceExisting) (at Assets/Scripts/SS3D/Systems/Tile/TileMap.cs:184)
    SS3D.Systems.Tile.TileMap.PlaceTileObject (SS3D.Systems.Tile.TileObjectSo tileObjectSo, UnityEngine.Vector3 placePosition, SS3D.Systems.Tile.Direction dir, System.Boolean skipBuildCheck, System.Boolean replaceExisting, System.Boolean skipAdjacency) (at Assets/Scripts/SS3D/Systems/Tile/TileMap.cs:202)

Expected Behavior

Context

It may be related with wrong asset names in files of maps

cosmiccoincidence commented 9 months ago

I believe this was fixed in #1396 but yet to be merged. If that PR isn't merged soonish, we can siphon out the map fix and pr that separately.