- This topic has 6 replies, 2 voices, and was last updated Jul 31-5:45 pm by BobC.
-
AuthorPosts
-
July 29, 2022 at 5:03 pm #86661Member
tizianomattei
Hi all!
I’ve been enjoying AntiX on my old PackardBell netbook for more than a year now, and it’s so satisfying playing with it that I almost prefer it to my brand new Ryzen7 Thinkpad XD
Well, AntiX is known for taking some old lightweight apps and giving them a longer life, so I think this is the right place to post this one.
As a Mahjongg fan, I think good old XMahjongg is a kind of a forgotten gem. Sure it lacks some important playing features, like score and timing, and the interface is as minimal as it can be, but it can handle almost ANY tileset format (kyoday, old gnome and kde and the native one), it’s blazing fast and it can look awesome with some simple command-line customisation (see attached screenshots).
I think it would be a neat idea to revive it and package a new improved version, while retaining its footprint and speed as close to the present ones as possible.
I’ve converted and organised as many (good) tilesets as I could find on the Internet (including archive.org… many have become inaccessible, sadly…), and I’ve set up a (very) quick and dirty script on my machine to configure it using Zenity, but unfortunately I’m not a programmer and I can’t go further.
I’ve also tried modifying the included (guns-n-roses-themed) icons but after recompiling I get an unusable interface without any icon, so for some reason simply substituting the .gif files won’t work.
Who’s willing to join the enterprise? 😀To do list:
– get rid of the guns-n-roses gifs for something more modern (ok this is personal…)
– find a practical, lightweigh, GUI way to choose and remember tilesets, backgrounds and layouts
– add basic support for timed playing and hall of fame
– add support for pngs both for icons and for tilesets (not strictly needed but it would be great)Attachments:
July 29, 2022 at 10:39 pm #86679ModeratorBobC
::I play Mahjongg all the time.
My thoughts are:
Start by finding packages that included source code and all the goodies you are looking for
Make the changes you want
Test
Build a package of it.July 30, 2022 at 1:24 am #86680ModeratorBobC
::What are the names of the 2 tilesets in your picture? I like the dark ones and never saw them before.
Can you put the ones you have into a .zip file and attach them to a post?
Also put in pictures of the icons and backgrounds you would prefer instead of the ones shown.
Assuming there aren’t very many that should provide a starting point.
July 30, 2022 at 3:28 pm #86683Membertizianomattei
::[EDITED: nextcloud link now unprotected]
Hi Bobc, and thank you for answering!
Here you can find a .tar.gz file containing all the tilesets I have converted and rescaled (some of them are found in 2 or 3 sizes).
The dark one you see is MKM-Platinum-Dark (small version), while the light one is Postmodern from Gnome Mahjongg (New-G-Postmodern, small version).
As for the background, I have several images downloaded from the web.
Unfortunately, I can’t code in C and I don’t have time to learn at present.
I know the Hi-scores feature is implemented even in a very basic X game as XBomb, which I use as my minesweeper game (with custom colors).A launcher for XMahjongg once existed, called Mohave (a simple tcl-tk app). It can still be downloaded today via archive.org, at the following address: https://web.archive.org/web/20090525020137/http://www.tikmark.com/Mohave/mohave.html
I’ll provide some ideas for the icons in a follow-up.
July 30, 2022 at 4:54 pm #86688ModeratorBobC
::The Nextcloud link you posted for the tilesets was password protected, so I couldn’t access it. It would be better just to attach a .zip file of them to your post. Yes, I saw that it needs command line options to select the tileset and background, etc. I wonder if it could be scaled so that the tilesize increases to fill the window space?
The first thing to try is just to compile it like it is and run it, and then make a minor change work. Once able to do that you can embark on making more and more advanced changes.
A lot of the links I found are no longer valid…
July 31, 2022 at 6:55 am #86713Membertizianomattei
::Hi, the link above should now work. I can’t simply attach the file because it’s 15 Mb.
As for modifying the source code step by step, if I could do that I wouldn’t have asked for help in the first place.
Besides, as I stated in my first post, I tried modifying the .gifs (maintaining all layers and dimensions unaltered), but then the compiler failed, so there must be something I don’t know in the source code preventing it…
July 31, 2022 at 5:45 pm #86729ModeratorBobC
::I was able to download the file of tiles.
I looked at the original xmahjongg, and because the tile sizes don’t have the ability to adjust to screen size, I don’t really like playing it because the tiles are hard to read.
I am not a great C programmer. I am able to compile things, make minor changes, and get them to work in many cases, but I’m limited to simpler issues. I was able to compile and run it, and also able to make a minor change, compile and run it. I had problems with the install but not sure why, but was able to specify where to look for files and make it work.
From looking at the code, I am not capable of altering the existing program to make the screen readable so that I could use it to play.
I do like the current version much better (it has all the features you are asking for, too), but wish it had these other tilesets available for it. Do you know a way to convert them to make them usable in the newer version?
-
AuthorPosts
- You must be logged in to reply to this topic.

