maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Announce] Mokomaze - great opensource Labirynth clone ported to N900 (https://talk.maemo.org/showthread.php?t=68066)

J4ZZ 2011-01-12 11:40

Re: [Announce] Mokomaze - great opensource Labirynth clone ported to N900
 
I could need help here, the game simply won't start.

Code:

/opt/mokomaze # /opt/mokomaze/mokomaze
File_loader: savegame file not found
File_loader: 48 game levels parsed
Home directory /home/user not ours.
Main: can't load font '/opt/mokomaze/data/LiberationMono-Regular.ttf'. Exiting.
/opt/mokomaze #

Any help would be really kind.

Greetz,

..::J4ZZ::..

rcull 2011-01-12 14:23

Re: [Announce] Mokomaze - great opensource Labirynth clone ported to N900
 
1 Attachment(s)
A level translator.

Save the attached script (its a shell/awk script) remove the .txt and chmod u+x

if the old level is in a file called oldlevel
and both file and script are in the current dir

Code:

cat oldlevel | ./TransLevel 1
The 1 is for level 1 change as required.

This runs fine on my Linux box I have not tried on any other level yet
I'm still at work at the momement.

rcull 2011-01-12 19:31

Re: [Announce] Mokomaze - great opensource Labirynth clone ported to N900
 
1 Attachment(s)
Back home tested with file from the zip. New version attached.

zehjotkah 2011-01-12 21:10

Re: [Announce] Mokomaze - great opensource Labirynth clone ported to N900
 
if you named the source file 01.txt - 32.txt you can translate every level into one file with
Code:

for f in *.txt;do ./translevel `echo $f |cut -d "." -f 1` $f >> FILENAME; done

zehjotkah 2011-01-12 21:31

Re: [Announce] Mokomaze - great opensource Labirynth clone ported to N900
 
1 Attachment(s)
made a levelpack file. see attachment.
it won't work, though, I think because of the wrong naming of the second x coordinate:
Code:

{ "x1": 348, "y1": 328, "x": 356, "y2": 360 },
could you fix this?

Mentalist Traceur 2011-01-12 21:46

Re: [Announce] Mokomaze - great opensource Labirynth clone ported to N900
 
1 Attachment(s)
Lol, and I JUST (well, last night) finished finally getting myself to manually plow through level 32 (or 31, whatever it was), during my spare time. (Out of the ones you requested converted, zehjotkah.)

Oh well. On the other hand, editing the script is something I can do pretty quickly. Give me a sec and I'll attach the edited version if the original poster of the script doesn't by then.

- Edit -

That literally took just opening the .txt file and entering one "2" in one spot. Fixed version attached. Procedure same as rcull's post says.Attachment 16957

rcull 2011-01-12 22:00

Re: [Announce] Mokomaze - great opensource Labirynth clone ported to N900
 
1 Attachment(s)
I cant actually load this game so I cant test. I assume the second x par should be x2.

New edited script attached

Edit: Ahh Just too late :-)

zehjotkah 2011-01-12 22:29

Re: [Announce] Mokomaze - great opensource Labirynth clone ported to N900
 
1 Attachment(s)
okay, another levelpack file. won't work either, don't know why.
I've added our levelpack file and the original one to compare.

Mentalist Traceur 2011-01-12 23:07

Re: [Announce] Mokomaze - great opensource Labirynth clone ported to N900
 
Looks like you have "{" in a different place.

Same chunks of code, between the first and second level:

In .json:
Code:

          "init":  {
                "x": 80, "y": 64
              }

          },
{

          "comment": "level 02",

In .json.alt:
Code:

            "init": {
                "x": 77,        "y": 567
            }
       
        },

        {
       
            "comment": "level 2",

Not sure if the spacing difference, or anything else, means anything. But that's the first thing that I noticed.

zehjotkah 2011-01-12 23:09

Re: [Announce] Mokomaze - great opensource Labirynth clone ported to N900
 
but isn't that only a tab? i thought only spaces matter...


All times are GMT. The time now is 17:57.

vBulletin® Version 3.8.8