aboutsummaryrefslogtreecommitdiff
path: root/gamemode/server/sv_config.lua
blob: e4d43ab95ee928eda59316f2905b58533c48356b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--[[
    Some things that I might want to configure
]]

ART.defaults = {}
ART.defaults.starting_inventory = '{"Backpacks":[[[[false,false,false,false,false],[false,false,false,false,false],[false,false,false,false,false],[false,false,false,false,false],[false,false,false,false,false]],[5,5],"Rucksack"]],"Equiped":{"Gloves":false,"Left":false,"Head":false,"Legs":false,"Right":false,"Body":false,"Boots":false}}'

ART.defaults.starting_position = "185.690247 310.664398 515.031250"
ART.defaults.starting_world = "0.0.0.0:0"
ART.config = {}
ART.config.server_world = game.GetIPAddress()

local mysqlconfig = file.Read("artery/mysql.txt")
for _,line in pairs(string.Explode("\n",mysqlconfig,false)) do
    print(line)
    local key, value = unpack(string.Explode("=",line,false))
    print("setting",key,"to",value)
    ART.config[key] = value
end