lotodore
b1bad8d144
Preparing client use of external avatar servers.
2009-03-18 15:01:43 +00:00
lotodore
16decacb6b
New configuration options for automatically uploading the avatars to an external server.
2009-03-01 23:09:14 +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
618ed80e2d
Fixed network game bug which was introduced in the bugfix release by changing the id of the first game to 1.
2009-01-03 11:36:03 +00:00
doitux
15d934e5b8
show votekick starter nick, disable kick contextmenu for only 2 players
2008-12-07 21:47:53 +00:00
lotodore
80883dd409
Update number of votes on client.
2008-12-07 12:22:35 +00:00
lotodore
bd55b69817
Client side vote kick changes - tab closes now. Server side fixes.
2008-12-07 11:48:01 +00:00
lotodore
c57ea0985b
Trying to send reason why the player leaves the game.
2008-11-25 23:19:34 +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
lotodore
1cfe551f19
More work on vote kick. Some network packets are exchanged, but still not functional.
2008-11-16 22:57:11 +00:00
lotodore
d4350fa806
Fixed leaving a game which has not yet been started.
2008-05-16 20:42:46 +00:00
lotodore
269eab4774
Fixed lobby update after leaving a game.
2008-05-16 16:46:45 +00:00
lotodore
b5c2399603
Use configuration setting to decide whether to download the server list or directly connect to the server. Accept other server lists. Accept un'zlib'ed server lists. Use IPv6 address from server list if configured.
2008-05-10 15:47:48 +00:00
lotodore
7a157b682a
The client now downloads a zipped server list file from pokerth.net. This is parsed and the first server entry is used for now. Error handling still missing. boost::iostreams now required.
2008-04-19 11:48:09 +00:00
lotodore
2e38f58e13
Fixes for boost 1.35.0 with msvc - mainly winsock vs. winsock2 related.
2008-04-16 20:38:11 +00:00
lotodore
9f0d204f56
First test version with network timeout. Only activity timeout and global timeout, no game admin timeout yet. Set to test values (will disconnect rapidly).
...
Modified method for init timeout (if session cannot be established) - now using one non-modifiable timer for each session, and an additional timer which is reset whenever session data is received.
2008-03-04 23:47:45 +00:00
lotodore
ee00741931
More avatar related utf8 fixes.
2007-12-12 13:37:45 +00:00
lotodore
c14bb9470b
More utf8 related fixes (some issues remain).
2007-12-11 20:40:39 +00:00
lotodore
b97c56cd26
Use alternate dns name if name resolution fails for internet server (6dns.org seems to be unreliable, but is still the only one to provide both ipv4 and ipv6 name resolution for free).
2007-11-30 21:28:38 +00:00
lotodore
a24a93caba
Use unix linefeeds for all files. Finally. It's about time.
2007-11-16 15:24:25 +00:00
lotodore
cdd21250de
Added support for password protected irc channels. Added server IRC mode for admin use, to allow requesting statistics and kicking players.
2007-11-16 00:58:23 +00:00
lotodore
7f5ff4af97
Fixed bug where computer players where displayed as numbers in lobby.
2007-11-14 22:54:47 +00:00
lotodore
96eb74992e
Fixed long term client issue when player id overflows (very unlikely, as it is 32 bits).
2007-11-11 11:31:07 +00:00
lotodore
ef84c7b81a
Fixed kick bug by letting the client reverse iterate over its cached player data when looking for a player name. Added several exceptions.
2007-11-10 22:18:31 +00:00
lotodore
864af81193
Don't request own avatar from the server. Only request avatars of other players after joining a game.
2007-11-01 18:36:03 +00:00
lotodore
a3cb6c25e3
Don't wait for avatars on game sync, instead show them whenever they are there.
2007-11-01 00:37:41 +00:00
lotodore
a3c9390bfe
Redesign of avatar stuff. First part.
2007-11-01 00:12:47 +00:00
lotodore
3ea61381ef
Use client game id when kicking players during game.
2007-10-28 19:38:49 +00:00
lotodore
cdea81b2ba
Fixed sender again, as it did not work when sending errors.
2007-10-28 15:06:57 +00:00
lotodore
fa7af40a49
Fixed a very nasty bug concerning the sender thread. SOCKETs were assumed to be kind of unique, but Windows tends to return the socket number of a socket which was just closed as new socket number in accept. This led to very strange behavior when the server was flooded with inits, because the sender thread still had entries for this socket number (which were not removed because they should just fail).
...
No longer use socket as key in maps, instead, use the session id. Only use the session id in the sender thread, "resolve" it to the socket only in the moment when it is needed. Outstanding requests will be detected to have an invalid session id then.
Also, as side effect, fixed an issue with two callback classes which were named the same and caused unexpected behavior.
2007-10-28 12:53:54 +00:00
lotodore
8f1e5132d6
Added kick function with player name.
2007-10-27 18:51:53 +00:00
lotodore
9e180d01f3
Fixed error when transfering avatars. Additional logging.
2007-10-24 23:17:12 +00:00
lotodore
4bc57f07d0
Add server statistics which are sent by the server to every client each time they change.
2007-10-20 22:22:11 +00:00
floty
7c2e8dc777
cleaning code and hopefully last part of refactoring playerArray to playerLists ;)
2007-10-19 14:03:12 +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
211d8fcefc
comment out playerArray
2007-10-18 17:58:51 +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
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
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
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
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
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
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
0900d3844b
Fixed a bunch of compiler warnings (mingw compiler).
2007-09-04 23:37:32 +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