Commit Graph
179 Commits
Author SHA1 Message Date
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 639df29bdc Server now requests unknown avatar files from client and stores them in the cache dir. Error handling is still missing. Clients not yet request avatar files from the server, this is the next step.
AvatarManager is now thread safe.
Default and cached avatars are handled in different lists to prevent deleting the default avatars when clearing the cache.
2007-10-07 15:52:12 +00:00
floty b437d8f7d2 firstRunGui 2007-10-07 11:12:02 +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
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 45a09b3016 Transfer blinds data for the game list in the lobby. 2007-10-03 11:06:57 +00:00
lotodore 6ec214562f Paranoia sleep in irc thread. Just in case. 2007-10-02 23:24:45 +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 73c90d4106 Fixed a crash on game end of network games. 2007-10-02 18:26:22 +00:00
lotodore 6bfea736cf Transfer new blind options in network games. 2007-10-02 15:00:33 +00:00
lotodore b4a1ce8bd5 Dedicated server no longer depends on qt. Added code for utf-8 conversion on windows and linux (without qt). Some small issues remain (like the data-dir and charset for the server). 2007-10-01 00:33:05 +00:00
lotodore 0d1650e9a9 Fixed a bunch of compiler warnings. 2007-09-30 18:50:46 +00:00
lotodore 6fcc400443 Fixed connection issue with libircthread. 2007-09-30 17:47:40 +00:00
lotodore d741d78bbe Remove player from nick list when kicked. 2007-09-30 16:47:06 +00:00
lotodore 8f179acd9f Fixed linefeeds. 2007-09-30 16:22:02 +00:00
lotodore 087a0d0cda IRC polishing work - kicks are shown, error messages are displayed. Rename somehow buggy still. 2007-09-30 16:19:44 +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 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 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 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 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 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 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 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 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 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 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 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