aboutsummaryrefslogtreecommitdiff
path: root/gamemode/server/sv_config.lua
blob: 918f196cbf7b1955ca0c1bec430722bcef3fb5b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--[[
    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_skills = "[]"
ART.defaults.starting_quests = "[]"

ART.defaults.starting_position = "185 310 524"
ART.defaults.starting_world = "0.0.0.0:27015"
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