termux/game-packages

moria: missing folder

Ivegottheblues opened this issue · 9 comments

Hallo everyone,

I would like to play Moria game on my Android device, and a user on reddit suggested me to download Termux, so I discovered this beautiful world. I'm really not into programming or whatever, I would like just to use the game and maybe understand better how Termux work.

Now I downloaded Termux from F-droid, update, downloaded moria running the command pkg install moria. Done.
When I type moria to let the game starts it will give me this error:

Can't open score file '/data/data/com.termux/files/usr/lib/games/moria/scores.dat'

I checked and I give permission to the app. What I have to do? Thank you

Hi, thanks for reporting, that seems to be a bug.

It probably fails because the folder does not exist, so if you create it first with

mkdir --parents /data/data/com.termux/files/usr/lib/games/moria/

Then starting moria will probably succeed

Do I have to write "mkdir --parents /data/data/com.termux/files/usr/lib/games/moria/" as a command line?
In case, I did, then I typed moria again and nothing....sorry

Do I have to write "mkdir --parents /data/data/com.termux/files/usr/lib/games/moria/" as a command line?

Yes.

I did, then I typed moria again and nothing

Alright, this works:

touch /data/data/com.termux/files/usr/lib/games/moria/scores.dat

It creates an empty scores.dat file

Do I have to write "mkdir --parents /data/data/com.termux/files/usr/lib/games/moria/" as a command line?

Yes.

I did, then I typed moria again and nothing

Alright, this works:

touch /data/data/com.termux/files/usr/lib/games/moria/scores.dat

It creates an empty scores.dat file

Hey It worked! Only that now it says "screen too small for moria" lol. I give up. Thank you for your kind answer!

Hey It worked! Only that now it says "screen too small for moria" lol. I give up. Thank you for your kind answer!

Zoom out on the screen and try again ...
That will make the characters small but you may be able to run it...

Well, I was able to run it that way...
Screenshot_2021-05-21-21-05-20-73.jpg
@Grimler91 I guess touch $TERMUX_PREFIX/lib/games/moria/scores.dat needs to be added for the postinst in build.sh

Well, I was able to run it that way...
Screenshot_2021-05-21-21-05-20-73.jpg
@Grimler91 I guess touch $TERMUX_PREFIX/lib/games/moria/scores.dat needs to be added for the postinst in build.sh

Hey thank you! Can I bother you last time before closing the post? Where do I get the help menu? It says cannot find help file.
Screenshot_20210521_174058_com termux

Well.. thats an issue...

Moria 5.7.14 is now available from at least the grimler.se mirror, and the path to the help files and score files has been fixed