Skip to content

Commit

Permalink
Подтираем косячки
Browse files Browse the repository at this point in the history
  • Loading branch information
Danistans committed Sep 29, 2024
1 parent c7aa388 commit cc63111
Show file tree
Hide file tree
Showing 11 changed files with 559 additions and 0 deletions.
43 changes: 43 additions & 0 deletions config/example/admin_ranks.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
########################################################################################
# ADMIN RANK DEFINES #
# The format of this is very simple. Rank name goes first. #
# Rank is CASE-SENSITIVE, all punctuation will be stripped so spaces don't matter. #
# Each rank is then followed by keywords with the prefix "+". #
# These keywords represent groups of verbs and abilities which are given to that rank. #
# +@ (or +prev) is a special shorthand which adds all the rights of the rank above it. #
# Ranks with no keywords will just be given the most basic verbs and abilities ~Carn #
########################################################################################
# PLEASE NOTE: depending on config options, some abilities will be unavailable regardless if you have permission to use them!
# ALSO NOTE: this is a WorkInProgress at the moment. Most of this is just arbitrarily thrown in whatever group because LoadsaWork2Do+LittleTime.
# I'll be doing more moving around as feedback comes in. So be sure to check the notes after updates.

# KEYWORDS:
# +ADMIN = general admin tools, verbs etc
# +FUN = events, other event-orientated actions. Access to the fun secrets in the secrets panel.
# +BAN = the ability to ban, jobban and fullban
# +STEALTH = the ability to stealthmin (make yourself appear with a fake name to everyone but other admins
# +POSSESS = the ability to possess objects
# +REJUV (or +REJUVINATE) = the ability to heal, respawn, modify damage and use godmode
# +BUILD (or +BUILDMODE) = the ability to use buildmode
# +SERVER = higher-risk admin verbs and abilities, such as those which affect the server configuration.
# +DEBUG = debug tools used for diagnosing and fixing problems. It's useful to give this to coders so they can investigate problems on a live server.
# +VAREDIT = everyone may view viewvars/debugvars/whatever you call it. This keyword allows you to actually EDIT those variables.
# +RIGHTS (or +PERMISSIONS) = allows you to promote and/or demote people.
# +SOUND (or +SOUNDS) = allows you to upload and play sounds
# +SPAWN (or +CREATE) = mob transformations, spawning of most atoms including mobs (high-risk atoms, e.g. blackholes, will require the +FUN flag too)
# +EVERYTHING (or +HOST or +ALL) = Simply gives you everything without having to type every flag

Admin Observer

Admin Candidate +ADMIN
Trial Admin +@ +SPAWN +REJUV +VAREDIT +BAN
Badmin +@ +POSSESS +BUILDMODE +SERVER +FUN
Game Admin +@ +STEALTH +SOUNDS +DEBUG +PERMISSIONS
Game Master +EVERYTHING
Head Admin +EVERYTHING
Retired Admin +ADMIN +STEALTH

Host +EVERYTHING

Developer +DEBUG +VAREDIT +SERVER +SPAWN +REJUV +POSSESS +BUILDMODE
Dev Mod +@ +MOD
9 changes: 9 additions & 0 deletions config/example/admins.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
######################################################################
# Basically, ckey goes first. Rank goes after the "-" #
# Case is not important for ckey. #
# Case IS important for the rank. However punctuation/spaces are not #
# Ranks can be anything defined in admin_ranks.txt ~Carn #
######################################################################

# not_a_user - Admin
Danistans - Host
317 changes: 317 additions & 0 deletions config/example/config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,317 @@
## Server name: This appears at the top of the screen in-game. In this case it will read "tgstation: station_name" where station_name is the randomly generated name of the station for the round. Remove the # infront of SERVERNAME and replace 'tgstation' with the name of your choice
# SERVERNAME spacestation13

## Add a # infront of this if you want to use the SQL based admin system, the legacy system uses admins.txt. You need to set up your database to use the SQL based system.
ADMIN_LEGACY_SYSTEM

## Unhash this entry to have certain jobs require your account to be at least a certain number of days old to select. You can configure the exact age requirement for different jobs by editing
## the minimal_player_age variable in the files in folder /code/game/jobs/job/.. for the job you want to edit. Set minimal_player_age to 0 to disable age requirement for that job.
## REQUIRES the database set up to work. Keep it hashed if you don't have a database set up.
## NOTE: If you have just set-up the database keep this DISABLED, as player age is determined from the first time they connect to the server with the database up. If you just set it up, it means
## you have noone older than 0 days, since noone has been logged yet. Only turn this on once you have had the database up for 30 days.
#USE_AGE_RESTRICTION_FOR_JOBS

##Unhash this to use real in-game minutes for certain jobs (USE_AGE_RESTRICTION_FOR_JOBS must be enabled too)
#USE_INGAME_MINUTES_RESTRICTION_FOR_JOBS

## log stuff, see configuration.dm for descriptions
LOG_OOC
LOG_SAY
LOG_ADMIN
LOG_ADMINCHAT
LOG_ACCESS
LOG_GAME
LOG_VOTE
LOG_WHISPER
LOG_EMOTE
LOG_ATTACK
LOG_PDA
LOG_RUNTIME
LOG_SQL_ERROR
LOG_INITIALIZATION
LOG_QDEL
LOG_ASSET
LOG_TGUI
# LOG_JS_ERROR
# LOG_HREFS
# LOG_ADMINWARN ## Also duplicates a bunch of other messages.

## sql switching
# SQL_ENABLED

## disconnect players who did nothing during 10 minutes or AFK_TIME_BRACKET time
# KICK_INACTIVE

## Minutes until user will be kicked for being AFK
# AFK_TIME_BRACKET 10

## probablities for game modes chosen in bundles of modes
##
## default probablity is 100, increase to make that mode more likely to be picked
## set to 0 to disable that mode

# PROBABILITY EXTENDED 40

## Hash out to disable random events during the round.
ALLOW_RANDOM_EVENTS 1

## if amount of traitors scales or not
TRAITOR_SCALING 1

## if objectives are disabled
#OBJECTIVES_DISABLED

## make ERT's be only called by admins
#ERT_ADMIN_ONLY

## If security is prohibited from being most antagonists
#PROTECT_ROLES_FROM_ANTAGONIST

## Comment this out to stop admins being able to choose their personal ooccolor
ALLOW_ADMIN_OOCCOLOR

## time period (deciseconds) which voting session will last (default 1 minute)
VOTE_PERIOD 1200

## Allow ghosts to see antagonist through AntagHUD
ALLOW_ANTAG_HUD

## If ghosts use antagHUD they are no longer allowed to join the round.
ANTAG_HUD_RESTRICTED

## allow AI job
ALLOW_AI 1

## disable abandon mob
# NORESPAWN

## set a hosted by name for unix platforms
#HOSTEDBY yournamehere

## Uncomment this to stop people connecting to your server without a registered ckey. (i.e. guest-* are all blocked from connecting)
GUEST_BAN

## Set to jobban everyone who's key is not listed in data/whitelist.txt from Captain, HoS, HoP, CE, RD, CMO, Warden, Security, Detective, and AI positions.
## Uncomment to 1 to jobban, leave commented out to allow these positions for everyone (but see GUEST_JOBBAN above and regular jobbans)
# USEWHITELIST

## set a server location for world reboot. Don't include the byond://, just give the address and port.
#SERVER server.net:port

## site address
# SITEURL http://example.com

## forum address
# FORUMURL http://example.com

## Wiki address
# WIKIURL http://example.com

## Server Rules address
# SERVER_RULES_URL http://example.com

## Discord invite address
# DISCORD_INVITE_URL http://example.com

## Ban appeals URL - usually for a forum or wherever people should go to contact your admins.
# BANAPPEALS http://example.com

##Toggle for having jobs load up from the .txt
# LOAD_JOBS_FROM_TXT

##Remove the # mark infront of this to forbid admins from posssessing the singularity.
#FORBID_SINGULO_POSSESSION

## Remove the # to allow special 'Easter-egg' events on special holidays such as seasonal holidays and stuff like 'Talk Like a Pirate Day' :3 YAARRR
ALLOW_HOLIDAYS

##Defines the ticklag for the world. 0.9 is the normal one, 0.5 is smoother.
TICKLAG 0.4

## Comment this out to disable automuting
#AUTOMUTE_ON

## How long the delay is before the Away Mission gate opens. Default is half an hour.
GATEWAY_DELAY 18000

## Remove the # to give assistants maint access.
#ASSISTANT_MAINT

## Remove the # to make rounds which end instantly (Rev, Wizard, Malf) to continue until the shuttle is called or the station is nuked.
## Malf and Rev will let the shuttle be called when the antags/protags are dead.
#CONTINUOUS_ROUNDS

## Uncomment to restrict non-admins from using humanoid alien races
#USEALIENWHITELIST

## Uncomment this to enable job restrictions for xenos in occupation menu.
USE_ALIEN_JOB_RESTRICTION

## Access to aliens through played time.
ALIEN_AVAILABLE_BY_TIME SKRELL 10000
ALIEN_AVAILABLE_BY_TIME UNATHI 20000
ALIEN_AVAILABLE_BY_TIME TAJARAN 30000
ALIEN_AVAILABLE_BY_TIME DIONA 40000

##Remove the # to let ghosts spin chairs
#GHOST_INTERACTION

## A ghosts max view range if they are a BYOND guest or regular account
#GHOST_MAX_VIEW 10

## A ghosts max view range if they are a byond/patron/boosty supporter
#GHOST_MAX_VIEW_SUPPORTER 13

## Required time to respawn after death
#DEATHTIME_REQUIRED 18000

## Path to the python executable on the system. Leave blank for default.
## Default is "python" on Windows, "/usr/bin/env python2" on UNIX.
#PYTHON_PATH

## GitHub PAT with no scopes to increase rate limits of GitHub requests.
## Ignored when PYTHON_PATH is not set.
#GITHUB_TOKEN

## Expected round length in minutes
EXPECTED_ROUND_LENGTH 90

## The lower delay between events in minutes.
## Affect mundane, moderate, and major events respectively
EVENT_DELAY_LOWER 10;30;50

## The upper delay between events in minutes.
## Affect mundane, moderate, and major events respectively
EVENT_DELAY_UPPER 15;45;70

## The delay until the first time an event of the given severity runs in minutes.
## Unset setting use the EVENT_DELAY_LOWER and EVENT_DELAY_UPPER values instead.
#EVENT_CUSTOM_START_MUNDANE 10;15
#EVENT_CUSTOM_START_MODERATE 30;45
EVENT_CUSTOM_START_MAJOR 50;70

## Uncommen to allow ghosts to write in blood during Cult rounds.
ALLOW_CULT_GHOSTWRITER

## Sets the minimum number of cultists needed for ghosts to write in blood.
REQ_CULT_GHOSTWRITER 6

## place address for chat bridge
# CHAT_BRIDGE http://localhost:3000

## Media base URL - determines where to pull the jukebox playlist from.
# MEDIA_BASE_URL http://game2.tauceti.ru/media

## guard (geoip and stuff)
#GUARD_EMAIL [email protected]
#GUARD_ENABLED
#GUARD_AUTOBAN_TRESHHOLD 2
#GUARD_AUTOBAN_REASON We think you are a bad guy and block you because of this.
#GUARD_AUTOBAN_STICKY
# ISO 3166-1 codes for trusted
#GUARD_WHITELISTED_COUNTRY_CODES RU,UA,BY,KZ

## Uncomment to provide special actions for people from /config/donators.txt
#ALLOW_DONATORS

## Uncomment to provide special actions for Tau Ceti Station patrons
#ALLOW_TAUCETI_PATRONS

## Uncomment to provide special actions (same as for donators) for people with Byond Membership
#ALLOW_BYOND_MEMBERSHIP

## Your link to donat informations
#DONATE_INFO_URL http://you-url

## Uncomment this to enable checking for the cid randomizer dll. (disabled if database isn't enabled or connected)
# CHECK_RANDOMIZER

##BYOND version restrictions
##client with version < BYOND_VERSION_MIN will be kicked, < recommend - just warned
##by default will be used build RECOMMENDED_VERSION (latest compatible major version)
# BYOND_VERSION_MIN 514
# BYOND_VERSION_RECOMMEND 514

## Changelog link
CHANGELOG_LINK https://changelog.taucetistation.org

## Changelog hash link
CHANGELOG_HASH_LINK https://changelog.taucetistation.org/hash.txt

## Repository link
REPOSITORY_LINK https://github.com/TauCetiStation/TauCetiClassic

## Registration panic bunker won't allow user with registration date less than that. (format: year-month-day)
# REGISTRATION_PANIC_BUNKER_AGE 2000-1-1

## If user played more than this value (in minutes), bunker will let him in
# ALLOWED_BY_BUNKER_PLAYER_AGE 60

## Panic bunker configured by players limit. This value is a maximum number of players.
# CLIENT_LIMIT_PANIC_BUNKER_COUNT 60

## Link used by limit panic bunker to redirect a client
# CLIENT_LIMIT_PANIC_BUNKER_LINK byond://game.taucetistation.org:2507

## In ban mode bunker will block new users before they can join server (like bans). This will not check user registration date and will use only server player age. Can be used as whitelist for new players.
#BUNKER_BAN_MODE

## This will be used as ban message in ban mode
#BUNKER_BAN_MODE_MESSAGE Sorry, you can't play on this server, because we don't accept new players.<br/>Please, visit another our server.<br/>For more information visit taucetistation.org

## Replaces whatever map json file with maps/testmap.json to load testmap only.
## Saves alot of initialization time, since only centcomm and testmap will be loaded. For tests where map doesn't matter.
# SUMMON_TESTMAP

## Force map not to load junkyard
## Saves some initialization time
NO_JUNKYARD

## Force map not to load mine (asteroid)
## Saves some initialization time
# NO_MINE

## Force map not to load ruins and empty z_levels
## Saves some initialization time
# NO_SPACE_LEVELS

## Uncomment to enable byond profiler. Logs will be dropped in the round log folder.
## Keep in mind it can cause performance degradation.
# AUTO_PROFILE

## Uncomment to allow drastic performence enhancemet measures to turn on automatically once there are equal or more clients than the configured amount (will also prompt admin for veto)
# AUTO_LAG_SWITCH_POP 100

## Enables demo recordings, works slower on windows
# RECORD_REPLAYS

## Use persistent cache for better performance
## You will need to occasionally clean ./cache/persistent yourself from old files
## by removing folder or with ./script/clear_persistent_cache.sh
#USE_PERSISTENT_CACHE

## Run server in sandbox mode - everyone has admin permissions without logs, bans
## not recommended if you host server without virt box/docker/etc. and do not restrict clients access to server
# SANDBOX

## This config option disables OOC after round start, and enables it back after round end.
## Comment it out to disable such behaviour.
OOC_ROUND_ONLY

## TOPIC RATE LIMITING
## This allows you to limit how many topic calls (clicking on a interface window) the client can do in any given game second and/or game minute.
## Admins are exempt from these limits.
## Hitting the minute limit notifies admins.
## Set to 0 to disable.
SECOND_TOPIC_LIMIT 10

MINUTE_TOPIC_LIMIT 100

## This config option enables or disables deathmatch arena after round end.
DEATHMATCH_ARENA 1

## How long in seconds after which a hard delete is treated as causing lag. This can be a float and supports a precision as low as nanoseconds.
#HARD_DELETES_OVERRUN_THRESHOLD 0.5

## Once a typepath causes overrun from hard deletes this many times, stop hard deleting it on garbage collection failures. (set to 0 to disable)
#HARD_DELETES_OVERRUN_LIMIT 0
17 changes: 17 additions & 0 deletions config/example/dbconfig.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# MySQL Connection Configuration

# Server the MySQL database can be found at
# Examples: localhost, 200.135.5.43, www.mysqldb.com, etc.
ADDRESS localhost

# MySQL server port (default is 3306)
PORT 3306

# Database the population, death, karma, etc. tables may be found in
DATABASE tgstation

# Username/Login used to access the database
LOGIN mylogin

# Password used to access the database
PASSWORD mypassword
8 changes: 8 additions & 0 deletions config/example/donators.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Format:
# ckey
# OR
# ckey DD.MM.YY
#
# second parameter is optional expiration day

volas 22.12.22
Loading

0 comments on commit cc63111

Please sign in to comment.