After any attempt to edit (or even just open and re-save) the tile maps that come with the X2 game examples using Tiled Map Editor, the games now crash with the following message:
The above came from an adapted version of Monster Trucks, but it happens with other game examples too (e.g. Mario).
I am using the latest version of Tiled Map Editor (v1.9.2).
b4xpagesmanager._createpageifneeded (java line: 301)
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:518)
at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:464)
at com.andrewgray.thomastrucks.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:301)
at com.andrewgray.thomastrucks.b4xpagesmanager._showpage(b4xpagesmanager.java:716)
at com.andrewgray.thomastrucks.b4xpagesmanager._addpage(b4xpagesmanager.java:113)
at com.andrewgray.thomastrucks.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:120)
at com.andrewgray.thomastrucks.b4xpagesmanager._initialize(b4xpagesmanager.java:485)
at com.andrewgray.thomastrucks.main._appstart(main.java:58)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:109)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:96)
at com.andrewgray.thomastrucks.main.start(main.java:37)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:138)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:509)
... 23 more
Caused by: java.lang.NullPointerException
at com.andrewgray.thomastrucks.x2tilemap._parseobjectslayer(x2tilemap.java:1167)
at com.andrewgray.thomastrucks.x2tilemap._initialize(x2tilemap.java:906)
at com.andrewgray.thomastrucks.game._start(game.java:286)
at com.andrewgray.thomastrucks.b4xmainpage$ResumableSub_B4XPage_Created.resume(b4xmainpage.java:101)
at com.andrewgray.thomastrucks.b4xmainpage._b4xpage_created(b4xmainpage.java:44)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:109)
... 24 more
The above came from an adapted version of Monster Trucks, but it happens with other game examples too (e.g. Mario).
I am using the latest version of Tiled Map Editor (v1.9.2).