Commit Graph
61 Commits
Author SHA1 Message Date
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 dc74186b5a Fixed syslog stuff. 2007-10-24 23:24:57 +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 b4848532f9 Added logging for server using syslog. 2007-10-23 21:26:07 +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 3e373be458 Fixed gcc compiler error. 2007-10-18 21:16:49 +00:00
lotodore 990b99f051 Fixed gcc compiler error. 2007-10-18 21:07:55 +00:00
lotodore b8cfdb8ce0 Fixed gcc compiler error. 2007-10-18 21:05:36 +00:00
lotodore c7a36ceca5 Linefeeds. 2007-10-18 20:41:13 +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
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 e9d373893d Fixed linux issues in libircclient. 2007-10-09 15:51:33 +00:00
lotodore 9f698d6adc Fixed IRC IPv6. 2007-10-08 15:04:02 +00:00
lotodore d0ccc68d1f IRC IPv6 support. 2007-10-08 11:07:32 +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 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 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
doitux fc435f2769 exceptions & bugfixes 2007-09-29 00:08:19 +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 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 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
lotodore 2f1e371e4f Added code to calculate the MD5 sum of a file. To be used for avatars. 2007-09-08 13:38:06 +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
doitux 94c8bb14ec libircclient compiles on linux; german translation update; tabfixes for windows 2007-09-07 18:00:52 +00:00
lotodore d789162a2a New version of the boost timer (addon lib). 2007-09-05 00:06:20 +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 9cfed43fd0 *sigh* some linux implementations have the function daemon. 2007-08-28 10:43:34 +00:00
lotodore a51139ed65 Missing include files. 2007-08-28 10:37:23 +00:00
lotodore e0af9bf6c8 Added daemon code for linux - just for testing. Will be platform independent later. 2007-08-28 10:33:19 +00:00
lotodore f11998c28c Added console server app. First try. Depends on qt for locale-specific stuff. Cannot start a game yet, only join is possible. Cannot run multiple games yet.
Not yet as service/daemon, because testing is easier with a simple console app.
2007-07-30 23:22:58 +00:00
doitux 8ad92920cc one ConfigFile for all
killed the tinyxml warnings
2007-05-13 12:35:27 +00:00
lotodore d24a45f354 Ignore boost timer warnings in msvc. 2007-05-07 09:34:36 +00:00