| 1 | /*************************************************************************** |
| 2 | * Copyright (C) 2009 by The qGo Project * |
| 3 | * * |
| 4 | * This file is part of qGo. * |
| 5 | * * |
| 6 | * qGo is free software: you can redistribute it and/or modify * |
| 7 | * it under the terms of the GNU General Public License as published by * |
| 8 | * the Free Software Foundation; either version 2 of the License, or * |
| 9 | * (at your option) any later version. * |
| 10 | * * |
| 11 | * This program is distributed in the hope that it will be useful, * |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 | * GNU General Public License for more details. * |
| 15 | * * |
| 16 | * You should have received a copy of the GNU General Public License * |
| 17 | * along with this program; if not, see <http://www.gnu.org/licenses/> * |
| 18 | * or write to the Free Software Foundation, Inc., * |
| 19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
| 20 | ***************************************************************************/ |
| 21 | |
| 22 | |
| 23 | #include "eweiqiconnection.h"cxx . . $ `<file>/src/network/eweiqiconnection.h`/ |
| 24 | #include "codecwarndialog.h"cxx . . $ `<file>/src/network/codecwarndialog.h`/ |
| 25 | #include "playergamelistings.h"cxx . . $ `<file>/src/network/playergamelistings.h`/ |
| 26 | #include "gamedata.h"cxx . . $ `<file>/src/gamedata.h`/ |
| 27 | #include "room.h"cxx . . $ `<file>/src/network/room.h`/ |
| 28 | #include "serverlistdialog.h"cxx . . $ `<file>/src/network/serverlistdialog.h`/ |
| 29 | |
| 30 | EWeiQiConnectioncxx . . $ EWeiQiConnection#::EWeiQiConnectioncxx . . $ EWeiQiConnection#EWeiQiConnection(231cf4fc7da7cd6f).(const ConnectionCredentialscxx . . $ ConnectionCredentials# credentials) |
| 31 | : TygemConnectioncxx . . $ TygemConnection#(credentials) |
| 32 | { |
| 33 | serverCodeccxx . . $ TygemConnection#serverCodec. = QTextCodeccxx . . $ QTextCodec#::codecForNamecxx . . $ QTextCodec#codecForName(914382192c9ca379).(getCodecStringcxx . . $ EWeiQiConnection#getCodecString(33a1f659e94feb42).()); |
| 34 | if(!serverCodeccxx . . $ TygemConnection#serverCodec.) |
| 35 | { |
| 36 | new CodecWarnDialogcxx . . $ CodecWarnDialog#(getCodecStringcxx . . $ EWeiQiConnection#getCodecString(33a1f659e94feb42).()); |
| 37 | serverCodeccxx . . $ TygemConnection#serverCodec. = QTextCodeccxx . . $ QTextCodec#::codecForLocalecxx . . $ QTextCodec#codecForLocale(6599407a1b23811).(); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | const char * EWeiQiConnectioncxx . . $ EWeiQiConnection#::getCodecStringcxx . . $ EWeiQiConnection#getCodecString(33a1f659e94feb42).(void) |
| 42 | { |
| 43 | return "GB2312"; |
| 44 | } |
| 45 | |
| 46 | QStringcxx . . $ QString# EWeiQiConnectioncxx . . $ EWeiQiConnection#::getPlaceStringcxx . . $ EWeiQiConnection#getPlaceString(4365c3963150523e).(void) |
| 47 | { |
| 48 | return "EWeiqi: " +cxx . . $ operator+(c75c3ae4eb9af1a8). serverListcxx . . $ TygemConnection#serverList.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).current_server_indexcxx . . $ TygemConnection#current_server_index.]->namecxx . . $ ServerItem#name.; |
| 49 | } |
| 50 | |
| 51 | int EWeiQiConnectioncxx . . $ EWeiQiConnection#::requestServerInfocxx . . $ EWeiQiConnection#requestServerInfo(b126dc7c1de90089).(void) |
| 52 | { |
| 53 | qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Requesting eWeiQi Server Info"); |
| 54 | if(!openConnectioncxx . . $ NetworkConnection#openConnection(6f40ee5c4c30d87e).(hostnamecxx . . $ NetworkConnection#hostname., portcxx . . $ NetworkConnection#port., NOT_MAIN_CONNECTIONcxx . . $ `src/network/networkconnection.h:64:9`!)) |
| 55 | { |
| 56 | qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Can't get server info"); |
| 57 | return -1; |
| 58 | } |
| 59 | unsigned int length = 0x96; |
| 60 | unsigned char * packet = new unsigned char[length]; //term 0x00 |
| 61 | snprintf((char *)packet, length, |
| 62 | "GET /service/down_china/livebaduk3.cfg HTTP/1.1\r\n" \ |
| 63 | "User-Agent: Tygem HTTP\r\n" \ |
| 64 | "Host: service.tygem.com\r\n" \ |
| 65 | "Connection: Keep-Alive\r\n" \ |
| 66 | "Cache-Control: no-cache\r\n\r\n"); |
| 67 | #ifdef RE_DEBUG |
| 68 | for(int i = 0; i < length; i++) |
| 69 | printf("%02x", packet[i]); |
| 70 | printf("\n"); |
| 71 | #endif //RE_DEBUG |
| 72 | if(writecxx . . $ NetworkConnection#write(1df18506ef0a631b).((const char *)packet, length) < 0) |
| 73 | { |
| 74 | qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!("*** failed sending server info request"); |
| 75 | delete[] packet; |
| 76 | return -1; |
| 77 | } |
| 78 | delete[] packet; |
| 79 | |
| 80 | setStatecxx . . $ NetworkConnection#setState(41e728cff2b23034).(Infocxx . . $ Info.); |
| 81 | return 0; |
| 82 | } |
| 83 | |
| 84 | QByteArraycxx . . $ QByteArray# EWeiQiConnectioncxx . . $ EWeiQiConnection#::getTygemGameRecordQByteArraycxx . . $ EWeiQiConnection#getTygemGameRecordQByteArray(921a24916160e04).(GameDatacxx . . $ GameData# * game) |
| 85 | { |
| 86 | Roomcxx . . $ Room# * room = getDefaultRoomcxx . . $ NetworkConnection#getDefaultRoom(93e93f117be81b18).(); |
| 87 | const PlayerListingcxx . . $ PlayerListing# * black, * white; |
| 88 | int black_ordinal, white_ordinal; |
| 89 | char black_qualifier, white_qualifier; |
| 90 | QByteArraycxx . . $ QByteArray# white_qualifier_stringcxx . . $ QByteArray#QByteArray(ced63f7c635d850d)., black_qualifier_stringcxx . . $ QByteArray#QByteArray(ced63f7c635d850d).; |
| 91 | unsigned char black_level, white_level; |
| 92 | unsigned short year; |
| 93 | unsigned char month, day, hour, minute, second; |
| 94 | secondsToDatecxx . . $ TygemConnection#secondsToDate(4b79e85d1d97ff5b).(year, month, day, hour, minute, second); |
| 95 | |
| 96 | int margin = 0; |
| 97 | |
| 98 | black = room->getPlayerListingcxx . . $ Room#getPlayerListing(d3f53ac2de9f0b45).(game->black_namecxx . . $ GameData#black_name.); |
| 99 | white = room->getPlayerListingcxx . . $ Room#getPlayerListing(d3f53ac2de9f0b45).(game->white_namecxx . . $ GameData#white_name.); |
| 100 | sscanf(black->rankcxx . . $ PlayerListing#rank..toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(), "%d%c", &black_ordinal, &black_qualifier); |
| 101 | if(black_qualifier == 'k') |
| 102 | { |
| 103 | black_level = 0x12 - black_ordinal; |
| 104 | black_qualifier_string.appendcxx . . $ QByteArray#append(715145f812399bcb).("\xbc\xb6"); |
| 105 | } |
| 106 | else if(black_qualifier == 'p') |
| 107 | black_level = black_ordinal + 0x1a; |
| 108 | else |
| 109 | { |
| 110 | black_level = black_ordinal + 0x11; |
| 111 | black_qualifier_string.appendcxx . . $ QByteArray#append(715145f812399bcb).("\xb6\xce"); |
| 112 | } |
| 113 | sscanf(white->rankcxx . . $ PlayerListing#rank..toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).(), "%d%c", &white_ordinal, &white_qualifier); |
| 114 | if(white_qualifier == 'k') |
| 115 | { |
| 116 | white_level = 0x12 - white_ordinal; |
| 117 | white_qualifier_string.appendcxx . . $ QByteArray#append(715145f812399bcb).("\xbc\xb6"); |
| 118 | } |
| 119 | else if(white_qualifier == 'p') |
| 120 | white_level = white_ordinal + 0x1a; |
| 121 | else |
| 122 | { |
| 123 | white_level = white_ordinal + 0x11; |
| 124 | white_qualifier_string.appendcxx . . $ QByteArray#append(715145f812399bcb).("\xb6\xce"); |
| 125 | } |
| 126 | |
| 127 | QByteArraycxx . . $ QByteArray# stringcxx . . $ QByteArray#QByteArray(ced63f7c635d850d).; |
| 128 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GIBOKIND=China\\]\r\n"; |
| 129 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[TYPE=0\\]\r\n"; |
| 130 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMECONDITION="; |
| 131 | string.appendcxx . . $ QByteArray#append(715145f812399bcb).("\xc8\xce\xcf\xc8"); |
| 132 | //c8c3cfc8 seems suffient for a finished |
| 133 | //game |
| 134 | //I think cbc0bbee313ab7d6 is possibly |
| 135 | //some unfinished game or something |
| 136 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\]\r\n"; |
| 137 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMETIME="; |
| 138 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\]\r\n"; |
| 139 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMERESULT="; //3f3332353f3f //w + 325 margin ONLY, no color |
| 140 | //badac6e5cab1bce4caa4 B + T |
| 141 | //b0d7c6e5d6d0c5cccaa4 W + R |
| 142 | switch(game->fullresultcxx . . $ GameData#fullresult.->resultcxx . . $ GameResult#result.) |
| 143 | { |
| 144 | case GameResultcxx . . $ GameResult#::DRAWcxx . . $ GameResult#DRAW.: |
| 145 | //string += QString(0xb9ab) + QString(0xbdc2) + QString(0xbace); |
| 146 | break; |
| 147 | case GameResultcxx . . $ GameResult#::FORFEITcxx . . $ GameResult#FORFEIT.: |
| 148 | //c8e6 20 bdc3 b0a3 20 c3ca b0fa bdc2 |
| 149 | |
| 150 | break; |
| 151 | case GameResultcxx . . $ GameResult#::TIMEcxx . . $ GameResult#TIME.: |
| 152 | break; |
| 153 | case GameResultcxx . . $ GameResult#::RESIGNcxx . . $ GameResult#RESIGN.: |
| 154 | if(game->fullresultcxx . . $ GameData#fullresult.->winner_colorcxx . . $ GameResult#winner_color. == stoneWhitecxx . . $ stoneWhite.) |
| 155 | { |
| 156 | //string += QString(0xb9e9); |
| 157 | } |
| 158 | else |
| 159 | { |
| 160 | //string += QString(0xc8e6); |
| 161 | } |
| 162 | //string += " " + QString(0xbad2) + QString(0xb0e8) + QString(0xbdc2); |
| 163 | break; |
| 164 | case GameResultcxx . . $ GameResult#::SCOREcxx . . $ GameResult#SCORE.: |
| 165 | { |
| 166 | float fmargin = game->fullresultcxx . . $ GameData#fullresult.->winner_scorecxx . . $ GameResult#winner_score. = game->fullresultcxx . . $ GameData#fullresult.->loser_scorecxx . . $ GameResult#loser_score.; |
| 167 | margin = (int)fmargin; |
| 168 | if(fmargin > (float)margin) |
| 169 | margin = (margin * 10) + 5; |
| 170 | else |
| 171 | margin *= 10; |
| 172 | qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("FIXME margin: %d\n", margin); |
| 173 | //3f20 margin 3f3f203f //black wins |
| 174 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(margin); |
| 175 | //string += QString(0x3f) + " " + QByteArray::number(margin) + |
| 176 | // QString(0x3f3f) + " " + QString(0x3f); |
| 177 | } |
| 178 | break; |
| 179 | default: |
| 180 | break; |
| 181 | } |
| 182 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\]\r\n"; |
| 183 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEZIPSU=" +cxx . . $ operator+(c76e440e68d4afec). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(margin) +cxx . . $ operator+(8f17b704cda0d21f). "\\]\r\n"; |
| 184 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMEDUM=0\\]\r\n"; |
| 185 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMEGONGJE=0\\]\r\n"; |
| 186 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMETOTALNUM="; //0xd7dc: 3335cafd" 35? |
| 187 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[SZAUDIO=0\\]\r\n"; |
| 188 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMENAME="; |
| 189 | string.appendcxx . . $ QByteArray#append(715145f812399bcb).("\xd3\xd1\xd2\xea\xb6\xd4\xbe\xd6\\]\r\n"); |
| 190 | /* Be careful here also, no idea what this says, we should |
| 191 | * probably leave it blank */ |
| 192 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEDATE=" +cxx . . $ operator+(c76e440e68d4afec). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(year) +cxx . . $ operator+(8f17b704cda0d21f). "-"; |
| 193 | string.appendcxx . . $ QByteArray#append(715145f812399bcb).("\xc4\xea"); |
| 194 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(month); |
| 195 | string.appendcxx . . $ QByteArray#append(715145f812399bcb).("\xd4\xc2"); |
| 196 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(day); |
| 197 | string.appendcxx . . $ QByteArray#append(715145f812399bcb).("\xc8\xd5 \xcf\xc2\xce\xe7"); |
| 198 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). " " +cxx . . $ operator+(c76e440e68d4afec). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(hour % 12) +cxx . . $ operator+(8f17b704cda0d21f). |
| 199 | (minute < 10 ? ":0" : ":") +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(minute) +cxx . . $ operator+(8f17b704cda0d21f). "\\]\r\n"; |
| 200 | /* Note that its very likely that one of the above strings contains a PM versus |
| 201 | * AM */ |
| 202 | const char eWeiQi_game_place_array[] = {static_cast<const char>(0xde),static_cast<const char>(0xc4), |
| 203 | static_cast<const char>(0xb3),static_cast<const char>(0xc7), |
| 204 | static_cast<const char>(0x54),static_cast<const char>(0x59), |
| 205 | static_cast<const char>(0x47),static_cast<const char>(0x45), |
| 206 | static_cast<const char>(0x4d),static_cast<const char>(0xb6), |
| 207 | static_cast<const char>(0xd4),static_cast<const char>(0xde), |
| 208 | static_cast<const char>(0xc4)}; |
| 209 | QByteArraycxx . . $ QByteArray# eWeiQi_game_placecxx . . $ QByteArray#QByteArray(34d26762b42c433a).(eWeiQi_game_place_array, 13); |
| 210 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEPLACE=" +cxx . . $ operator+(c76e440e68d4afec). eWeiQi_game_place +cxx . . $ operator+(8f17b704cda0d21f). "\\]\r\n"; |
| 211 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMELECNAME=\\]\r\n"; |
| 212 | /* FIXME, note that this is very likely going to be different on the korean |
| 213 | * server. This is for eweiqi really */ |
| 214 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEWHITENAME=" +cxx . . $ operator+(c76e440e68d4afec). serverCodeccxx . . $ TygemConnection#serverCodec.->fromUnicodecxx . . $ QTextCodec#fromUnicode(e72629479c734b12).(white->notnicknamecxx . . $ PlayerListing#notnickname.) +cxx . . $ operator+(8f17b704cda0d21f). "(" |
| 215 | +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(white_ordinal) |
| 216 | +cxx . . $ operator+(49e2485dc0bda598). white_qualifier_string +cxx . . $ operator+(8f17b704cda0d21f). ")\\]\r\n"; |
| 217 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEWHITELEVEL=" +cxx . . $ operator+(c76e440e68d4afec). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(white_level) |
| 218 | +cxx . . $ operator+(49e2485dc0bda598). white_qualifier_string +cxx . . $ operator+(8f17b704cda0d21f). "\\]\r\n"; |
| 219 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEWHITENICK=" +cxx . . $ operator+(c76e440e68d4afec). serverCodeccxx . . $ TygemConnection#serverCodec.->fromUnicodecxx . . $ QTextCodec#fromUnicode(e72629479c734b12).(white->namecxx . . $ PlayerListing#name.) +cxx . . $ operator+(8f17b704cda0d21f). "\\]\r\n"; |
| 220 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEWHITECOUNTRY=" +cxx . . $ operator+(c76e440e68d4afec). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(white->country_idcxx . . $ PlayerListing#country_id.) +cxx . . $ operator+(8f17b704cda0d21f). "\\]\r\n"; |
| 221 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMEWAVATA=1\\]\r\n"; |
| 222 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMEWIMAGE=\\]\r\n"; |
| 223 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEBLACKNAME=" +cxx . . $ operator+(c76e440e68d4afec). serverCodeccxx . . $ TygemConnection#serverCodec.->fromUnicodecxx . . $ QTextCodec#fromUnicode(e72629479c734b12).(black->notnicknamecxx . . $ PlayerListing#notnickname.) +cxx . . $ operator+(8f17b704cda0d21f). "(" |
| 224 | +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(black_ordinal) |
| 225 | +cxx . . $ operator+(49e2485dc0bda598). black_qualifier_string +cxx . . $ operator+(8f17b704cda0d21f). ")\\]\r\n"; |
| 226 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEBLACKLEVEL=" +cxx . . $ operator+(c76e440e68d4afec). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(black_level) |
| 227 | +cxx . . $ operator+(49e2485dc0bda598). black_qualifier_string +cxx . . $ operator+(8f17b704cda0d21f). "\\]\r\n"; |
| 228 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEBLACKNICK=" +cxx . . $ operator+(c76e440e68d4afec). serverCodeccxx . . $ TygemConnection#serverCodec.->fromUnicodecxx . . $ QTextCodec#fromUnicode(e72629479c734b12).(black->namecxx . . $ PlayerListing#name.) +cxx . . $ operator+(8f17b704cda0d21f). "\\]\r\n"; |
| 229 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEBLACKCOUNTRY=" +cxx . . $ operator+(c76e440e68d4afec). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(black->country_idcxx . . $ PlayerListing#country_id.) +cxx . . $ operator+(8f17b704cda0d21f). "\\]\r\n"; |
| 230 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMEBAVATA=1\\]\r\n"; |
| 231 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMEBIMAGE=\\]\r\n"; |
| 232 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMECOMMENT=\\]\r\n"; |
| 233 | //country = 2 = gbkind = gibokind |
| 234 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[GAMEINFOMAIN=GBKIND:2,GTYPE:0,GCDT:1,GTIME:" +cxx . . $ operator+(c76e440e68d4afec). |
| 235 | QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(game->maintimecxx . . $ GameData#maintime.) +cxx . . $ operator+(8f17b704cda0d21f). "-" +cxx . . $ operator+(49e2485dc0bda598). |
| 236 | QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(game->periodtimecxx . . $ GameData#periodtime.) +cxx . . $ operator+(8f17b704cda0d21f). "-" +cxx . . $ operator+(49e2485dc0bda598). |
| 237 | QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(game->stones_periodscxx . . $ GameData#stones_periods.) +cxx . . $ operator+(8f17b704cda0d21f). ",GRLT:0"; |
| 238 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). ",ZIPSU:" +cxx . . $ operator+(c76e440e68d4afec). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(margin) +cxx . . $ operator+(8f17b704cda0d21f). |
| 239 | ",DUM:0,GONGJE:0,TCNT:" +cxx . . $ operator+(49e2485dc0bda598). |
| 240 | QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(7a8a8d4503ae8074).(game->movescxx . . $ GameData#moves.); |
| 241 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). ",AUSZ:0\\]\r\n"; |
| 242 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). "\\[GAMEINFOSUB=GNAMEF:0,GPLCF:0,GNAME:"; |
| 243 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "GDATE:" +cxx . . $ operator+(c76e440e68d4afec). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(year) +cxx . . $ operator+(8f17b704cda0d21f). "- " +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(month) |
| 244 | +cxx . . $ operator+(8f17b704cda0d21f). "- " +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(day) +cxx . . $ operator+(8f17b704cda0d21f). "-" +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(hour) |
| 245 | +cxx . . $ operator+(8f17b704cda0d21f). "-" +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(minute) +cxx . . $ operator+(8f17b704cda0d21f). "-" +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(second); |
| 246 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). ",GPLC:"; |
| 247 | string +=cxx . . $ QByteArray#`operator+=`(715145f812399bcb). ",GCMT:\\]\r\n"; |
| 248 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[WUSERINFO=WID:" +cxx . . $ operator+(c76e440e68d4afec). serverCodeccxx . . $ TygemConnection#serverCodec.->fromUnicodecxx . . $ QTextCodec#fromUnicode(e72629479c734b12).(white->notnicknamecxx . . $ PlayerListing#notnickname.) +cxx . . $ operator+(8f17b704cda0d21f). ",WLV:" +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(white_level) +cxx . . $ operator+(8f17b704cda0d21f). |
| 249 | ",WNICK:" +cxx . . $ operator+(49e2485dc0bda598). serverCodeccxx . . $ TygemConnection#serverCodec.->fromUnicodecxx . . $ QTextCodec#fromUnicode(e72629479c734b12).(white->namecxx . . $ PlayerListing#name.) +cxx . . $ operator+(8f17b704cda0d21f). ",WNCD:" +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(white->country_idcxx . . $ PlayerListing#country_id.) +cxx . . $ operator+(8f17b704cda0d21f). |
| 250 | ",WAID:60001,WIMG:\\]\r\n"; |
| 251 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). "\\[BUSERINFO=BID:" +cxx . . $ operator+(c76e440e68d4afec). serverCodeccxx . . $ TygemConnection#serverCodec.->fromUnicodecxx . . $ QTextCodec#fromUnicode(e72629479c734b12).(black->notnicknamecxx . . $ PlayerListing#notnickname.) +cxx . . $ operator+(8f17b704cda0d21f). ",BLV:" +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(black_level) +cxx . . $ operator+(8f17b704cda0d21f). |
| 252 | ",BNICK:" +cxx . . $ operator+(49e2485dc0bda598). serverCodeccxx . . $ TygemConnection#serverCodec.->fromUnicodecxx . . $ QTextCodec#fromUnicode(e72629479c734b12).(black->namecxx . . $ PlayerListing#name.) +cxx . . $ operator+(8f17b704cda0d21f). ",BNCD:" +cxx . . $ operator+(49e2485dc0bda598). QByteArraycxx . . $ QByteArray#::numbercxx . . $ QByteArray#number(4869bc8897d11479).(black->country_idcxx . . $ PlayerListing#country_id.) +cxx . . $ operator+(8f17b704cda0d21f). |
| 253 | ",BAID:60001,BIMG:\\]\r\n"; |
| 254 | /* Here, I'm thinking S0 is black wins, S1 is white wins |
| 255 | * then again, there's also W1 indicating white win with W0 as white loss */ |
| 256 | /* I've also seen W4 as indicating W + R */ |
| 257 | /* I've also seen S1 W7 as B + T also with Z0 indicating that's time remaining |
| 258 | * or something */ |
| 259 | /* T is likely time settings, 30 seconds, 3 periods, 1200 total time maybe (20min)*/ |
| 260 | string +=cxx . . $ QByteArray#`operator+=`(85c7caed82076bbb). getTygemGameTagQByteArraycxx . . $ TygemConnection#getTygemGameTagQByteArray(aa2910e9f95d7575).(game, white_level, black_level, margin); |
| 261 | |
| 262 | return stringcxx . . $ QByteArray#QByteArray(9f1b912973d89fea).; |
| 263 | } |