Commit Graph
112 Commits
Author SHA1 Message Date
lotodore cc897745c4 Send list of cards which need to be shown instead of all cards of non-fold players. 2010-07-23 15:55:52 +00:00
lotodore 3df2c28271 Set winner before game delay. 2010-07-22 22:18:56 +00:00
lotodore 37e3b85c9b Adding debug output. 2010-07-19 21:09:25 +00:00
lotodore 966fb50662 Trying to log winner in database. 2010-07-19 19:29:49 +00:00
lotodore e60b3d8d92 Fixed use of wrong variable. 2010-07-18 11:26:53 +00:00
lotodore b2e8c7222d Possibly fixing an issue with send cards. 2010-07-18 11:11:27 +00:00
lotodore 0a15afacbb Let the server send cards on request of the corresponding user. 2010-07-17 21:11:12 +00:00
lotodore 79e7a47343 Preparing network functions to let a player show his cards. 2010-07-15 21:55:52 +00:00
lotodore a447ec927e Implementing auto-start of games when they are full. 2010-04-17 12:50:38 +00:00
lotodore 72fa1fb9ec Do not invite players who are already in the group. 2010-03-30 18:03:08 +00:00
lotodore 5239f496f3 Finishing server side invitation system. 2010-03-30 17:10:37 +00:00
lotodore a01741846a Next steps for invitation system. 2010-03-30 13:02:43 +00:00
lotodore 499c2b72e6 First parts of implementation of invite system in server. 2010-03-30 12:07:48 +00:00
lotodore 5df5d6609c Guest user is not allowed to send chat messages. 2010-03-28 12:54:11 +00:00
lotodore d4b82d7dbc Fixing game admin stuff. 2010-03-27 12:50:05 +00:00
lotodore a02a9cacf6 (Hopefully) fixing guest & game admin stuff. 2010-03-26 21:41:35 +00:00
lotodore f10e4c3423 Extending player rights by guest mode. Kind of broken, because it interferes with the current system where you automatically gain admin rights when creating a game. 2010-03-24 15:54:04 +00:00
lotodore 31c7b789a8 Adding support for custom delay between hands in protocol. 2009-10-24 21:49:11 +00:00
lotodore 1f7f045d15 Starting gsasl integration to perform challenge response authentication. Note that gsasl 1.3 is required (previous versions are not supported). Authentication is currently broken. 2009-10-11 09:20:17 +00:00
lotodore 4cf42d2113 Lobby chat works now, but player list ist not yet shown. 2009-08-15 14:51:21 +00:00
lotodore 4c340d5bdc Use own lobby chat instead of IRC. First steps, still incomplete. 2009-08-15 10:25:13 +00:00
lotodore e5d56ad162 Fixing vote kick. 2009-08-06 20:05:49 +00:00
lotodore 945c4a102a Completely rewriting all NetPacket stuff to use ASN.1. Finally this big chunk of work is completed. Compiles and links fine, but still partly non-functional.
PLEASE NOTE: This is NOT COMPATIBLE to 0.7.x, because it is a new network protocol.
2009-08-02 15:11:40 +00:00
lotodore 398805a136 Handle the case if there is no winner in a game. 2009-07-13 18:10:11 +00:00
lotodore f7a8cb1419 Adding additional logging. 2009-07-12 21:12:55 +00:00
lotodore a2e692d844 Fixing delayed sending of create/join game for network games. 2009-06-20 18:41:03 +00:00
lotodore 34b251bfad Fixing all in timer issue. 2009-06-20 07:59:33 +00:00
lotodore 4c8248353a Adding error handling so that an error within a game does not terminate the server, only the single game. 2009-06-19 20:48:57 +00:00
lotodore 22edd63dde Further paranoia changes to prevent timer callbacks from occurring in an uncontrolled state. 2009-06-15 22:34:07 +00:00
lotodore 744e5c81d4 Small fixes. Removing some TODO comments which are no longer valid. 2009-06-13 10:52:12 +00:00
lotodore 3b25e18fde Rewriting boost asio timer stuff. (Did I mention I dislike the asio "cancel" semantics?!). TimerManager is no longer used. Should be stable now, but might leak some memory (needs further testing). 2009-06-12 15:48:34 +00:00
lotodore a33d9b7c3b Trying to fix strange timer crashes. 2009-06-09 23:04:04 +00:00
lotodore c8594e8e7b Canceling asio timers has bad semantics, and causes loads of trouble. Therefore, cancelled timers are simply marked as such, and the asio callback is silently ignored. This fixes several crashes, if players were removed from a game due to an error, because some timers were not cancelled. *sigh* This one took a lot of nerve. 2009-06-07 23:25:13 +00:00
lotodore 5f3369432a Rewriting sender yet again to fit the new asio design. Polling for new send data is no longer needed, this also reduces lag. 2009-06-07 08:51:43 +00:00
lotodore 47648392fb Use boost::asio timer callbacks instead of self-made ones. There are still some termination issues (terminating a network game will result in a crash). However, it should be quite effective now with a large number of users. 2009-06-01 19:49:16 +00:00
lotodore 24abedbbab Renaming class ServerGameThread to ServerGame. 2009-05-31 20:14:46 +00:00
lotodore f2bd0c6111 ServerGameThread is no longer a thread. 2009-05-31 19:45:20 +00:00
lotodore fab224c8ad Fixing some timer problems. Starting an internet game now works again. There are still some issues: Games are never terminated, and error handling is not implemented (errors will terminate the server). 2009-05-31 13:47:10 +00:00
lotodore 59358bff0e Fixed server crash when trying to start a game. Server is still broken, though... 2009-05-31 13:17:02 +00:00
lotodore 2952f0b85d Fixing some compiler warnings and single-threaded game issues. Note: The server currently crashes when trying to start a game. 2009-05-31 11:00:33 +00:00
lotodore 08ed5e0496 Almost complete rewrite of server game state due to porting the network engine to asio. Server is still broken in a lot of ways. A game is no longer run in a separate thread (but this change is still incomplete). 2009-05-30 22:20:40 +00:00
lotodore 8ab2fed1a2 More restructuring. Still broken. 2009-05-10 22:21:20 +00:00
lotodore 3db5c9218b Current compatibility notification is not working. The server will now send a "game full" notification if a 0.6 player tries to enter a game with > 7 max players. 2009-04-11 12:56:30 +00:00
lotodore 23ffcc8e9c Fixing backward compatibility. 2009-04-11 12:45:56 +00:00
lotodore 992dd4b618 Adding backward compatibility for 0.6 clients. They cannot join games with > 7 players. 2009-04-11 12:32:54 +00:00
lotodore d72cdb6873 One sender thread per client. Requires loads of resources. Kind of hacked, because the internal dependencies are very ugly now. Requires loads of testing. A problem might be the last packet sent by the server to a specific client before closing the connection, for example an error message. It might never even reach the client, because the sender thread is terminated before. I have not yet found a good way to fix this. 2009-01-07 21:52:16 +00:00
lotodore 77bb02113a Let the server automatically perform call/all in without the client having to provide values. 2008-12-25 21:11:05 +00:00
lotodore 89450a9a32 More work on server side vote kick. Most error handling complete now. Client side still lacking. 2008-12-07 11:04:42 +00:00
lotodore 2652625828 Started error handling for vote kick. 2008-12-06 00:18:36 +00:00
lotodore b236fa9d62 Vote kick kind of working. Only the forward case - no timeout, no error handling, no display update. 2008-11-25 22:18:17 +00:00