melek / lib_elevation

A flexible elevation library for creating vertical encounter maps in MapTool.
4 stars 0 forks source link

Lib:Elevation malfunctions in 1.12b3 #22

Closed melek closed 1 year ago

melek commented 2 years ago

Bug

When changing elevations in MapTool 1.12b3, all elevation data may be lost from the elevation you are switching from.

Cause

This is because the getVBL type functions used to return an empty shape object if there were no points to record. Now, instead, it returns an empty JSON array [].

The library needs to account for this case so it doesn't silently fail.

Workaround

On Lib:Elevation 1.0b8, you must add at least one point of every blocking layer type (VBL, Pit VBL, Hill VBL, and MBL) to a map elevation before switching away from it, or you will lose all of that elevation's data.

melek commented 1 year ago

Resolved in 1.0rc with the following fix per Discord: