Updated Spanish translation
This commit is contained in:
parent
f5c2872ef9
commit
e0a363640c
5 changed files with 62 additions and 329 deletions
|
@ -16,7 +16,7 @@
|
|||
<message>
|
||||
<location filename="../src/dlg_settings.cpp" line="273"/>
|
||||
<source>Path to stack background:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Ruta a la imagen de fondo de la pila:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_settings.cpp" line="274"/>
|
||||
|
@ -51,12 +51,12 @@
|
|||
<message>
|
||||
<location filename="../src/dlg_settings.cpp" line="282"/>
|
||||
<source>Economical layout</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Disposición Económica</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_settings.cpp" line="283"/>
|
||||
<source>Invert vertical coordinate</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Invertir coordenada vertical</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Economic layout</source>
|
||||
|
@ -337,37 +337,37 @@
|
|||
<location filename="../src/cardzone.cpp" line="51"/>
|
||||
<source>his hand</source>
|
||||
<comment>nominative</comment>
|
||||
<translation type="unfinished">su mano</translation>
|
||||
<translation>su mano</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="51"/>
|
||||
<source>%1's hand</source>
|
||||
<comment>nominative</comment>
|
||||
<translation type="unfinished">mano &de %1</translation>
|
||||
<translation>mano de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="52"/>
|
||||
<source>of his hand</source>
|
||||
<comment>genitive</comment>
|
||||
<translation type="unfinished">de su mano</translation>
|
||||
<translation>de su mano</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="52"/>
|
||||
<source>of %1's hand</source>
|
||||
<comment>genitive</comment>
|
||||
<translation type="unfinished">de la mano &de %1</translation>
|
||||
<translation>de la mano de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="53"/>
|
||||
<source>his hand</source>
|
||||
<comment>accusative</comment>
|
||||
<translation type="unfinished">su mano</translation>
|
||||
<translation>su mano</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="53"/>
|
||||
<source>%1's hand</source>
|
||||
<comment>accusative</comment>
|
||||
<translation type="unfinished">mano &de %1</translation>
|
||||
<translation>mano de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>his hand</source>
|
||||
|
@ -383,37 +383,37 @@
|
|||
<location filename="../src/cardzone.cpp" line="57"/>
|
||||
<source>his library</source>
|
||||
<comment>nominative</comment>
|
||||
<translation type="unfinished">su biblioteca</translation>
|
||||
<translation>su biblioteca</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="57"/>
|
||||
<source>%1's library</source>
|
||||
<comment>nominative</comment>
|
||||
<translation type="unfinished">biblioteca &de %1</translation>
|
||||
<translation>biblioteca de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="58"/>
|
||||
<source>of his library</source>
|
||||
<comment>genitive</comment>
|
||||
<translation type="unfinished">de su biblioteca</translation>
|
||||
<translation>de su biblioteca</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="58"/>
|
||||
<source>of %1's library</source>
|
||||
<comment>genitive</comment>
|
||||
<translation type="unfinished">de la biblioteca &de %1</translation>
|
||||
<translation>de la biblioteca de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="59"/>
|
||||
<source>his library</source>
|
||||
<comment>accusative</comment>
|
||||
<translation type="unfinished">su biblioteca</translation>
|
||||
<translation>su biblioteca</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="59"/>
|
||||
<source>%1's library</source>
|
||||
<comment>accusative</comment>
|
||||
<translation type="unfinished">biblioteca &de %1</translation>
|
||||
<translation>biblioteca de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>his library</source>
|
||||
|
@ -429,37 +429,37 @@
|
|||
<location filename="../src/cardzone.cpp" line="63"/>
|
||||
<source>his graveyard</source>
|
||||
<comment>nominative</comment>
|
||||
<translation type="unfinished">su cementerio</translation>
|
||||
<translation>su cementerio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="63"/>
|
||||
<source>%1's graveyard</source>
|
||||
<comment>nominative</comment>
|
||||
<translation type="unfinished">cementerio &de %1</translation>
|
||||
<translation>cementerio de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="64"/>
|
||||
<source>of his graveyard</source>
|
||||
<comment>genitive</comment>
|
||||
<translation type="unfinished">de su cementerio</translation>
|
||||
<translation>de su cementerio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="64"/>
|
||||
<source>of %1's graveyard</source>
|
||||
<comment>genitive</comment>
|
||||
<translation type="unfinished">del cementerio &de %1</translation>
|
||||
<translation>del cementerio de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="65"/>
|
||||
<source>his graveyard</source>
|
||||
<comment>accusative</comment>
|
||||
<translation type="unfinished">su cementerio</translation>
|
||||
<translation>su cementerio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="65"/>
|
||||
<source>%1's graveyard</source>
|
||||
<comment>accusative</comment>
|
||||
<translation type="unfinished">cementerio &de %1</translation>
|
||||
<translation>cementerio de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>his graveyard</source>
|
||||
|
@ -475,37 +475,37 @@
|
|||
<location filename="../src/cardzone.cpp" line="69"/>
|
||||
<source>his exile</source>
|
||||
<comment>nominative</comment>
|
||||
<translation type="unfinished">su exilio</translation>
|
||||
<translation>su exilio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="69"/>
|
||||
<source>%1's exile</source>
|
||||
<comment>nominative</comment>
|
||||
<translation type="unfinished">el exilio de %1</translation>
|
||||
<translation>el exilio de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="70"/>
|
||||
<source>of his exile</source>
|
||||
<comment>genitive</comment>
|
||||
<translation type="unfinished">de su exilio</translation>
|
||||
<translation>de su exilio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="70"/>
|
||||
<source>of %1's exile</source>
|
||||
<comment>genitive</comment>
|
||||
<translation type="unfinished">del exilio de %1</translation>
|
||||
<translation>del exilio de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="71"/>
|
||||
<source>his exile</source>
|
||||
<comment>accusative</comment>
|
||||
<translation type="unfinished">su exilio</translation>
|
||||
<translation>su exilio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="71"/>
|
||||
<source>%1's exile</source>
|
||||
<comment>accusative</comment>
|
||||
<translation type="unfinished">el exilio de %1</translation>
|
||||
<translation>el exilio de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>his exile</source>
|
||||
|
@ -521,37 +521,37 @@
|
|||
<location filename="../src/cardzone.cpp" line="75"/>
|
||||
<source>his sideboard</source>
|
||||
<comment>nominative</comment>
|
||||
<translation type="unfinished">su reserva</translation>
|
||||
<translation>su reserva</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="75"/>
|
||||
<source>%1's sideboard</source>
|
||||
<comment>nominative</comment>
|
||||
<translation type="unfinished">la reserva de %1</translation>
|
||||
<translation>la reserva de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="76"/>
|
||||
<source>of his sideboard</source>
|
||||
<comment>genitive</comment>
|
||||
<translation type="unfinished">de su reserva</translation>
|
||||
<translation>de su reserva</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="76"/>
|
||||
<source>of %1's sideboard</source>
|
||||
<comment>genitive</comment>
|
||||
<translation type="unfinished">de la reserva &de %1</translation>
|
||||
<translation>de la reserva de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="77"/>
|
||||
<source>his sideboard</source>
|
||||
<comment>accusative</comment>
|
||||
<translation type="unfinished">su reserva</translation>
|
||||
<translation>su reserva</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="77"/>
|
||||
<source>%1's sideboard</source>
|
||||
<comment>accusative</comment>
|
||||
<translation type="unfinished">la reserva de %1</translation>
|
||||
<translation>la reserva de %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>his sideboard</source>
|
||||
|
@ -971,17 +971,17 @@
|
|||
<message>
|
||||
<location filename="../src/dlg_settings.cpp" line="561"/>
|
||||
<source>Your card database is invalid. Would you like to go back and set the correct path?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Tu base de datos de cartas es invalida. ¿Deseas volver y seleccionar la ruta correcta?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_settings.cpp" line="566"/>
|
||||
<source>The path to your deck directory is invalid. Would you like to go back and set the correct path?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>La ruta a tu directorio de mazos es invalida. ¿Deseas volver y seleccionar la ruta correcta?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_settings.cpp" line="571"/>
|
||||
<source>The path to your card pictures directory is invalid. Would you like to go back and set the correct path?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>La ruta a tu directorio de imagenes de las cartas es invalida.¿Deseas volver y seleccionar la ruta correcta?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_settings.cpp" line="580"/>
|
||||
|
@ -1208,12 +1208,12 @@
|
|||
<message>
|
||||
<location filename="../src/window_main.cpp" line="153"/>
|
||||
<source>About Cockatrice</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Acerca de Cockatrice</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<location filename="../src/window_main.cpp" line="153"/>
|
||||
<source><font size="8"><b>Cockatrice</b></font><br>Version %1<br><br><br><b>Authors:</b><br>Max-Wilhelm Bruker<br>Marcus Schütz<br>Marius van Zundert<br><br><b>Translators:</b><br>Spanish: Gocho<br>Portugese: Milton Gonçalves<br></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/window_main.cpp" line="158"/>
|
||||
|
@ -1306,12 +1306,12 @@
|
|||
<message>
|
||||
<location filename="../src/window_main.cpp" line="204"/>
|
||||
<source>&About Cockatrice</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>&Acerca de Cockatrice</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/window_main.cpp" line="205"/>
|
||||
<source>&Help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>A&yuda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/window_main.cpp" line="281"/>
|
||||
|
@ -1424,7 +1424,7 @@
|
|||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="173"/>
|
||||
<source> from the stack</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation> de la pila</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="196"/>
|
||||
|
@ -1474,7 +1474,7 @@
|
|||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="215"/>
|
||||
<source>%1 plays %2%3.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>%1 juega %2%3.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="221"/>
|
||||
|
@ -1651,12 +1651,12 @@
|
|||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="364"/>
|
||||
<source>%1 reveals %2 to %3.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>%1 revela %2 a %3.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="366"/>
|
||||
<source>%1 reveals %2.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>%1 revela %2.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="401"/>
|
||||
|
@ -1676,22 +1676,22 @@
|
|||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="369"/>
|
||||
<source>%1 randomly reveals %2%3 to %4.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>%1 revela aleatoriamente %2%3 a %4.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="371"/>
|
||||
<source>%1 randomly reveals %2%3.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>%1 revela aleatoriamente %2%3.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="374"/>
|
||||
<source>%1 reveals %2%3 to %4.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>%1 revela %2%3 a %4.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="376"/>
|
||||
<source>%1 reveals %2%3.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>%1 revela %2%3.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="391"/>
|
||||
|
@ -1875,7 +1875,7 @@
|
|||
<location filename="../src/player.cpp" line="390"/>
|
||||
<location filename="../src/player.cpp" line="399"/>
|
||||
<source>Move to &graveyard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Mover al &cementerio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="400"/>
|
||||
|
@ -1885,17 +1885,17 @@
|
|||
<message>
|
||||
<location filename="../src/player.cpp" line="402"/>
|
||||
<source>Reveal &library to</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Revelar &biblioteca a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="403"/>
|
||||
<source>Reveal t&op card to</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Revelar la carta &superior de la biblioteca a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="409"/>
|
||||
<source>Move top cards to &graveyard...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Mover cartas de la parte s&uperior de la biblioteca al cementerio...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="444"/>
|
||||
|
@ -2090,12 +2090,12 @@
|
|||
<message>
|
||||
<location filename="../src/player.cpp" line="413"/>
|
||||
<source>&Reveal to</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>&Revelar a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="414"/>
|
||||
<source>Reveal r&andom card to</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Revelar carta &aleatoriamente a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="429"/>
|
||||
|
@ -2105,7 +2105,7 @@
|
|||
<message>
|
||||
<location filename="../src/player.cpp" line="432"/>
|
||||
<source>&All players</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>&Todos los jugadores</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="545"/>
|
||||
|
@ -2488,12 +2488,12 @@ Por favor, introduzca un nombre:</translation>
|
|||
<message>
|
||||
<location filename="../src/tab_server.cpp" line="373"/>
|
||||
<source>Location:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Localización:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/tab_server.cpp" line="374"/>
|
||||
<source>User level:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Nivel de usuario:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -2511,12 +2511,12 @@ Por favor, introduzca un nombre:</translation>
|
|||
<message>
|
||||
<location filename="../src/dlg_settings.cpp" line="403"/>
|
||||
<source>Animation settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Opciones de animación</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_settings.cpp" line="404"/>
|
||||
<source>&Tap/untap animation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Animación de &girar/enderezar</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -2642,7 +2642,7 @@ Por favor, introduzca un nombre:</translation>
|
|||
<message>
|
||||
<location filename="../src/window_deckeditor.cpp" line="188"/>
|
||||
<source>Add card to &sideboard</source>
|
||||
<translation>Añadir mazos a la &reserva</translation>
|
||||
<translation>Añadir carta a la &reserva</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/window_deckeditor.cpp" line="41"/>
|
||||
|
@ -2698,8 +2698,8 @@ Por favor, introduzca un nombre:</translation>
|
|||
<location filename="../src/window_deckeditor.cpp" line="254"/>
|
||||
<source>The decklist has been modified.
|
||||
Do you want to save the changes?</source>
|
||||
<translation>La lista del mazo ha sido modificada
|
||||
¿Desea guardar los cambios?</translation>
|
||||
<translation type="unfinished">La lista del mazo ha sido modificada
|
||||
¿Deseas guardar los cambios?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
157
doc/protocol.txt
157
doc/protocol.txt
|
@ -1,157 +0,0 @@
|
|||
1. Abstract
|
||||
|
||||
The Cockatrice protocol is a client/server protocol intended for communication between
|
||||
a card game client and a suitable server. It is designed with the goal in mind to make
|
||||
playing card games, such as Magic the Gathering, over a network easy while eliminating
|
||||
the possibility of unfair play. Because of that, the server stores all hidden information
|
||||
and transmits pieces of it to clients only when necessary.
|
||||
|
||||
2. Protocol structure
|
||||
|
||||
All communication is done over a TCP/IP connection. The protocol is text based.
|
||||
Strings are encoded in UTF-8 and have UNIX-style line endings (\n).
|
||||
|
||||
There are four distinct types of messages:
|
||||
- Command (section 3)
|
||||
- Response (section 4)
|
||||
- Event (section 5)
|
||||
- List (section 6)
|
||||
|
||||
3. Commands
|
||||
|
||||
A command can only be sent from client to server and has the following structure:
|
||||
{ID}|{command}|{parameter1}|{parameter2}...
|
||||
"ID" is an arbitrary number to be chosen uniquely for each command.
|
||||
"command" is a command identifier (see section 3).
|
||||
It depends on the command identifier what has to be passed as parameters.
|
||||
|
||||
3.1 ping
|
||||
|
||||
Flags:
|
||||
none
|
||||
Parameters:
|
||||
none
|
||||
Valid response codes:
|
||||
ok
|
||||
|
||||
No effect.
|
||||
|
||||
3.2 login
|
||||
|
||||
Flags:
|
||||
none
|
||||
Parameters:
|
||||
User name (string)
|
||||
Password (string)
|
||||
Valid response codes:
|
||||
ok
|
||||
password
|
||||
|
||||
If the supplied credentials are correct, "ok" is returned and the connection state
|
||||
is set to authenticated. (The server is not required to actually check the validity
|
||||
of the credentials.)
|
||||
Otherwise, "password" is returned.
|
||||
|
||||
3.3 list_games
|
||||
|
||||
Flags:
|
||||
login needed
|
||||
Parameters:
|
||||
none
|
||||
Valid response codes:
|
||||
ok
|
||||
|
||||
If the connection state is unauthenticated, "login_needed" is returned.
|
||||
Otherwise, "ok" is returned and for each game currently, a list_games event XXX is
|
||||
sent to the client. The "accepts game list changes" flag of the connection is set.
|
||||
|
||||
3.4 create_game
|
||||
|
||||
Flags:
|
||||
login needed
|
||||
Parameters:
|
||||
Description (string)
|
||||
Password (string)
|
||||
Number of players (int)
|
||||
Valid response codes:
|
||||
ok
|
||||
|
||||
A game with the given parameters is created. The client is set as creator of the
|
||||
game and joins it automatically. The "accepts game list changes" flag of the connection
|
||||
is unset.
|
||||
|
||||
3.5 join_game
|
||||
|
||||
Flags:
|
||||
login needed
|
||||
Parameters:
|
||||
Game ID (int)
|
||||
Password (string)
|
||||
Valid response codes:
|
||||
ok
|
||||
password
|
||||
|
||||
If the password for the given game is correct, the client leaves the current game
|
||||
(if any) and joins the given game. The "accepts game list changes" flag of the connection
|
||||
is unset.
|
||||
|
||||
3.6 leave_game
|
||||
|
||||
Flags:
|
||||
login needed
|
||||
game needed
|
||||
Parameters:
|
||||
none
|
||||
Valid response codes:
|
||||
ok
|
||||
|
||||
The client leaves the current game.
|
||||
|
||||
3.7 list_players
|
||||
|
||||
Flags:
|
||||
login needed
|
||||
game needed
|
||||
Parameters:
|
||||
none
|
||||
|
||||
|
||||
3.8 say
|
||||
3.9 submit_deck
|
||||
3.10 ready_start
|
||||
3.11 shuffle
|
||||
3.12 draw_cards
|
||||
3.13 reveal_card
|
||||
3.14 move_card
|
||||
3.15 create_token
|
||||
3.16 set_card_attr
|
||||
3.17 inc_counter
|
||||
3.18 add_counter
|
||||
3.19 set_counter
|
||||
3.20 del_counter
|
||||
3.21 list_counters
|
||||
3.22 list_zones
|
||||
3.23 dump_zone
|
||||
3.24 roll_dice
|
||||
3.25 set_active_player
|
||||
3.26 set_active_phase
|
||||
|
||||
4. Responses
|
||||
|
||||
After processing any command, the server sends a response to the client, indicating
|
||||
whether the command was understood and valid.
|
||||
A response can only be sent from server to client and has the following structure:
|
||||
resp|{ID}|{resp-code}
|
||||
|
||||
{ID} is the identifier belonging to the command in question.
|
||||
{resp-code} contains information about the processing of the command. It can have the
|
||||
following values:
|
||||
ok (Success)
|
||||
login_needed (Error: Command requires login)
|
||||
syntax (Error: Invalid command or parameters)
|
||||
context (Error: Command cannot be applied here)
|
||||
password (Error: Wrong login data)
|
||||
|
||||
The response code "syntax" is valid as a response to any command and is
|
||||
hence not explicitly listed in section 3. The response code "login_needed" applies
|
||||
to all commands with the "login needed" flag.
|
|
@ -1,110 +0,0 @@
|
|||
!include "MUI2.nsh"
|
||||
!include "FileFunc.nsh"
|
||||
|
||||
Name "Cockatrice"
|
||||
OutFile "cockatrice_win32.exe"
|
||||
SetCompressor lzma
|
||||
InstallDir "$PROGRAMFILES\Cockatrice"
|
||||
|
||||
!define MUI_ABORTWARNING
|
||||
!define MUI_WELCOMEFINISHPAGE_BITMAP "leftimage.bmp"
|
||||
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "leftimage.bmp"
|
||||
!define MUI_HEADERIMAGE
|
||||
!define MUI_HEADERIMAGE_BITMAP "headerimage.bmp"
|
||||
!define MUI_HEADERIMAGE_UNBITMAP "headerimage.bmp"
|
||||
!define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of Cockatrice.$\r$\n$\r$\nClick Next to continue."
|
||||
!define MUI_FINISHPAGE_RUN "$INSTDIR/oracle.exe"
|
||||
!define MUI_FINISHPAGE_RUN_TEXT "Run card database downloader now"
|
||||
!define MUI_FINISHPAGE_RUN_PARAMETERS "-dlsets"
|
||||
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
!insertmacro MUI_PAGE_COMPONENTS
|
||||
!insertmacro MUI_PAGE_DIRECTORY
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
!insertmacro MUI_PAGE_FINISH
|
||||
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
!insertmacro MUI_UNPAGE_FINISH
|
||||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
Section "Application" SecApplication
|
||||
SetOutPath "$INSTDIR"
|
||||
File ..\cockatrice\release\cockatrice.exe
|
||||
File ..\oracle\release\oracle.exe
|
||||
File data\libgcc_s_dw2-1.dll
|
||||
File data\mingwm10.dll
|
||||
File data\QtCore4.dll
|
||||
File data\QtGui4.dll
|
||||
File data\QtNetwork4.dll
|
||||
File data\QtSvg4.dll
|
||||
File data\QtXml4.dll
|
||||
|
||||
SetOutPath "$INSTDIR\zonebg"
|
||||
File /r ..\zonebg\*.*
|
||||
|
||||
SetOutPath "$INSTDIR\plugins"
|
||||
File /r data\plugins\*.*
|
||||
|
||||
SetOutPath "$INSTDIR\pics"
|
||||
SetOutPath "$INSTDIR\decks"
|
||||
|
||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
|
||||
IntFmt $0 "0x%08X" $0
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "DisplayName" "Cockatrice"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "UninstallString" "$\"$INSTDIR\uninstall.exe$\""
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "InstallLocation" "$INSTDIR"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "DisplayIcon" "$INSTDIR\cockatrice.exe"
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "EstimatedSize" "$0"
|
||||
SectionEnd
|
||||
|
||||
Section "Update configuration" SecUpdateConfig
|
||||
WriteRegStr HKCU "Software\Cockatrice\Cockatrice\paths" "carddatabase" "$INSTDIR\cards.xml"
|
||||
WriteRegStr HKCU "Software\Cockatrice\Cockatrice\paths" "decks" "$INSTDIR\decks"
|
||||
WriteRegStr HKCU "Software\Cockatrice\Cockatrice\paths" "pics" "$INSTDIR\pics"
|
||||
|
||||
SectionEnd
|
||||
|
||||
Section "Start menu item" SecStartMenu
|
||||
createDirectory "$SMPROGRAMS\Cockatrice"
|
||||
createShortCut "$SMPROGRAMS\Cockatrice\Cockatrice.lnk" "$INSTDIR\cockatrice.exe"
|
||||
createShortCut "$SMPROGRAMS\Cockatrice\Oracle.lnk" "$INSTDIR\oracle.exe"
|
||||
SectionEnd
|
||||
|
||||
Section Uninstall
|
||||
RMDir /r "$INSTDIR\zonebg"
|
||||
RMDir /r "$INSTDIR\plugins"
|
||||
RMDir "$INSTDIR\decks"
|
||||
RMDir /r "$INSTDIR\pics\downloadedPics"
|
||||
RMDir "$INSTDIR\pics"
|
||||
Delete "$INSTDIR\uninstall.exe"
|
||||
Delete "$INSTDIR\cockatrice.exe"
|
||||
Delete "$INSTDIR\oracle.exe"
|
||||
Delete "$INSTDIR\cards.xml"
|
||||
Delete "$INSTDIR\libgcc_s_dw2-1.dll"
|
||||
Delete "$INSTDIR\mingwm10.dll"
|
||||
Delete "$INSTDIR\QtCore4.dll"
|
||||
Delete "$INSTDIR\QtGui4.dll"
|
||||
Delete "$INSTDIR\QtNetwork4.dll"
|
||||
Delete "$INSTDIR\QtSvg4.dll"
|
||||
Delete "$INSTDIR\QtXml4.dll"
|
||||
RMDir "$INSTDIR"
|
||||
|
||||
RMDir /r "$SMPROGRAMS\Cockatrice"
|
||||
|
||||
DeleteRegKey HKCU "Software\Cockatrice"
|
||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice"
|
||||
SectionEnd
|
||||
|
||||
LangString DESC_SecApplication ${LANG_ENGLISH} "Cockatrice program files"
|
||||
LangString DESC_SecUpdateConfig ${LANG_ENGLISH} "Update the paths in the application settings according to the installation paths."
|
||||
LangString DESC_SecStartMenu ${LANG_ENGLISH} "Create start menu items for Cockatrice and Oracle."
|
||||
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SecApplication} $(DESC_SecApplication)
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SecUpdateConfig} $(DESC_SecUpdateConfig)
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenu} $(DESC_SecStartMenu)
|
||||
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 34 KiB |
Binary file not shown.
Before Width: | Height: | Size: 201 KiB |
Loading…
Reference in a new issue