Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 17 Nov 2019, 22:13
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Xmahjongg 135 additional layouts!
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
dejan555


Joined: 30 Nov 2008
Posts: 2816
Location: Montenegro

PostPosted: Sun 01 Mar 2015, 12:20    Post subject:  Xmahjongg 135 additional layouts!  

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.
layouts.zip
Description 
zip

 Download 
Filename  layouts.zip 
Filesize  39.35 KB 
Downloaded  247 Time(s) 

_________________
puppy.b0x.me stuff mirrored HERE or HERE
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
8Geee


Joined: 12 May 2008
Posts: 2083
Location: N.E. USA

PostPosted: Sun 01 Mar 2015, 20:57    Post subject:  

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."
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 4048
Location: Worcestershire, UK

PostPosted: Mon 02 Mar 2015, 03:24    Post subject:  

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/extra/os/i686/xmahjongg-3.7-5-i686.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......

_________________
LxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 11281

PostPosted: Mon 02 Mar 2015, 05:26    Post subject:  

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

mike
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6756
Location: hobart

PostPosted: Mon 02 Mar 2015, 08:23    Post subject:  

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.
mohave.jpg
 Description   
 Filesize   62.13 KB
 Viewed   396 Time(s)

mohave.jpg

Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 4048
Location: Worcestershire, UK

PostPosted: Mon 02 Mar 2015, 10:29    Post subject:  

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

_________________
LxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

Last edited by peebee on Mon 09 Mar 2015, 07:07; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 11281

PostPosted: Mon 02 Mar 2015, 11:37    Post subject:  

Crude but gives a gui list..you might want to play and adjust the paths
Code:
#!/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
majh.png
 Description   
 Filesize   19.82 KB
 Viewed   378 Time(s)

majh.png

Back to top
View user's profile Send private message 
dejan555


Joined: 30 Nov 2008
Posts: 2816
Location: Montenegro

PostPosted: Mon 02 Mar 2015, 15:18    Post subject:  

This is what I used for my xmahjongg pets

Code:
#!/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
gxmahjongg.png
 Description   
 Filesize   11.18 KB
 Viewed   353 Time(s)

gxmahjongg.png


_________________
puppy.b0x.me stuff mirrored HERE or HERE
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
mikeb


Joined: 23 Nov 2006
Posts: 11281

PostPosted: Mon 02 Mar 2015, 15:26    Post subject:  

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

mike
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 4048
Location: Worcestershire, UK

PostPosted: Mon 09 Mar 2015, 07:06    Post subject:  

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

Cheers
peebee
Screenshot.png
 Description   
 Filesize   19.21 KB
 Viewed   296 Time(s)

Screenshot.png


_________________
LxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0584s ][ Queries: 12 (0.0091s) ][ GZIP on ]