Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

ZeldaRL

A roguelike inspired by The Legend of Zelda · By Slashie

JCurses or Docker Container?

A topic by phaethonfire created May 19, 2023 Views: 212 Replies: 3
Viewing posts 1 to 3

With the recent updates and attention, I was hoping to play this game, but I need to avoid running Java locally.  Also, I'm on an Apple Silicon Mac, so the Windows bat file doesn't help. I'm comfortable with Docker, but not Java.

I think I may be close, but I'm stuck with jcurses.  The Linux download from sourceforge says it supports 64bit, but I get this error when trying to use the precompiled libjcurses.so:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /zrl/lib/libjcurses.so: /zrl/lib/libjcurses.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

I think that means it is a 32 bit version.  libjcurses is ancient now too.  What is the best way to get a 64 bit version?  Any other advice on getting it running?

If you are interested, here is the current version of the Dockerfile I'm playing with:

FROM mcr.microsoft.com/java/jre:11-zulu-ubuntu

COPY zrl* /zrl

WORKDIR /zrl

CMD ["java","-jar","zrl.jar"]

Developer

Hello there! we were just discussing this yesterday in the discord :)

You can get libjcurses64.so at https://github.com/sunhong/jcurses/tree/master/lib you'd just have to delete the old one and leave this one.

Please let me know if that works!

Hey Slashie, sorry  to be slow to respond.  That link worked for me.  Thanks for your help.  I had to change base images and make other changes, but I got a container working for zeldarl.  It is here: https://hub.docker.com/r/phaethonfire/zeldarl

If other players want to run the game without installing Java, that is a path forward.  It should work on any OS. The image is built for x86 processors, but Rosetta2 on Mac makes it work for Apple silicon as well.

Managed to win the game after 3 or 4 tries. :-)  Thanks for making the game and for reviving it this year for a few improvements.

Developer

Thank you for this! how does that work for updates? thinking on making a lightning update tonight :)