Games-FrozenBubble
view release on metacpan or search on metacpan
bin/frozen-bubble view on Meta::CPAN
} elsif ($message =~ /^KICKED: (.+)/) {
smg_add_status_msg(loc("*** %s was kicked out of the game...", $1));
@wholist = difference2(\@wholist, [ $1 ]);
play_sound('newroot_solo');
} elsif ($message eq 'KICKED') {
$forget_because_kicked = $joined_leader;
smg_add_status_msg(loc("*** You were kicked out of the game..."));
play_sound('cancel');
Games::FrozenBubble::Net::reconnect();
return smg_choose_game();
} elsif ($message eq 'NO_ACTIVITY_WITHIN_GRACETIME') {
smg_add_status_msg(loc("*** You were disconnected because of too long inactivity"));
play_sound('cancel');
Games::FrozenBubble::Net::reconnect();
return smg_choose_game();
} elsif ($message =~ /^OPTIONS: (.*)/) {
my $options = $1;
while ($options =~ /([^,]+),?/g) {
my $option = $1;
if ($option =~ /^CHAINREACTION:(.)/) {
$chainreaction = $1;
server/net.c_tmp view on Meta::CPAN
static char greets_msg_base[] = "SERVER_READY %s %s";
static char* servername = NULL;
static char* serverlanguage = NULL;
static char ok_generic[] = "OK";
static char fl_client_nolf[] = "NO_LF_WITHIN_TOO_MUCH_DATA (I bet you're not a regular FB client, hu?)";
static char fl_client_nulbyte[] = "NUL_BYTE_BEFORE_NEWLINE (I bet you're not a regular FB client, hu?)";
static char fl_server_full[] = "SERVER_IS_FULL";
static char fl_server_overloaded[] = "SERVER_IS_OVERLOADED";
static char fl_client_noactivity[] = "NO_ACTIVITY_WITHIN_GRACETIME";
static char fl_client_blacklisted[] = "YOU_ARE_BLACKLISTED";
static double date_amount_transmitted_reset;
#define DEFAULT_PORT 1511 // a.k.a 0xF 0xB thx misc
#define DEFAULT_MAX_USERS 255
#define DEFAULT_INTERVAL_REREGISTER 60
#define DEFAULT_MAX_TRANSMISSION_RATE 100000
#define DEFAULT_OUTPUT "INFO"
#define DEFAULT_GRACETIME 900
static int port = DEFAULT_PORT;
static int max_users = DEFAULT_MAX_USERS;
int interval_reregister = DEFAULT_INTERVAL_REREGISTER;
static int max_transmission_rate = DEFAULT_MAX_TRANSMISSION_RATE;
static int gracetime = DEFAULT_GRACETIME;
static int lan_game_mode = 0;
static int tcp_server_socket;
static int udp_server_socket = -1;
static int quiet = 0;
static char* external_hostname = "DISTANT_END";
static int external_port = -1;
server/net.c_tmp view on Meta::CPAN
static void help(void)
{
printf("Usage: fb-server [OPTION]...\n");
printf("\n");
printf(" -a lang set the preferred language of the server (it is just an indication used by players when choosing a server, so that they can chat using their native language - you can choose none with -z)\n");
printf(" -A alert_words_file set the file containing alert words (one POSIX regexp by line) - this file is reread when receiving the ADMIN_REREAD command from 127.0.0.1\n");
printf(" -c conffile specify the path of the configuration file\n");
printf(" -d debug mode: do not daemonize, and log on STDERR rather than through syslog (implies -q)\n");
printf(" -f pidfile set the file in which the pid of the daemon must be written\n");
printf(" -g gracetime set the gracetime after which a client with no network activity is terminated (in seconds, defaults to %d)\n", DEFAULT_GRACETIME);
printf(" -h display this help then exits\n");
printf(" -H host set the hostname (or IP) as seen from outside (by default, when registering the server to www.frozen-bubble.org, the distant end at IP level will be used)\n");
printf(" -i minutes set the minutes interval for reregistering on the master server (except if -q is provided); use 0 to disable the feature; defaults to %d minutes)\n", DEFAULT_INTERVAL_REREGISTER);
printf(" -l LAN mode: create an UDP server (on port %d) to answer broadcasts of clients discovering where are the servers\n", DEFAULT_PORT);
printf(" -L LAN/game mode: create an UDP server as above, but limit number of games to 1 (this is for an FB client hosting a LAN server)\n");
printf(" -m max_users set the maximum of connected users (defaults to %d, physical maximum 255 in non debug mode)\n", DEFAULT_MAX_USERS);
printf(" -n name set the server name presented to players (if unset, defaults to hostname)\n");
printf(" -o outputtype set the output type; can be DEBUG, CONNECT, INFO, ERROR; each level includes messages of next level; defaults to INFO\n");
printf(" -p port set the server port (defaults to %d)\n", DEFAULT_PORT);
printf(" -P port set the server port as seen from outside (defaults to the port specified with -p)\n");
server/net.c_tmp view on Meta::CPAN
case 'f':
printf("-f: will store pid of daemon into file '%s'\n", param);
pidfile = strdup(param);
break;
case 'g':
gracetime = charstar_to_int(param);
if (gracetime != 0)
printf("-g: setting gracetime to '%d' seconds (equals '%d' minutes)\n", gracetime, gracetime/60);
else {
fprintf(stderr, "-g: '%s' not convertible to int, ignoring\n", param);
gracetime = DEFAULT_GRACETIME;
}
break;
case 'h':
help();
exit(EXIT_SUCCESS);
case 'H':
printf("-H: setting hostname as seen from outside to '%s'\n", param);
external_hostname = strdup(param);
break;
case 'i':
share/locale/da.po view on Meta::CPAN
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-11-03 15:00+0100\n"
"PO-Revision-Date: 2006-10-24 09:00 +CET1\n"
"Last-Translator: Bjarne Kondrup <swoop@reflection-design.dk>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../frozen-bubble:202
msgid "0"
msgstr "0"
( run in 0.904 second using v1.01-cache-2.11-cpan-49f99fa48dc )