• WIP: PointShop
    528 replies, posted
I think I fixed it if anyone want's to try it (worked for me in multiplayer): [url]http://filesmelt.com/dl/sv_pointshop.zip[/url] Just extract both files to the pointmod/lua folder and replace both.
[QUOTE=quacles;26113338]I think I fixed it if anyone want's to try it (worked for me in multiplayer): [url]http://filesmelt.com/dl/sv_pointshop.zip[/url] Just extract both files to the pointmod/lua folder and replace both.[/QUOTE] I will try this now. Il edit this post it works or not. First EDIT: I updated the current SVN and it updates the 2 files. Il see if its your files he added. Second EDIT: Im not to sure if it actaully works. Since ive tryed this when it did not save correctly and i think it broke my saving. So when these items are saving it kinda fucks up. I will try and add this to my server and see if it works there. Hopefully it does. Also is there any way to delete the pdata "files". I know it does not save in files it saves ingame. How would i delete that saving?
[lua] for _, ply in pairs(player.GetAll()) do ply:SetPData("PointShop_Points", 0) ply:SetPData("PointShop_Items", glon.encode({})) end [/lua]
[QUOTE=_Undefined;26117335][lua] for _, ply in pairs(player.GetAll()) do ply:SetPData("PointShop_Points", 0) ply:SetPData("PointShop_Items", glon.encode({})) end [/lua][/QUOTE] Thank you il be adding that now. Anyways DOES it actually works now? EDIT: Where does that code actually goes. I mean if i add it to one of the files it would be running each time i start it up? EDIT: I tryed this the update on my server and it was still the same. Did not work. Are you sure its working?
The snippet is to 'delete the pdata'. If you want to reset for everyone, you'll need to do some sql stuff. I never said it's working... I uploaded what quacles posted, haven't tested it. I don't have time to work on this, but anyone else feel free to post fixes. PM and I'll upload to SVN.
[QUOTE=_Undefined;26118606]The snippet is to 'delete the pdata'. If you want to reset for everyone, you'll need to do some sql stuff. I never said it's working... I uploaded what quacles posted, haven't tested it. I don't have time to work on this, but anyone else feel free to post fixes. PM and I'll upload to SVN.[/QUOTE] Alright so i belive its NOT working /sadface. Anyways could you possibly put the SVN back till when it was working? I belive it was last working when it had that table of items and not a file for each items. Not that that is the problem but it was working when it was like that. So could you put it back till when it was working?
Just checkout revision 61.
[QUOTE=Crap-Head;26118645]Alright so i belive its NOT working /sadface. Anyways could you possibly put the SVN back till when it was working? I belive it was last working when it had that table of items and not a file for each items. Not that that is the problem but it was working when it was like that. So could you put it back till when it was working?[/QUOTE] Weird... I have it on my server and everything is working fine...
[QUOTE=quacles;26120725]Weird... I have it on my server and everything is working fine...[/QUOTE] You sure you didn't change anything else :\ I'm sure things can get forgotten easily when trying to find a tiny hidden issue somewhere.
[QUOTE=_Undefined;26119555]Just checkout revision 61.[/QUOTE] Putting it back now. Il edit my post with the results. EDIT: Amazing it works! Alright so for the people who does not know how to put back your SVN here is a little guide: 1. Right click your folder. 2. Press TortoiseSVN and then press Update to revision. 3. You will have a window appearing and you simply time in 61. It will delete the folder items and it will update some files aka downgrading them.
My server has a working rev 71 :buddy:
[QUOTE=.\\Shadow};26127041]My server has a working rev 71 :buddy:[/QUOTE] Did you edit anything? Contributions are nice :)
[QUOTE=tgp1994;26130782]Did you edit anything? Contributions are nice :)[/QUOTE] Actually Trivkz edited it :downs: [editline]q[/editline] He has enough to work on, don't bother him about it ;3
[QUOTE=.\\Shadow};26130926]Actually Trivkz edited it :downs: [editline]q[/editline] He has enough to work on, don't bother him about it ;3[/QUOTE] You probably are gonna keep it for yourself :/ But could you possible upload so _Undefined can update the SVN? Just keep out your custom stuff if you dont want people to have your custom codes/items. Please?
[QUOTE=Crap-Head;26137501]You probably are gonna keep it for yourself :/ But could you possible upload so _Undefined can update the SVN? Just keep out your custom stuff if you dont want people to have your custom codes/items. Please?[/QUOTE] The fix have already been posted.
[QUOTE=Trivkz;26137673]The fix have already been posted.[/QUOTE] In the SVN?
Does it work online yet?
Im using 71, and it works to a certain extent. Hat's won't appear and stuff, armor doesn't come back when I die, which I'd like. I just have perm. items.
[QUOTE=Jaastin;26150047]Im using 71, and it works to a certain extent. Hat's won't appear and stuff, armor doesn't come back when I die, which I'd like. I just have perm. items.[/QUOTE] Fortunately, that just sounds like stuff that needs to be implemented, rather than flat out bugs.
Oh, sounds good. This addon has lots of potential, I'll love to use this on my server. :)
[QUOTE=Jaastin;26170639]Oh, sounds good. This addon has lots of potential, I'll love to use this on my server. :)[/QUOTE] If you want it to work just put it back to rev 61. Im having rev 61 which works. The only thing is a few bugs (Which ive alredy fixed) and that your items is all in one table not in difrently files. Also the bug appears when you type ps_xcommand 1000. So when you forget to name the player the bug appears so its nothing big.
i ♥ it !
This seems pretty good, the svn doesn't seem to be accepting any login though.
[QUOTE=BomBom;26540069]This seems pretty good, the svn doesn't seem to be accepting any login though.[/QUOTE] It doesn't need a login to download?
Before you go on, the most basic basic thing that you forgot. Sell confirmation. Do you want to sell ""? Would've been the best idea.
[lua] Icon.DoClick = function() local menu = DermaMenu() menu:AddOption("Sell", function() RunConsoleCommand("pointshop_sell", item_id) end) if item.Respawnable then menu:AddOption("Respawn", function() RunConsoleCommand("pointshop_respawn", item_id) end) end menu:Open() end [/lua] [editline]11th December 2010[/editline] It's better than nothing.
for some reason, hats simply dont work at all. im running a server that uses the fretta gamemodes deathrun, surf, and prop hunt, anyone know what causes it? you can buy the hats and everything works fine, they just simply fail to spawn.
-snip-
[img]http://i.imgur.com/ZEUHZ.png[/img] All fixed! :)
In the config of the shop i see this : POINTSHOP.Config.PlayerDeath = true -- Give Points when a player is killed by a player? POINTSHOP.Config.PlayerDeathAmount = 150 -- Amount to give for killing a player. but when players kill death ( in deathrun ) they dont get any points :p
Sorry, you need to Log In to post a reply to this thread.