[QUOTE=Persious;41150838]Undefined, this is the error I got. I'm still looking into why the fuck it's doing this.
[lua]
[ERROR] addons/pointshop-master/lua/sv_pointshop.lua:262: attempt to index field 'DataProviders' (a nil value)
1. GetFallback - addons/pointshop-master/lua/sv_pointshop.lua:262
2. GetData - addons/pointshop-master/lua/providers/mysql.lua:63
3. GetPlayerData - addons/pointshop-master/lua/sv_pointshop.lua:279
4. PS_LoadData - addons/pointshop-master/lua/sv_player_extension.lua:94
5. unknown - addons/pointshop-master/lua/sv_player_extension.lua:35
Timer Failed! [Simple][@addons/pointshop-master/lua/sv_player_extension.lua (line 34)]
[/lua]
[editline]23rd June 2013[/editline]
Fixed it :P[/QUOTE]
How did you fix it?
Help me, I have the latest version of Garrys Mod Dedicated Server and the latest version Pointshop. When changing the map, points are always reset to zero. What I need to do? Is there a Fix?
[editline]26th June 2013[/editline]
My error:
[QUOTE]
ERROR addons/pointshop-master/lua/providers/data.lua:36: ')' expected (to close '(' at line 32) near 'end'
1. unknown - addons/pointshop-master/lua/providers/data.lua:0[/QUOTE]
[editline]26th June 2013[/editline]
Line 32 is:
[QUOTE]file.Write('pointshop/' .. filename .. '.txt', util.TableToKeyValues({
[/QUOTE]
Okay so I don't want to be a bother but my players models are being reset at the beginning of the rounds. Any one figure out a fix for this one? This is a TTT server btw.
Yup, use data instead of pdata, mine didn't reset every round but on map change, similar?
[QUOTE=Thetomm2010;41203725]Okay so I don't want to be a bother but my players models are being reset at the beginning of the rounds. Any one figure out a fix for this one? This is a TTT server btw.[/QUOTE]
Yeah that happens to me too. I think the new update screwed up it will the random playermodels and all.
okay so delete pdata.lua and use data.lua instead? Just making sure in case this is happening to others too.
no, sh_config change pdata to data
changing the name and the points and items gone?
-snip-
Well, I've changed the background colour, but how would I turn the POINTSHOP text into two different colours like that screenshot?
Need help sizing a few hats.
[LUA] ITEM.Name = 'Deadmau5'
ITEM.Price = 600
ITEM.Model = 'models/ledmau5/ledmau5.mdl'
ITEM.Attachment = 'head'
function ITEM:OnEquip(ply, modifications)
ply:PS_AddClientsideModel(self.ID)
end
function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end
function ITEM:ModifyClientsideModel(ply, model, pos, ang)
model:SetModelScale(2.5, 0)
pos = pos + (ang:Forward() * -2.5)
ang:RotateAroundAxis(ang:Right(), -15)
return model, pos, ang
end[/LUA]
Currently looks like:
[IMG]http://cloud-2.steampowered.com/ugc/633036564900074218/03E75AF4B7D2462C05F61EF6E5C7F4E97F234528/[/IMG]
Second one:
[LUA] ITEM.Name = 'Daft Punk 1'
ITEM.Price = 800
ITEM.Model = 'models/daftpunk/ghelm.mdl'
ITEM.Attachment = 'eyes'
function ITEM:OnEquip(ply, modifications)
ply:PS_AddClientsideModel(self.ID)
end
function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end
function ITEM:ModifyClientsideModel(ply, model, pos, ang)
pos = pos + (ang:Forward() * -2.2)
ang:RotateAroundAxis(ang:Up(), -90)
return model, pos, ang
end [/LUA]
Looks like:
[IMG]http://cloud-2.steampowered.com/ugc/633036564900111314/46641593487C1A36FD572BDC60A7D888471A224E/[/IMG]
Please help me! I really want to add those hats..
[lua]model:SetModelScale(2.5, 0) [/lua]
Play around with this part of the code. Change 2.5 come back to the game and see how big or small it is. Make adjustments where necessary.
[QUOTE=Thetomm2010;41228260]Change 2.5 come back to the game and see how big or small it is. Make adjustments where necessary.[/QUOTE]
Do i need to delete * - Or leave it?
Don't delete anything Only change the numbers. You will probably need a map change after you do this for it to work.
Uhhh, did _Undefined give this guy permission to upload the PointShop to the workshop?
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=155422758[/url]
[QUOTE=smithy285;41232072]Uhhh, did _Undefined give this guy permission to upload the PointShop to the workshop?
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=155422758[/url][/QUOTE]
Hell no report that fucker!
[QUOTE=ShadowKnightX;41234688]Hell no report that fucker![/QUOTE]
[IMG]http://i.imgur.com/HB4PvfC.png[/IMG]
Woop!
Finished editing.
[t]http://i.imgur.com/9I2juCf.jpg[/t]
Before you say anything, _Undefined is credited in the motd and loading screen :)
[QUOTE=ShadowKnightX;41227626]Need help sizing a few hats.
[LUA] ITEM.Name = 'Deadmau5'
ITEM.Price = 600
ITEM.Model = 'models/ledmau5/ledmau5.mdl'
ITEM.Attachment = 'head'
function ITEM:OnEquip(ply, modifications)
ply:PS_AddClientsideModel(self.ID)
end
function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end
function ITEM:ModifyClientsideModel(ply, model, pos, ang)
model:SetModelScale(2.5, 0)
pos = pos + (ang:Forward() * -2.5)
ang:RotateAroundAxis(ang:Right(), -15)
return model, pos, ang
end[/LUA]
Currently looks like:
[IMG]http://cloud-2.steampowered.com/ugc/633036564900074218/03E75AF4B7D2462C05F61EF6E5C7F4E97F234528/[/IMG]
Second one:
[LUA] ITEM.Name = 'Daft Punk 1'
ITEM.Price = 800
ITEM.Model = 'models/daftpunk/ghelm.mdl'
ITEM.Attachment = 'eyes'
function ITEM:OnEquip(ply, modifications)
ply:PS_AddClientsideModel(self.ID)
end
function ITEM:OnHolster(ply)
ply:PS_RemoveClientsideModel(self.ID)
end
function ITEM:ModifyClientsideModel(ply, model, pos, ang)
pos = pos + (ang:Forward() * -2.2)
ang:RotateAroundAxis(ang:Up(), -90)
return model, pos, ang
end [/LUA]
Looks like:
[IMG]http://cloud-2.steampowered.com/ugc/633036564900111314/46641593487C1A36FD572BDC60A7D888471A224E/[/IMG]
Please help me! I really want to add those hats..[/QUOTE]
I need more help then what TheTom provided..Someone else help out? I'd appreciate it.
EDIT
Reported another fucker.
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=153585546&searchtext=pointshop[/url]
Seeing as we are now posting our modifications to the PointShop, I thought I would post my little changes.
[thumb]http://i.imgur.com/GmK5Y95.png[/thumb]
I know it is not the different, and yes, I made mine full screen.
Any suggestions are welcome!
[QUOTE]I need more help then what TheTom provided..Someone else help out? I'd appreciate it.[/QUOTE]
Its really trial and error with this stuff, keep messing with the coding your gonna have to change the size and the position of every custom item sorry I cant help you more bud.
Oh and the changing the pdata to data did not work for some reason just made my players lose points and items and then as soon as the round started the player models went back to normal. donno why
[QUOTE=Thetomm2010;41248117]Oh and the changing the pdata to data did not work for some reason just made my players lose points and items and then as soon as the round started the player models went back to normal. donno why[/QUOTE]
me too
players lose points but not back to normal
I think they are using UniqueID , not SteamID
Loosing points and items, I think it's because the client doesn't verify the steam ID properly?
[QUOTE=smithy285;41240788]Seeing as we are now posting our modifications to the PointShop, I thought I would post my little changes.
[thumb]http://i.imgur.com/GmK5Y95.png[/thumb]
I know it is not the different, and yes, I made mine full screen.
Any suggestions are welcome![/QUOTE]
Gonna release this? :P
[QUOTE=scopedbyluck;41259081]Gonna release this? :P[/QUOTE]
It's a really simple edit. Open your DPointShopMenu.lua, and you can edit the size and color and such. I've made some similar edits, my shop takes up about 90% of the screen, and the background isn't transparent.
Would anyone be interested if I released a couple of different designs? And would _Undefined be consenting?
[QUOTE=Eccid;41259183]It's a really simple edit.[/QUOTE]
Hey, it took me about a hour to make that...dammit.
[b]Commit ID:[/b] [url=https://github.com/adamdburton/pointshop/commit/0c412b91db31a92799175c9f633129f662b4cf1e]0c412b91db31a92799175c9f633129f662b4cf1e[/url]
[b]Repository:[/b] [url=https://github.com/adamdburton/pointshop]adamdburton/pointshop[/url]
[b]Author:[/b] [url=http://github.com/adamdburton]adamdburton[/url]
[b]Message:[/b]
Added a few checks for players joining and leaving quickly
[b]Modified:[/b]
lua/sv_player_extension.lua
[b]Added:[/b]
None
[b]Removed:[/b]
None
Do you know how to make certain content only visible to certain people? I am trying to make it hidden to people who do not have yes in a txt file in their data folder. I set it up like this :
[code]if file.Read("tps.txt") == "no" then
else
----code for point shop item goes here--------
end[/code]
The problem occurs when the data file is changed to yes. People would need to rejoin to see the content. Is there some like refresh of the point shop I could do for when a certain function is called?
...assistance in getting to the pointshop color changer as demonstrated in the original screenshots anyone?...
[QUOTE=Crack37_Tea;41295221]...assistance in getting to the pointshop color changer as demonstrated in the original screenshots anyone?...[/QUOTE]
Maybe looking at the code for exactly that? [url]https://github.com/adamdburton/pointshop/blob/master/lua/items/trails/loltrail.lua#L14[/url]
Sorry, you need to Log In to post a reply to this thread.