Commit Graph
100 Commits
Author SHA1 Message Date
lotodore d68a410071 Fixed linefeeds. *sigh* 2007-08-22 23:01:32 +00:00
lotodore dc0212bbc9 Changed networking code for new postRiverRun. 2007-08-22 23:00:51 +00:00
lotodore d8550011bf ConfigFile thread safe. 2007-08-22 20:01:08 +00:00
lotodore 636a49c1ef Work on error messages. 2007-08-21 20:46:55 +00:00
lotodore 257d91fb66 Fixed thread termination issue. 2007-08-21 20:06:11 +00:00
lotodore 388db7c16a Game List is now dynamically updated. 2007-08-21 19:50:13 +00:00
lotodore 3a2f3255af More fixes. Using player name as base for game name now. Removing games which have no players left. Check collision of all player names on connect (kind of slow, but name needs to be unique). 2007-08-21 17:27: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 7210d1b1b4 Linefeeds. 2007-08-21 12:38:49 +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 95e5ee47cc Fixed multithreading issues when creating/joining a game. Sessions are now queued. 2007-08-20 22:55:39 +00:00
lotodore e08f8126aa Fixed game state for server. 2007-08-20 20:47:09 +00:00
lotodore 67e81d1631 More work on the server code. Still broken. 2007-08-20 20:37:54 +00:00
lotodore 9d63df9218 More work on server redesign. Network mode still broken. 2007-08-20 15:30:22 +00:00
lotodore 1d1d6480a9 Make it compile. Network mode not working currently. 2007-08-19 20:58:57 +00:00
lotodore e9202b774b Renamed some files for new networking engine. 2007-08-15 13:40:23 +00:00
lotodore 913f9db110 Preparing to rename some of the network engine files. 2007-08-15 13:36:29 +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 ab0dd1d065 Yet another try to fix network pot distribution. 2007-08-12 19:09:06 +00:00
lotodore 42cf7cb735 Fixed pot distribution in network games. Resetting computer player list after each game. 2007-08-11 21:21:41 +00:00
lotodore fd13bb56a1 Linefeed. *sigh* 2007-08-11 20:27:36 +00:00
lotodore 58c6bc7ddb A network game is now automatically filled up with computer players up to the configured maximum number of players. This should maybe be optional? 2007-08-11 20:24:08 +00:00
lotodore 9fb2c85f33 Added missing lib dependency. 2007-08-11 14:36:32 +00:00
lotodore b18152c0b8 New build system - lib, game and server. Tested on windows, but does not yet work without modifications, as it does not consider dependencies (this has stupid limitations, see http://trolltech.com/developer/task-tracker/index_html?id=79706&method=entry ). Also, the debugging files (.pdb) are overwritten for each project, the projects would need to be in separate directories for this to work. 2007-08-11 14:18:48 +00:00
lotodore 26299e80c0 Server states can now handle multiple games (are multithreading capable). 2007-08-11 10:02:04 +00:00
lotodore 6a580c81d5 This revision manually adds one computer player in network games. Don't start with 7 players. 2007-08-10 23:52:31 +00:00
lotodore 829f094ce8 Fixed networking (LocalHand::getPreflop etc. now return the correct objects). Removed even more code which is no longer needed. 2007-08-07 21:17:11 +00:00
lotodore 03ecc5b9cb Removed client code which is no longer needed now. Networking still somewhat broken. 2007-08-07 20:37:34 +00:00
lotodore a7cdb38ab8 Don't use old factory functions for preflop/flop/turn/river. 2007-08-06 21:46:03 +00:00
lotodore 0aef0d9e42 Removed dependencies on old preflop/flop/turn/river interface from networking. Compiles, but networking is BROKEN. Also includes first try of computer players for networking, which is broken, too. 2007-08-06 21:38:09 +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 100e2a69be Clarification. 2007-07-24 15:06:04 +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 9aaca43608 Also call audioDone. Just in case. 2007-06-16 10:18:47 +00:00
lotodore f3143d1b15 Fixed access violation when audio is closed and reopened. SDL_mixer does not allow this :-( 2007-06-16 10:13:28 +00:00
lotodore 6b5a754e7b Forgot resetting audioEnabled. 2007-06-16 09:58:27 +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 af9f799b51 Fixed dealer position for network games. 2007-06-15 23:00:11 +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 4e6a78dcb5 Fixed player disconnects (again). 2007-06-15 20:56:31 +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 0d4e38705d It is now possible to start the network game with a player number below the maximum player count. 2007-06-11 19:46:18 +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
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 b624714f5d Resetting cards value on client side each hand. Added GUI synchronization function. Fixed update of pot when all but one fold. Reset sets on end of hand. 2007-06-10 12:46:29 +00:00
lotodore 6c9e6a6a28 On player action timeout, check will now be done if possible. 2007-06-10 10:11:00 +00:00
lotodore 27bc1adeeb Call switchRounds as client. 2007-06-09 21:50:35 +00:00
lotodore db4aea3f78 Automatic action when for player timeout. First try, not finished yet. 2007-06-08 22:14:05 +00:00
lotodore 1d838fcc07 Fixed resetting of pot at end of hand. Fixed resetting of sets at end of round. 2007-06-08 21:25:12 +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 9a29830532 Player action timeout - display is working, function still missing. 2007-06-07 23:24:22 +00:00
lotodore fb274284f5 Kicking players at the beginning of a network game now works. 2007-06-07 21:19:06 +00:00
lotodore f886ebda86 Removed iostream includes, as they slow down compilation. 2007-06-07 19:37:35 +00:00
lotodore ee76f454bd Linefeeds. 2007-06-07 18:52:58 +00:00
lotodore 9a59e688e6 Logging in network games should work now. 2007-06-07 18:41:11 +00:00
lotodore fc447164c0 Added compile instructions for vc/windows. 2007-06-07 16:25:47 +00:00
lotodore a4944ce34f Linefeeds. 2007-06-07 16:19:51 +00:00
lotodore 0bb9143855 Added missing include for TCP_NODELAY. 2007-06-07 16:18:06 +00:00
lotodore 48c7a27145 Pot and total sets are now displayed correctly. 2007-06-07 15:09:51 +00:00
lotodore 05a86be4fe Delay after showing cards when all in condition is true. Added option TCP_NODELAY. Round is now shown before dealing cards. 2007-06-07 14:06:22 +00:00
lotodore 8a22157cbd First try of showing cards when everybody is all in. 2007-06-06 21:16:52 +00:00
lotodore ce6f489fba Added additional packet for showing cards when allInCondition is true. 2007-06-05 23:04:51 +00:00
lotodore 9a3e45d710 Added delays between dealing cards. Added check for IPv6. 2007-06-05 21:28:47 +00:00
lotodore 2ade19b45d Fixed protocol for name resolution. 2007-06-04 21:44:42 +00:00
lotodore dcbfe39fc9 Fixed typeo. *sigh* 2007-06-04 17:42:20 +00:00
lotodore 686c028b38 Server errors are now shown. 2007-06-04 17:04:03 +00:00
lotodore 8c9fbca0fb Changed IPv6 loopback name, since ubuntu does not seem to resolve localhost for ipv6. 2007-06-04 16:57:01 +00:00
lotodore e6d1b46ba1 SCTP support. 2007-06-04 16:49:19 +00:00
lotodore 895317a257 Fixed missing include. 2007-06-04 16:30:30 +00:00
lotodore b9ccba6ed4 Proper detection whether SCTP is available. Do not update player names on configuration change if network client is running. 2007-06-04 16:19:11 +00:00
lotodore f932e39983 Players should now be able to leave a network game, the other players can continue the game (if it wasn't the server who left). 2007-06-03 14:57:33 +00:00
lotodore 1fcb0c80fd Fixed init gui in networking (is now thread safe). Fixed displaying of game/hand number for network games. 2007-06-03 13:36:24 +00:00
lotodore 03bffdbc76 Fixed sound using streams. 2007-06-03 10:03:54 +00:00
lotodore 2022e794ae Removed some TODOs. Fixed network error message. 2007-06-02 21:19:19 +00:00
lotodore df2e7a84dd Do not exit if sound cannot be initialized. 2007-06-02 20:02:55 +00:00
lotodore b7b09aed0b Fixed bug when folding after raising. 2007-06-02 16:35:41 +00:00
lotodore 9512133490 Made it compile on windows. Fixed bug: Chat during change of hand did not work. Changed audio extension to wav. 2007-06-02 15:53:19 +00:00
lotodore ab4cf73caa Fixed utf-8 bug in server profiles. 2007-05-27 22:56:44 +00:00
lotodore 36496a402f Fixed a problem where an empty chat message would cause an uncaught exception. 2007-05-27 22:23:48 +00:00
lotodore 875750a998 Game now properly continues after someone looses. 2007-05-27 21:39:16 +00:00
lotodore 4dc13d9661 Fixed wrong assert. Chat now continues after end of game. 2007-05-27 20:50:24 +00:00
lotodore a53738135d Fix resetting action too early in network client. 2007-05-27 18:38:53 +00:00
lotodore 1232017e3a Fixed running more than the first hand in network games. 2007-05-27 13:24:52 +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 c5e34fe186 Should be working to play up to river. 2007-05-25 19:53:07 +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 e8d7009106 Fixed GUI refresh. Added calls to setHighestSet. 2007-05-24 23:38:40 +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 e01ea96727 Fixed some small server issues. Players in the process of establishing a session are now kicked on game start.
If someone tries to join a game which is already running, a proper error message is shown.
When sending a message to all or all but one players, the players which do not have the session established are now correctly ignored.
2007-05-23 08:57:34 +00:00
lotodore 2e12f1bc25 Fixed id bug in networking code. Dealer id is now set correctly. Phew. 2007-05-22 23:27:21 +00:00
lotodore b83c86d887 Do not globally use namespace std. 2007-05-22 22:40:44 +00:00