Crossfire Server, Branch 1.12
R12190
|
Server settings. More...
#include <global.h>
Data Fields | |
int | allow_broken_converters |
If set, converters will work even if price of generated item is higher than the price of converted items. | |
int | allow_denied_spells_writing |
If set, players can write spells they can't cast. | |
const char * | archetypes |
Name of the archetypes file - libdir is prepended. | |
int | argc |
Parameters that were passed to the program. | |
char ** | argv |
Only used by xio.c, so will go away at some time. | |
int | armor_max_enchant |
Maximum number of times an armor can be enchanted. | |
int | armor_speed_improvement |
Speed improvement. | |
uint8 | armor_speed_linear |
If 1, speed improvement is linear, else exponantiel. | |
uint8 | armor_weight_linear |
If 1, weight reduction is linear, else exponantiel. | |
int | armor_weight_reduction |
Weight reduction per enchantment. | |
uint8 | balanced_stat_loss |
If true, Death stat depletion based on level etc. | |
uint8 | casting_time |
It takes awhile to cast a spell. | |
const char * | confdir |
Configuration files. | |
uint8 | create_home_portals |
If 1, can create portals in unique maps (apartments) | |
uint16 | csport |
Port for new client/server. | |
uint8 | daemonmode |
If true, detach and become daemon. | |
const char * | datadir |
Read only data files. | |
uint8 | death_penalty_level |
How many levels worth of exp may be lost on one death. | |
uint8 | death_penalty_ratio |
Hhow much exp should be lost at death. | |
LogLevel | debug |
Default debugging level. | |
char | dm_mail [MAX_BUF] |
DM's Email address. | |
const char * | dumparg |
Additional argument for some dump functions. | |
uint8 | dumpvalues |
Set to dump various values/tables. | |
char * | emergency_mapname |
Map to return players to in emergency. | |
uint16 | emergency_x |
uint16 | emergency_y |
Coordinates to use on that map. | |
uint8 | explore_mode |
Explore mode allowed? | |
uint8 | fastclock |
If true, clock goes warp 9. | |
float | item_power_factor |
See note in setings file. | |
const char * | localdir |
Read/write data files. | |
int | log_timestamp |
If set, log will comport a timestamp. | |
char * | log_timestamp_format |
Format for timestap, if log_timestamp is set. | |
const char * | logfilename |
Logfile to use. | |
const char * | mapdir |
Where the map files are. | |
sint16 | max_level |
This is read out of exp_table. | |
char | meta_comment [MAX_BUF] |
Comment we send to the metaserver. | |
char | meta_host [MAX_BUF] |
Hostname of this host. | |
unsigned int | meta_on:1 |
True if we should send updates. | |
uint16 | meta_port |
Port number to use for updates. | |
char | meta_server [MAX_BUF] |
Hostname/ip addr of the metaserver. | |
char | motd [MAX_BUF] |
Name of the motd file. | |
const char * | news |
Name of news file. | |
uint8 | no_player_stealing |
If 1, can not steal from other players. | |
uint8 | not_permadeth |
If true, death is non-permament. | |
uint8 | permanent_exp_ratio |
How much exp should be 'permenant' and unable to be lost. | |
uint8 | personalized_blessings |
If 1, blessed weapons get an owner and a willpower value. | |
sint16 | pk_luck_penalty |
Amount by which player luck is reduced if they PK. | |
sint64 | pk_max_experience |
Maximum experience one can get for PKing. | |
int | pk_max_experience_percent |
Percentage of experience of victim the killer gets. | |
const char * | playerdir |
Where the player files are. | |
uint8 | real_wiz |
Use mud-like wizards. | |
uint8 | recycle_tmp_maps |
Re-use tmp maps. | |
const char * | regions |
Name of the regions file - libdir is prepended. | |
int | reset_loc_time |
Number of seconds to put player back at home. | |
uint8 | resurrection |
Ressurection possible w/ permadeth on. | |
const char * | rules |
Name of rules file. | |
uint8 | search_items |
Search_items command. | |
uint16 | set_friendly_fire |
Percent of damage done by peaceful player vs player damage. | |
uint8 | set_title |
Players can set thier title. | |
uint8 | simple_exp |
If true, use the simple experience system. | |
uint8 | spell_encumbrance |
Encumbrance effects spells. | |
uint8 | spell_failure_effects |
Nasty backlash to spell failures. | |
uint8 | spellpoint_level_depend |
Spell costs go up with level. | |
uint8 | stat_loss_on_death |
If true, chars lose a random stat when they die. | |
const char * | templatedir |
Directory for the template map. | |
const char * | tmpdir |
Directory to use for temporary files. | |
const char * | treasures |
Location of the treasures file. | |
const char * | uniquedir |
Directory for the unique items. | |
char | who_format [MAX_BUF] |
The format that the who command should use. | |
char | who_wiz_format [MAX_BUF] |
The format that the who command should use when called by a dm. | |
uint32 | worldmapstartx |
Starting x tile for the worldmap. | |
uint32 | worldmapstarty |
Starting y tile for the worldmap. | |
uint32 | worldmaptilesizex |
Number of squares wide in a wm tile. | |
uint32 | worldmaptilesizey |
Number of squares high in a wm tile. | |
uint32 | worldmaptilesx |
Number of tiles wide the worldmap is. | |
uint32 | worldmaptilesy |
Number of tiles high the worldmap is. |
If set, converters will work even if price of generated item is higher than the price of converted items.
Definition at line 405 of file global.h.
Referenced by convert_item(), and load_settings().
If set, players can write spells they can't cast.
Definition at line 404 of file global.h.
Referenced by load_settings(), and write_scroll().
const char* Settings::archetypes |
Name of the archetypes file - libdir is prepended.
Definition at line 338 of file global.h.
Referenced by cctk_init_std_archetypes(), init_environ(), load_archetypes(), and set_archetypes().
int Settings::argc |
Parameters that were passed to the program.
Definition at line 331 of file global.h.
Referenced by server_main().
char** Settings::argv |
Only used by xio.c, so will go away at some time.
Definition at line 332 of file global.h.
Referenced by server_main().
Maximum number of times an armor can be enchanted.
Definition at line 394 of file global.h.
Referenced by improve_armour(), and load_settings().
Speed improvement.
Definition at line 397 of file global.h.
Referenced by improve_armour(), and load_settings().
If 1, speed improvement is linear, else exponantiel.
Definition at line 398 of file global.h.
Referenced by improve_armour(), and load_settings().
If 1, weight reduction is linear, else exponantiel.
Definition at line 396 of file global.h.
Referenced by improve_armour(), and load_settings().
Weight reduction per enchantment.
Definition at line 395 of file global.h.
Referenced by improve_armour(), and load_settings().
If true, Death stat depletion based on level etc.
Definition at line 349 of file global.h.
Referenced by kill_player(), and load_settings().
It takes awhile to cast a spell.
Definition at line 358 of file global.h.
Referenced by attack_ob_simple(), cast_spell(), clear_object(), load_settings(), process_events(), process_players1(), and rangetostring().
const char* Settings::confdir |
Configuration files.
Definition at line 333 of file global.h.
Referenced by cfapi_system_directory(), checkbanned(), checkdm(), display_motd(), forbid_play(), init_experience(), init_startup(), load_settings(), metaserver2_init(), send_news(), send_rules(), and set_confdir().
If 1, can create portals in unique maps (apartments)
Definition at line 400 of file global.h.
Referenced by cast_create_town_portal(), and load_settings().
Port for new client/server.
Definition at line 326 of file global.h.
Referenced by init_server(), metaserver2_init(), and set_csport().
If true, detach and become daemon.
Definition at line 330 of file global.h.
Referenced by init(), and set_daemon().
const char* Settings::datadir |
Read only data files.
Definition at line 334 of file global.h.
Referenced by cctk_setdatadir(), cfapi_system_directory(), command_help(), compile_info(), create_pathname(), find_maps(), find_style(), help_topics(), i18n_init(), init_anim(), init_artifacts(), init_attackmess(), init_emergency_mappath(), init_environ(), init_formulae(), init_msgfile(), init_races(), init_regions(), load_archetypes(), load_materials(), load_treasures(), read_bmap_names(), read_client_images(), read_face_data(), read_smooth(), and set_datadir().
How many levels worth of exp may be lost on one death.
Definition at line 348 of file global.h.
Referenced by apply_death_exp_penalty(), and load_settings().
Hhow much exp should be lost at death.
Definition at line 347 of file global.h.
Referenced by apply_death_exp_penalty(), and load_settings().
Default debugging level.
Definition at line 327 of file global.h.
Referenced by command_debug(), LOG(), main(), set_debug(), set_mondebug(), and unset_debug().
char Settings::dm_mail[MAX_BUF] |
DM's Email address.
Definition at line 369 of file global.h.
Referenced by init(), and load_settings().
const char* Settings::dumparg |
Additional argument for some dump functions.
Definition at line 329 of file global.h.
Referenced by init_beforeplay(), and set_dumpmont().
Set to dump various values/tables.
Definition at line 328 of file global.h.
Referenced by init_beforeplay(), set_dumpmon1(), set_dumpmon2(), set_dumpmon3(), set_dumpmon4(), set_dumpmon5(), set_dumpmon6(), set_dumpmon7(), set_dumpmon8(), set_dumpmon9(), and set_dumpmont().
Map to return players to in emergency.
Definition at line 388 of file global.h.
Referenced by enter_exit(), enter_player_savebed(), free_globals(), init_emergency_mappath(), kill_player(), and save_player().
Definition at line 389 of file global.h.
Referenced by enter_exit(), enter_player_savebed(), init_emergency_mappath(), and kill_player().
Coordinates to use on that map.
Definition at line 389 of file global.h.
Referenced by enter_exit(), enter_player_savebed(), init_emergency_mappath(), and kill_player().
Explore mode allowed?
Definition at line 361 of file global.h.
Referenced by command_explore(), and load_settings().
If true, clock goes warp 9.
Definition at line 386 of file global.h.
Referenced by block_until_new_connection(), and load_settings().
See note in setings file.
Definition at line 392 of file global.h.
Referenced by apply_special(), improve_armour(), improve_weapon(), and load_settings().
const char* Settings::localdir |
Read/write data files.
Definition at line 335 of file global.h.
Referenced by add_score(), cast_create_town_portal(), cfapi_system_directory(), check_login(), checkbanned(), command_banish(), command_players(), compile_info(), create_items_path(), create_overlay_pathname(), create_template_pathname(), dead_player(), delete_character(), display_high_score(), enter_exit(), enter_unique_map(), init_book_archive(), init_clocks(), init_environ(), is_legal_2ways_exit(), key_change_class(), key_confirm_quit(), read_map_log(), resurrect_player(), save_player(), set_localdir(), verify_player(), write_book_archive(), write_map_log(), and write_todclock().
If set, log will comport a timestamp.
Definition at line 407 of file global.h.
Referenced by load_settings(), and LOG().
Format for timestap, if log_timestamp is set.
Definition at line 408 of file global.h.
Referenced by load_settings(), and LOG().
const char* Settings::logfilename |
Logfile to use.
Definition at line 325 of file global.h.
Referenced by cctk_setlog(), compile_info(), init_globals(), LOG(), main(), set_daemon(), and set_logfile().
const char* Settings::mapdir |
Where the map files are.
Definition at line 337 of file global.h.
Referenced by cfapi_system_directory(), create_overlay_pathname(), create_pathname(), find_maps(), init_emergency_mappath(), init_environ(), init_regions(), and set_mapdir().
This is read out of exp_table.
Definition at line 391 of file global.h.
Referenced by dragon_eat_flesh(), dump_experience(), fix_object(), init_experience(), level_exp(), player_lvl_adj(), query_cost(), and send_exp_table().
Comment we send to the metaserver.
Definition at line 378 of file global.h.
Referenced by load_settings(), and metaserver_update().
char Settings::meta_host[MAX_BUF] |
Hostname of this host.
Definition at line 376 of file global.h.
Referenced by load_settings(), metaserver_init(), and metaserver_update().
unsigned int Settings::meta_on |
True if we should send updates.
Definition at line 374 of file global.h.
Referenced by load_settings(), and metaserver_init().
Port number to use for updates.
Definition at line 377 of file global.h.
Referenced by load_settings(), and metaserver_init().
char Settings::meta_server[MAX_BUF] |
Hostname/ip addr of the metaserver.
Definition at line 375 of file global.h.
Referenced by load_settings(), and metaserver_init().
char Settings::motd[MAX_BUF] |
Name of the motd file.
Definition at line 366 of file global.h.
Referenced by display_motd(), and load_settings().
const char* Settings::news |
If 1, can not steal from other players.
Definition at line 399 of file global.h.
Referenced by attempt_steal(), and load_settings().
If true, death is non-permament.
Definition at line 350 of file global.h.
Referenced by kill_player(), and load_settings().
How much exp should be 'permenant' and unable to be lost.
Definition at line 346 of file global.h.
Referenced by add_player_exp(), calc_perm_exp(), check_exp_loss(), load_settings(), and show_skills().
If 1, blessed weapons get an owner and a willpower value.
Definition at line 401 of file global.h.
Referenced by apply_special(), god_enchants_weapon(), and load_settings().
Amount by which player luck is reduced if they PK.
Definition at line 345 of file global.h.
Referenced by kill_object(), and load_settings().
sint64 Settings::pk_max_experience |
Maximum experience one can get for PKing.
Ignore if negative.
Definition at line 402 of file global.h.
Referenced by kill_object(), and load_settings().
Percentage of experience of victim the killer gets.
Definition at line 403 of file global.h.
Referenced by kill_object(), and load_settings().
const char* Settings::playerdir |
Where the player files are.
Definition at line 336 of file global.h.
Referenced by cfapi_system_directory(), check_login(), command_players(), compile_info(), dead_player(), delete_character(), enter_unique_map(), init_environ(), key_change_class(), key_confirm_quit(), resurrect_player(), save_player(), set_playerdir(), and verify_player().
Use mud-like wizards.
Definition at line 359 of file global.h.
Referenced by command_abil(), command_addexp(), command_create(), command_nowiz(), command_patch(), load_settings(), pay_for_item(), and pick_up_object().
Re-use tmp maps.
Definition at line 360 of file global.h.
Referenced by clean_tmp_files(), load_settings(), and swap_map().
const char* Settings::regions |
Name of the regions file - libdir is prepended.
Definition at line 339 of file global.h.
Referenced by init_regions(), and set_regions().
Number of seconds to put player back at home.
Definition at line 352 of file global.h.
Referenced by check_login().
Ressurection possible w/ permadeth on.
Definition at line 354 of file global.h.
Referenced by kill_player(), and load_settings().
const char* Settings::rules |
Search_items command.
Definition at line 355 of file global.h.
Referenced by check_login(), check_pick(), command_search_items(), fix_object(), and load_settings().
Percent of damage done by peaceful player vs player damage.
Definition at line 363 of file global.h.
Referenced by hit_player(), and load_settings().
Players can set thier title.
Definition at line 353 of file global.h.
Referenced by check_login(), command_title(), key_confirm_quit(), kill_player(), load_settings(), and save_player().
If true, use the simple experience system.
Definition at line 351 of file global.h.
Referenced by calc_skill_exp(), kill_object(), and load_settings().
Encumbrance effects spells.
Definition at line 356 of file global.h.
Referenced by fix_object(), and load_settings().
Nasty backlash to spell failures.
Definition at line 357 of file global.h.
Referenced by cast_spell(), load_settings(), scroll_failure(), scroll_type_apply(), spell_failure(), and spellbook_type_apply().
Spell costs go up with level.
Definition at line 362 of file global.h.
Referenced by load_settings(), and SP_level_spellpoint_cost().
If true, chars lose a random stat when they die.
Definition at line 344 of file global.h.
Referenced by kill_player(), and load_settings().
const char* Settings::templatedir |
Directory for the template map.
Definition at line 342 of file global.h.
Referenced by create_template_pathname(), init_environ(), and set_templatedir().
const char* Settings::tmpdir |
Directory to use for temporary files.
Definition at line 343 of file global.h.
Referenced by cfapi_system_directory(), compile_info(), init_environ(), save_map(), save_player(), and set_tmpdir().
const char* Settings::treasures |
Location of the treasures file.
Definition at line 340 of file global.h.
Referenced by cctk_init_std_archetypes(), init_environ(), load_treasures(), and set_treasures().
const char* Settings::uniquedir |
Directory for the unique items.
Definition at line 341 of file global.h.
Referenced by cfapi_system_directory(), compile_info(), create_items_path(), init_environ(), and set_uniquedir().
char Settings::who_format[MAX_BUF] |
The format that the who command should use.
Definition at line 364 of file global.h.
Referenced by list_players(), and load_settings().
The format that the who command should use when called by a dm.
Definition at line 365 of file global.h.
Referenced by list_players(), and load_settings().
Starting x tile for the worldmap.
Definition at line 380 of file global.h.
Referenced by command_loadtest(), and load_settings().
Starting y tile for the worldmap.
Definition at line 381 of file global.h.
Referenced by command_loadtest(), and load_settings().
Number of squares wide in a wm tile.
Definition at line 384 of file global.h.
Referenced by load_settings().
Number of squares high in a wm tile.
Definition at line 385 of file global.h.
Referenced by load_settings().
Number of tiles wide the worldmap is.
Definition at line 382 of file global.h.
Referenced by command_loadtest(), and load_settings().
Number of tiles high the worldmap is.
Definition at line 383 of file global.h.
Referenced by command_loadtest(), and load_settings().