Protocol: | pserver | User: | anonymous |
Machine: | crossfire.cvs.sourceforge.net | CVSROOT: | /cvsroot/crossfire |
Filename: metaserver.c | |||
Revision 1.19 | akirschbaum | 2006/07/16 03:46:07 | +11 -4 |
Fix player count reporting to the metaserver. It now excludes connections with not-yet-logged-in players and AFK/WIZ/BOT players. | |||
Show difference between Revision 1.18 and 1.19 | |||
Revision 1.18 | ryo_saeba | 2006/05/20 07:36:48 | +2 -2 |
Add a bot flag, to not count in metaserver information | |||
Show difference between Revision 1.17 and 1.18 | |||
Revision 1.17 | akirschbaum | 2005/12/05 17:34:04 | +3 -3 |
Apply patch #1371956 (code cleanup patch) by Stefan Huehner: fix old-style function declarations and prototypes to proper Ansi C syntax. This patch allows the compiler to check function arguments and also removes some warnings when compiling with -Wstrict-prototypes. | |||
Show difference between Revision 1.16 and 1.17 | |||
Revision 1.16 | ryo_saeba | 2003/12/02 12:51:44 | +14 -3 |
Added & updated comments, now in doxygen-like style | |||
Show difference between Revision 1.15 and 1.16 | |||
Revision 1.15 | mwedel | 2003/10/26 01:56:57 | +6 -6 |
common/glue.c, common/object.c, common/player.c, include/funcpoint.h, server/init.c, server/monster.c, server/shop.c, server/skill_util.c: add find_skill_by_number() function - this replaces find_skill. Locate new function in skill_util.c, which is more a proper place than common/player.c - this change necessitated adding glue function pointers so the other common files can call it. server/spell_effect.c: Fix cast_heal() so if the spell is not one that heals hit points, don't process the code that checks for that and sets a false success value. socket/metaserver.c: Clean up formatting - no code changes. MSW 2003-10-25 | |||
Show difference between Revision 1.14 and 1.15 | |||
Revision 1.14 | mwedel | 2003/09/13 00:02:14 | +2 -11 |
Updated code for skill + spell code. skills and spells are now objects. tuning these now means changing the archetypes. New spells can now be added just by making a new archetype. Lots of code cleanup also done. MSW 2003-09-12 | |||
Show difference between Revision 1.13 and 1.14 | |||
Revision 1.13 | mwedel | 2002/09/28 02:19:40 | +4 -2 |
Mostly bugfixes, but the addition of a wiz 'hide' command which makes the wiz out of sight so to speak. -- common/loader.l, common/loader.c: Fix bug where flag values were being saved with actual value of the flag (eg, 32768, 16, etc) instead of 1/0 value - Code effectively worked the same, just was a bit odd looking at save files. include/player.h: Add hidden element to player structure. include/sproto.h: Add command_hide(), update proto for players_on_map() lib/Makefile.am, lib/Makefile.in: add wizhelp/hide file. server/apply.c: Add error checking to converts so it doesn't crash if the converter doesn't have a proper other_arch. Modify shopmats so that they don't transport spell effects, like fireballs an burning hands. server/attack.c: Modify code so players can drain other players exp. server/c_misc.c: Modify various functions to not show info on hidden DM. server/c_wiz.c: Add command_hide(), clean up command_invisible() a bit. server/commands.c: Add hide command to dispatch table. server/main.c: Add code to not update players on map for hidden dm. server/player.c: Give hidden dm perpetual invisiblity. server/skills.c: Only get exp if you actually stole an item - fixes abuse whereby players who couldn't carry item could continually 'steal' it from monster and just gain exp. server/swap.c: modify players_on_map() to take addition arg to determine if real players on map should be shown, or if we shouldn't count hidden dms. socket/info.c: Modify code so that oldsockets don't get reports on high verbose messages. socket/metaserver.c: Modify metaserver update to not include hidden dms. utils/Makefile.in: update datestmp. MSW 2002-09-27 | |||
Show difference between Revision 1.12 and 1.13 | |||
Revision 1.12 | mwedel | 2002/07/14 23:25:40 | +4 -3 |
Update banner copyright with proper contact information. MSW 2002-07-14 | |||
Show difference between Revision 1.11 and 1.12 | |||
Revision 1.11 | jbontje | 2001/09/24 05:47:30 | +1 -5 |
These are some misc. patches by Tim Rightnour to make Crossfire compile cleanly on NetBSD. 1) The Cnv makefile wasn't recieving EXTRA_CFLAGS, making it difficult to compile, because it wants to locate the guile includes. 2) The metaserver code didn't cast the fifth argument to sendto properly. Amusingly, it did so on WIN32. I verified this is the proper cast with SUSV2, Solaris, NetBSD and linux. mids 2001-09-24 | |||
Show difference between Revision 1.10 and 1.11 | |||
Revision 1.10 | mwedel | 2001/05/28 23:41:54 | +3 -3 |
Make ALLOW_SKILLS standard part of game (remove #ifdef's for it) Files affected: common/living.c common/object.c common/treasure.c include/config.h include/player.h server/apply.c server/attack.c server/c_move.c server/c_range.c server/c_wiz.c server/commands.c server/init.c server/login.c server/monster.c server/player.c server/rune.c server/skill_util.c server/spell_util.c Make MULTIPLE_GODS standards part of game (remove #ifdefs for it) Files affected: common/readable.c include/spellist.h include/config.h server/attack.c server/gods.c server/skills.c server/spell_effect.c server/spell_util.c doc/Makefile.in, doc/Protocol: Add protocol description file here instead of in the client distribution. include/global.h: Move declaration of MAX_EXP_CAT near top of file so it is set before player.h is included. include/newclient.h: Add CS_STAT_SKILL* values for sending skill experience information to client. include/newserver.h: Add skillexp value to socket struct which determines if client wants skill experience informatiion. include/player.h: Add skill information tracking to player structure so we can easily know when to send updates to client. random_maps/expand2x.c: remove unused variable to prevent compiler warnings. random_maps/square_spiral.c: Include prototype information on all systems, not just win32 to prevent compiler warnings. server/skill_util.c: Initialize skill pointers to make it easier to find skill information when we want to update client. socket/init.c: Init socket->skillexp to 0. socket/loop.c: Fix indentation of table - whitespace change only socket/metaserver.c: Minor fix to prevent compile warnings (on the sprintf that composes the data to send to the metaserver) socket/request.c: Redo SetUp function to be more compact and IMO simpler as wll as easier to read (functionality remains the same). VersionCmd modified to warn users of on dxclients (code on MT) StatsCmd added to send skill information if client wants it. The sending of skill experience is by MT, rest of the changes by me. MSW 2001-05-28 | |||
Show difference between Revision 1.9 and 1.10 | |||
Revision 1.9 | mwedel | 2001/05/24 22:59:36 | +4 -3 |
doc/metaserver, doc/Makefile.in: Add metaserver file which describes working of metaserver and format of data fields. socket/metaserver.c: Add reporting of inbytes, output bytes, and uptime in seconds to notification of metaserver MSW 2001-05-24 | |||
Show difference between Revision 1.8 and 1.9 | |||
Revision 1.8 | michtoen | 2001/04/06 14:08:13 | +9 -9 |
win32: change // to /* */ | |||
Show difference between Revision 1.7 and 1.8 | |||
Revision 1.7 | michtoen | 2001/04/05 19:43:52 | +27 -2 |
*** empty log message *** | |||
Show difference between Revision 1.6 and 1.7 | |||
Revision 1.6 | cvs | 2000/12/03 18:40:06 | +3 -2 |
Checking for partial resistance code. Various minor errors also fixed (compiler warnings, unused variables, Makefile.in changes, etc). PR code also includes support to send protections to the client. | |||
Show difference between Revision 1.5 and 1.6 | |||
Revision 1.5 | cvs | 2000/11/25 22:56:05 | +2 -3 |
MSW 2000/11/25: include/patchlevel.h (removed), doc/spell-docs/Makefile (removed), include/Makefile.in, include/version.h, server/init.c, server/main.c, socket/metaserver.c: remove patchlevel.h - include the patchlevel in the version.h file, update other files to use version as a single string. | |||
Show difference between Revision 1.4 and 1.5 | |||
Revision 1.4 | cvs | 2000/11/25 21:48:03 | +6 -1 |
MSW 2000/11/25: socket/metaserver.c: If on FreeBSD systems, do not attempt to connect to the metaserve. FreeBSD seems to have a problem using sendto on a connected soccket. | |||
Show difference between Revision 1.3 and 1.4 | |||
Revision 1.3 | cvs | 2000/11/17 22:27:49 | +3 -9 |
MSW 2000/11/17: socket/metaserver.c: More changes - use fcntl to set O_NONBLOCK. Don't close socket if connect fails, since with sendto it is not required that the connect works. | |||
Show difference between Revision 1.2 and 1.3 | |||
Revision 1.2 | cvs | 2000/11/16 23:07:45 | +5 -1 |
MSW: 2000/11/16: socket/metaserver.c: Add #ifdef MSG_DONTWAIT into metaserver.c for systems that lack that definition. random_maps/style.c: alphasort was not properly de-referencing pointers when doing name comparisons, and thus returned garbage results, resulting in a crash when entering random maps. This only happens for systems which lack scandir in normal libraries (like Solaris). BSDs and linux have scandir built in, and did not have a problem. server/disease.c: fix infect_object - server would crash if player did not have praying skill and was infecting someone else. end of changes, MSW 2000/11/16 | |||
Show difference between Revision 1.1 and 1.2 | |||
Revision 1.1 | cvs | 2000/11/14 01:35:06 | None |
metaserver update: common/init.c: Add meta_ fields to settings structure initialization. include/global.h: Add meta_ fields to settings structure. include/sockproto.h: Updated for new meta_ functions. lib/Makefile.in: Have it install settings file. lib/settings: Default settings file with some metaserver default value.s server/init.c: Add load_settings file. Add call to metaserver_init. server/main.c: Add call to metaserver_update in do_specials. socket/Makefile.in: Add metaserver.c to list of files. socket/metaserver.c: File that deals with metaserver related data. socket/item.c: Remove some unused variables. Unrelated to metaserver changes. socket/loop.c: Add calls to metaserver_update in block_until_new)connection. Change function so that if there are no active players, it still timeouts and does metaserver update. Basically changed to do it the way the WATCHDOG code did it. End of metaserver update. MSW 2000-11-13 | |||
First version | |||
Revision 1.8.2.1 | mwedel | 2001/05/24 23:08:04 | +4 -3 |
doc/metaserver, doc/Makefile.in: Add metaserver file which describes working of metaserver and format of data fields. socket/metaserver.c: Add reporting of inbytes, output bytes, and uptime in seconds to notification of metaserver server/spell_util.c: Fix typo in polymorph code (when enabled in config.h) server/disease.c: replace disease->owner check with get_owner. MSW 2001-05-24 | |||
Show difference between Revision 1.8 and 1.8.2.1 |