Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Ok, I think I managed to do it. Please, use `run.sh` from this .zip file (download from filebin: https://filebin.net/0u45faq8hwuiylyq) to run the game.

Thank you, now the game can pop up a black screen. The console said:

 ==> Performing warm boot.
   -> Runtime directory is /home/unv/rhombihexadeltille-game/
   -> Resource directory is /home/unv/rhombihexadeltille-game/
 ==> Running boot hooks.
 ==> Reloading foreign libraries.
   -> Loading foreign library #<LIBRARY LIBSDL2-MIXER>.
   -> Loading foreign library #<LIBRARY LIBSDL2-TTF>.
   -> Loading foreign library #<LIBRARY LIBFFI>.
   -> Loading foreign library #<LIBRARY LIBSDL2-IMAGE>.
   -> Loading foreign library #<LIBRARY LIBSDL2>.
   -> Loading foreign library #<LIBRARY OPENGL>.
 ==> Launching application.

debugger invoked on a SDL2::SDL-RC-ERROR in thread
#<THREAD "SDL2 Main Thread" RUNNING {10032B1793}>:
  SDL Error (-1): That operation is not supported

The current thread is not at the foreground,
SB-THREAD:RELEASE-FOREGROUND has to be called in #<SB-THREAD:THREAD "main thread" RUNNING {10005B8083}>
for this thread to enter the debugger.
^C
debugger invoked on a SB-SYS:INTERACTIVE-INTERRUPT in thread
#<THREAD "main thread" RUNNING {10005B8083}>:
  Interactive interrupt at #x7FC5AFD807FB.

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [EXIT ] Exit.
  1: [ABORT] Exit from the current thread.

("bogus stack frame")
0]

I don’t know what is wrong. The error message is arcane to me. :(

Hm, something is wrong with SDL2 library. Does your system support OpenGL 3.3?

I’m not sure. glxinfo | grep OpenGL shows the following output, so I think it supports OpenGL 4.5.

OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 14.0.6, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 22.2.2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5 (Compatibility Profile) Mesa 22.2.2
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:

Running glxgears can show me three rotating gears.

Well, I am not sure either. It seems fine.

SDL2 also depends on Direct3D, does your system supports it? (And, well, I don't know how to check it :c)

Firefox depends on SDL2, I can open Firefox, so I think my SDL2 works fine.

I’m using WSL, according to their blog, WSL includes Direct3D, and I can find the .so files.

Hm, I'm not sure what exactly is the problem then. It can be that the problem was that I used some function that are not supported for some reason, or it can also be because of libffi shipped.

Do you mind doing some more testing for me? Could you download a test.zip and run `run.sh` script from it? (same link https://filebin.net/0u45faq8hwuiylyq )

I made a minimalistic sketch app, it includes 5 demos. If it won't error from the beginning, please enter :1 to run first, :2 to run second e.t.c up to :5 to run fifth demo. Please tell me if they throw errors as well.

It won’t error from the beginning, but once I input the colon number, they all pop up a black window and output the same error as before.

debugger invoked on a SDL2::SDL-RC-ERROR in thread
#<THREAD "SDL2 Main Thread" RUNNING {1003152D53}>:
  SDL Error (-1): That operation is not supported

The current thread is not at the foreground,
SB-THREAD:RELEASE-FOREGROUND has to be called in #<SB-THREAD:THREAD "main thread" RUNNING {1000558083}>
for this thread to enter the debugger.
^C
debugger invoked on a SB-SYS:INTERACTIVE-INTERRUPT in thread
#<THREAD "main thread" RUNNING {1000558083}>:
  Interactive interrupt at #x7FE6D76287FB.

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [EXIT ] Exit.
  1: [ABORT] Exit from the current thread.

("bogus stack frame")
0]

So, the problem resides in the sketch library. I wonder if that library works on Windows. I think Windows is the ultimate platform for distributing binaries.

(1 edit)

It indeed seems like that (similar issue: https://github.com/vydd/sketch/issues/40 ). As far as I know it is possible to run sketch on windows, but I don't have it installed anywhere, so I can't compile the game for it now. :(

Yeah, it is similar! Oh, so sad :(

To think about it, if you can install or have already installed: sdl2, sdl2-ttf, sdl2-image, sdl2-mixer, libffi and libgl, then you should be able to run executable without (these) foreign libraries shipped (https://filebin.net/0u45faq8hwuiylyq - rhombihexadeltille-game-without-fl.zip). If you have libffi.so.8 and not 6 or 7, you might want to create a link redirecting from libffi.so.7 to libffi.so.8.
(something like `sudo ln -sf /usr/lib64/libffi.so.8.1.0 /usr/lib64/libffi.so.7`)

I installed sdl2-ttf, sdl2-image, sdl2-mixer, libffi then created a link from libffi.so.8. However, it still throws the same error.

(+1)

Sad :( I don't know how to help with this one, but I'll try to get an executable for windows.

Hey there! I think I have something working for windows, but I might be wrong. Can you check it out?

(test windows binary: https://github.com/Gleefre/test-ga/raw/release/windows-bin.zip ; contains app.exe)

Opening app.exe results in a white window with the title “SDL2 Window (Not Responding)”. The program freezes after the “==> Launching application.” line. Good idea to use GitHub Action, though there are still unknown problems. :(