server:running_the_server:etc_crossfire_configuration_files
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
server:running_the_server:etc_crossfire_configuration_files [2018/03/02 10:50] – [settings] Add internal links to [settings] file karl | server:running_the_server:etc_crossfire_configuration_files [2025/04/18 13:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== / | ====== / | ||
+ | List of files found in the {prefix}/ | ||
+ | FIXME: These config files ought to have some //.CFG// or //.CONF// file_name.extension on day ... :?: | ||
===== ban_file ===== | ===== ban_file ===== | ||
List of client IPs and user names to ban. Probably only useful if the user owns and deploys a dedicated IP. | List of client IPs and user names to ban. Probably only useful if the user owns and deploys a dedicated IP. | ||
+ | Read also about the DM command [[: | ||
===== dm_file ===== | ===== dm_file ===== | ||
- | List of NAMES : PASSWORDS : HOSTS for Dungeon Masters. | + | List of NAMES : PASSWORDS : HOSTS for Dungeon Masters. \\ |
+ | Each field accepts the wildcard (*) as __single__ char. \\ | ||
+ | '' | ||
+ | The HOST field seems to be a full IPv4 address like '' | ||
+ | Entries that do __not__ work : | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | :!: Not sure, when it comes to IPv6 addresses, which are not separated by a dot but by a colon ... | ||
===== exp_table ===== | ===== exp_table ===== | ||
Large comma separated list of numbers to reach levels. The default ends at level 115. Just add some more numbers, and there will be higher levels :?: or delete some zeros at the end of thy numbers, and become a hero very fast. \\ | Large comma separated list of numbers to reach levels. The default ends at level 115. Just add some more numbers, and there will be higher levels :?: or delete some zeros at the end of thy numbers, and become a hero very fast. \\ | ||
Line 12: | Line 35: | ||
===== forbid ===== | ===== forbid ===== | ||
- | Is it a new version of the ban_file ? - NO ! it should be named closing_hours | + | :!: This is a very misleading file. It says: |
- | Syntax | + | ># This file lets you limit playing time. Example: |
- | Example | + | >Mon 8-12 |
- | Seems to accept single numbers without | + | >msg |
+ | >Playing is forbidden during working hours. | ||
+ | Which would suggest, that players are getting a forced log out and new connections or login requests are denied with a message //msg// . \\ | ||
+ | But instead | ||
+ | |||
+ | In //static void init_startup(void)// | ||
+ | <code c> | ||
+ | if (forbid_play()) { /* Maybe showing highscore | ||
+ | LOG(llevError, | ||
+ | exit(-1); | ||
+ | </ | ||
+ | The function // | ||
+ | <code c> | ||
+ | int forbid_play(void) | ||
+ | #if !defined(_IBMR2) && !defined(___IBMR2) && defined(PERM_FILE) | ||
+ | |||
+ | if (!strncmp (buf, " | ||
+ | if (forbit) | ||
+ | while (fgets (buf, MAX_BUF, fp)) /* print message */ | ||
+ | fputs (buf, logfile); | ||
+ | break; | ||
+ | |||
+ | } else if (sscanf (buf, "%s %d%*c%d\n", day, &start, &stop) != 3) { | ||
+ | LOG(llevDebug, | ||
+ | continue; | ||
+ | } | ||
+ | |||
+ | for (i=0; i< 7; i++) { | ||
+ | if (!strncmp (buf, days[i], 3) && (tm->tm_wday == i) && | ||
+ | (tm-> | ||
+ | forbit = 1; | ||
+ | return forbit; | ||
+ | #else | ||
+ | | ||
+ | #endif | ||
+ | </ | ||
+ | This //forbid// file is defined in // | ||
+ | In opposite to the [[:arch:]] and [[:maps:]] files, it does not need an //endmsg// entry. | ||
+ | |||
+ | This forbid file would make " | ||
+ | FIXME: The server should re-read | ||
+ | ===== shutdown ===== | ||
+ | Similar as for the [[#forbid]] file : When the [[:server]] at it's initial start finds that file in it's config folder, then it exits with an exitcode 1 , printing the content of that file . | ||
+ | |||
+ | The code for processing the // | ||
+ | // | ||
+ | <code c> | ||
+ | #ifdef SHUTDOWN_FILE | ||
+ | sprintf(buf," | ||
+ | if ((fp = open_and_uncompress(buf, | ||
+ | while (fgets(buf, MAX_BUF-1, fp) != NULL) | ||
+ | printf(" | ||
+ | close_and_delete(fp, | ||
+ | exit(1); | ||
+ | } | ||
+ | #endif | ||
+ | </ | ||
+ | The // | ||
+ | It could probably make sense to manually disable the SHUTDOWN_FILE definition before [[:server: | ||
+ | |||
+ | Example " | ||
+ | > | ||
+ | > | ||
+ | >Bye Bye ... | ||
+ | :!: Here is some kind of abuse possible, by people on a shared machine might just create such a shutdown file, to confuse, anger or trouble other users, who are playing Crossfire regularly on that machine. | ||
===== Informational Files ===== | ===== Informational Files ===== | ||
Send to the client, when the client connects to the server. \\ | Send to the client, when the client connects to the server. \\ | ||
Line 33: | Line 120: | ||
Large file with around 40 possible entries; now has it it's own page here on the wiki : [[settings]] . | Large file with around 40 possible entries; now has it it's own page here on the wiki : [[settings]] . | ||
- | Known setting variable names, listed in alphabetical order : | + | Known setting variable names, listed in alphabetical order . |
- | - balanced_stat_loss | + | //True// and //False// entries are case insensitive read by [[https:// |
- | - casting_time | + | Function that processes those : // |
- | - create_home_portals | + | '' |
- | - death_penalty_levels | + | '' |
- | - death_penalty_percentage | + | - [[settings#balanced_stat_loss]] TRUE | FALSE |
- | - dm_mail monster@monstermail.monster | + | - [[settings#casting_time]] TRUE | FALSE |
- | - dynamiclevel 5 | + | - [[settings#create_home_portals]] TRUE | FALSE |
- | - explore_mode | + | - [[settings#death_penalty_levels]] Integer 0 - 255 |
+ | - [[settings#death_penalty_percentage]] Integer 0 - 100 | ||
+ | - [[settings#dm_mail]] monster@monstermail.master | ||
+ | - [[settings#dynamiclevel]] Integer 0 | >= 1 ( old : 0 | lesser equal 5 , see [[dev: | ||
+ | - [[settings#explore_mode]] TRUE | FALSE | ||
- [[settings# | - [[settings# | ||
- | - item_power_factor | + | - [[settings#item_power_factor]] FLOAT >= 0 |
- | - log_timestamp TRUE | + | - [[settings#log_timestamp]] TRUE | FALSE |
- | - log_timestamp_format %y-%m-%d %H:%M:%S | + | - [[settings#log_timestamp_format]] Default: |
- | - metaserver_comment Test server port 11100 | + | - [[settings#metaserver_comment]] Your comment, ex //Test server port 11111// |
- | - metaserver_host | + | - [[settings#metaserver_host]] Your.Hostname.Where or your IP |
- | - metaserver_notification | + | - [[settings#metaserver_notification]] On | Off |
- | - metaserver_port 13326 | + | - [[settings#metaserver_port]] Integer |
- | - metaserver_server crossfire.real-time.com | + | - [[settings#metaserver_server]] crossfire.real-time.com |
- | - motd motd | + | - [[settings#motd]] FILENAME, relative path, of the [[# |
- | - no_player_stealing | + | - [[settings#no_player_stealing]] TRUE | FALSE |
- | - permanent_experience_percentage | + | - [[settings#permanent_experience_percentage]] Integer 0 - 100 |
- | - pk_luck_penalty | + | - [[settings#pk_luck_penalty]] sint16 -100 - 100 |
- | - port 11100 | + | - [[settings#port]] Your Port Number, Integer 1 - 65535, since incl. v1.11.0, until at least v1.12 1 - 32765, with a check if user root and below 1024 |
- | - real_wiz | + | - [[settings#real_wiz]] TRUE | FALSE |
- | - recycle_tmp_maps | + | - [[settings#recycle_tmp_maps]] TRUE | FALSE |
- | - resurrection | + | - [[settings#resurrection]] TRUE | FALSE |
- | - search_items | + | - [[settings#search_items]] TRUE | FALSE |
- | - set_friendly_fire | + | - [[settings# |
- | - set_title | + | - [[settings#set_title]] True | FALSE |
- | - spell_encumbrance | + | - [[settings#spell_encumbrance]] TRUE | FALSE |
- | - spell_failure_effects | + | - [[settings#spell_failure_effects]] TRUE | FALSE |
- | - spellpoint_level_depend | + | - [[settings#spellpoint_level_depend]] TRUE | FALSE |
- | - stat_loss_on_death | + | - [[settings#stat_loss_on_death]] TRUE | FALSE |
- | - who_format %N %T%t%n Level %l Flags %h%d%a%b%n < | + | - [[settings#who_format]] String to print for the player command [[: |
- | - who_wiz_format %N %T%t%h%d%b%nLevel %l < | + | - [[settings#who_wiz_format]] String to print for the [[: |
- | - worldmapstartx | + | - [[settings# |
- | - worldmapstarty | + | - [[settings#worldmapstarty]] Integer >= 0 |
- | - worldmaptilesizex | + | - [[settings#worldmaptilesizex]] Integer >= 1 |
- | - worldmaptilesizey | + | - [[settings# |
- | - worldmaptilesx | + | - [[settings#worldmaptilesx]] Integer >= 1 |
- | - worldmaptilesy | + | - [[settings#worldmaptilesy]] Integer >= 1 |
server/running_the_server/etc_crossfire_configuration_files.1520009444.txt.gz · Last modified: (external edit)