![]() |
Crossfire Client, Trunk
|
Functions | |
def | check_completed () |
def | client_send (text) |
def | console_send (text) |
def | debug_send (text) |
def | player_send (text) |
Variables | |
buffer = buffer.rstrip() | |
codefile = re.compile("[.][^.]+\Z").sub("", __file__) | |
int | completed = 0 |
string | completed_date = "" |
cursor = dbConn.cursor() | |
string | datafile = codefile + ".db" |
dbConn = sqlite3.connect(f"{datafile}") | |
bool | debug = False |
string | license |
string | map_data = ''; |
string | map_date = ''; |
int | map_id = 0; |
int | map_line = -1; |
string | map_made = ''; |
string | map_name = ''; |
string | map_path = ''; |
maps = query[0] | |
matches = regc_rqst_player_data.match(buffer) | |
int | NDI_ALL = 0x200 |
int | NDI_ALL_DMS = 0x400 |
int | NDI_BLACK = 0 |
int | NDI_BLUE = 5 |
int | NDI_BROWN = 10 |
int | NDI_COLOR_MASK = 0xff |
int | NDI_DK_ORANGE = 6 |
int | NDI_GOLD = 11 |
int | NDI_GREEN = 7 |
int | NDI_GREY = 9 |
int | NDI_LT_GREEN = 8 |
int | NDI_MAX_COLOR = 12 |
int | NDI_NAVY = 2 |
int | NDI_ORANGE = 4 |
int | NDI_RED = 3 |
int | NDI_TAN = 12 |
int | NDI_UNIQUE = 0x100 |
int | NDI_WHITE = 1 |
int | player_code = 0 |
int | player_id = players |
player_nmbr = matches.group(1) | |
player_seen = time.strftime("%Y/%m/%d %H:%M") | |
string | player_title = '' |
int | players = 0 |
query = cursor.fetchone() | |
int | quiets = 0 |
regc_rqst_player = re.compile(regx_rqst_player) | |
regc_rqst_player_data = re.compile(regx_rqst_player_data) | |
regc_rqst_player_id = re.compile(regx_rqst_player_id) | |
regc_rqst_player_name = re.compile(regx_rqst_player_name) | |
regc_rqst_player_strt = re.compile(regx_rqst_player_strt) | |
regc_scripttell = re.compile('^scripttell\s+', 0) | |
regc_wtch_draw = re.compile(regx_wtch_draw, 0) | |
regc_wtch_draw_date = re.compile(regx_wtch_draw_date, 0) | |
regc_wtch_draw_made = re.compile(regx_wtch_draw_made, 0) | |
regc_wtch_draw_name = re.compile(regx_wtch_draw_name, 0) | |
regc_wtch_draw_path = re.compile(regx_wtch_draw_path, 0) | |
regc_wtch_draw_rnds = re.compile(regx_wtch_draw_rnds, 0) | |
regc_wtch_draw_strt = re.compile(regx_wtch_draw_strt, 0) | |
regc_wtch_draw_xsiz = re.compile(regx_wtch_draw_xsiz, 0) | |
string | regx_rqst_player = "^request\splayer\s" |
string | regx_rqst_player_data = regx_rqst_player_id + regx_rqst_player_name |
string | regx_rqst_player_id = "(\d+)\s+" |
string | regx_rqst_player_name = "Player:\s+(\w+)\s+the\s+(.+)" |
string | regx_rqst_player_strt = regx_rqst_player + regx_rqst_player_id |
string | regx_wtch_draw = "^watch drawextinfo (\d+\s){3}" |
string | regx_wtch_draw_date = "Modified:\s+(.+)" |
string | regx_wtch_draw_made = "Created:\s+(.*)" |
string | regx_wtch_draw_name = regx_wtch_draw_strt + "[~/]" |
string | regx_wtch_draw_path = "^([^\(\)]+|\(null\)\s)\(([^\)]+)\)\s*(.*)" |
string | regx_wtch_draw_rnds = "random_seed\s\d+" |
string | regx_wtch_draw_strt = regx_wtch_draw + "([^\(]+|\(null\)\s*)\(" |
string | regx_wtch_draw_xsiz = regx_wtch_draw + "xsize\s[-]?\d+" |
int | server_id = 0 |
int | servers = 0 |
bool | success = False |
int | v_head = 1 |
int | v_tail = 0 |
vcConn = sqlite3.connect(":memory:") | |
vcursor = vcConn.cursor() | |
string | visit_date = '' |
int | visit_total = 0 |
int | visits = 0 |
def cfmaplog.check_completed | ( | ) |
Definition at line 150 of file cfmaplog.py.
References console_send(), debug_send(), and player_send().
def cfmaplog.client_send | ( | text | ) |
Definition at line 47 of file cfmaplog.py.
Referenced by player_send().
def cfmaplog.console_send | ( | text | ) |
Definition at line 57 of file cfmaplog.py.
Referenced by check_completed(), and debug_send().
def cfmaplog.debug_send | ( | text | ) |
Definition at line 67 of file cfmaplog.py.
References console_send().
Referenced by check_completed(), and player_send().
def cfmaplog.player_send | ( | text | ) |
Definition at line 145 of file cfmaplog.py.
References client_send(), and debug_send().
Referenced by check_completed().
string cfmaplog.buffer = buffer.rstrip() |
Definition at line 342 of file cfmaplog.py.
Referenced by message_callback(), msgctrl_init(), read_msgctrl_configuration(), replace_chars_with_string(), save_msgctrl_configuration(), and update_msgctrl_configuration().
cfmaplog.codefile = re.compile("[.][^.]+\Z").sub("", __file__) |
Definition at line 187 of file cfmaplog.py.
int cfmaplog.completed = 0 |
Definition at line 599 of file cfmaplog.py.
cfmaplog.completed_date = "" |
Definition at line 600 of file cfmaplog.py.
cfmaplog.cursor = dbConn.cursor() |
Definition at line 201 of file cfmaplog.py.
string cfmaplog.datafile = codefile + ".db" |
Definition at line 188 of file cfmaplog.py.
cfmaplog.dbConn = sqlite3.connect(f"{datafile}") |
Definition at line 193 of file cfmaplog.py.
bool cfmaplog.debug = False |
Definition at line 39 of file cfmaplog.py.
string cfmaplog.license |
Definition at line 3 of file cfmaplog.py.
string cfmaplog.map_data = ''; |
Definition at line 452 of file cfmaplog.py.
string cfmaplog.map_date = ''; |
Definition at line 456 of file cfmaplog.py.
int cfmaplog.map_id = 0; |
Definition at line 450 of file cfmaplog.py.
int cfmaplog.map_line = -1; |
Definition at line 451 of file cfmaplog.py.
string cfmaplog.map_made = ''; |
Definition at line 455 of file cfmaplog.py.
string cfmaplog.map_name = ''; |
Definition at line 453 of file cfmaplog.py.
string cfmaplog.map_path = ''; |
Definition at line 454 of file cfmaplog.py.
int cfmaplog.maps = query[0] |
Definition at line 448 of file cfmaplog.py.
cfmaplog.matches = regc_rqst_player_data.match(buffer) |
Definition at line 345 of file cfmaplog.py.
Referenced by get_new_char_info().
int cfmaplog.NDI_ALL = 0x200 |
Definition at line 102 of file cfmaplog.py.
int cfmaplog.NDI_ALL_DMS = 0x400 |
Definition at line 103 of file cfmaplog.py.
int cfmaplog.NDI_BLACK = 0 |
Definition at line 81 of file cfmaplog.py.
int cfmaplog.NDI_BLUE = 5 |
Definition at line 86 of file cfmaplog.py.
int cfmaplog.NDI_BROWN = 10 |
Definition at line 92 of file cfmaplog.py.
int cfmaplog.NDI_COLOR_MASK = 0xff |
Definition at line 97 of file cfmaplog.py.
int cfmaplog.NDI_DK_ORANGE = 6 |
Definition at line 87 of file cfmaplog.py.
int cfmaplog.NDI_GOLD = 11 |
Definition at line 93 of file cfmaplog.py.
int cfmaplog.NDI_GREEN = 7 |
Definition at line 88 of file cfmaplog.py.
int cfmaplog.NDI_GREY = 9 |
Definition at line 91 of file cfmaplog.py.
int cfmaplog.NDI_LT_GREEN = 8 |
Definition at line 89 of file cfmaplog.py.
int cfmaplog.NDI_MAX_COLOR = 12 |
Definition at line 95 of file cfmaplog.py.
int cfmaplog.NDI_NAVY = 2 |
Definition at line 83 of file cfmaplog.py.
int cfmaplog.NDI_ORANGE = 4 |
Definition at line 85 of file cfmaplog.py.
int cfmaplog.NDI_RED = 3 |
Definition at line 84 of file cfmaplog.py.
int cfmaplog.NDI_TAN = 12 |
Definition at line 94 of file cfmaplog.py.
int cfmaplog.NDI_UNIQUE = 0x100 |
Definition at line 101 of file cfmaplog.py.
int cfmaplog.NDI_WHITE = 1 |
Definition at line 82 of file cfmaplog.py.
int cfmaplog.player_code = 0 |
Definition at line 280 of file cfmaplog.py.
cfmaplog.player_id = players |
Definition at line 363 of file cfmaplog.py.
cfmaplog.player_nmbr = matches.group(1) |
Definition at line 346 of file cfmaplog.py.
cfmaplog.player_seen = time.strftime("%Y/%m/%d %H:%M") |
Definition at line 282 of file cfmaplog.py.
cfmaplog.player_title = '' |
Definition at line 281 of file cfmaplog.py.
int cfmaplog.players = 0 |
Definition at line 279 of file cfmaplog.py.
Referenced by print_entry(), and server_add().
cfmaplog.query = cursor.fetchone() |
Definition at line 235 of file cfmaplog.py.
int cfmaplog.quiets = 0 |
Definition at line 468 of file cfmaplog.py.
cfmaplog.regc_rqst_player = re.compile(regx_rqst_player) |
Definition at line 287 of file cfmaplog.py.
cfmaplog.regc_rqst_player_data = re.compile(regx_rqst_player_data) |
Definition at line 295 of file cfmaplog.py.
cfmaplog.regc_rqst_player_id = re.compile(regx_rqst_player_id) |
Definition at line 289 of file cfmaplog.py.
cfmaplog.regc_rqst_player_name = re.compile(regx_rqst_player_name) |
Definition at line 293 of file cfmaplog.py.
cfmaplog.regc_rqst_player_strt = re.compile(regx_rqst_player_strt) |
Definition at line 291 of file cfmaplog.py.
cfmaplog.regc_scripttell = re.compile('^scripttell\s+', 0) |
Definition at line 568 of file cfmaplog.py.
cfmaplog.regc_wtch_draw = re.compile(regx_wtch_draw, 0) |
Definition at line 418 of file cfmaplog.py.
cfmaplog.regc_wtch_draw_date = re.compile(regx_wtch_draw_date, 0) |
Definition at line 428 of file cfmaplog.py.
cfmaplog.regc_wtch_draw_made = re.compile(regx_wtch_draw_made, 0) |
Definition at line 426 of file cfmaplog.py.
cfmaplog.regc_wtch_draw_name = re.compile(regx_wtch_draw_name, 0) |
Definition at line 422 of file cfmaplog.py.
cfmaplog.regc_wtch_draw_path = re.compile(regx_wtch_draw_path, 0) |
Definition at line 424 of file cfmaplog.py.
cfmaplog.regc_wtch_draw_rnds = re.compile(regx_wtch_draw_rnds, 0) |
Definition at line 432 of file cfmaplog.py.
cfmaplog.regc_wtch_draw_strt = re.compile(regx_wtch_draw_strt, 0) |
Definition at line 420 of file cfmaplog.py.
cfmaplog.regc_wtch_draw_xsiz = re.compile(regx_wtch_draw_xsiz, 0) |
Definition at line 430 of file cfmaplog.py.
string cfmaplog.regx_rqst_player = "^request\splayer\s" |
Definition at line 286 of file cfmaplog.py.
string cfmaplog.regx_rqst_player_data = regx_rqst_player_id + regx_rqst_player_name |
Definition at line 294 of file cfmaplog.py.
string cfmaplog.regx_rqst_player_id = "(\d+)\s+" |
Definition at line 288 of file cfmaplog.py.
string cfmaplog.regx_rqst_player_name = "Player:\s+(\w+)\s+the\s+(.+)" |
Definition at line 292 of file cfmaplog.py.
string cfmaplog.regx_rqst_player_strt = regx_rqst_player + regx_rqst_player_id |
Definition at line 290 of file cfmaplog.py.
string cfmaplog.regx_wtch_draw = "^watch drawextinfo (\d+\s){3}" |
Definition at line 417 of file cfmaplog.py.
string cfmaplog.regx_wtch_draw_date = "Modified:\s+(.+)" |
Definition at line 427 of file cfmaplog.py.
string cfmaplog.regx_wtch_draw_made = "Created:\s+(.*)" |
Definition at line 425 of file cfmaplog.py.
string cfmaplog.regx_wtch_draw_name = regx_wtch_draw_strt + "[~/]" |
Definition at line 421 of file cfmaplog.py.
string cfmaplog.regx_wtch_draw_path = "^([^\(\)]+|\(null\)\s)\(([^\)]+)\)\s*(.*)" |
Definition at line 423 of file cfmaplog.py.
string cfmaplog.regx_wtch_draw_rnds = "random_seed\s\d+" |
Definition at line 431 of file cfmaplog.py.
string cfmaplog.regx_wtch_draw_strt = regx_wtch_draw + "([^\(]+|\(null\)\s*)\(" |
Definition at line 419 of file cfmaplog.py.
string cfmaplog.regx_wtch_draw_xsiz = regx_wtch_draw + "xsize\s[-]?\d+" |
Definition at line 429 of file cfmaplog.py.
int cfmaplog.server_id = 0 |
Definition at line 206 of file cfmaplog.py.
int cfmaplog.servers = 0 |
Definition at line 205 of file cfmaplog.py.
bool cfmaplog.success = False |
Definition at line 512 of file cfmaplog.py.
int cfmaplog.v_head = 1 |
Definition at line 563 of file cfmaplog.py.
int cfmaplog.v_tail = 0 |
Definition at line 564 of file cfmaplog.py.
cfmaplog.vcConn = sqlite3.connect(":memory:") |
Definition at line 553 of file cfmaplog.py.
cfmaplog.vcursor = vcConn.cursor() |
Definition at line 554 of file cfmaplog.py.
cfmaplog.visit_date = '' |
Definition at line 543 of file cfmaplog.py.
int cfmaplog.visit_total = 0 |
Definition at line 799 of file cfmaplog.py.
cfmaplog.visits = 0 |
Definition at line 542 of file cfmaplog.py.