Commit Graph
291 Commits
Author SHA1 Message Date
lotodore 0d60360fca Update server ping with each game action (#239). 2013-12-08 12:20:51 +01:00
lotodore bc7f34a2a6 Move spectators to lobby before closing a game. 2013-10-05 12:49:21 +02:00
lotodore d82c9a510d Add spectator list during the game (when lobby messages are disabled). 2013-09-29 13:15:37 +02:00
lotodore 1d0b9fc5f2 Signals/callbacks when spectators join or leave. 2013-08-19 22:50:56 +02:00
lotodore 2aba7cf7ed Add message callbacks to client admin functions. 2013-02-26 23:15:33 +01:00
lotodore 883ccdcf44 Preparing admin functions in PokerTH client. 2013-02-24 16:22:51 +01:00
lotodore 13afee52f8 Consider avatar server of server list (reverting change specific for the beta release). 2013-01-01 15:17:50 +01:00
Evgeni Golov 1bbe608f50 rename major/minor to majorVersion/minorVersion
PokerTH fails to build on Debian GNU/kFreeBSD and GNU/Hurd with:
 In file included from src/third_party/protobuf/pokerth.pb.cc:4:0:
 src/third_party/protobuf/pokerth.pb.h:936:37: error: expected unqualified-id before 'int'
 src/third_party/protobuf/pokerth.pb.h:936:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:936:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:943:37: error: expected unqualified-id before 'int'
 src/third_party/protobuf/pokerth.pb.h:943:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:943:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:9618:60: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.h:9640:60: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc: In member function 'virtual void AnnounceMessage_Version::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const':
 src/third_party/protobuf/pokerth.pb.cc:1581:72: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1581:72: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc:1586:72: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1586:72: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc: In member function 'virtual int AnnounceMessage_Version::ByteSize() const':
 src/third_party/protobuf/pokerth.pb.cc:1599:17: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1599:17: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc:1606:17: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1606:17: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc: In member function 'void AnnounceMessage_Version::MergeFrom(const AnnounceMessage_Version&)':
 src/third_party/protobuf/pokerth.pb.cc:1625:22: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1625:22: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc:1628:22: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1628:22: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc: At global scope:
 src/third_party/protobuf/pokerth.pb.cc:14319:6: warning: unused parameter 'output' [-Wunused-parameter]
 src/third_party/protobuf/pokerth.pb.cc:18344:6: warning: unused parameter 'output' [-Wunused-parameter]
 make[2]: *** [obj/pokerth.pb.o] Error 1

Renaming the vars to majorVersion/minorVersion fixes this issue.

The problem on kFreeBSD is, that
 /usr/include/sys/kern/types.h
has
 #define major(x)        ((int)(((u_int)(x) >> 8)&0xff)) /* major number */
 #define minor(x)        ((int)((x)&0xffff00ff))         /* minor number */
and this is included somewhere when you include stdlib.h, which protobuf's
headers do.

Hurd has similar definitions in /usr/include/i386-gnu/sys/sysmacros.h.
2012-12-28 12:14:54 +01:00
lotodore 45a5c7cef8 License change: OpenSSL exception (for Windows 8 support, because gcrypt does not work on Windows 8). 2012-12-25 15:06:23 +01:00
lotodore 805a804400 Preparing 1.0 beta1. 2012-12-23 14:38:20 +01:00
lotodore d3cd97c666 Running astyle. 2012-12-21 01:01:01 +01:00
lotodore 02016381ef Multiple player info requests can be placed in one packet. 2012-09-24 12:22:13 +02:00
lotodore f0ee0af6ec Some work on protocol buffer details. 2012-09-23 23:19:53 +02:00
lotodore 895a174a08 Fixing gcc compiler warnings. 2012-09-20 22:14:17 +02:00
lotodore 86c58fc7c8 Switching from ASN.1 (asn1c) to google protocol buffers. Some things are still missing (packet verification, tests, ...), this is very early stuff. 2012-09-18 15:57:58 +02:00
lotodore e38b2665c0 Fixing issue #147: No longer show synchronization error, so that rejoin is possible if sync problems occur. 2012-09-08 11:53:28 +02:00
lotodore 7bc8c1b9f2 Fixing issue #138: No longer throw an exception if the server list is invalid, because the server list is always invalid in network games. 2012-06-17 13:35:31 +02:00
lotodore ed43fa107c Server feedback after report game. 2012-04-09 10:22:24 +00:00
lotodore ac0041cb8f Preparing "reportGameName" network message. 2012-03-31 20:14:11 +00:00
lotodore 2d19013fae Cleaning up serverlist caching. 2012-02-04 21:39:24 +00:00
lotodore 58a0d3fb2e Download serverlist only once a day. Delete the current list if the connection to the server fails. #119 2012-02-04 20:33:39 +00:00
lotodore 33cdfdaed7 Fixing rejoin for non-official server. 2012-01-28 11:23:26 +00:00
lotodore 3ef29cb7ea Rejected chat is not a global notice, it is just a notice. 2012-01-09 18:41:31 +00:00
lotodore 1fc25fc96b Show chat reject message if player is muted. 2012-01-08 19:18:55 +00:00
lotodore 2cdb5ce215 No longer use the server list md5, it caused only trouble, and the serverlist .z file is small enough to be downloaded each time (#95). 2012-01-08 18:47:30 +00:00
lotodore 1379babe38 Properly converting remove reason on client side (#94). 2012-01-08 08:33:06 +00:00
floty 2604e2b962 bugfix: proper current round in sqlite log when board cards shown on board 2012-01-07 22:31:32 +00:00
lotodore 44ba6cba68 Set new round in log object. 2012-01-07 21:02:58 +00:00
floty 800199f6f0 changing parameter in some log-functions; run astyle 2012-01-07 18:42:24 +00:00
floty 3a659dd5d5 logging missing network actions in sqlite; run astyle. 2012-01-05 20:54:27 +00:00
lotodore 86cf46bdd6 Use proper linefeeds. 2011-12-30 13:07:01 +00:00
lotodore d12ee37bac Try to update the player name after rejoin, if another player was not active during rejoin. 2011-12-29 22:09:11 +00:00
lotodore 64156cfa69 Use generic PlayerData objects for no-longer-connected players when rejoining a game. This fixes ticket #88 (client patch only). 2011-12-29 21:19:06 +00:00
lotodore 3aa998070f Fixing ticket #85: Compatibility issue with boost::filesystem v3 when creating the serverlist md5-filename. 2011-12-25 12:34:07 +00:00
lotodore b90fa705aa Set "stayOnTableStatus" in engine. 2011-12-23 19:32:56 +00:00
lotodore ae842b9a2d Calculate player numbers in a different way, so that a player number on the server can be converted to a player number on the client. 2011-12-22 23:16:58 +00:00
lotodore fc7be88602 Fixing interpretation of seat state in client. 2011-12-22 21:57:18 +00:00
lotodore f8c1cdf56e Inform players when another player is no longer allowed to rejoin. 2011-12-22 20:10:18 +00:00
lotodore 38d224590a Send state of seats at the beginning of each hand. 2011-12-21 20:56:41 +00:00
lotodore 99616b4eed Send player state with each player action. autofold/disconnect timeout now depends on player action timeout. 2011-12-17 23:34:34 +00:00
lotodore 7bb9841f83 More timer cleanup. 2011-12-11 17:12:26 +00:00
lotodore aad9e271db Cleaning up the different timeouts and how players can be removed from the game. 2011-12-11 14:54:17 +00:00
lotodore f968aae6c0 Fixing nasty crash when a player left a game which was not running. 2011-11-15 19:56:23 +00:00
lotodore c3f12fe190 Properly mark player as kicked on client side. 2011-11-13 16:47:33 +00:00
lotodore edde9137ae CardsValue is now optionally sent by the server. 2011-11-13 15:31:35 +00:00
floty 2437407ffc optimizing local sqlite-logging; implementing second steps network client sqlite-logging 2011-11-13 01:05:28 +00:00
floty 385a641ede optimizing local sqlite-logging; implementing first steps network client sqlite-logging 2011-11-09 21:39:37 +00:00
lotodore 32d26e3644 Removing AFK-warning message. Preparing integration of a new auto-AFK mode. 2011-11-07 21:07:13 +00:00
lotodore 26f01f0946 Trying to fix problem with client active status on rejoin. 2011-11-05 20:53:59 +00:00
floty 7f13da91e5 applying astyle 2011-10-26 22:29:47 +00:00