#Not Tetris 2

84 messages · Page 1 of 1 (latest)

stiff salmon
#

Looking for testers for other CFWs and resolutions.

New Port for Not Tetris 2

Game Information

Controls

Button Action
Up Up
Down Down
Left Left
Right Right
Start Enter
Select Escape
A / Y / R1 / R2 Rotate right
B / X / L1 / L2 Rotate left

Submission Requirements

CFW Tests

Ensure your game has been tested on all major CFWs:

  • [ ] AmberELEC
  • [ ] ArkOS
  • [X] ROCKNIX
  • [ ] muOS

Resolution Tests

Test all major resolutions:

  • [ ] 480x320
  • [ ] 640x480
  • [ ] 720x720 (RGB30)
  • [X] Higher resolutions (e.g., 1280x720)

Additional Information

  • Uses the Love2D 0.7.2 engine
  • Ported only for aarch64
GitHub

A mess. Contribute to Stabyourself/nottetris2 development by creating an account on GitHub.

tough halo
#

<@&1216123318122577972>

tough halo
#
  • script is missing logging and is overal a tad bit out of date, and the package is missing libGL.so.1 for gl4es, but even when I just slapped it there, it doesnt launch on Amberelec
astral rune
stiff salmon
#

I found that on ROCKNIX including the precompiled libGL libraries from the love2d prebuild resulted in issues. I'll take a look at the example you sent @astral rune

#

Regarding logging I saw a pattern of using tee -a to grow a log file, IMO any command that will continually append to a file is a ticking timebomb for users to run out of space unexpectedly. I'll update the script though to log the last ran results.

astral rune
#

We do > "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

#

Overwrites itself

stiff salmon
#

I'll refactor the script based on this example, assuming it's the most current reference to follow. It was hard to determine what was the most up to date documentation!

stiff salmon
#

I have updated my PR with the changes to the launchscript. Here's an updated .zip

#

I still haven't included prebuilt libGL libraries, ROCKNIX distributes those and they worked better than the ones I pulled from the love2d aarch64 prebuild. Is is possible for you @tough halo to provide usable GL .so files for the CFWs that you test?

#

In the interest of storage space, I would also assume that libGL would be a good candidate for a library to be distributed in a runtime.

tough halo
stiff salmon
#

Updated the PR just copying those libs over

radiant delta
#

@stiff salmon is this love2d?

tough halo
#

some old version apparently

stiff salmon
radiant delta
#

Why do we need libGL, love2d can use gles

#

Have you tried running it in 11.5?

stiff salmon
#

It is using gles already, as far as I am aware.

#

Unfortunately the game's source is pretty old and uses deprecated love features, so running on a newer Love2D version isn't feasible.

radiant delta
#

if its asking for libgl it doesnt seem so

stiff salmon
#

It looks to be linking both, and I see logs from both libraries when I enable those debug variables when running the binary.

#

Actually never mind, I think you're right @radiant delta

twodis_rocknix:~/roms/ports # ldd nottetris2/bin/love.aarch64 
        linux-vdso.so.1 (0x0000ffffa5339000)
        libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0x0000ffffa5190000)
        libmpg123.so.0 => /usr/lib/libmpg123.so.0 (0x0000ffffa5110000)
        libmodplug.so.1 => /usr/lib/libmodplug.so.1 (0x0000ffffa4f50000)
        libphysfs.so.1 => not found
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x0000ffffa4e70000)
        libtiff.so.5 => not found
        libmng.so.1 => not found
        libIL.so.1 => not found
        liblua5.1.so.0 => not found
        libopenal.so.1 => /usr/lib/libopenal.so.1 (0x0000ffffa4cd0000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0x0000ffffa4bd0000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x0000ffffa4b10000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0000ffffa48b0000)
        libm.so.6 => /usr/lib/libm.so.6 (0x0000ffffa4800000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x0000ffffa47c0000)
        libc.so.6 => /usr/lib/libc.so.6 (0x0000ffffa4610000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x0000ffffa45b0000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x0000ffffa4580000)
        libmvec.so.1 => /usr/lib/libmvec.so.1 (0x0000ffffa4520000)
        libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x0000ffffa44e0000)
        libpng16.so.16 => /usr/lib/libpng16.so.16 (0x0000ffffa4480000)
        libz.so.1 => /usr/lib/libz.so.1 (0x0000ffffa4440000)
        libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0 (0x0000ffffa42b0000)
        libGLX.so.0 => /usr/lib/libGLX.so.0 (0x0000ffffa4260000)
        /lib/ld-linux-aarch64.so.1 => /usr/lib/ld-linux-aarch64.so.1 (0x0000ffffa52f0000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x0000ffffa4110000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x0000ffffa40c0000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x0000ffffa4090000)
tough halo
#

to suprise of exactly no one, it runs on RP5 with rocknix 😄

stiff salmon
#

Does libGL automatically pull in libEGL?

stiff salmon
astral rune
tough halo
astral rune
#

Don't even bother with gl on love 🙂

tough halo
#

wtf only now I learnt about this repo

#

that will come handy

radiant delta
#

lol

tough halo
#

I havnt really messed with love

radiant delta
#

I mean this is just super old

#

11.5 will run most old love games too

#

from 9.2 and up usually

stiff salmon
astral rune
astral rune
#

So you don't need it at all

#

Happens if you take the love binary from raspberry pi for example

stiff salmon
#

@astral rune you may already know the answer here - versions before Love 0.9.2 don't support Open GLES, do they?

radiant delta
#

That might be it

#

You can try using 9.2

#

Or port it to 11.5 which is harder

tough halo
#

I see 0.72 in his repo also comes with gl4es libs

#

gave me the same result btw

astral rune
#

Nvm it's so long ago xD

tough halo
#

Error: [string "boot.lua"]:1: Could not set screen mode stack traceback: [C]: in function 'error' [string "boot.lua"]:1: in function <[string "boot.lua"]:1> [C]: in function 'xpcall'

this seems to be the important bit

stiff salmon
astral rune
#

Also needs sdl 1.2 compat libraries

#

Yeah testing until it works then update everything:P

#

I could take a look but will be 27th or so

stiff salmon
#

I can't test on anything but the SD865, it's my only Portmaster compatible linux device.

tough halo
#

if only everyone had that, there would be so much less crap to deal with 😄

stiff salmon
#

Standardization is very powerful but comes at great cost

#

Here was the main error message I got on the SD865 when using the prebuilt GL library from @astral rune 's repo:

LIBGL: Error while gathering supported extension (eglChooseConfig: EGL_SUCCESS), default to none
#

Also grepping the love-0.8.0 source code, I find no mention of the environment variable LOVE_GRAPHICS_USE_OPENGLES that tells Love2D to suport OpenGLES in it.

astral rune
#

On rocknix you won't use any gl4es whatsoever

#

Hence the gl4es folder

#

And the mod file which tells if rocknix check to not use the gl4es folder

stiff salmon
#

@tough halo if you're willing to tinker, I'm wondering if the error is because the openGL build only marks support for very specific screen settings.

Can you try with this updated nottetris2/conf.lua file:

#

I'm wondering if the initial settings used by the game conflict with the expected support of the prebuilt love / openGL libs such that the initial check Love2D does causes the game to exit.

tough halo
#

it runs, just not fullscreen

stiff salmon
#

The game itself does integer pixel scaling, so I think that might be expected.

tough halo
#

oh and also it has some weird "blocky" (lol) black artifacts around falling blocks

stiff salmon
#

Wild, that's definitely not what the game is supposed to look like

tough halo
#

I know

stiff salmon
#

What did you change to get it to run?

tough halo
#

btw lemme quicky revert back to your love build, because I just realised I have the cebions one there, need to revert just to be sure

#

nah its the same

#

I just placed the libGL.so.1 in the libs folder, which is not exactly correct place for it to be, but for testing if doesnt matter

#

and your modified conf.lua

stiff salmon
#

I'm not sure exactly how to further push the port along for other devices to make the PR ready for merging, I'd appreciate guidance from the community here.

#

Looking at what it takes to update the games source to run with Love2D 11.5, it doesn't look to be a ton of work but it's not immediate. I may tinker with it but I would prefer that not being a requirement for this PR.

radiant delta
#

I got it running on 11.5 with a bunch of changes

#

Its very broken still