NextBuild icon indicating copy to clipboard operation
NextBuild copied to clipboard

(Layer 2) graphics drawing issues

Open danboid opened this issue 4 months ago • 3 comments

I have found a few NextBuild demos that run fine for me under CSpect but either don't run properly or don't display anything when I run them on my XBerry Pi. Two of these demos are NextBuild/Sources/MiniExamples/mini5.nex and NextBuild/Sources/TilemapScroll/testmap.nex. The scrolling background is entirely missing when I run mini5.nex on my XBP and I just get a black screen when I run testmap.nex - nothing is displayed at all. They run fine under CSpect.

It would seem these demos use Layer 2 scrolling. I'm running the latest stable firmware and core versions. I have tried running these demos on multiple HDMI displays only to get the same results.

danboid avatar Sep 03 '25 18:09 danboid

Testmap was written before there was the ability to automatically create .nex files in nextbuild. The tiles, palette and map data are loaded when the program runs, and need to be copied into the same directory on your Next's as the executable. Runs fine on hardware in this scenario. I've updated testmap.bas to better support the nex format, will submit a PR at some point

ljg701 avatar Sep 06 '25 11:09 ljg701

Runs fine on hardware in this scenario.

Does that mean you've tested these demos on a physical Next and confirmed they work as they do under CSpect?

Here's what I did:

I cloned the nextbuild repo then I built several NextBuild demos (under Debian), confirmed the .nex files worked with CSpect (again, under Linux) then I copied that entire nextbuild dir with the built .nex files, all data files and all source code onto my FAT32 formatted SD card that contains NextZXOS, nowt taken out and this is the result - graphics not being displayed. All of the data is in exactly the same location as when it ran fine on my PC, relative to the nextbuild root dir.

danboid avatar Sep 06 '25 11:09 danboid

Yes. The executable and tile files need to be in the same directory on hardware. If you are running the executable from the command line in cspect, the tile files will need to the data directory

ljg701 avatar Sep 06 '25 12:09 ljg701