lotodore
86c58fc7c8
Switching from ASN.1 (asn1c) to google protocol buffers. Some things are still missing (packet verification, tests, ...), this is very early stuff.
2012-09-18 15:57:58 +02:00
lotodore
ea82f58815
Switching license from GPL2 to AGPL3.
2011-07-02 14:52:16 +00:00
lotodore
8bac902580
Fixing loads of msvc warnings (mainly size_t vs int issues).
2011-04-10 10:04:42 +00:00
lotodore
2cd2ac57ca
Fixing cppcheck issue and compiler warning.
2011-02-28 18:29:57 +00:00
lotodore
02518c67b2
Reformatting code using Kernighan & Ritchie style, tabs, tab width=4.
...
Command line: astyle --style=kr --indent=force-tab=4 --lineend=linux -n -r <file names>
2011-02-11 20:02:08 +00:00
lotodore
f4eb7221e3
Fixing more cppcheck issues.
2011-02-08 12:10:39 +00:00
lotodore
8c9a17f7db
Trying to fix avatar file name charset issue #44
2011-02-04 21:14:49 +00:00
lotodore
0829e80d49
Do not autostart network games. Do not start admin timer for network games.
2010-09-04 23:00:39 +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
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
f2ec0b1ef4
Detect avatar file type for download. Not fully working yet.
2009-03-22 00:39:25 +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
16decacb6b
New configuration options for automatically uploading the avatars to an external server.
2009-03-01 23:09:14 +00:00
lotodore
e7c70ad9ad
First version of server side avatar upload feature (support for external avatar server). Still hard coded, cannot be configured.
2009-02-21 23:33:30 +00:00
lotodore
d7c6cdd75c
Use GnuTLS-OpenSSL instead of OpenSSL. Thanks to Zhenech for help with this patch.
2008-04-21 22:27:15 +00:00
lotodore
5f0fc7ab93
Workaround for boost uncaught exception problem on MacOS 10.5.
2007-12-07 23:29:49 +00:00
lotodore
c5bae66142
Move server configuration to dedicated server only. Separate error logging for client and server, in preparation of creating a log file on the dedicated server.
2007-11-22 00:57:03 +00:00
lotodore
689b22e0b9
The sender thread has been rewritten with a new algorithm in mind. The sender should not stall any more, and no timeout is required. There are no more send priorities.
...
The avatar manager no longer serializes access to avatar files.
2007-11-20 23:58:24 +00:00
lotodore
a24a93caba
Use unix linefeeds for all files. Finally. It's about time.
2007-11-16 15:24:25 +00:00
lotodore
f1f45c9b0b
Truncate any existing avatar file when saving in cache dir.
2007-11-11 15:59:41 +00:00
lotodore
e9604d0177
Cache avatars on client only for 1 day.
2007-11-01 19:23:35 +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
e5f05c5359
Trying to fix the avatar problem.
2007-10-31 20:23:27 +00:00
lotodore
d0c34c572b
Automatically cleanup cache once a day on the dedicated server.
2007-10-25 21:20:35 +00:00
lotodore
d0cea553df
Fixed boost string comparison. Oo.
2007-10-25 20:35:57 +00:00
lotodore
f019523879
Use boost for case insensitive comparison.
2007-10-25 20:26:44 +00:00
lotodore
9e180d01f3
Fixed error when transfering avatars. Additional logging.
2007-10-24 23:17:12 +00:00
lotodore
2152b90e20
Added code to automatically clean up avatar cache. There is a time limit (how long avatars are kept) as well as a number limit (how many avatars will be cached).
2007-10-24 22:20:35 +00:00
lotodore
6a297effc1
Try to prevent (as much as possible) transfering and, more important, storing, any other files than avatars as png, gif and jpg. The headers of the files are checked whether they are valid for the corresponding format. Files without gif/png/jpg header are never stored on the server, and thus cannot be requested by any client.
2007-10-18 23:00:55 +00:00
lotodore
959b89f9ed
Do not save avatar files with unknown extensions.
2007-10-16 20:48:25 +00:00
lotodore
e54242b711
Fixed possible security problem if cache dir is modified. Only files with md5sum as file name will be considered by the avatar manager.
2007-10-13 14:23:04 +00:00
lotodore
253778bf30
Added error handling for networking stuff. Now checking the player action.
2007-10-10 22:21:24 +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
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
54f8b511c3
Scan new avatars for network games.
2007-09-14 15:26:19 +00:00
doitux
a1704992e1
new avatars added. translation strings updated.
2007-09-11 09:32:49 +00:00
lotodore
d3be07bb17
File names of avatars are now md5sums.
2007-09-08 21:43:15 +00:00
lotodore
e76be2a6ff
Some more changes concerning avatars. Directory changes. App data now QApplication independent.
2007-09-08 20:40:46 +00:00
doitux
2780b504b4
2007-09-08 20:28:58 +00:00
doitux
37dcf18e58
UserDataDir, AppDataDir, CacheDir added
2007-09-08 18:53:59 +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