User Tools

Site Tools


magicthegathering:mindlessautomaton

http://mindless.sourceforge.net/

Mindless Automaton est un LogicielLibre compatible avec Apprentice et Magic Workstation, il permet donc de jouer en ligne contre un adversaire à Magic the Gathering.

Depuis que WotC a mis a disposition les anciennes cartes de Vintage dans son logiciel en ligne payant, je pense qu'il y a moins de gens qui utilisent ces logiciels gratuits.

Je ne vois où télécharger une base de données des cartes (cardinfo.dat) à jour (06/2015).

Pour faire ses decks, il y a decked (compatible avec Mindless Automaton).

Installation sous Ubuntu Linux (warty)

sudo aptitude install gcc libgtk2.0-dev
cd /usr/src
tar xzf mindless-1.5.tar.gz
cd mindless-1.5
make
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c mindless.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c deck.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c zone.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c playarea.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c cardbase.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c newgame.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c game.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c kplayer.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c opponent.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c dialogs.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c prefs.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c fgetline.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c cardart.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c proto-appr.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c encrypt.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c http_fetcher.c
gcc -Wall -g `pkg-config gtk+-2.0 --cflags` -c random.c
gcc -Wall  -o mindless mindless.o deck.o zone.o playarea.o cardbase.o newgame.o game.o kplayer.o opponent.o dialogs.o prefs.o fgetline.o cardart.o proto-appr.o encrypt.o http_fetcher.o random.o `pkg-config gtk+-2.0 --libs`

Ensuite, il faut la liste des cartes. J'ai trouvé un lien sur http://www.magic-league.com/download/apprentice.php

Il faut dézipper et on obtient un fichier cardinfo.dat assez gros.

Ensuite, lancer Mindless Automaton:

./mindless

Il demande où sont les cartes: lui indiquer le fichier cardinfo.dat et c'est parti.

Les decks sont au format texte, on peut donc utiliser [vi] pour les construire.

Jouer sur internet

Il faut communiquer par le port 4747

sur tuxscreen, ajouter dans rc.firewall ($EXTIF = le filaire qui va au modem):

$IPTABLES -t nat -A PREROUTING -i $EXTIF -p tcp --dport 4747 -j DNAT --to-destination 10.41.145.76:4747

sur callendor, taper en console (eth2 = le wifi):

iptables -t nat -A PREROUTING -i eth2 -p tcp --dport 4747 -j DNAT --to-destination 192.168.144.101:4747

J'ai essayé avec SofianeSehil, ça marche, mais je ne vois pas les logs ni dans quelle phase du tour il est, ni le chat. Solution: la fenêtre n'a pas de taille verticale, il fallait l'agrandir?

Quand il m'a contacté, ça n'a pas marché, quand moi je l'ai appelé, ça a marché au 2e coup:

carl@excalibur:/usr/src/mindless-1.5$ ./mindless
connect: Connection refused

J'ai eu plus tard (je ne sais pas quand):

 (mindless:30879): Gtk-CRITICAL **: file gtktextbuffer.c: line 590 (gtk_text_buffer_insert): assertion `text != NULL' failed

ce qui n'a eu aucun effet.

Par contre, après avoir déconnecté, j'ai essayé de faire un ping, et j'ai eu:

Segmentation fault

Et l'application a planté.

Il y a les instructions pour installer Mindless Automaton sur MacOS X: Magic on Mac OS X: Mindless Automaton

UbuntuLinux 7.10

Nothing changed:

  • install packages to be able to compile mindless
  • get the source code and decompress it
  • compile
  • get the card database from Apprentice and decompress it
  • enjoy
sudo aptitude install gcc libgtk2.0-dev
wget http://mesh.dl.sourceforge.net/sourceforge/mindless/mindless-1.6.tar.gz
sudo tar xzf mindless-1.6.tar.gz -C /usr/src/
cd /usr/src/mindless-1.6
sudo make
cd -
wget http://forums.mtgsalvation.com/attachment.php?attachmentid=57838&d=1190824663
unzip unofficial_lorwyn.v4.zip 
cd -
./mindless &

First locate the card database you downloaded and uncompressed. It is the cardinfo.dat file.

If you don't see the logs window, maximize Mindless Autmaton and you will see it: you can then make it bigger at leisure.

magicthegathering/mindlessautomaton.txt · Last modified: 2020/07/22 14:20 by carl