The server keeps track of every player ID that ever connected successfully. This database stores the last names and IPs used by the player and the last countries the connections came from. Some stats are counted, like "time connected" and "total tks". Most importantly, the database stores rights (like admin) and restrictions (like ban). All rights and restrictions are kept as dates (or timecodes), so, for example, if your ban date is in the future, you are banned - and if it's in the past, you can play. The collected stats are meant to help server owners at managing players - especially, if they want to give someone admin rights. The database is periodically saved to a file and read from that file on startup. The default file is config/servervita.cfg and one backup is kept in config/servervita_bak.cfg. During server start, if the regular file can't be loaded, the backup is tried instead. While the server is running, it checks periodically for a file named config/servervita_update.cfg, and if the file exists, it is renamed to a backup filename including a timecode and read and merged into the database. The automatic rename makes sure, that a file is only read once. Using such updates, a server owner can easily give several people admin rights or for example, add clan tags for a whole list of IDs. (Yes, the database also stores a clan tag for every ID...) The database also stores two short comments for every ID. One can only be read by server admins, but the other one is public. The public reason, for example, can state a reason for a ban. One database record takes up 264 bytes of RAM. During autosave, accounts, that have not been used for a specified time (default 12 months), will not be written. After a server restart, those old records will be gone. Currently, there is no process in place, to also clean up old records from RAM. Maybe, that'll be added later...
81 lines
2.6 KiB
INI
81 lines
2.6 KiB
INI
// serverparameters.cfg
|
|
//
|
|
// parameters from this file are read once per minute by the server
|
|
// and are effective immediately
|
|
|
|
// each setting consists of a keyword and a value, written like this: keyword:value
|
|
// there are no spaces allowed between keyword and value
|
|
// using two colons (keyword::value) activates rich-text filtering for the value
|
|
|
|
|
|
|
|
// **** Server setup settings ****
|
|
|
|
// auth_verify_ip Verify server IP reported by the client during auth
|
|
// integer [0..1], default 0, 0:disabled, 1:enabled
|
|
auth_verify_ip:0
|
|
|
|
// mandatory_auth Enforce IDs for all clients even on unlisted server/LAN game
|
|
// integer [0..1], default 1, 0:disabled, 1:enabled
|
|
mandatory_auth:1
|
|
|
|
// vitaautosave Vita file autosave interval in minutes (0: only when server is empty)
|
|
// integer [0..1440], default 10
|
|
vitaautosave:10
|
|
|
|
// vitamaxage Omit vitas from autosave, if the last login has been more than the specified number of months ago
|
|
// integer [3..120], default 12
|
|
vitamaxage:12
|
|
|
|
|
|
// **** Maprot settings ****
|
|
|
|
// gamepenalty_cutoff Number of minutes to remember that a map+mode combination has been played
|
|
// integer [30..120], default 60
|
|
gamepenalty_cutoff:60
|
|
|
|
// gamepenalty_random Amount of random weight to add to each map+mode combination
|
|
// integer [1..60], default 1
|
|
gamepenalty_random:1
|
|
|
|
// mappenalty_cutoff Number of minutes to remember that a map has been played
|
|
// integer [45..240], default 60
|
|
mappenalty_cutoff:60
|
|
|
|
// mappenalty_weight Influence of play history of a map (-100: no influence, 0: normal, 100: high influence)
|
|
// integer [-100..100], default 0
|
|
mappenalty_weight:0
|
|
|
|
|
|
// **** Debug switches ****
|
|
|
|
// dumpmaprot dump maprot parameters for all maps (once, to logs/debug/maprot_debug_verbose.txt)
|
|
// integer [0..1], default 1, 0:disabled, 1:enabled
|
|
dumpmaprot:1
|
|
|
|
// dumpparameters dump server parameters when updated
|
|
// integer [0..1], default 0, 0:disabled, 1:enabled
|
|
dumpparameters:0
|
|
|
|
// dumpsuggestions dump maprot suggestions whenever recalculated
|
|
// integer [0..1], default 1, 0:disabled, 1:enabled
|
|
dumpsuggestions:1
|
|
|
|
|
|
// **** Commandline switch overrides ****
|
|
|
|
// logthreshold_console Console log level
|
|
// integer [0..5], default 2, 0:debug, 1:verbose, 2:info, 3:warning, 4:error, 5:disabled
|
|
//logthreshold_console:2
|
|
|
|
// logthreshold_file Logfile log level
|
|
// integer [0..5], default 2, 0:debug, 1:verbose, 2:info, 3:warning, 4:error, 5:disabled
|
|
//logthreshold_file:2
|
|
|
|
// logthreshold_syslog Syslog log level
|
|
// integer [0..5], default 5, 0:debug, 1:verbose, 2:info, 3:warning, 4:error, 5:disabled
|
|
//logthreshold_syslog:5
|
|
|
|
|
|
|