Garry's Mod

Garry's Mod

[DarkRP] Keep pocket contents when disconnecting
124 則留言
Hexon_Boi 2024 年 6 月 14 日 下午 5:27 
can u add a convar that makes perma pockets save contents for separate jobs? So when im like medic i can store medkits but when i change to other job i have another set of items in my pocket
Cédric GÉRILLE [GiletJaune]  [作者] 2018 年 7 月 28 日 上午 3:28 
If it's in your pocket when you leave then I suppose it will still be there when you come back.
☝Пошел на ♥♥♥ 2018 年 7 月 28 日 上午 12:38 
Say in Russian , if i exit server and join again my money printer will save?
Cédric GÉRILLE [GiletJaune]  [作者] 2018 年 7 月 15 日 上午 6:45 
You just told me you can't subscribe to the DarkRP on the Workshop. Deal with it but honestly it's not so much of a problem of mine. :steammocking:
Quotation Marx 2018 年 7 月 15 日 上午 5:11 
Surely there's a Steam workshop link? I'm just unhealthily paranoid about viruses.
Cédric GÉRILLE [GiletJaune]  [作者] 2018 年 7 月 15 日 上午 4:03 
Just add it on your game / server by downloading it through its Git repository (or the Subversion compatibility layer if you prefer instead).
Home page: https://github.com/FPtje/DarkRP/
Quotation Marx 2018 年 7 月 15 日 上午 3:50 
How do you even download the Darkrp gamemode? It says that I can't access it if I click on it & therefore I can't subscribe to it
Bolsonaro 2018 年 1 月 28 日 下午 3:37 
cance :steamhappy:
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 12 月 24 日 上午 4:50 
Of course not, because everything can be spawned from the spawn menu with no limit.
tourniquet taster 2017 年 12 月 23 日 下午 7:48 
IS THERe SOMETHING LIKE THis in ssandbox?\
robalek69 2017 年 9 月 3 日 上午 6:56 
I hope i have pasted it correct xD
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 7 月 29 日 下午 5:25 
Well, I do not think I have done something serious in my last updates...
I use the method Player:SetPData() [wiki.garrysmod.com], which means that saved pockets are stored in the server's sv.db (which is an SQLite database).

The problems you mention seem to be something related to some bad SQL requests from your addons, or worse (backdoor, etc.).

I do not use my own table in the database (which is not really smart), so any kind of cleanup requires some work to make. I have not done a cleanup feature, so that's for sure the full cleanup does not come from my code. Nevertheless, if your pocket is empty when you disconnect then your saved pocket will actually be removed from database rather than saving an empty (and useless) pocket list.
Soma 2017 年 7 月 29 日 下午 1:51 
Just curious, my pockets will randomly lose everything when I reconnect. It's strange, because since my last comment, it's worked fine 90% of the time. Randomly it erases everyones pockets when we start up the server though, every once in awhile.

I'm assuming it has to do with the assorted random addons I've been incorporating into my server, (durgz mod, alchemy mod, vapes, etc.) but I can't seem to pinpoint which one is the cause. I'm sure it's one of my addons, but I was just wondering if you had any ideas as to why this would be happening.
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 6 月 2 日 上午 1:50 
:steamhappy:
Soma 2017 年 6 月 1 日 下午 11:30 
Ah ok. I may have 3000+ hrs in Gmod, but I'm only now learning DarkRP. Thanks for your help, the addon works great! :)
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 6 月 1 日 下午 9:53 
You just open it with your favorite text editor. xD Those files are just a list of ConVars with their values.
Soma 2017 年 6 月 1 日 下午 9:47 
If i can do it through the console, then nevermind. No need for the arbitrary file problems. xD
Soma 2017 年 6 月 1 日 下午 9:46 
But how do you open the server.cfg? It isn't recognized by Notepad, so how am i supposed to add code to it if i have no way of reading it's contents?
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 6 月 1 日 下午 9:41 
Either you type them in console or you put them in cfg/server.cfg, very simple isn't it?
Soma 2017 年 6 月 1 日 下午 9:26 
Um, how do I add the console variable? Can you please help me?
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 5 月 6 日 上午 6:25 
I do not know. :steamsad:
Chisma 2017 年 5 月 6 日 上午 6:24 
Okay, but in what file I put it, I'm not sure
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 5 月 6 日 上午 6:21 
This addon is meant to save and restore the content of the default pocket. :steamsad:
Chisma 2017 年 5 月 6 日 上午 6:05 
I've done it but nothing happens, the default pocket is set
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 5 月 6 日 上午 5:27 
Usually by adding it to your server's collection!
Chisma 2017 年 5 月 6 日 上午 4:35 
How can I install it?
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 3 月 26 日 上午 8:53 
Well, it's complicated, otherwise I would have fixed it already.
Basically you can remove the filter. The problem is that you have several fields that do not contain something that can be stored (especially entities). You need to find a way to make them storeable in database.
M0NstR. 2017 年 3 月 26 日 上午 8:44 
how can i fix this, if possible?
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 3 月 26 日 上午 8:02 
It's because restoring entities does not restore every field.
I filtered saved data to avoid storing a big bunch of useless information.
And obviously that does not work well for every entity type.
M0NstR. 2017 年 3 月 26 日 上午 7:14 
Hi! Please, can you tell me, why weapons save in inventory, but after reconnect, it is props, I can't take it. (sry for my bad english)
zzz 2017 年 1 月 14 日 下午 1:15 
cool
Dalek101 2017 年 1 月 8 日 下午 12:26 
well i think the addon version is deleted but i cant make a steamcmd or anything else cos i try and try again but it never works
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 1 月 8 日 上午 9:54 
You want the DarkRP as an addon? Is that the question?
Dalek101 2017 年 1 月 8 日 上午 8:54 
how do i get the actual darkRP addon for the gamemode?
Husky Chocolate 2016 年 12 月 20 日 下午 2:44 
As a Fan of your addon, i believe you have the will and capability to accomplish all you have to do. good luck sir.
Cédric GÉRILLE [GiletJaune]  [作者] 2016 年 12 月 20 日 下午 2:31 
LOL, but I have so much to do...
Husky Chocolate 2016 年 12 月 20 日 下午 2:21 
Sir, The potential is here, the only thing stunting your achievment is your Atitude.
Cédric GÉRILLE [GiletJaune]  [作者] 2016 年 12 月 20 日 上午 8:22 
My brain cannot achieve such an improvement.
Husky Chocolate 2016 年 12 月 19 日 下午 10:58 
you can buff it by reducing all shipments with items above 10 to 10 upon server entry
Cédric GÉRILLE [GiletJaune]  [作者] 2016 年 12 月 19 日 下午 10:35 
Because it's a dangerous feature.
Husky Chocolate 2016 年 12 月 19 日 下午 9:03 
Why No Save?
Cédric GÉRILLE [GiletJaune]  [作者] 2016 年 12 月 16 日 上午 10:05 
Bah, c'est la poche habituelle du DarkRP.
Yoru Wakusei 2016 年 12 月 16 日 上午 6:51 
je trouve pas le pocket
Cédric GÉRILLE [GiletJaune]  [作者] 2016 年 12 月 13 日 上午 8:17 
That is true, shipment information is not saved yet.
Husky Chocolate 2016 年 12 月 13 日 上午 12:18 
Shipments are broken after loging back in, no model/descripting just a crate, hit 'e' on it and it disappears, 10 weapons gone.
Cédric GÉRILLE [GiletJaune]  [作者] 2016 年 12 月 9 日 下午 1:44 
If you enable darkrp_keep_pocket_forever, almost everything is concerned.
A big remake is needed to restore every field of entities.
76561198116800015 2016 年 12 月 9 日 下午 1:40 
What exactly? Im going to use pocket as inventory
Cédric GÉRILLE [GiletJaune]  [作者] 2016 年 12 月 9 日 下午 1:38 
I think so, but it is still as buggy as it was. xD
76561198116800015 2016 年 12 月 9 日 下午 1:36 
still working?
Cédric GÉRILLE [GiletJaune]  [作者] 2016 年 11 月 15 日 上午 8:11 
Nevermind, this addon is kind of outdated.