Docs: STSettings v2


A guide to using STSettings v2

- - - - -

Summary

STSettings is a config file manager included with several of my addons. It handles the creation, interpretation, and application of config files that allow users to tweak parts of the addon to their fit their needs.

FOR USERS:

These settings files are located at garrysmod/data/sweptthrone_addons/<addonname>.txt where <addonname> is the code name shown below.

For number values, you can use commas, underscores, and/or apostrophes as thousands separators.

For Boolean values, you can use true, false, yes, no, on, off, t, f, y, and n.

FOR DEVELOPERS:

Settings are accessed by ST_CONFIGS.AddonName.SettingName and the result will be the assumed type. AddonName is not the exact name of the addon, rather its "code name," which are shown below.

The ST_CONFIGS table only exists on the server. You'll need to network the values if you need them on the client.


The Contact

data/sweptthrone_addons/thecontact.txt | ST_CONFIGS.TheContact

SaleTimeSec=1200 - Number of seconds a sale lasts.

DepartTime=150 - Number of seconds that after cancelling a sale, the connect actually despawns.


Grudge Drugs

data/sweptthrone_addons/grudgedrugs.txt | ST_CONFIGS.GrudgeDrugs

CokeValue=250 - Value of one packet of cocaine.

MethValue=100 - Value of one jar of meth.

WeedValue=50 - Value of one tenth of weed.


Hot Dog Cart

data/sweptthrone_addons/hotdogcart.txt | ST_CONFIGS.HotDogCart

CartRegen=5 - How much health a damaged Hot Dog Cart regenerates every second.

HotDogPrice=5 - How much it costs to make one hot dog.


Hunt Health

data/sweptthrone_addons/hunthealth.txt | ST_CONFIGS.HuntHealth

LargeBarSize=50 - Size of the first and large health bar.

SmallBarSize=25 - Size of a small health bar.

MaxHealth=150 - Maximum health that can be built from health bars.


Payday 2 Cook Off

data/sweptthrone_addons/paydaycookoff.txt | ST_CONFIGS.PaydayCookOff

MethValue=3250 - Value of one bag of meth.


STBakery

data/sweptthrone_addons/stbakery.txt | ST_CONFIGS.STBakery

IngredientCost=270 - Cost of ingredients to allow the oven to run.

BakeTimeMin=240 - Minimum number of seconds it will take to bake bread.

BakeTimeMax=360 - Maximum number of seconds it will take to bake bread.

BurnChance=10 - Whole number chance of a bake resulting in burnt toast.


STBankRobbery

data/sweptthrone_addons/stbankrobbery.txt | ST_CONFIGS.STBankRobbery

VaultAddDelay=10 - Number of seconds between each vault gaining money.

VaultMax=250000 - Maximum amount of money a bank vault can hold.

VaultAddMin=35 - Minimum amount of money a bank vault can have added every VaultAddDelay.

VaultAddMax=55 - Maximum amount of money a bank vault can have added every VaultAddDelay.

MoneyBagMin=1000 - Minimum amount of money that can be stolen in a single money bag.

MoneyBagMax=2000 - Maximum amount of money that can be stolen in a single money bag.

UseTax=false - Whether DarkRP taxes should be added to the vaults instead of VaultAddMin/Max. DarkRP taxes must be enabled for this setting to work.

Distribute=false - Whether VaultAddMin/Max should be equally spread among all bank vaults. This is on regardless if UseTax is true.


STBitMiners

data/sweptthrone_addons/stbitminers.txt | ST_CONFIGS.STBitMiners

BitcoinValue=97500 - Value of one full Bitcoin.

BitMinerValue=0.0046399 - How much Bitcoin should be added to the BitMiner every BitMinerRate.

MiniMinerValue=0.0023199 - How much Bitcoin should be added to the MiniMiner every MiniMinerRate.

BitMinerRate=60 - Number of seconds between each BitMiner mining BitMinerValue Bitcoin.

MiniMinerRate=60 - Number of seconds between each MiniMiner mining MiniMinerValue Bitcoin.


STBitMining 2

data/sweptthrone_addons/stbitmining2.txt | ST_CONFIGS.STBitMining2

BitcoinValue=97500 - Value of one full Bitcoin.

ModelST1Value=0.0017 - How much Bitcoin should be added to the Model ST1 every ModelST1Delay.

ModelST1Delay=39 - Number of seconds between each Model ST1 mining ModelST1Value Bitcoin.

ModelST2Value=0.0019 - How much Bitcoin should be added to the Model ST2 every ModelST2Delay.

ModelST2Delay=36 - Number of seconds between each Model ST2 mining ModelST2Value Bitcoin.

ModelST3Value=0.0021 - How much Bitcoin should be added to the Model ST3 every ModelST3Delay.

ModelST3Delay=33 - Number of seconds between each Model ST3 mining ModelST3Value Bitcoin.

ModelST4Value=0.0023 - How much Bitcoin should be added to the Model ST4 every ModelST4Delay.

ModelST4Delay=30 - Number of seconds between each Model ST4 mining ModelST4Value Bitcoin.

ModelST5Value=0.0025 - How much Bitcoin should be added to the Model ST5 every ModelST5Delay.

ModelST5Delay=27 - Number of seconds between each Model ST5 mining ModelST5Value Bitcoin.

ModelST6Value=0.0027 - How much Bitcoin should be added to the Model ST6 every ModelST6Delay.

ModelST6Delay=24 - Number of seconds between each Model ST6 mining ModelST6Value Bitcoin.


STBrewery

data/sweptthrone_addons/stbrewery.txt | ST_CONFIGS.STBrewery

BrewTime=60 - How many seconds it takes for the brewery to brew alcohol.


STCasinoSuite

data/sweptthrone_addons/stcasinosuite.txt | ST_CONFIGS.STCasinoSuite

CoinFlipCost=500 - How much one play of Coin Flip Sim costs.

DoubleOrNothingCost=100 - How much one play of Double or Nothing costs.

GasCashCost=250 - How much one play of Gas Cash costs.

JacksPotCost=175 - How much one play of Jack's Pot costs.

JPRibbonsPayout=450 - How much triple ribbons in Jack's Pot pays out.

JPCoinsPayout=750 - How much triple coins in Jack's Pot pays out.

JPCashPayoutEach=75 - How much each dollar stack in Jack's Pot pays out.

JPLightningsPayout=375 - How much triple lightning bolts in Jack's Pot pays out.

JPMusicsPayout=300 - How much triple music notes in Jack's Pot pays out.

JP8BallsPayout=1125 - How much triple 8-balls in Jack's Pot pays out.

JPStarsPayout=1500 - How much triple stars in Jack's Pot pays out.

JackPotAdd=175 - How much money is added to Jack's Pot's jackpot every play.

LoanMax=20000 - Most money a player can take out in a loan.

RagingRubiesCost=100 - How much one play of Raging Rubies costs.

RRHeartsPayout=600 - How much triple hearts in Raging Rubies pays out.

RRBellsPayout=1000 - How much triple bells in Raging Rubies pays out.

RRCashPayoutEach=100 - How much each dollar sign in Raging Rubies pays out.

RRDrivesPayout=500 - How much triple hard drives in Raging Rubies pays out.

RRClocksPayout=400 - How much triple clocks in Raging Rubies pays out.

RRCarsPayout=1500 - How much triple cars in Raging Rubies pays out.

RRColorsPayout=4000 - How much triple color wheels in Raging Rubies pays out.

RRRubiesPayout=2000 - How much triple rubies in Raging Rubies pays out.

WildCallCost=100 - How much one play of Wild Call costs.

WildCallSingle=1000 - How much guessing one number in Wild Call pays out.

WildCallDouble=10000 - How much guessing both numbers in Wild Call pays out.

LottoTicketPrice=100 - How much one lottery ticket costs.


STChef

data/sweptthrone_addons/stchef.txt | ST_CONFIGS.STChef

CookPickupOnly=true - In DarkRP, whether a player's job needs cook = true in its fields to pick up ingredients and burgers.


STCoffeeShop Neu

data/sweptthrone_addons/stcoffeeshopneu.txt | ST_CONFIGS.STCoffeeShopNeu

IngredientCost=5 - In DarkRP, the cost of any one ingredient.

CoffeePotRegen=5 - How much health a Coffee Pot regenerates every second.


STCounterfeit

data/sweptthrone_addons/stcounterfeit.txt | ST_CONFIGS.STCounterfeit

StarterSkill=25 - How much skill each player starts with when they join for the first time.

MinMoneyAdd=20 - Minimum amount of money added to the printer every second.

MaxMoneyAdd=40 - Maximum amount of money added to the printer every second.


STCrypto

data/sweptthrone_addons/stcrypto.txt | ST_CONFIGS.STCrypto

MinerRegen=5 - How much health a damaged Crypto Miner regenerates every second.

DefaultCryptoValue=1000 - The initial value of one SToken.

MinValueChange=-250 - Lower bound for the random change in SToken value every ValueChangeInterval seconds.

MaxValueChange=250 - Upper bound for the random change in SToken value every ValueChangeInterval seconds.

ValueChangeInterval=300 - Number of seconds between SToken value changes.

MineIntervalSec=1 - Number of seconds between Crypto Miner mines.

MinMineAmount=0.001 - Minimum amount of SToken a Crypto Miner will mine every MineIntervalSec seconds.

MaxMineAmount=0.01 - Maximum amount of SToken a Crypto Miner will mine every MineIntervalSec seconds.

BaseUpgradeCost=1000 - Base cost for one Crypto Miner upgrade. Actual value is (tier+1)*BaseUpgradeCost + tier*(BaseUpgradeCost/2)


STDope

data/sweptthrone_addons/stdope.txt | ST_CONFIGS.STDope

MorphineCost=480 - How much it costs to start making morphine.

HeroinCost=1200 - How much it costs to start making heroin.

MethCost=800 - How much it costs to start making meth.

LSDCost=540 - How much it costs to start making LSD.

AntidoteCost=480 - How much it costs to start making antidote. Either STFood Neu version is required to make antidote.

WeedCost=220 - How much it costs to start growing weed.

CocaineCost=680 - How much it costs to start growing cocaine.

ShroomsCost=220 - How much it costs to start growing shrooms.

Food_MelonCost=17 - How much it costs to start growing a melon. Either STFood Neu version is required to grow melons.

Food_BananaCost=20 - How much it costs to start growing a banana bunch. Either STFood Neu version is required to grow bananas.

Food_OrangeCost=12 - How much it costs to start growing an orange. Either STFood Neu version is required to grow oranges.

Food_GrapefruitCost=13 - How much it costs to start growing a grapefruit. Either STFood Neu version is required to grow grapefruits.


STDrugs

data/sweptthrone_addons/stdrugs.txt | ST_CONFIGS.STDrugs

HeorinValue=50000 - Value of one heroin needle.

MethValue=5000 - Value of one meth baggie.

AspirinValue=10000 - Value of one aspirin bottle.

AlcoholValue=1000 - Value of one beer can.

LSDValue=1000 - Value of one LSD tablet.

EcstasyValue=2500 - Value of one ecstasy tablet.

KetamineValue=3500 - Value of one ketamine bottle.

CodeineValue=500 - Value of one codeine cup.

TwoCBValue=1500 - Value of one 2C-B tablet.

SludgeValue=50 - Value of one bucket of sludge.

CocaineValue=35000 - Value of one bundle of cocaine.

CigaretteValue=500 - Value of one pack of cigarettes.

WeedValue=2000 - Value of one weed baggie.

MushroomValue=3500 - Value of one mushroom.

HeroinCookTimeMin=240 - Minimum number of seconds it takes to cook heorin.

HeroinCookTimeMax=360 - Maximum number of seconds it takes to cook heorin.

MethCookTimeMin=240 - Minimum number of seconds it takes to cook meth.

MethCookTimeMax=360 - Maximum number of seconds it takes to cook meth.

AspirinCookTimeMin=180 - Minimum number of seconds it takes to cook aspirin.

AspirinCookTimeMax=300 - Maximum number of seconds it takes to cook aspirin.

AlcoholCookTimeMin=150 - Minimum number of seconds it takes to cook alcohol.

AlcoholCookTimeMax=270 - Maximum number of seconds it takes to cook alcohol.

LSDCookTimeMin=240 - Minimum number of seconds it takes to cook LSD.

LSDCookTimeMax=360 - Maximum number of seconds it takes to cook LSD.

EcstasyCookTimeMin=240 - Minimum number of seconds it takes to cook ecstasy.

EcstasyCookTimeMax=360 - Maximum number of seconds it takes to cook ecstasy.

KetamineCookTimeMin=180 - Minimum number of seconds it takes to cook ketamine.

KetamineCookTimeMax=240 - Maximum number of seconds it takes to cook ketamine.

CodeineCookTimeMin=120 - Minimum number of seconds it takes to cook codeine.

CodeineCookTimeMax=180 - Maximum number of seconds it takes to cook codeine.

TwoCBCookTimeMin=240 - Minimum number of seconds it takes to cook 2C-B.

TwoCBCookTimeMax=360 - Maximum number of seconds it takes to cook 2C-B.

SludgeCookTimeMin=240 - Minimum number of seconds it takes to cook sludge.

SludgeCookTimeMax=360 - Maximum number of seconds it takes to cook sludge.

GrowStageTimeMin=20 - Minimum number of seconds one of seven plant growing stages takes.

GrowStageTimeMax=30 - Maximum number of seconds one of seven plant growing stages takes.


STFishing Neu

data/sweptthrone_addons/stfishingneu.txt | ST_CONFIGS.STFishingNeu

CommonValue=20 - Base value of a single common fish.

UncommonValue=50 - Base value of a single uncommon fish.

RareValue=100 - Base value of a single rare fish.

ExtraordinaryValue=50 - Base value of a single extraordinary fish.

ValueVariancePct=0.1 - Range of fish selling value variance. Final value of selling any fish is baseValue + baseValue * random( -variance, variance )


STFood Neu

data/sweptthrone_addons/stfoodneu.txt | ST_CONFIGS.STFoodNeu

PoisonPrice=120 - Cost of poisoning one piece of food.


STFood Neu STRP Edition

data/sweptthrone_addons/stfoodneu_strp.txt | ST_CONFIGS.STFoodNeu_STRP

PoisonPrice=120 - Cost of poisoning one piece of food.


STGarbageCollector

data/sweptthrone_addons/stgarbagecollector.txt | ST_CONFIGS.STGarbageCollector

MaxHeldGarbage=20 - Maximum number of garbage each player can hold at once.

MaxStreetGarbage=20 - Maximum number of garbage piles that can exist on the map at once.

BagDespawnTime=600 - Number of seconds before a dropped bag of garbage is despawned.

GarbageSpawnInterval=300 - Number of seconds between spawning garbage piles.

MinReward=75 - Minimum amount of money to reward players with per bag of garbage turned in.

MaxReward=125 - Maximum amount of money to reward players with per bag of garbage turned in.


STGraveRobbing

data/sweptthrone_addons/stgraverobbing.txt | ST_CONFIGS.STGraveRobbing

LowGraveMinCash=100 - Minimum amount of money a low-tier grave can give.

LowGraveMaxCash=1000 - Maximum amount of money a low-tier grave can give.

MidGraveMinCash=200 - Minimum amount of money a mid-tier grave can give.

MidGraveMaxCash=2000 - Maximum amount of money a mid-tier grave can give.

HighGraveMinCash=300 - Minimum amount of money a high-tier grave can give.

HighGraveMaxCash=3000 - Maximum amount of money a high-tier grave can give.

SaintGraveMinCash=500 - Minimum amount of money a saint-tier grave can give.

SaintGraveMaxCash=5000 - Maximum amount of money a saint-tier grave can give.

LowGraveCashChance=6 - Whole number chance for a low-tier grave to give money.

MidGraveCashChance=10 - Whole number chance for a mid-tier grave to give money.

HighGraveCashChance=15 - Whole number chance for a high-tier grave to give money.

SaintGraveCashChance=20 - Whole number chance for a saint-tier grave to give money.

LowGraveCooldown=60 - Number of seconds between being able to rob low-tier graves.

MidGraveCooldown=90 - Number of seconds between being able to rob mid-tier graves.

HighGraveCooldown=150 - Number of seconds between being able to rob high-tier graves.

SaintGraveCooldown=300 - Number of seconds between being able to rob saint-tier graves.


STGunrunning

data/sweptthrone_addons/stgunrunning.txt | ST_CONFIGS.STGunrunning

CraftCSSWeapons=true - Whether players can craft unusable CS:S weapons.

CSSValueMultiplier=1 - The multiplier applied to the price and value of CS:S weapons. Doesn't matter if CraftCSSWeapons is false.

CSSTimeMultiplier=1 - The multiplier applied to the time it takes to craft CS:S weapons. Doesn't matter if CraftCSSWeapons is false.

CraftShipments=false - Whether players can craft DarkRP shipments. Only works in DarkRP.

ShipmentsCraftOnly=false - Whether players must craft DarkRP shipments instead of being able to purchase them.

AmmoCraftOnly=false - Whether players must craft DarkRP ammo instead of being able to purchase it.

TableRegen=5 - How much health a Gun Table and an Ammo Table regenerate every second.

EquilibriumPoint=20 - How many guns you have to sell at once to get 100% of their value. Any less will give less and any more will give more.

MinimumMultiplier=0.6 - Y-intercept for the value multiplier line. The equation for this y is y = ( ( 1 - MinimumMultiplier ) / EquilibriumPoint ) * x + MinimumMultiplier.


STHackerWar

data/sweptthrone_addons/sthackerwar.txt | ST_CONFIGS.STHackerWar

ComputerRegen=1 - How much health a Hacker Computer regenerates every second.

FileValue=500 - Base value of a single file.

MBValue=50 - Extra value per megabyte of each file.

RangeMultiplier=1 - Multiplier applied to all distances used to calculate download times.


STMining

data/sweptthrone_addons/stmining.txt | ST_CONFIGS.STMining

PlatinumValue=29 - Value of one platinum.

RhodiumValue=92 - Value of one rhodium.

GoldValue=174 - Value of one gold.

DiamondValue=900 - Value of one diamond.


STMoonshine

data/sweptthrone_addons/stmoonshine.txt | ST_CONFIGS.STMoonshine

DistillerRegen=5 - How much health a Distiller regenerates every second.

DistillTime=60 - Number of seconds a Distiller takes to produce one bottle of Moonshine.

BottleValue=80 - Value of one bottle of Moonshine.

BulkBonus=20 - Extra money reward per full basket of Moonshine.


STNarcotics

data/sweptthrone_addons/stnarcotics.txt | ST_CONFIGS.STNarcotics

SynthTimeMin=480 - Minimum number of seconds it will take to synthesize a drug.

SynthTimeMax=600 - Maximum number of seconds it will take to synthesize a drug.

LabSoundLevel=80 - Sound level of the Chemistry Lab working.


STOilMogul

data/sweptthrone_addons/stoilmogul.txt | ST_CONFIGS.STOilMogul

DrillCost=5000 - How much an Oil Drill costs.

DrillRegen=5 - How much health an Oil Drill regenerates every second.

DrillSpeed=0.005 - Vague factor of how fast the Oil Drill drills, overheats, gets dirty, cools down, and cleans.

MaxDrills=4 - Maximum number of Oil Drills each player can have at once.


STPowder

data/sweptthrone_addons/stpowder.txt | ST_CONFIGS.STPowder

MinLabTime=240 - Minimum number of seconds it will take to produce powder.

MaxLabTime=360 - Maximum number of seconds it will take to produce powder.

LabRegen=5 - How much health a Powder Machine regenerates every second.

HeroinValue=3000 - Value of one packet of heroin.

HeroinValue=2000 - Value of one packet of cocaine.

LabSmoke=true - Whether the Powder Machine will produce smoke while it's working.


STSilk

data/sweptthrone_addons/stsilk.txt | ST_CONFIGS.STSilk

LoomRegen=5 - How much health a Loom regenerates every second.

SilkwormsRegen=5 - How much health a Silkworms Box regenerates every second.

LoomSpoolRate=0.005 - Fraction of a full spool of silk a loom spins four times a second.

RawSilkValue=10 - Value of one sheet of raw silk.

PureSilkValue=80 - Value of one sheet of pure silk.

SilkDespawnTime=120 - Number of seconds before a sheet of raw silk is despawned.


Wick Contractor Neu

data/sweptthrone_addons/wickcontractor.txt | ST_CONFIGS.WickContractor

AnonFee=500 - How much extra it costs to submit an anonymous contract.