MahJongg 3D Solitaire Screenshot OpenGL MahJongg Solitaire 3D

An implementation of the classical MahJongg Solitaire board game with OpenGL graphics.

Features:

  • 3D OpenGL view
  • A unique hand drawn tileset
  • Undo function
  • Reorder function
  • Custom tilesets loadable
  • Hint function
  • Hiscores
  • License: free
    Requirements:

  • QT 3.x or greater
  • OpenGL

  • Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
    noyesnononoyesyes
    Suggest an update

    Comments

    Just waiting for debian package ;)
    Re: Looks beautiful! posted by anonymous on May 15 2004 2:38 AM
    just waiting for rpm files. :-)
    Re: Looks beautiful! posted by ZlatkO on May 15 2004 3:25 AM
    Just compiled it myself on Slackware, looks great! 8->

    Here's a suggestion for sounds and/or background music:

    How about adding an option that lets mahjongg3d use the data of Pyrogon's NingPo Mahjongg? It's all there in /usr/local/games/ningpo/Resources/ningpo.pyz, which is a simple ZIP file that could be read, for example, by Icculus' PhysFS. The demo version of NingPo, which also contains the full sounds and background music, is available for free, so you don't even have to buy the game (although you're encouraged to do so, of course - I did, and it's a really nice little time killer ;-).

    Re: Looks beautiful! posted by anonymous on May 15 2004 11:17 AM
    I bought it too. Nice little game!
    Re: Looks beautiful! posted by anonymous on May 16 2004 3:46 AM
    Isn't that stealing?

    * If you like the other game so much, buy it.

    * If you like the graphics so much that you want them included in this game, why not make them yourself or go to other programs that are free/open/... and use the graphics from _them_.

    Re: Looks beautiful! posted by ZlatkO on May 16 2004 4:12 AM
    Well, if you bothered to read my post completely, you'd probably have found out that I did actually buy the game. ;-)

    As far as "stealing" is concerned, that's quite a hard word, no? It's more like borrowing, and it can be used as a temporary solution until mahjongg3d has its own background music and sounds. If I download the demo (and even more so if I already bought the game), who's gonna stop me if I unpack the resource file, put the background.ogg in my XMMS playlist, and use the sounds as, say, ICQ sounds? There's nothing wrong with that, IMHO - distributing the sounds and music together with mahjongg3d, OTOH, is a whole different thing, granted, and a clear no-no.

    Here's a good (at least I hope so :-) compromise suggestion: make (the paths to) background music and sounds configurable, and let the user decide.

    I compiled it on suse. It runs fine. Can't wait until sound support and background graphics.
    I know, it's a nitpick, but real Pai (Tiles) are actually around twice as thick as that. They are made so the can stand them up on edge. They are just shy of being a cube.

    When you play Solitare with real tiles, it becomes quite a massive structure. When you play with two sets mixed togeather (288 Tiles!) They can become HUGE!

    Re: The tiles are too thin posted by Reto on May 16 2004 3:47 AM
    That's a can do! :-)
    I'll try and see if I can find out the traditional tile dimensions and update the game. But first, I think, I'll do a bit of bugfixing and more tileset drawing...
    Re: The tiles are too thin posted by anonymous on May 18 2004 10:17 PM
    Probably best to give users the option of which they prefer, traditional almost-cube tiles, or traditional thin computer-mahjong tiles.
    Re: The tiles are too thin posted by anonymous on May 20 2004 4:59 AM

    It would almost make sense to make thickness/shape of the tiles a property of the tileset.

    You might get more options if you make them orthogonal, but perhaps the ability to have custom tiles with textures just for them could lead to some interesting designs.

    Re: The tiles are too thin posted by anonymous on May 20 2004 6:57 AM
    Just a suggestion, if you want to look for images on the web, try ebay - it's a good source for images of this sort of thing.
    Cast it on Sorcerer the same day I saw it listed on happypenguin. Waiting on pre-compiled binary packages blows chunks, no?
    Re: No waiting here. posted by Reto on May 16 2004 3:55 AM
    Thanks! I did not think about this possibility before :-)

    PACKAGES: Since I'm using a Linux from scratch system, It would be difficult for me to make packages for all the many distributions out there, so I am looking for packagers and package testers :-))
    Check the homepage for the soon-to-be-online forum!
    Re: No waiting here. posted by Jacek Poplawski on May 17 2004 12:02 AM
    Yay! Another game developer using LFS! Let's unite! ;)
    Great game, even though I haven't cleared one layout yet :) But well done, no problems what so ever, except for when I compiled it. It got the following:

    /usr/X11R6/lib/libfontconfig.so.1: undefined reference to `FT_Get_PS_Font_Info' /usr/lib/qt-3.2.1/lib/libqt-mt.so: undefined reference to `FT_Stream_GetShort' /usr/lib/qt-3.2.1/lib/libqt-mt.so: undefined reference to `FT_Stream_ExitFrame' /usr/lib/qt-3.2.1/lib/libqt-mt.so: undefined reference to `FT_Stream_GetLong' /usr/lib/qt-3.2.1/lib/libqt-mt.so: undefined reference to `FT_Stream_Seek' /usr/X11R6/lib/libfontconfig.so.1: undefined reference to `FT_Has_PS_Glyph_Names' /usr/X11R6/lib/libfontconfig.so.1: undefined reference to `FT_Get_Next_Char' /usr/lib/qt-3.2.1/lib/libqt-mt.so: undefined reference to `FT_Stream_EnterFrame' /usr/X11R6/lib/libfontconfig.so.1: undefined reference to `FT_Get_BDF_Property'

    But I solved that with adding -lfreetype to the linking options, perhaps this sould be done in the next release?

    Well done!

    Re: Great! posted by ZlatkO on May 17 2004 10:05 PM
    No such problems here - I didn't use the provided Makefile, though, but created my own with qmake:

    qmake -o Makefile mahjongg3d.pro

    This creates a Makefile custom tailored to your specific system, including all necessary CFLAGS, LDFLAGS and LIBS.

    Re: Great! posted by Reto on May 18 2004 2:49 AM
    Great idea! Why didn't I think of that :-)? I updated the Makefile so the source Makefile is now automatically generated by qmake. This should resolve the compilation problems. I already uploaded the new version (including background support) :-)
    Download - Extract - su - make PREFIX=/usr/games - make PREFIX=/usr/games install only /usr/games/bin/mahjongg3d is installed, no GRA directory, bmps or layouts etc It works fine when I run it locally.
    Re: Root install?.... posted by Reto on May 18 2004 2:06 AM
    Maybe your /usr/games is in your path, but not /usr/games/bin and so, the startup script is not found. I will upload an update that creates another script in the base PREFIX path, so this problem will be solved.
    Re: Root install?.... posted by Reto on May 18 2004 2:50 AM
    UPDATE: The new version 0.92 will take care of this problem :-)
    Using the latest and greatest I had to comment out the bit in the src/Makefile about libqt-mt.prl to make the compile happen. I'm not even sure what that is, but it isn't in any of the rpmfind.net stuff. It seemed to compile and run fine after that though...
    Re: Build on RedHat 9 needed tweaked posted by Reto on May 20 2004 3:04 AM
    The src/Makefile is now automatically generated by qmake, and therefore the compile should work on all systems...
    Is it possible that there's a problem with your system? I've encountered some compilation problems with other programs when using RedHat (8.0 release, I think) because it installed buggy or beta-versions of some libs. Just a suggestion :-)
    I've got a strange problem: when I start a game, I can see the shadows, but no tiles. There are no errors during compilation. I'm using 0.92 and tried the original Makefile as well as "qmake -o Makefile mahjongg3d.pro"
    It looks like this
    Re: Tiles are not being shown posted by Reto on May 21 2004 1:59 AM
    From the screenshot you provided, I can see that your system has problems with the shadows (the little fuzzy lines between the tile shadows indicate that). They use the OpenGL stencil buffering feature, a feature that not always works correctly with some Linux OpenGL drivers --

    Maybe the problem is solved if you try turning off the shadows (View/Toggle shadows). Another possibility is that, in some rare cases, the board generation fails and no tiles are set up, so simly try again some times. Please tell me if it works then :-)
    Re: Tiles are not being shown posted by Dissem Faé on May 23 2004 11:30 PM
    I tried turning off shadows as well as starting new games quite a few times, of which both didn't work. It might be a driver thingie (I'm using the DRI radeon driver on my mobility radeon 9000), so I'll just try again later.
    Thanks for your help though, it was worth a try. If I find out something about it, I'll tell you.
    It's a pretty good implementation of the game - but you really don't make life easy for people who want to install it.

    Requiring a relatively new version QT, not using a 'configure' script - requiring QTDIR to be set...all of that is going to prevent it from working 'out of the box' for most users and is very off-putting.

    Re: MahJongg 3D Solitaire posted by Reto on May 22 2004 4:16 AM
    That's true. I'm already working on a configure script and a better compilation process. But I think, nowadays, users should use a QT version 3.2 or greater (and if not, one can easily download it :-))
    Game crashes when I win a game and enter my name, BUT only when I run from /usr/games, if I run from my home dir it's ok, it also works if I run it as root from /usr/games, which sounds like a permissions problem....Looks like we need a ~/.mahjongg3d directory??
    Re: Game crashes, but only if I win ;) posted by |AndrewJ on May 24 2004 11:02 AM
    I moved the *.hiscores files to ~/.mahjongg3d and put a simlink to them in /usr/games/mahjongg3d....quick fix for now. I suppose I could have made the /usr/games/mahjongg3d directory writable to all, but I don't like that for some reason....
    Re: Game crashes, but only if I win ;) posted by Reto on Jun 1 2004 12:03 PM
    The problem should be resolved by now (with version 0.95). Pretty annoying it was, really. Now the Hiscores are stored in the home directory ~/.mahjongg3d.
    Anybody that can and likes to create packages of MahJongg3D for all the Linux distributions out there is very welcome to contribute! So:

    PACKAGERS WANTED! :-)
    P.S. Try the new version 0.95
    Re: PACKAGERS wanted! :-) posted by |AndrewJ on Jun 2 2004 6:49 PM
    I've made a deb package of .92 for Xandros 2.0, and I'm working on one for .95. The problem I'm running into concerns the Game_Data. From what I can tell the location for the Game data is set when you compile the game....is this true?? If so it's a problem as a binary package is already compiled, and if I want to have the data put in the users home dir....I don't know how....Maybe if there were an option when you start the game to specify the location of the game data?? Or am I looking at this the wrong way??

    --Andrew

    Re: PACKAGERS wanted! :-) posted by Reto on Jun 3 2004 6:09 AM
    First of all, thanks for creating a deb package :-) With the version 0.95, you can set up the game data directory before compiling the game (just use the configure script, it will set the correct paths). These paths are then compiled into the game.
    The game returns the data path when invoking "mahjongg3d --data-prefix". I hope this will work for creating a package.
    Re: PACKAGERS wanted! :-) posted by Reto on Jun 3 2004 10:16 AM
    I forgot to say that the game data path is only for the tilesets, layouts and backgrounds. Now, the hiscore files (and later also some configuration files) are saved in the home directory ~/.mahjongg3d, as suggested :-)
    Re: PACKAGERS wanted! :-) posted by |AndrewJ on Jun 3 2004 3:36 PM
    hmmm, still crashes when I try to enter my name for hiscores....there is a ~/.mahjongg3d dir, but it's empty...perhaps it needs the files there to begin with? I do have deb of .95 for Xandros 2.0 which contains this bug.....

    --Andrew

    Re: PACKAGERS wanted! :-) posted by |AndrewJ on Jun 3 2004 5:58 PM
    OK, it's not a permisions problem, cuz I get the same problem when I'm root
    Re: PACKAGERS wanted! :-) posted by Reto on Jun 4 2004 7:44 AM
    I don't think the segfaults occur because the hiscore files are not present -- they are automatically created when the game is preparing to save a file. Also, the directory ~./mahjongg3d is created when not present. Maybe there's a problem with the package? Does everything work when you compile and install the game from source?
    Re: PACKAGERS wanted! :-) posted by |AndrewJ on Jun 4 2004 2:33 PM
    OK, I compiled from source and let it put everything in my Home, and when I won a game (after several attempts ;), it still crashed.....is it just me?
    Re: PACKAGERS wanted! :-) posted by Reto on Jun 4 2004 3:34 PM
    OH! Now I know. The problem is, that when first uploading the new version, I forgot to include some new files into the tarball which still had the old bug. The file was online for some hours, so I fear some people have downloaded it.

    The "correct" version is online, so if you download it again, the problem should be solved :-)
    Re: PACKAGERS wanted! :-) posted by |AndrewJ on Jun 4 2004 5:24 PM
    Great!!! works well now Xandros Deb is ready to go :D
    Configure runs OK, After the 'make' command, this is what I get:

    make -f Makefile.doit PREFIX=/usr/games GAMEDATA_PREFIX=/usr/games make[1]: Entering directory `/home/ericsp/mahjongg3d.release' make[1]: *** No rule to make target `/mkspecs/default/qmake.conf', needed by `Makefile'. Stop. make[1]: Leaving directory `/home/ericsp/mahjongg3d.release' make: *** [all] Error 2

    Any suggestion???

    EriK

    Re: Make Error in Fedora Core 2 posted by Reto on Jun 22 2004 1:30 PM
    Your QTDIR variable seems to be not set correctly. You just need to find out where your qt is installed (usually something like /usr/lib/qt3), and type
    export QTDIR=/path/to/your/qt
    while replacing /path/to/your/qt with the path where your qt library is installed before invoking ./configure. This should resolve the problem :-)
    Re: Make Error in Fedora Core 2 posted by bojster on Jun 6 2005 9:22 AM
    That's because the Makefile looks for all qt stuff in one dir, while every reasonable distro has it installed in standard locations, e.g. in /usr/bin (uic), /usr/lib/qt (libs), /usr/share/qt (mkspecs) etc. Fix it, please.
    An update for compilation Problems is now available on the projects website www.reto-schoelly.de/mahjongg3d. If you had Problems with "undefined reference to ...", please try it :-)

    A lot of Packages for SuSE, Debian, Xandros, Gentoo and Slackware packages have been submitted to the site.

    Also, there are a lot of new tilesets, backgrounds and layouts available. Tell me what you think of them :-D

    Log in or register to rate this game or post a comment.