termux / game-packages

Games for Termux
Other
334 stars 69 forks source link

moria: missing folder #75

Closed Ivegottheblues closed 3 years ago

Ivegottheblues commented 3 years ago

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

Grimler91 commented 3 years ago

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

Ivegottheblues commented 3 years ago

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

Grimler91 commented 3 years ago

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

Ivegottheblues commented 3 years ago

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!

suhan-paradkar commented 3 years ago

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...

suhan-paradkar commented 3 years ago

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

Ivegottheblues commented 3 years ago

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

suhan-paradkar commented 3 years ago

Well.. thats an issue...

Grimler91 commented 3 years ago

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