#632: MapMagic 2 / General Bugz
Status: Completed

https://forum.unity.com/threads/released-mapmagic-2-infinite-procedural-land-generator.875470/page-15#post-6777395

Hey @Wright,downloaded latest master from your GitLab to test the new functions/expose setup beforehand. Here is some feedback:

Unexposing values doesn't remove them from the function node sometimes.

  • When I expose some value and don't override it, it is considered as 0. For example, I exposed Cell Size in Voronoi which value vas 20. I left the exposed value as 20 without change but I got errors in the console that the cell size is zero. As soon as I updated the exposed value to say 21, or back to 20 again, it started working.

  • I can't change the default value after I expose it - for example, I expose Size in Noise which was 200. Once I expose it, I can't change the default value. There shoudl also be a way in the Function node to reset a specified value to its default.

  • When I right click into some field, it shows default context menu with Cut and Copy, which si fine, but it also opens the MM2 Add node menu.

  • The search field in Add node menu is nice, but it has white text on white background when Unity is running in dark mode.

  • When I create a simple setup with 1 main graph and 2 biomes in BIome Set, I get these exceptions upon generation:

Code (CSharp):

NullReferenceException: Object reference not set to an instance of an object

MapMagic.Products.TileData.AllOutputsReady (MapMagic.Nodes.Graph graph, MapMagic.Nodes.OutputLevel level, System.Boolean inSubs) (at Assets/mapmagic-master/Products/TileData.cs:213)

MapMagic.Terrains.TerrainTile.SwitchLod () (at Assets/mapmagic-master/Terrains/TerrainTile.cs:144)

MapMagic.Terrains.TerrainTile.StartGenerate (MapMagic.Nodes.Graph graph, System.Boolean generateMain, System.Boolean generateLod) (at Assets/mapmagic-master/Terrains/TerrainTile.cs:582)

MapMagic.Core.MapMagicObject.StartGenerate (System.Boolean main, System.Boolean draft) (at Assets/mapmagic-master/Core/MapMagicObject.cs:283)

MapMagic.Core.GUI.MapMagicInspector.DrawGUI () (at Assets/mapmagic-master/Core/Editor/MapMagicInspector.cs:188)

Den.Tools.GUI.UI.Draw (System.Action drawAction, System.Boolean inInspector, UnityEngine.Rect customRect) (at Assets/tools-master/GUI/Editor/UI.cs:246)

MapMagic.Core.GUI.MapMagicInspector.OnInspectorGUI () (at Assets/mapmagic-master/Core/Editor/MapMagicInspector.cs:95)

UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <1b64b06f536e44ebb2ace8cd6da8538a>:0)

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Created by akaWraith Jan 30, 2021, Edited Feb 17, 2021