Commit Graph
100 Commits
Author SHA1 Message Date
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 c33bf3a3d6 Recursive mutex in configfile. 2007-09-30 13:08:24 +00:00
lotodore f903e4ae6d Fixed compiler warnings. 2007-09-30 08:21:29 +00:00
lotodore 879cac4bbc Don't use runningPlayerLists in server, as all in players are not in these lists. Fixed game state in lobby for players joining after a game started. 2007-09-29 22:50:57 +00:00
lotodore fe352cb2dc Kind of fixed irc termination issue (cannot completely be fixed without modifying libircclient). 2007-09-29 20:20:25 +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 43103d6fea Name fix. 2007-09-29 19:23:14 +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 9d797edcb6 Fixed compiler warnings. 2007-09-29 09:38:52 +00:00
lotodore 80227f4e88 Removed exception-cpp-files. Fixed compilation with latest mingw. 2007-09-29 09:16:39 +00:00
lotodore eb62635e02 Additional irc stuff - list of nicks, leaving/joining players. Not complete yet, renames are missing, as well as special stuff like being kicked. 2007-09-27 20:59:00 +00:00
lotodore 78bf4820af Changed network code for new player lists. 2007-09-27 14:17:07 +00:00
lotodore 7bbf76fe5d Added irc support for lobby dialog. Takes some time to connect before messages can be sent/received. No special stuff yet, no user list, no connection notifications. Still work in progress. 2007-09-26 11:48:33 +00:00
lotodore 0dcd313c9d Irc thread can now be properly terminated. Separate initialization from connecting. Add callback class for irc stuff. 2007-09-25 21:26:22 +00:00
lotodore 4a9c405d13 Increment config rev (because of problem with data-dir), new svn beta release (windows, switch back from mingw to msvc, the later is WAY smaller). 2007-09-15 11:57:15 +00:00
lotodore 7d4972af75 Using static OpenSSL lib with msvc. 2007-09-15 11:32:27 +00:00
lotodore 54f8b511c3 Scan new avatars for network games. 2007-09-14 15:26:19 +00:00
lotodore bfa2426bc2 Fixed compiling on mingw. With mingw, boost needs to be patched. See http://lists.boost.org/Archives/boost/2007/06/124040.php
Hope this is fixed in the next release of boost.
2007-09-09 09:43:51 +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 d3be07bb17 File names of avatars are now md5sums. 2007-09-08 21:43:15 +00:00
lotodore affdd62364 Fixed linefeeds. 2007-09-08 20:44:27 +00:00
lotodore e76be2a6ff Some more changes concerning avatars. Directory changes. App data now QApplication independent. 2007-09-08 20:40:46 +00:00
lotodore 601455794d Changed debug/release settings. 2007-09-08 18:03:10 +00:00
lotodore 8600f308e7 Fixed pro file. 2007-09-08 18:01:38 +00:00
lotodore db208190be Added avatar manager which will help when transfering and caching avatars. Using boost::filesystem. MD5 sum is used to identify avatars, different types of files are possible. Avatar cache (and the avatars provided) use for example <md5sum>.png as file names, so that no additional storage for the md5sum is required.
A cache directory with write permissions is required, however, as avatars are not cached in RAM.
2007-09-08 16:26:10 +00:00
lotodore 2f1e371e4f Added code to calculate the MD5 sum of a file. To be used for avatars. 2007-09-08 13:38:06 +00:00
lotodore d0898ed336 Now using openssl on windows instead of ms crypto api. Can't stand all these handles for the crypto api, openssl will be required later anyway. MD5 sums will be used when transfering avatars for efficient caching - avatars are identified by their MD5 sum.
Sorry for making it even harder to compile on windows...
2007-09-08 11:00:46 +00:00
lotodore 75c02ec8c0 Now using the prepared password dialog. 2007-09-07 10:18:06 +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 d789162a2a New version of the boost timer (addon lib). 2007-09-05 00:06:20 +00:00
lotodore 0900d3844b Fixed a bunch of compiler warnings (mingw compiler). 2007-09-04 23:37:32 +00:00
lotodore 232382e28f Use qt 4.3.0 for vc now. 2007-09-04 23:00:42 +00:00
lotodore def679e66c Deactivate kicker log code for now (as it might cause segfaults). Will be fixed later. 2007-09-04 22:36:03 +00:00
lotodore 6e7f2c06fc Fixed nasty GUI update bug in game list. Fixed compiler warning. 2007-09-04 17:38:13 +00:00
lotodore 46fe52aeb7 Added third party library libircclient (without modifications, license is LGPL). Added preliminary irc thread. Still work in progress. 2007-09-04 15:05:02 +00:00
lotodore 9ed217609b Internet game lobby dialog shows now overview of games and whether they are private. Now showing connection progress before the internet game lobby. 2007-09-04 12:44:11 +00:00
lotodore b0ef569da0 Fixed linefeeds. *sigh* 2007-09-04 09:45:29 +00:00
lotodore b9e5ed52dc Moved flopValues/preflopValues data from files to source code of engine. 2007-09-04 09:38:32 +00:00
lotodore dee51b3df2 Trying to fix SDL definition conflict. 2007-09-03 19:17:45 +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 4ca2c72978 Fixed problem with recursive mutex. 2007-09-02 22:54:33 +00:00
lotodore 40151ac51e Fixed debug/release problems with mingw. 2007-09-02 22:05:05 +00:00
lotodore dde14654f9 Trying to add computer players in dedicated server. Not fully functional yet (names are not shown). 2007-09-02 20:59:16 +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 d35f4ae997 Player list is now sent in Game List New notification. Not shown in dialog yet. 2007-09-01 22:59:55 +00:00
lotodore 096c02dd24 Fixed crash when creating a network game. 2007-09-01 21:15:11 +00:00
lotodore 86d6acc090 Fixed library check. 2007-09-01 15:32:19 +00:00
lotodore 22a0f2d67e Fixed name resolution on Windows 2000. 2007-09-01 15:23:14 +00:00
lotodore 09db256768 Fixing vc compilation. 2007-09-01 14:48:18 +00:00
lotodore 1f6a10e2d1 Changes for mingw32 compatibility. Gave up using GetAddrInfoW. getaddrinfo is dynamically bound, gethostbyname is used if it is not available.
VC compilation is broken.

Make sure to use the dynamic boost-thread lib with mingw, as thread specific pointers are used!
2007-09-01 14:04:41 +00:00
lotodore a6f80672ee Updated vc build instructions. 2007-08-31 23:01:43 +00:00
lotodore 9cfed43fd0 *sigh* some linux implementations have the function daemon. 2007-08-28 10:43:34 +00:00
lotodore a51139ed65 Missing include files. 2007-08-28 10:37:23 +00:00
lotodore e0af9bf6c8 Added daemon code for linux - just for testing. Will be platform independent later. 2007-08-28 10:33:19 +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 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