adamdburton / pointshop Goto Github PK
View Code? Open in Web Editor NEWPointShop is a shop system for Garry's Mod 13
Home Page: http://pointshop.burt0n.net/
License: MIT License
PointShop is a shop system for Garry's Mod 13
Home Page: http://pointshop.burt0n.net/
License: MIT License
I tried adding a few custom serverside models, put them on the fastdl and then restarted the server, yet the models are showing for myself and a few other friends, yet not all.
Any ideas?
Hi, so I was wondering if it is possible to make a function where when a certain item is bought it gives the player that bought it points but cannot be sold, if so please tell/show me how.
This is the error code.
http://pastebin.com/Lz1xZQJc
Explanation: Whenever I purchase or attempt to equip an item, a skin, trail or a hat it gives me this error and the function does not correspond to what it is supposed to do.
I did try everything, it gives me the same problem.
FIXED
self:PS_LoadData() Crashed!
Who : not save
If player reconnect -> Not Load!
What's wrong?
I'm Not correct .lua..
(I can't speak English)
RE
If Player - Buy item > Disconncet And reconnect > WHT!!!! Not Load! But Already bought items LOAD! > What's wrong????...
Please Help :(...
If the open key is set to F1 - F10, mac users cannot open the point shop
Please fix as it leaves a good chunk of users without this good feature
Well for example if you put on like 4-6 trails and attempt to take them all off, some of them glitch and stay on you till you die or round resets.
Well if I use the text title and use it on myself, people can see it above my head, everything is perfect.
But when I die and spectate someone else, the title goes on their head, maybe there's a way to switch the title off when in spectator mode?
Screenshot of what happens (I am dead and I am spectating, that is MY text title not the person I am spectating)
It seems a lot of people in the Facepunch thread are unaware that they're using outdated versions of Pointshop. A simple notification if they're using an older version would be good.
Trails stay on you even if you are dead,
I run a TTT server and when I get killed sometimes they still get stuck on me.
Screenshot of proof - http://imgur.com/aIQzC
Save Folder
I would like to know the location...
Please Server Membder Save files for Restore
Please Help me!
C:\srcds\Orangebox????
Hi __unidentified.
I do not know if this is a know issue but we currently have 5 servers and connecting to one database.
All the servers lag every 30 seconds when it is syncing.
All the items are the same on the servers.
If you can help it will be greatly appreciated.
Thanks in the future.
Yours sincerely
-Gecka
Everything on the map just went invisible. This is the only resent addon.
Okay this is a serious bug, this occured twice in 2 maps, it is somehow rare but to be honest, it shouldn't happen.
Seems to be bugging the point loading on some users, as in they will gain points again from 0 and lose everything they've earned.
=-=-=- Exact Error in logging -=-=-=
[ERROR] addons/pointshop-master/lua/sv_player_extension.lua:91: Tried to use a NULL entity!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Causing a crash or restart of the server which I just tested seems to randomly reset points to random people as in, one person that I gave 2000 points kept it but three other people that I gave the points to lost theirs along with a user I didn't affect also lost his. =/
I have an issue where items are no longer equipped when players rejoin, why is this? It's getting irritating, it even says they're equipped but they're not. They must be holstered and equipped again to fix it.
Well I have an issue, or I think all servers that use your pointshop are that every time a person connects/reconnects they have to redownload all the custom models, I tried everything that I know of and it still does the same thing. It is kind of bothering.
I have a website, main server, test server, other fastdl website.
Please look in to it, if it is just my issue I would pay you like £5 for six pack beer if you could like teach me or show me how to set it up so I can upload custom files for people to download without needing them to re-download every time they connect.
I have no clue why, or how but it just simply opens, has anyone had this issue before? Adam you maybe know how to fix this?
I have no errors, nothing.. it just happens.
Well this link
http://pointshop.burt0n.net/categories
The part of
ITEM.Icon = 'emoticon_smile' & ITEM.AllowedEquipped = 2
Shouldn't they be?
Category.Icon
Category.AllowedEquipped
Because I tried ITEM.AllowedEquipped and this is what I've got.
[ERROR] addons/pointshop/lua/items/headshatsmasks/__category.lua:3: attempt to index global 'ITEM' (a nil value)
Hello everyone i was woundering if any of you can help me out on how to add ttt weapons to the pointshop addon for gmod, if u know let me know in here and ill post a coding of what i have to see if u can fix it for me!
ITEM.Name = 'awp'
ITEM.Price = 2000
ITEM.Model = 'models/weapons/w_snip_awp.mdl'
ITEM.WeaponClass = 'weapon_ttt_awp'
ITEM.SingleUse = false
function ITEM:OnBuy(ply)
ply:Give(self.weaponClass)
ply:selectweapon(self.weaponClass)
end
function ITEM:OnSell(ply)
ply:stripWeapon(self.weaponClass)
end
function ITEM:Onholster(ply)
ply:stripWeapon(self.weaponClass)
end
function ITEM:OnEquip(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
Certain terrorist player models result in hats being positioned inside of their heads instead of above
i want to know how i can restart there items so they dont have anything?
self:PS_LoadData() is not working...
What wrong?
(How) = Serverconnect -> Save Not load (But buy something. Recovery!)
[ Auto Load not work ]
but buy/sell something Load save Activite !
What happen!.. very Uncomfortable...
Please Help!! :S
Hi I'm just asking a quick question is there a way to make a simple cool down timer for say a traitor buy in or any power ups that are added to a point shop? If there is how would I go about coding this. I really appreciate all the work you have done, for this is an amazing point shop. Its double the amount of players on my server. Thank you
Tom
Hi there, after the 157 update last night, if the server is restarted all the items are lost but points remain ok - could you please assist me in hopefully getting the players items back or at least so it saves it each restart from now.. also is there any documentation on how to connect pointshop to an external sql database?
thanks,
sneaky
People click and get stuck in the F3 menu. Can I change to Point Shop open key?
hook.Add("PlayerDeath", "PointShop_PlayerDeath", function(victim, inflictor, attacker)
if attacker:IsPlayer() and attacker:IsValid() and not victim != attacker then
attacker:PS_GivePoints(100, "killed " .. victim:Nick())
end
end)
it's Not work...
What need ?
What's wrong?
Please...
Need to change https://github.com/adamdburton/pointshop/blob/master/lua/vgui/DPointShopMenu.lua#L179 and https://github.com/adamdburton/pointshop/blob/master/lua/vgui/DPointShopMenu.lua#L186 to use enums in the next commit.
Hello, I have been trying to fix this problem for ages now, but apparently just stripping spectators and dead players for weapons is not working.
Spectators recieve weapons from the pointshop for some odd reason, my guess is that the game is counting the spectators as a spawn and is then giving them the weapons or possibly trails when using the ITEM:PlayerSpawn(ply) function.
In my weapons I am currently using:
function ITEM:PlayerSpawn(ply)
ply:Give(self.WeaponClass)
end
to give the users the weapon they have bought when they spawn, but it seems to cause problems because of what I mentioned above.
I'm hoping you would take a look at this, as I myself have no idea how to fix this as I have now tried a lot of different things and I'm running out of luck on this one.
Thanks for reading!
I'd like to make a suggestion to be able to change the max number of hats a player can wear at once in the admin tab.
Any way possible to make a folder within a folder ? like if you have a vip section and then have sub sections like trails and models ? Thanks in advance for everything !
Say I link a model fro workshop with my server, will the models show up in Pointshop? If not is there some way we can get that to work?
Hi,
Just thought id let you know I get this error with the new update.
[ERROR] addons/poinshop-master/lua/sv_player_extension.lua:14: attempt to index local 'ITEM' (a nil value)
1.unknown - addons/pointshop-master/lua/sv_extenstions.lua:14
Thanks for this amazing plugin love the work you do !
-Gecka
Hi, I have problem with mysql data, when player joins to server his money is 0 and he have no items.
When he get money for playing on the server his money updates normal, but items still 0
There seems to be an issue when someone is in spectator mode with the new preview window, sometimes it would show the model as the grey man, other times it will just show a default model. Is it possible to make it so your models will show in the spectator preview window? or perhaps disable it or something.
I'm having an issue where the rag dolls of people disappear when using my Pointshop models. This is limited only to non-HL2 models from what seems to be the case. I'm not seeing any error messages either so its hard to pinpoint the issue.
hello im currently trying to add weapons to my ttt server and it dosent seem to work when i equip it it says equpied but i dont see it and i cant use it can anyone here give me a coding example that i can use WOULD BE GREATFUL!! Ive been searching everywere and cant find anyone who knows how to do this! please let me know thanks!
Guys please remember this is for pointshop not adding to my ttt server ! thanks!
Most of the weapons I buy from the point shop using the ones I downloaded WITH pointshop don't give the correct weapon
For example, I buy the RPG but receive the HUGE-249
Not sure if it's a problem with pointshop or my server. Can't find anyone else with the problem.
Okay I added my first custom model but unfortunately it shows purple/black checker boxes for most people, as they describe it 'pink' the object is a Hat, a Russian hat so I am wondering why are they not seeing it.
vmt/vtf file location: /178.239.161.25 port 27015/orangebox/garrysmod/materials/models/russianhat
model file location: /178.239.161.25 port 27015/orangebox/garrysmod/models/russianhat
russianhat.lua location: /178.239.161.25 port 27015/orangebox/garrysmod/addons/pointshop/lua/items/headshatsmasks
pointshopdownload.lua location: /178.239.161.25 port 27015/orangebox/garrysmod/lua/autorun/server
russianhat.lua http://pastebin.com/cJbQFbZn
pointshopdownload.lua http://pastebin.com/H8SBFSGm
pointshopdownload.lua is the file for forcing downloads of models and materials.
Please if you can see where the problem is and if it is mine or the script, I hardly doubt it is the script.
I really appreciate if you help me.
Well I have this in my console every time someone wears a hat (this for every single person)
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file models/hatt.mdl
mdlkeyvalue, (prop_data),
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file models/piratehat/piratehat.mdl
mdlkeyvalue, (prop_data),
1st is one model hat
2nd is another model hat
lets say 10 people wear it, I get spammed in the console 10 times.
I have no idea why this is happening and I think it crashed my server, once...
Hi there! I'm having issues with my provider/pdata ever since updating to the latest github stuff. So I'm getting the error of Missing provider: etc etc etc. My PS.Config.DataProvider = 'pdata', and my pdata looks like this:[CODE]function PROVIDER:GetData(ply, callback)
return callback(ply:GetPData('PS_Points', 0), util.JSONToTable(ply:GetPData('PS_Items', '{}')))
end
function PROVIDER:SetData(ply, points, items)
ply:SetPData('PS_Points', points)
ply:SetPData('PS_Items', util.TableToJSON(items))
end[/CODE]
thanks in advance, and points don't save.
i'm sorry to enquiry with nonsense english last time. :D
I wanted to say about the bug is existent.
When the player connect the server, saves are did not load or initialization.
This work makes worst situation :O...
please, give me fastest solution.
thank you for making the point shop! : )
im sorry to request about this.
Thanks~! ^_^
Would allow me ( and others ) to document new functions / hooks.
Well you did something horribly wrong that created midget writing, its unreadable and I tested it, not my side, something with the new stuff, made a picture of it below.
All the writing is small and you can't even read it + you cannot use the items, like wear them, ever since I uploaded the new one and if I try to use the old pointshop this still keeps happening, what happened? Can you help me please? Anyone?
Unable to take/give items.
This is what I receive when I attempt to give an item.
[ERROR] addons/pointshop-master/lua/vgui/dpointshopmenu.lua:180: Calling net.Start with unpooled message name [http://goo.gl/qcx0y]
This is what I receive when I attempt to take an item.
[ERROR] addons/pointshop-master/lua/vgui/dpointshopmenu.lua:187: Calling net.Start with unpooled message name [http://goo.gl/qcx0y]
Also the Admin panel is a little bit buggy, like sometimes the points don't show up you have to wait a while till they do and lets say 'Bob' has 4 items and he is wearing them, if I look on the Admin Panel, it shows 0.
I'm using ply:Spectate(OBS_MODE_ROAMING) to free-roam while dead in my gamemode, I don't think the trails should draw when a player is spectating.
iRzilla said that he will commit the fix, so he did but the problem is, it didn't fix anything, trails are still active when dead, although that only happens at some times not all the time, sometimes when I died they stay and sometimes they dissapear.
Screenshot of the game I had today.
None of my addons work (ulx, pointshop) but I looked in the console and found this for pointshop:
[ERROR] lua/autorun/server/pointshop.lua:24: unfinished string near '"'
Any ideas?
A preview window to show the players model with clientside models attached and a preview of any hovered item (if applicable).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.