Giter Club home page Giter Club logo

mysticmine's People

Contributors

aither64 avatar bentley avatar dewitters avatar heinervdm avatar klaus-schwarzkopf avatar koelnconcert avatar lczerner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mysticmine's Issues

Linux: can't run or compile

Hi,

I can't run on Linux, even though make seems to run ok.

$ make
rm -f monorail/ai.c monorail/ai.so
rm -rf monorail/data
running build_ext
pyrexc monorail/ai.pyx --> monorail/ai.c
/home/qubodup/MysticMine-master/monorail/ai.pyx:22:24: Warning: 'not None' will become the default in a future version of Pyrex. Use 'or None' to allow passing None.
building 'monorail.ai' extension
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -I/usr/include/python2.7 -c monorail/ai.c -o build/temp.linux-x86_64-2.7/monorail/ai.o
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro build/temp.linux-x86_64-2.7/monorail/ai.o -L/usr/lib -lpython2.7 -o /home/qubodup/MysticMine-master/monorail/ai.so
ln -s /home/qubodup/MysticMine-master/data/800x600/ monorail/data

$ ./MysticMine
Error: ai module not present. Run 'make' first!

I'm on ArchLinux. Perhaps this has something to do with the python2/python=python3 chaos.

Joystick support in the menu

Buttons from my joystick work fine ingame and in the menu, but I cannot use my joystick stick or cross to chose between the menu options :-/

Not sure if this is a bug or something which was not implemented.

Add an icon

Could you provide an icon for the game?
I just packaged it for ArchLinux and the package adds a desktop file so that the game appears in the application menu, but it has no icon so it’s a bit ugly.

Also, how would you describe the game? I’ve put «A one-button multiplayer mining cart game», but I can still change it.

https://aur.archlinux.org/packages/mysticmine-git/

Pyrex is no longer at pypi

According to https://pypi.org/project/Pyrex/ and https://pip.pypa.io/en/latest/development/release-process/#python-2-support looks like pyrex can not be found on pypi anymore.

Workaround using wget

Copy/paste in your terminal.

cd /tmp && \
    wget "https://www.csse.canterbury.ac.nz/greg.ewing/python/Pyrex/Pyrex-0.9.9.tar.gz" && \
    tar xvpf Pyrex-0.9.9.tar.gz
    git clone https://github.com/dewitters/MysticMine.git && \
    cd MysticMine && \
    virtualenv -p 2.7 venv && \
    source ./venv/bin/activate && \
    python -m pip install pygame numpy && \
    pushd ../Pyrex-0.9.9 && \
    python setup.py build && \
    python setup.py install && \
    popd && \
    make && \
    ./MysticMine

Step by step description:

  • go to /tmp directory
  • download Pyrex-0.9.9.tar.gz
  • extract Pyrex-0.9.9.tar.gz
  • clone MysticMine
  • go to /tmp/MysticMine directory
  • create virtual environment for python2.7
  • activate virtual environment
  • install pygame and numpy
  • go to /tmp/Pyrex directory
  • build Pyrex
  • install Pyrex in virtual environment
  • go to /tmp/MysticMine directory
  • launching game according to README.md

Warning: /tmp gets cleaned up after system shutdown/reboot, copy /tmp/MysticMine to /opt or ~/Games or somewhere else.

System info

Required tools: python2, virtualenv, wget, git. Consult your distribution about how to install them.

user $ python --version
Python 2.7.18

user $ python -m pip --version
pip 20.3.4 from /tmp/MysticMine/venv/lib64/python2.7/site-packages/pip (python 2.7

user $ virtualenv --version
virtualenv 20.4.7 from /usr/lib/python3.9/site-packages/virtualenv/__init__.py

user $ wget --version
GNU Wget 1.21.1 built on linux-gnu.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink +nls 
-ntlm +opie -psl +ssl/openssl

user $ git --version
git version 2.32.0

Game doesn't start with LANG=C

The neutral/default locale C makes the game unable to run.

$ LANG=C ./MysticMine 
Traceback (most recent call last):
  File "./MysticMine", line 9, in <module>
    import monorail.monorail
  File "MysticMine/monorail/monorail.py", line 45, in <module>
    languages += DEFAULT_LANGUAGES
NameError: name 'languages' is not defined

Compilation Fedora 20

Hello,

I try to compile and run but:

  1. $ make rm -f monorail/ai.c monorail/ai.so rm -rf monorail/data running build_ext pyrexc monorail/ai.pyx --> monorail/ai.c /home/keddie/src/MysticMine/monorail/ai.pyx:22:24: Warning: 'not None' will become the default in a future version of Pyrex. Use 'or None' to allow passing None. building 'monorail.ai' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c monorail/ai.c -o build/temp.linux-x86_64-2.7/monorail/ai.o gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/monorail/ai.o -L/usr/lib64 -lpython2.7 -o /home/keddie/src/MysticMine/monorail/ai.so ln -s /home/keddie/src/MysticMine/data/800x600/ monorail/data
  2. $ ./MysticMine Error: ai module not present. Run 'make' first!

What I can do with this? It is clear for me that there is error in linking, but how can i fixed it?

My os: Fedora 20, Python 2.7.5, code actual master c7592a3

Prefer CC0 for artwork

It would be better if artwork used the CC0 1.0 Universal waiver, rather than the MIT license which is a software license.

The upsides of it are:

  • it's a license suitable for everything, including artwork and databases,
  • it is compatible with all GPL versions (like MIT).

If CC0 is not possible for you, you can also choose CC BY 4.0 which has similar upsides to CC0.

Music and sounds libre replacement

As stated in the README, the original music and sound effects of Mystic Mine can't be redistributed under a free license. I think the libre games aficionados (for example from FreeGameDev) can help find some nice freely-licensed musics and sounds, but for this we'd need a listing of the needed assets. This post can be edited later on to contain the full list of assets and whether they have found a replacement yet.

Edit: Actually the sound and music files are still shown in the repo, but have been replaced by a silent placeholder. They are listed here: https://github.com/koonsolo/MysticMine/blob/master/data/800x600/resources.cfg

Music:

  • data/music/breakneck_loop.ogg
  • data/music/truck_stop_loop.ogg
  • data/music/heartland.ogg

Sound effects:

  • data/snd/carhit.wav
  • data/snd/clock.wav
  • data/snd/clock_ring.wav
  • data/snd/coin.wav
  • data/snd/collect.wav
  • data/snd/diamond.wav
  • data/snd/dynamite_tick.wav
  • data/snd/explosion.wav
  • data/snd/dynamitefuse02.wav
  • data/snd/pickaxe_pickup.wav
  • data/snd/pickaxe.wav
  • data/snd/pickup.wav
  • data/snd/railswitch.wav
  • data/snd/rock.wav
  • data/snd/button2.wav
  • data/snd/fireworks0.wav
  • data/snd/fireworks1.wav
  • data/snd/fireworks2.wav
  • data/snd/fireworks3.wav
  • data/snd/buzzer.wav
  • data/snd/button.wav
  • data/snd/crumbling.wav
  • data/snd/shot.wav
  • data/snd/flourish.wav

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.