Commit Graph
51 Commits
Author SHA1 Message Date
lotodore 4bc57f07d0 Add server statistics which are sent by the server to every client each time they change. 2007-10-20 22:22:11 +00:00
lotodore 6cf0d8777a Fixed protocol issue: Avatar data packets did not have any padding. Increased maximum packet size. 2007-10-12 15:15:03 +00:00
lotodore 4f00333599 Show and update admin player of a game even when in lobby and not in the game. 2007-10-12 14:32:25 +00:00
lotodore 96d1f34f5c Added notification if a new release or beta release of PokerTH is available.
Removed last traces of deprecated blind values.
2007-10-12 13:07:04 +00:00
lotodore 9f478855db Added error packets for unknown avatar and unknown player id (unused yet). 2007-10-10 23:41:50 +00:00
lotodore 253778bf30 Added error handling for networking stuff. Now checking the player action. 2007-10-10 22:21:24 +00:00
lotodore d11b35a1a7 Transfer small blind and minimum raise amount to client. 2007-10-07 22:49:07 +00:00
lotodore 0d0d8dc810 Synchronize on network game start, so that everyone has received all avatars and player names before the game starts. Store all computer players in a separate list on the server for name retrieval. 2007-10-07 21:23:37 +00:00
lotodore 4e649450b2 The server is now sending the highest set, and the client is no longer calculating it on his own. This should fix some bugs when someone goes all in with the big/small blind. 2007-10-06 14:16:36 +00:00
lotodore 3bb28de5ae More work on sending/receiving avatars. Introduces low priority send queue, so that the server send thread is not stalled when sending loads of avatars. Not functional yet. 2007-10-06 12:50:19 +00:00
lotodore 5d974a6450 More preparation towards transferring avatars. 2007-10-05 14:23:36 +00:00
lotodore f1761a3793 First steps towards transferring avatars. 2007-10-04 23:05:50 +00:00
lotodore 076d44b0ae Pass on admin state if the admin leaves the network game, so that someone else can start the game. 2007-10-03 13:36:47 +00:00
lotodore 6bfea736cf Transfer new blind options in network games. 2007-10-02 15:00:33 +00:00
lotodore e8eddd3b1b Show avatars in network games. User defined avatars are not transfered yet, but this is already prepared for integration. 2007-09-09 00:00:19 +00:00
lotodore 9d0edc5eee Major redesign: The game can not be left without disconnecting from the server. This happens if a player is kicked, if he wishes to leave, or for other reasons. Error packets from the server will always cause a disconnect, however.
If joining a game fails, there is a proper failure packet now.
2007-09-06 19:09:05 +00:00
lotodore 9f6bf5206e The checkbox "fill up with computer players" is now working (protocol has been changed to implement this). Lobby dialog is now also used after joining the game. Leaving game not possible yet. 2007-09-05 19:14:34 +00:00
lotodore 23d9bb71c3 Fixed some compiler warnings. Added error if game is running. 2007-09-03 18:05:39 +00:00
lotodore fa8d7b14ec Information about the game is now shown in lobby, when selecting a game.
Some GUI modifications, GUI update is working properly now if the dialog is shown the second time (after clearing items).
List of players for the game is still missing. With the new on-demand model for player id/player name, this is kind of hard to implement.
2007-08-27 09:57:51 +00:00
lotodore 56b24e09eb Major design change in network protocol: Player information is now requested by clients whenever it is needed. The server only sends player ids. The client has a cache with player information. 2007-08-26 22:41:37 +00:00
lotodore 95e5ee47cc Fixed multithreading issues when creating/joining a game. Sessions are now queued. 2007-08-20 22:55:39 +00:00
lotodore 59b7438376 Work on dedicated server. This svn revision is totally broken, it is part of a complete redesign of the server.
There is a lobby thread for the server, and each game has its own game processing thread and a sender thread. Connections can be accepted from different sources, i.e. TCP/SCTP over IPv4, IPv6, all those work well in parallel.
2007-08-15 13:28:28 +00:00
lotodore 0da29b3874 The console server can now be fully used for a single game. The first player to join the game is admin, he can start the game and kick players.
However, if the admin player leaves, a new game can only be started if all players have left before (this is a bug, admin status should be passed to another player).
2007-08-02 20:52:13 +00:00
lotodore f11998c28c Added console server app. First try. Depends on qt for locale-specific stuff. Cannot start a game yet, only join is possible. Cannot run multiple games yet.
Not yet as service/daemon, because testing is easier with a simple console app.
2007-07-30 23:22:58 +00:00
lotodore 5d13dd7803 Went over netpacket.cpp - additional checks, check function in base class. More restrictive concerning size of packets. 2007-07-29 23:45:10 +00:00
lotodore bd08245c1c (Hopefully) solved the player number problem, when players join and leave an existing game. Numbers are now assigned on game start, not before. Note: Network play is not compatible to the current official version. 2007-07-24 14:55:14 +00:00
lotodore baf2c82864 Added new packet type as end of game notification. Now displaying dialogs at end of game, to start a new game. Server errors are displayed. 2007-06-10 23:28:25 +00:00
lotodore 056ae1aa32 Cleaned up some networking code. Total sets are now calculated by the client. 2007-06-08 20:19:21 +00:00
lotodore 48c7a27145 Pot and total sets are now displayed correctly. 2007-06-07 15:09:51 +00:00
lotodore ce6f489fba Added additional packet for showing cards when allInCondition is true. 2007-06-05 23:04:51 +00:00
lotodore 5cb5509dec Networking should mostly be working now. Some small issues concerning the display of pot/sets, and some delays are still needed. 2007-05-26 17:06:03 +00:00
lotodore e14d01432c Flop/turn/river cards are now sent in a network game. 2007-05-25 18:28:05 +00:00
lotodore 13a731e041 Chat messages are now working. 2007-05-25 16:03:12 +00:00
lotodore 5431f0b93a Network: First round seems to work fine now. Pot/sets not yet displayed correctly. 2007-05-24 20:26:23 +00:00
lotodore 2556f43340 First try: Transferring client action. 2007-05-23 22:31:56 +00:00
lotodore 5744980d36 First try for small blind / big blind before start of hand. There seems to be a problem with player ids or numbers, however. 2007-05-21 22:16:32 +00:00
lotodore 2ce67297ee Tools - random number function is now static. Fixed player number issue with network games (GUI player number needs to be 0), this still requires some work. 2007-05-21 19:00:06 +00:00
lotodore e4039695c0 Protocol changes for big blind / small blind. GUI Player is now stored in Game. 2007-05-20 22:49:07 +00:00
lotodore 4a53678291 Client engine factory needs to be free of configuration file (configuration provided by server). Separated specific start data from general game data. Sending client game object to GUI after creation. Client thread now manages player and game data. 2007-05-20 00:16:29 +00:00
lotodore b773c30ae0 Start position of dealer is now set via network. Added files for network client engine. Added factory code. 2007-05-18 17:13:27 +00:00
lotodore 37bf6e4eb9 Added packet type to start a "Hand". Added generic gui for the server. 2007-05-13 17:50:48 +00:00
lotodore 16c0d52689 New packet types. 2007-05-08 22:08:00 +00:00
lotodore a85ec4ee5a Players can now join and leave as they wish. Still TODO: Need to fix player number. 2007-05-06 23:27:08 +00:00
lotodore da2939a7a8 Error messages are shown when joining a network game fails. Still need to handle players which left and kicking players. 2007-04-28 13:07:06 +00:00
lotodore 73a5117066 Configuration is transferred. A new game should be started on client side, but signal/slot is not working yet. Oh well. 2007-04-27 21:35:18 +00:00
lotodore e202a83fbc Fixed bug: "hands before raise" is now taken from dialog. Removed config from game.cpp for networking. 2007-04-26 21:11:13 +00:00
lotodore 2f5c8d7da1 Redone network packet abstraction. Prepared for easy access to packet data. 2007-04-08 16:18:20 +00:00
lotodore 804c7eaaa2 Fixed design problem: Thread objects can now be created in any context.
Sender thread output queue is now limited.
Server thread now terminates correctly.
Now cloning packets when sending them to multiple recipients.
Fixed one thread issue - GameStart still needs to be made thread safe.
2007-03-20 11:56:30 +00:00
lotodore ef10602d5c Initial handshake and network game start. Works with multiple clients. Not yet stable, because it is not thread-safe. GUI callbacks not complete yet (server dialog not updated). 2007-03-20 02:20:50 +00:00
lotodore f5289a6fcf Added helper class for receiving data. Modified sender thread to support sending partial packets. Prepared abstractions for server state machine. 2007-03-13 02:23:12 +00:00