Well I have searched my server files up and down several times with no luck in finding where the Pointshop and Utime data is stored. I have completely uploaded a full backup of the server to my dedi box, but the utime and pointshop items/points don't transfer over. So I was wondering if there was any way possible to gather the two data files so that everyone doesn't have to start over with play time and pointshop items. I am using pointshop ultimate with a different custom made skin, and the Utime is Ulysses's latest Utime release. If I didn't provide enough information please let me know and I would be glad to fill it in. At this point though, I am completely out of ideas on how to transfer it all over.
garrysmod/sv.db
Will that contain both pointshop and utime data?
Edit: Thanks man I just opened it with sql lite browser and this is exactly what I was looking for.
Okay so I just deleted the sv.db and uploaded the most recent up to date one from my old server. For some reason after the server restart, it still won't load the data from the sv.db. Any ideas?
What do you have as data provider in the pointshop config file?
function PROVIDER:GetData(ply, callback)
if not file.IsDir('pointshop', 'DATA') then
file.CreateDir('pointshop')
end
local points, items
local filename = string.Replace(ply:SteamID(), ':', '_')
if not file.Exists('pointshop/' .. filename .. '.txt', 'DATA') then
file.Write('pointshop/' .. filename .. '.txt', util.TableToJSON({
Points = 0,
Items = {}
}))
points = 0
items = {}
else
local data = util.JSONToTable(file.Read('pointshop/' .. filename .. '.txt', 'DATA'))
points = data.Points or 0
items = data.Items or {}
end
return callback(points, items)
end
function PROVIDER:SetData(ply, points, items)
if not file.IsDir('pointshop', 'DATA') then
file.CreateDir('pointshop')
end
local filename = string.Replace(ply:SteamID(), ':', '_')
file.Write('pointshop/' .. filename .. '.txt', util.TableToJSON({
Points = points,
Items = items
}))
end
[editline]9th April 2014[/editline]
Also for some reason, after each map change, none of the ulx groups, points/items, and utime will save.
At a bit of a stretch, are the file permissions correct for the file so that it can be read by the server?
Now that you mention it, there is a column in filezilla that reads Owner/Group most of the files have it set to 502 502. I have no idea how to change it though as this one just says 0 under sv.db. The only thing it allows me to edit is the file permissions. But the permissions are also set to 0664 as they are on my other server which the sv.db file works just fine.
[editline]9th April 2014[/editline]
Okay I just rebooted the whole dedi box and it automatically changed the Owner/Group number to 502 502. But now my only problem is, whenever I add someone to a rank or remove them, when the map changes there rank goes back to what it used to be.
[QUOTE='[FG] Pot;44502046']Now that you mention it, there is a column in filezilla that reads Owner/Group most of the files have it set to 502 502. I have no idea how to change it though as this one just says 0 under sv.db. The only thing it allows me to edit is the file permissions. But the permissions are also set to 0664 as they are on my other server which the sv.db file works just fine.
[editline]9th April 2014[/editline]
Okay I just rebooted the whole dedi box and it automatically changed the Owner/Group number to 502 502. But now my only problem is, whenever I add someone to a rank or remove them, when the map changes there rank goes back to what it used to be.[/QUOTE]
Probably means you have read permissions but no write permissions.
You need to chmod it to 702 or something, not sure what the exact permission level is though, someone else might be more knowledgeable.
[url]http://www.onlineconversion.com/html_chmod_calculator.htm[/url]
Sorry, you need to Log In to post a reply to this thread.