mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 01:49:19 +00:00
* Find references fix. Made it go from taking years to hours Removed Datum based recursion, this was unneeded. Fixed it calling a proc for what ended up being a costly noop millions of times (this was a moderate speed up as it would call DoSearchVar on every fucking number or string or null in a things vars list.) Fixed it calling itself on the vars list. luckily it only checked keys, so this didn't stack overflow. I'm intentionally leaving the debugging stuff in right now so that its on the record somewhere. I'll remove that when I pr line by line profiling as its own separate thing * Remove debugging stuff * i forgot
84 lines
3.7 KiB
Plaintext
84 lines
3.7 KiB
Plaintext
#define DEBUG //Enables byond profiling and full runtime logs - note, this may also be defined in your .dme file
|
|
//Enables in-depth debug messages to runtime log (used for debugging)
|
|
//#define TESTING //By using the testing("message") proc you can create debug-feedback for people with this
|
|
//uncommented, but not visible in the release version)
|
|
|
|
#ifdef TESTING
|
|
//#define GC_FAILURE_HARD_LOOKUP //makes paths that fail to GC call find_references before del'ing.
|
|
//implies FIND_REF_NO_CHECK_TICK
|
|
|
|
//#define FIND_REF_NO_CHECK_TICK //Sets world.loop_checks to false and prevents find references from sleeping
|
|
|
|
|
|
//#define VISUALIZE_ACTIVE_TURFS //Highlights atmos active turfs in green
|
|
#endif
|
|
|
|
#define PRELOAD_RSC 1 /*set to:
|
|
0 to allow using external resources or on-demand behaviour;
|
|
1 to use the default behaviour;
|
|
2 for preloading absolutely everything;
|
|
*/
|
|
|
|
#define BACKGROUND_ENABLED 0 // The default value for all uses of set background. Set background can cause gradual lag and is recommended you only turn this on if necessary.
|
|
// 1 will enable set background. 0 will disable set background.
|
|
|
|
//ADMIN STUFF
|
|
#define ROUNDSTART_LOGOUT_REPORT_TIME 6000 //Amount of time (in deciseconds) after the rounds starts, that the player disconnect report is issued.
|
|
|
|
#define SPAM_TRIGGER_WARNING 5 //Number of identical messages required before the spam-prevention will warn you to stfu
|
|
#define SPAM_TRIGGER_AUTOMUTE 10 //Number of identical messages required before the spam-prevention will automute you
|
|
|
|
//Don't set this very much higher then 1024 unless you like inviting people in to dos your server with message spam
|
|
#define MAX_MESSAGE_LEN 1024
|
|
#define MAX_NAME_LEN 42
|
|
#define MAX_BROADCAST_LEN 512
|
|
#define MAX_CHARTER_LEN 80
|
|
|
|
//MINOR TWEAKS/MISC
|
|
#define AGE_MIN 17 //youngest a character can be
|
|
#define AGE_MAX 85 //oldest a character can be
|
|
#define WIZARD_AGE_MIN 30 //youngest a wizard can be
|
|
#define APPRENTICE_AGE_MIN 29 //youngest an apprentice can be
|
|
#define SHOES_SLOWDOWN 0 //How much shoes slow you down by default. Negative values speed you up
|
|
#define POCKET_STRIP_DELAY 40 //time taken (in deciseconds) to search somebody's pockets
|
|
#define DOOR_CRUSH_DAMAGE 15 //the amount of damage that airlocks deal when they crush you
|
|
|
|
#define HUNGER_FACTOR 0.1 //factor at which mob nutrition decreases
|
|
#define REAGENTS_METABOLISM 0.4 //How many units of reagent are consumed per tick, by default.
|
|
#define REAGENTS_EFFECT_MULTIPLIER (REAGENTS_METABOLISM / 0.4) // By defining the effect multiplier this way, it'll exactly adjust all effects according to how they originally were with the 0.4 metabolism
|
|
|
|
#define MAX_STACK_AMOUNT_METAL 50
|
|
#define MAX_STACK_AMOUNT_GLASS 50
|
|
#define MAX_STACK_AMOUNT_RODS 60
|
|
|
|
// AI Toggles
|
|
#define AI_CAMERA_LUMINOSITY 5
|
|
#define AI_VOX 1 // Comment out if you don't want VOX to be enabled and have players download the voice sounds.
|
|
|
|
//Additional code for the above flags.
|
|
#ifdef TESTING
|
|
#warn compiling in TESTING mode. testing() debug messages will be visible.
|
|
#endif
|
|
|
|
|
|
#ifdef GC_FAILURE_HARD_LOOKUP
|
|
#define FIND_REF_NO_CHECK_TICK
|
|
#endif
|
|
|
|
#ifdef TRAVISTESTING
|
|
#define TESTING
|
|
#endif
|
|
|
|
//Update this whenever you need to take advantage of more recent byond features
|
|
#define MIN_COMPILER_VERSION 511
|
|
#if DM_VERSION < MIN_COMPILER_VERSION
|
|
//Don't forget to update this part
|
|
#error Your version of BYOND is too out-of-date to compile this project. Go to byond.com/download and update.
|
|
#error You need version 511 or higher
|
|
#endif
|
|
|
|
//Update this whenever the db schema changes
|
|
//make sure you add an update to the schema_version stable in the db changelog
|
|
#define DB_MAJOR_VERSION 3
|
|
#define DB_MINOR_VERSION 4
|