OK, hier versuche ich das ganze Seiten Kuddel muddel mal zu entzerren, dazu packe ich erst mal alles in eine Seite un tue dann ggf. größere brocken auslagern. Konsolidierung ist das Stichwort des Tages!
The original ACAB package consists out of the following four components, where only gigargoyle is really mandatory.
The original muCCC ACAB source code can be found at http://gitorious.org/ (previous it was http://github.com/mazzoo/gigargoyle). Therefore you need GIT to obtain the source.
sudo apt-get install git-core
1) start the server
If you don't have access to the matrix gigargoyle could be started with '–pretend' argument.
./gigargoyle -f -p --pidfile=./test.pid --logfile=./test.log
2) start puertoplayer, so you can see the matrix
./puertoplayer --localhost
3) spool something new with simpleclient oder start xtris
HiFish's Webplayer: http://hifish.muirauqa.org/acabweb/acabpi.htm (macht was genau???)
git clone git://gitorious.org/acab/acabed.git git submodule init git submodule update
Shows whats currently going on via a virtual puerto.
sudo apt-get install libsdl-console-dev git clone git://gitorious.org/acab/puertoplayer.git make
Usage: puertoplayer [OPTION...] Connecting to a gigargoyle server and displays the matrix on screen --localhost Connects to gigargoyle on localhost on (fixed) port 8080 If Option "--localhost" is missing, it tries to connect to the live puerto acab server 83.133.178.4
Starting puertoplayer and connecting to a localhost gigargoyle server
./puertoplayer --localhost
In this case the gigargoyle server should be startet with the webclient port 8080
./gigargoyle -p -w 8080
If started without any arguments, the player connects to puerto installation at 83.133.178.4
The Server
apt-get install libfftw3-dev libjack-dev git clone git://gitorious.org/acab/gigargoyle.git make
if everything went fine, the directory contains 4 binaries:
Usage: gigargoyle [OPTION...] Control a moodlamp matrix using a TCP socket -f, --foreground Stay in foreground; don't daemonize -i, --port-is=PORT_IS Listening port for instant streaming clients -l, --logfile=LOGFILE Path to log file -p, --pretend Only pretend to send data to ttys but instead just log sent data --pidfile=PIDFILE Path to pid file -q, --port-qm=PORT_QM Listening port for the acabspool --uart-0=UART_0 Path to uart-0 --uart-1=UART_1 Path to uart-1 --uart-2=UART_2 Path to uart-2 --uart-3=UART_3 Path to uart-3 -w, --port-web=PORT_WEB Listening port for web clients -x, --acab-x=WIDTH Width of matrix in pixels -y, --acab-y=HEIGHT Height of matrix in pixels -?, --help Give this help list --usage Give a short usage message
Starting gigargoyle
./gigargoyle -f -p --pidfile=./test.pid --logfile=./test.log
Default Ports (when running with port cmdln params):
#define PORT_QM 0xabac /* tcp port for the queing manager */ #define PORT_IS 0xacab /* tcp port for instant streamers */ #define PORT_WEB 8080 /* tcp port for live watchers */
Some hints:
The following patch is now already included in distribution 0001-gixed-web_port-argument-handling-the-cmdline-argumen.patch
git clone git://gitorious.org/acab/acabspool.git
The package containing blubbtris components blubbtris.tar.gz If you have dependency problems, install the dependencies of your distribution's xtris package via your package manager (eg (debian-based): apt-get build-dep xtris)
./xtrisclient -x blubb.muirauqa.org -p <puerto ip/gigagoyle server>
— Puerto —
Public IP: 83.133.178.4 If the server doesn't accept connections you may need to connect to it through Puerto's Wifi. Use 10.0.0.11 as -p's parameter.
./xtris blubb.muirauqa.org
change 'ROWS' and 'COLS' according to the size in xtris
echo blubbtris: {,düdü,düdü,düdü,düdü,düdü,,,,}dümm
In der Funktion int main(int argc, char ** argv) gibt es den Abschnitt
SDL_PollEvent( &e ); if (e.type == SDL_KEYDOWN) { if (e.key.keysym.sym == SDLK_ESCAPE) exit(0); if (e.key.keysym.sym == SDLK_q) exit(0); } if( e.type == SDL_QUIT ) exit(0);
Den können wir um weitere Keycodes und Aktionen ergänzen. Idee vom Prinzip her:
Gehört dieser eintrag wo anders dazu???
Modified client interfacing with an xtris server.
Known issues: — no support for the OP_GROW and OP_FALL operations, which require a local representation of the game matrix. maudafish is working on that though.
code: gigargoyle-xtris.tar.bz2 aktuelle Version ab 2010/10/31 in /home/maudafish/acab/gigargoyle.git/
format richtig: xtris.c
Wo gehören die Dateien dazu????
tetris.xml
matrix.c (Spielteilchen ; Funktion um eine Linie zu zeichnen: drawLine)