Xmahjongg 135 additional layouts!

Play with your Puppy.
Post Reply
Message
Author
User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

Xmahjongg 135 additional layouts!

#1 Post by dejan555 »

I've just found out that layouts from this page, originally made for "Kyodai Mahjong" can be used with Xmahjongg. I repackaged it with names converted without spaces and other characters that might cause troubles, so here is attached zip, unzip and copy layouts to your xmahjongg layouts directory (mine is at /usr/share/xmahjongg/layouts ) and have fun, there are some interesting ones.
Attachments
layouts.zip
(39.35 KiB) Downloaded 276 times
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
8Geee
Posts: 2181
Joined: Mon 12 May 2008, 11:29
Location: N.E. USA

#2 Post by 8Geee »

Xmahjongg

Is there a link for slacko 14.0 based? Sounds cool.
Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#3 Post by peebee »

8Geee wrote:Xmahjongg

Is there a link for slacko 14.0 based? Sounds cool.
http://puppylinux.org/wikka/XmahjonggGame?redirect=no

also:

http://ftp5.gwdg.de/pub/linux/archlinux ... pkg.tar.xz

but....you will need to rename to .txz and it doesn't seem to have a menu .desktop so you will need to run from terminal.

Changing layout seems to be only possible by command line switch:
http://www.lcdf.org/xmahjongg/man.html

I may repackage into a pet......
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#4 Post by mikeb »

I made a gui to select layouts.... shall I dig it out?

mike

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#5 Post by muggins »

On the original site mention is made of a Mohave tcl/tk graphical launcher, (by David Leo). Since everything puppy seemed to be aiming for small is beautiful, I packaged it as a pet, without a lot of layouts, backgrounds etc, weighing in at 100k.

If anyone wants to try the mohave launcher, with all the layouts etc, weighing in at 6.88M, I've uploaded it here.

Also need tcl/tk libraries installed.
Attachments
mohave.jpg
(62.13 KiB) Downloaded 405 times

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#6 Post by peebee »

Updated 9-mar-2015

Here is the pet I have made.....with help from dejan555

xmahjongg-3.7-5.pet

No dependencies other than gtkdialog
Last edited by peebee on Mon 09 Mar 2015, 11:07, edited 4 times in total.
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#7 Post by mikeb »

Crude but gives a gui list..you might want to play and adjust the paths

Code: Select all

#!/bin/bash

PROGPATH="/usr/local/mahjongg"

while [ 1 ]; do 
export PPROCESS="
<window title=\"Mahjongg Layout Chooser \"icon-name=\"gtk-execute\">
<vbox>
 <hbox>

   <button>
   <input file>/usr/share/mini-icons/mahjongg.png</input>
   <label>Play</label>
   </button>
  <button><input file stock=\"gtk-quit\"></input>
  <label>Quit</label>
  </button>

 </hbox>
 <tree headers_visible=\"false\">
  <label>hei</label>
  <width>260</width><height>400</height>
  <variable>LIST</variable>
  <input>ls -1 /usr/local/mahjongg/share/layouts</input>
 </tree>
</vbox>
</window>"

I=$IFS; IFS=""
for STATEMENTS in  $(gtkdialog3 --program=PPROCESS --center); do
	eval $STATEMENTS
done
IFS=$I

case $EXIT in
	Play)
	/usr/local/mahjongg/xmahjongg -B /usr/local/mahjongg/share -g 800x600 -t gnome --bg green -l "$LIST"
	;;
	*)			
	exit
	;;
esac

done
mike
Attachments
majh.png
(19.82 KiB) Downloaded 385 times

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#8 Post by dejan555 »

This is what I used for my xmahjongg pets

Code: Select all

#!/bin/sh 
#Simple GTK dialog gui for xmahjongg by dejan555

## CONFIG
export TILES=`for i in $(ls /usr/share/xmahjongg/tiles); do echo "<item>$(echo $i | sed 's/.gif//')</item>";done`
export LAYOUTS=`for i in $(ls /usr/share/xmahjongg/layouts); do echo "<item>$i</item>";done`
export BGS=`for i in $(ls /usr/share/xmahjongg/backgrounds); do echo "<item>$(echo $i | sed 's/.gif//')</item>";done`
LAYOUT_ITEMS="<item>default</item>$LAYOUTS"
TILE_ITEMS="<item>default</item>$TILES"
BG_ITEMS="<item>default</item>$BGS"

## FUNCTIONS
set -a #export all functions
run_game () {
xmahjongg --layout $LAYOUT --tileset $TILESET --background $BG &
}

export GUI='
<window title="Run Xmahjongg" resizable="false">
	<vbox>
		<hbox>
			<text><label>Xmahjongg</label></text>
		</hbox>

			<frame>
			<hbox>
						<text><label>Choose Layout:</label></text>
						</hbox>
						<hbox>
						<combobox>
							<variable>LAYOUT</variable>
							'$LAYOUT_ITEMS'
						</combobox></hbox>
					<hbox>
						<text><label>Choose Tileset:</label></text>
						</hbox>
						<hbox>
						<combobox>
							<variable>TILESET</variable>
							'$TILE_ITEMS'
						</combobox></hbox>
					
					<hbox>
						<text><label>Choose Background:</label></text>
						</hbox>
						<hbox>
						<combobox>
							<variable>BG</variable>
							'$BG_ITEMS'
						</combobox></hbox>
					<hbox>
					<button>
						<label>Run</label>
						<input file stock="gtk-media-play"></input>
						<action>run_game &</action>
						<action type="exit">EXIT_NOW</action>
					</button>
					<button>
				<input file icon="gtk-stop"></input>
				<label>Exit</label>
				<action type="exit">EXIT_NOW</action>
			</button>
				</hbox>

			</frame>

</vbox>

</window>'
gtkdialog3 --program=GUI --center
exit 0
Attachments
gxmahjongg.png
(11.18 KiB) Downloaded 362 times
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#9 Post by mikeb »

surprisingly popular game eh ... you made me dig it out from puppy 2 so I attack with images :D

mike

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#10 Post by peebee »

Thanks dejan555 - I've incorporated your option chooser into my pet and updated it.

Cheers
peebee
Attachments
Screenshot.png
(19.21 KiB) Downloaded 302 times
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

Post Reply