Commit Graph
255 Commits
Author SHA1 Message Date
doitux f89a1c8c23 hide previous action for current player in network-game (like in local-game) 2007-10-20 20:10:48 +00:00
doitux 7da3ad5481 starts human player input filed redesign - PART VII (firtst steps for network game) 2007-10-19 20:43:53 +00:00
lotodore 4c56390dc7 Exceptions are now derived from std::exception and tell source code file and line. 2007-10-18 20:36:49 +00:00
floty 06a8fd5730 actual -> current ;) 2007-10-18 17:40:12 +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 5218e038d4 Don't wait endlessly for player or avatar requests to complete if the other side does not have the required data. Send notifications and react accordingly. 2007-10-11 20:42:44 +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 d16312111f Finally: User supplied avatars are transfered! They are stored on the server and clients request them if needed. Make sure the server has write access to the cache dir to make it work. 2007-10-07 18:46:40 +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
doitux edee654b1b bugfix: no bigblind in network logs 2007-10-03 22:42:24 +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 cb5315dd73 Set small/big blind position id on client. 2007-10-02 22:56:26 +00:00
lotodore eb651b53fd Fixed another networking bug. 2007-10-02 21:17:58 +00:00
lotodore 4d68e58da2 Fixed a few nasty networking-related bugs. 2007-10-02 20:50:28 +00:00
lotodore 5edf38a6cb Fixed some msvc problems with libircclient. Fixed auto start boost timer issue. Fixed irc thread termination (this time for real). Using strdup and free on MSVC causes "heap corruption error" in debug mode - use _strdup instead in libircclient. 2007-09-30 13:15:52 +00:00
lotodore aaf4106c20 Send notification to clients when a game in the lobby was started. Mark games as running in lobby dialog. 2007-09-29 20:20:01 +00:00
lotodore 3c88ba8bbe Game list in Lobby is now shown and updated even after joining or creating a game. Game updates will be sent by the server at all times (even during the game). 2007-09-29 14:05:41 +00:00
lotodore 78bf4820af Changed network code for new player lists. 2007-09-27 14:17:07 +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 d789162a2a New version of the boost timer (addon lib). 2007-09-05 00:06:20 +00:00
lotodore 23d9bb71c3 Fixed some compiler warnings. Added error if game is running. 2007-09-03 18:05:39 +00:00
lotodore ecab6ed86b Fixed a really nasty receive bug (TCP only). Using SCTP would be so much better... 2007-09-03 16:35:45 +00:00
lotodore bd53403752 Major redesign: Using game ids and player ids in gui (associated with tree view items).
Player list of all network games is now dynamically updated in lobby (no polling, server sends events).
2007-09-02 16:36:52 +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 87941c632a Fixed local network game. Now using new config options. Client sends packets deferred to allow initialization. 2007-08-26 12:15:10 +00:00
lotodore 388db7c16a Game List is now dynamically updated. 2007-08-21 19:50:13 +00:00
lotodore 3e4b134faa Yessss. Dedicated server is working, with some effort you can now create and join a game (start console server on local pc, start clients and use menu item "internet game"). Make sure to use different player names, there are no error messages yet.
More than one game cannot be created yet, but this is only due to no name input. Lots of issues still, don't expect this to be stable.
2007-08-21 13:18:18 +00:00
lotodore 839a4f7112 More steps towards supporting multiple games per server. Player rights still broken, so starting the game is not possible. Games are not yet terminated after all players have left. 2007-08-21 12:34:33 +00:00
lotodore 697f063eb1 First work on client code to support multiple games per server. 2007-08-20 23:25:12 +00:00
lotodore 1d1d6480a9 Make it compile. Network mode not working currently. 2007-08-19 20:58:57 +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
doitux 7a0ae803e2 buggy!!! 2007-08-10 23:34:56 +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 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 5c63a12104 All sounds are now only played if sound output is on (even the ping in network game). Audio is only initialized if it is enabled. Fixed double sounds in network games. Simplified fading out cards on fold. 2007-06-16 09:48:23 +00:00
lotodore 89620a7702 Fading out cards when server folds because of timeout. 2007-06-15 22:05:03 +00:00
lotodore 43cb4664cf Fixed the refresh of the local action. 2007-06-15 21:15:37 +00:00
lotodore e19f6c7471 Rewrote the code which handles leaving of players during the network game. Some bug is still remaining. 2007-06-15 10:38:41 +00:00
lotodore 7345630c0d boost timer: total_seconds instead of just seconds. Fixed bug where an invalid hand object was accessed. Only set action to "fold" for leaving players if they are active and are not fold. 2007-06-14 20:29:59 +00:00
lotodore 0470bceeff Make sounds work in network games. 2007-06-11 21:51:58 +00:00
lotodore 5af91f4ea2 Winning a game is now logged. 2007-06-11 20:35:12 +00:00
lotodore 07dc39d107 Client engine should now be completely thread safe. const int& -> int. Player CardsValue is now returned as copy, not the array itself. 2007-06-11 17:48:22 +00:00