Notices


Reply
Thread Tools
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#61
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's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#62
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.
Attached Files
File Type: txt TransLevel.txt (923 Bytes, 88 views)
__________________
Class .. : Power User,Tester,Apprentice Developer
Humor .. : [#####-----] Alignment: Gadget Junky,Grumpy old man
Patience : [##########] Weapon(s): Indifference
Agro ... : |##--------] Relic(s) : 770,N800,eee

 

The Following 2 Users Say Thank You to rcull For This Useful Post:
rcull's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#63
Back home tested with file from the zip. New version attached.
Attached Files
File Type: txt translevel.txt (928 Bytes, 97 views)
__________________
Class .. : Power User,Tester,Apprentice Developer
Humor .. : [#####-----] Alignment: Gadget Junky,Grumpy old man
Patience : [##########] Weapon(s): Indifference
Agro ... : |##--------] Relic(s) : 770,N800,eee

 

The Following 2 Users Say Thank You to rcull For This Useful Post:
zehjotkah's Avatar
Posts: 2,361 | Thanked: 3,746 times | Joined on Dec 2007 @ Berlin - Love this city!!
#64
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's Avatar
Posts: 2,361 | Thanked: 3,746 times | Joined on Dec 2007 @ Berlin - Love this city!!
#65
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?
Attached Files
File Type: gz main.levelpack.json.tar.gz (7.1 KB, 79 views)
 

The Following 2 Users Say Thank You to zehjotkah For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#66
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.TransLevel.txt

Last edited by Mentalist Traceur; 2011-01-12 at 21:57. Reason: Done.
 

The Following 2 Users Say Thank You to Mentalist Traceur For This Useful Post:
rcull's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#67
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 :-)
Attached Files
File Type: txt translevel.txt (929 Bytes, 85 views)
__________________
Class .. : Power User,Tester,Apprentice Developer
Humor .. : [#####-----] Alignment: Gadget Junky,Grumpy old man
Patience : [##########] Weapon(s): Indifference
Agro ... : |##--------] Relic(s) : 770,N800,eee

 

The Following 2 Users Say Thank You to rcull For This Useful Post:
zehjotkah's Avatar
Posts: 2,361 | Thanked: 3,746 times | Joined on Dec 2007 @ Berlin - Love this city!!
#68
okay, another levelpack file. won't work either, don't know why.
I've added our levelpack file and the original one to compare.
Attached Files
File Type: gz levelpacks.tar.gz (21.1 KB, 99 views)

Last edited by zehjotkah; 2011-01-12 at 22:38.
 

The Following User Says Thank You to zehjotkah For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#69
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.

Last edited by Mentalist Traceur; 2011-01-12 at 23:08. Reason: Saw that the spacing is a little bit different between X/Y values.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
zehjotkah's Avatar
Posts: 2,361 | Thanked: 3,746 times | Joined on Dec 2007 @ Berlin - Love this city!!
#70
but isn't that only a tab? i thought only spaces matter...
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:45.