lotodore
3d57f65e2b
Fixed a bug in the packet handling of the client. This fixes the problem that games are not properly started, and that the player list is not properly updated.
2009-06-15 21:42:57 +00:00
lotodore
1acbeba426
Close the socket before client termination, don't let asio close it later because the callbacks might no longer be valid.
2009-06-15 06:42:52 +00:00
lotodore
4b5d78af81
The client network code was rewritten to use boost::asio. Some optimization is still required, and some code files can now be removed.
2009-06-14 22:07:41 +00:00
lotodore
744e5c81d4
Small fixes. Removing some TODO comments which are no longer valid.
2009-06-13 10:52:12 +00:00
lotodore
bf0fc6e9ca
Removing unused files.
2009-06-12 16:42:38 +00:00
lotodore
6269b94db1
Properly restarting lobby timers.
2009-06-12 16:04:58 +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
71e9c35ff2
Adding missing file.
2009-06-08 21:56:27 +00:00
lotodore
938d13e31a
Send all available data in one chunk within the send handler. This improves speed.
2009-06-08 21:54:24 +00:00
lotodore
e53c60c263
Creating a new asio timer instead of reusing the old one. Reusing leads to strange crashes. Whoever invented the semantics of the asio timer obviously did not consider the need to restart a timer within the handler. Oh well. The asio timer service also seems to sleep all the time (not using up 100% load if timeout of all timeouts are 0). Pending further tests, asio timers might be unsuitable.
2009-06-08 21:53:14 +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
55bd832955
Fixed network game termination.
2009-06-04 22:13:52 +00:00
lotodore
8005cc82c6
Fixed server termination crash. However, network games are still not properly terminated.
2009-06-04 20:37:18 +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
cee2d787d0
Adding some error handling. Some is still missing.
2009-06-01 10:23:44 +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
b48209a5e4
Termination of games is now working. Error handling is still missing in some cases, and it is very slow if there are a lot of players, but other than that all is fine :-).
2009-05-31 19:11:59 +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
41ab1ff83d
Clarifying the usage of banip.
2009-05-12 20:25:31 +00:00
lotodore
47a9fc9588
Typo fixes.
2009-05-12 20:23:47 +00:00
lotodore
d68827c606
Updating server irc commands.
2009-05-12 20:19:39 +00:00
lotodore
22720a83f2
Small project file fixes.
2009-05-10 22:34:07 +00:00
lotodore
8ab2fed1a2
More restructuring. Still broken.
2009-05-10 22:21:20 +00:00
lotodore
2541f28ff2
Sender thread is no longer a thread (part of boost::asio integration). Warning: Network games are still broken!
2009-05-10 17:53:37 +00:00
lotodore
d258bc25d0
Server accept thread is no longer a thread.
2009-05-10 14:57:51 +00:00
lotodore
ac4c2e9aef
Integrating precompiled headers support (might speed up compilation). Currently disabled (in .pro files).
2009-05-07 22:36:51 +00:00
lotodore
e813c49fe5
Changing windows build to boost 1.39 with mingw gcc 4.4. Windows build system needs update.
2009-05-06 21:24:14 +00:00
lotodore
d7ca4d67b5
Fixing compiler errors. Still broken in terms of network functionality.
2009-05-06 21:09:58 +00:00
lotodore
411ede3500
Updated windows build script, now using:
...
- tdm mingw gcc 4.4
- Qt 4.5.1
- boost 1.39
+ other minor updates.
Update of build tool still pending. The script will be changed to retrieve a stable revision instead of HEAD.
2009-05-04 23:14:07 +00:00
lotodore
60b5d45c53
Adopting changes from asio branch. Currently broken.
2009-05-04 21:11:29 +00:00
lotodore
0431b4cb33
Setting beta revision to 0.
2009-05-03 11:39:32 +00:00
lotodore
5385ba8903
Incrementing beta revision counter to cause a notification that a new beta release is available.
2009-04-25 19:30:31 +00:00
lotodore
bdb6e9f22f
Enable logging of avatar uploads
2009-04-25 18:33:01 +00:00
lotodore
06556fb9c1
Preparing 0.7beta1.
2009-04-15 17:29:11 +00:00
lotodore
739deb8f9d
Updating build docs: boost_regex is now required.
2009-04-11 15:41:32 +00:00
lotodore
a4a8154073
Fixing compiler warning.
2009-04-11 13:12:39 +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
7272e77d97
Fixing MacOS build.
2009-04-11 11:37:45 +00:00
lotodore
bd2aece3da
Small improvements concerning ban texts.
2009-04-11 11:14:12 +00:00
lotodore
33001626c1
Adding IP address bans.
2009-04-11 11:03:22 +00:00
lotodore
66da20d2db
Found the bug which caused failure of getpeername code.
2009-04-11 09:49:05 +00:00
lotodore
c732bd28f0
Still trying to fix getpeername (works fine on Windows)...
2009-04-10 23:28:33 +00:00
lotodore
72108d7ec3
Still trying to fix getpeername (sigh).
2009-04-10 22:26:14 +00:00
lotodore
07fb61c4d7
Trying to fix getpeername (sigh).
2009-04-10 22:22:55 +00:00
lotodore
c89069dcdc
Trying to fix getpeername.
2009-04-10 22:15:01 +00:00
lotodore
1d255e8fca
Trying to fix getpeername.
2009-04-10 22:09:57 +00:00
lotodore
f8b1123cc5
Adding server irc management request to show the ip address of a user (in order to ban the user from the server).
2009-04-10 21:54:59 +00:00
lotodore
dee2c6a0e5
Cosmetic change to ban list view.
2009-04-10 21:32:08 +00:00
lotodore
69f3b49ab2
Adding support for listing and removing single bans.
2009-04-10 21:04:08 +00:00
lotodore
3e8f92050a
Adding asio define to stop compiler warnings.
2009-04-10 18:56:23 +00:00
lotodore
aef82cef0e
Preventing exception in boost::regex.
2009-04-09 22:56:22 +00:00
lotodore
49cd98e31e
Fixing boost linking for mingw.
2009-04-09 22:15:16 +00:00
lotodore
5fbc56cfc2
Fixed another merge error.
2009-04-08 17:05:58 +00:00
lotodore
a3a7a7879e
Fixing branch problem.
2009-04-07 22:23:29 +00:00
lotodore
b1b9215874
Adding ban functions to irc bot.
2009-04-07 22:09:52 +00:00
lotodore
e59e50c10b
Changes to allow regex bans. Might need updating of pro-files due to boost::regex dependency.
2009-04-07 22:04:38 +00:00
lotodore
58279b5967
Small fixes.
2009-04-07 20:49:41 +00:00
lotodore
ef91702d66
Call gui callbacks for server list.
2009-04-05 13:11:52 +00:00
lotodore
acd5267412
Compiler error fixes.
2009-04-05 12:37:14 +00:00
lotodore
534b6066a8
More work on server selection. Currently untested.
2009-04-05 12:31:12 +00:00
lotodore
59a6b35dd1
Fixing compiler errors.
2009-04-05 11:34:40 +00:00
lotodore
009249e41a
Adding stuff for server list (choosing a server). Might not compile (untested yet).
2009-04-05 11:19:50 +00:00
lotodore
6f99cb6c9c
Some editorial fixes.
2009-04-04 19:41:14 +00:00
lotodore
959d514d32
Fixing qt settings.
2009-03-27 22:45:51 +00:00
lotodore
13f70f85a7
Adding debug log entry.
2009-03-23 22:30:50 +00:00
lotodore
a7e7cdb47b
Updated project files for MacOS.
2009-03-22 21:20:34 +00:00
lotodore
2e8ab6b4d5
0.6.4 NOW
2009-03-22 20:12:52 +00:00
lotodore
1d5fd90ae9
2009-03-22 19:56:48 +00:00
lotodore
9243a6aa86
Small fixes. Remove superflous log messages.
2009-03-22 18:57:23 +00:00
lotodore
f2ec0b1ef4
Detect avatar file type for download. Not fully working yet.
2009-03-22 00:39:25 +00:00
lotodore
84cbb90e92
Trying to fix avatar download problem.
2009-03-21 22:58:58 +00:00
lotodore
c5d55884b6
Fixed config settings for avatar server.
2009-03-21 22:47:39 +00:00
lotodore
a2f67f934a
Fixed logging.
2009-03-21 22:41:14 +00:00
lotodore
21ad12333c
Log messages for avatar download (temporary).
2009-03-21 22:38:56 +00:00
lotodore
9cc9b75e89
Curl fix for compatibility with old libcurl versions.
2009-03-21 22:09:46 +00:00
lotodore
43a13f5297
Avatar upload/download fixes. Verbose logging (temporary).
2009-03-21 21:14:09 +00:00
lotodore
60a9beb417
Fix exception loops in upload/download.
2009-03-21 20:40:52 +00:00
lotodore
a102be7b8c
Close file stream before upload. Hard code jpg http avatars (temporary). Still broken.
2009-03-21 19:56:53 +00:00
lotodore
000dfa6011
Changes for release.
2009-03-21 12:45:23 +00:00
lotodore
1bb674f8b7
Always use static Qt with jpeg/gif plugins on Windows.
2009-03-21 12:32:46 +00:00
lotodore
c3dc770c2e
More work to let clients download avatars from an external server.
2009-03-21 11:36:10 +00:00
lotodore
55a29f9a38
Do not use asio cancel, because it is not portable. It will cause an exception on Windows XP. Just let the socket be closed.
2009-03-21 10:44:31 +00:00
lotodore
ebac9c9574
Fixed nasty cleanup crash on Windows.
2009-03-21 10:28:27 +00:00
lotodore
5be8403d07
Explicitly include fstream. Still broken stuff.
2009-03-21 09:11:39 +00:00
lotodore
ebce3ee214
Warning: Enables debug mode.
...
More steps towards downloading avatars from external server. This is currently BROKEN.
2009-03-21 01:39:00 +00:00
lotodore
b1bad8d144
Preparing client use of external avatar servers.
2009-03-18 15:01:43 +00:00
lotodore
64ec42aaa3
Fix buffer overflow in libircclient (concerning DCC, which was unused, so this is just to satisfy pedantic compilers :-) ).
2009-03-16 22:13:55 +00:00
lotodore
e8f9d917f8
Fixed Windows build issues.
2009-03-02 19:24:16 +00:00
lotodore
6948d86d9f
Forgot some changes for avatar upload.
2009-03-01 23:38:29 +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
ab046cc1fb
Fixed linefeeds.
2009-02-28 11:29:28 +00:00
lotodore
7b25cf12c8
Use TDM's g++ 4.3.3 mingw Dwarf2 compiler (instead of SJLJ, which seems to cause exception problems).
2009-02-28 11:28:57 +00:00