A few weeks ago, I had a discussion on Discord with uckelman and Swampwallaby about this problem.
Since then I have spent quite some time trying to figure out, what is going on - to no avail.
I hope you guys are willing to help by taking another look. I have uploaded a test module, my very simple custom class and a video demonstrating the problem to my cloud server. You can find it here https://cloud.observator.dk/index.php/s/XYoP5g6tfiyZXeL?
I agree Joel, it probably is a bug in the import not calling addTo early enough. It doesnât affect any other classes though, just HexGridNumbering which is unusual because it has the in-built grid visualiser which has a paint() class which is being called before addTo.
You could fix the import action, or you could just add if (grid == null) return to the visualizer paint() method.
The work around is to add a standard Hexgrid numberering to your module and save it. Then edit the buildfile and change
Please try the VASSAL-3.7.0-SNAPSHOT-b14247e-uniform_add_action build from our builds archive. Does this fix the problem for you?
@Brent_Easton Does the change here look correct to you?
Thereâs quite a bit more machinery that the regular âAddâ action does to make sure that adding works as youâd expect (e.g., automatic removal when you Cancel), so I tried to unify both Add and Import.