Checking out the XUI2D lib for game development, and after running the first example, "HelloWorld," in debug mode, it worked great.
When running it in Release mode, I get the following error:
After a brief investigation (call me Sherluck), in "Shared Files/hello world.json," the reference to the image used uppercase letters. The filename is all lowercase. I modified the image filename in the JSON file and fixed the issue!
I'm on Windows 10 Pro, 64-bit.
When running it in Release mode, I get the following error:
Loading objecttypes.json v0.98
TileMap: AABB: AABB[(0.0,0.0) . (6.0,4.5011253)], Map Pixels (X) per Meter: 213.33, Map Pixels (Y) per Meter: 213.28
b4xpagesmanager._createpageifneeded (java line: 301)
java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: Blue_Donut_7.png
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:518)
at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:464)
at b4j.example.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:301)
at b4j.example.b4xpagesmanager._showpage(b4xpagesmanager.java:716)
at b4j.example.b4xpagesmanager._addpage(b4xpagesmanager.java:113)
at b4j.example.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:120)
at b4j.example.b4xpagesmanager._initialize(b4xpagesmanager.java:485)
at b4j.example.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 b4j.example.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.io.FileNotFoundException: Blue_Donut_7.png
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:138)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:509)
... 23 more
Caused by: java.io.FileNotFoundException: Blue_Donut_7.png
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:235)
at anywheresoftware.b4j.objects.ImageViewWrapper$ImageWrapper.Initialize(ImageViewWrapper.java:138)
at anywheresoftware.b4a.objects.B4XViewWrapper$XUI.LoadBitmap(B4XViewWrapper.java:923)
at anywheresoftware.b4a.objects.B4XViewWrapper$XUI.LoadBitmapResize(B4XViewWrapper.java:930)
at b4j.example.x2utils._loadbmp2(x2utils.java:676)
at b4j.example.x2utils._loadbmp(x2utils.java:663)
at b4j.example.x2tilemap._loadgraphicforshape(x2tilemap.java:1051)
at b4j.example.x2tilemap._createbodydefandfixturedef(x2tilemap.java:384)
at b4j.example.x2tilemap._prepareobjectsdef(x2tilemap.java:1303)
at b4j.example.game._initialize(game.java:137)
at b4j.example.b4xmainpage$ResumableSub_B4XPage_Created.resume(b4xmainpage.java:99)
at b4j.example.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
After a brief investigation (call me Sherluck), in "Shared Files/hello world.json," the reference to the image used uppercase letters. The filename is all lowercase. I modified the image filename in the JSON file and fixed the issue!
I'm on Windows 10 Pro, 64-bit.