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.
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.
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.
data/sweptthrone_addons/paydaycookoff.txt | ST_CONFIGS.PaydayCookOff
MethValue=3250 - Value of one bag of meth.
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.
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.
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.
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.
data/sweptthrone_addons/stbrewery.txt | ST_CONFIGS.STBrewery
BrewTime=60 - How many seconds it takes for the brewery to brew alcohol.
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.
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.
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.
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.
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.
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.
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.
data/sweptthrone_addons/stfoodneu.txt | ST_CONFIGS.STFoodNeu
PoisonPrice=120 - Cost of poisoning one piece of food.
data/sweptthrone_addons/stfoodneu_strp.txt | ST_CONFIGS.STFoodNeu_STRP
PoisonPrice=120 - Cost of poisoning one piece of food.
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.
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.
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.
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.
data/sweptthrone_addons/wickcontractor.txt | ST_CONFIGS.WickContractor
AnonFee=500 - How much extra it costs to submit an anonymous contract.