Raised This Month: $51 Target: $400
 12% 

[REQ] Play Time


Post New Thread Reply   
 
Thread Tools Display Modes
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 01-07-2018 , 16:10   Re: [REQ] Play Time
Reply With Quote #31

Quote:
Originally Posted by Bugsy View Post
This will require that you use the nvault_array include which requires that all servers running this have either a amxmodx dev build running or have the fixed nvault module installed.
I have the dev version. Can you make it?

Last edited by khashayar007; 01-07-2018 at 16:12.
khashayar007 is offline
Old 01-07-2018, 16:11
khashayar007
This message has been deleted by khashayar007.
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-07-2018 , 16:35   Re: [REQ] Play Time
Reply With Quote #32

@Bugsy
Sorry for jumping in, but, do you have any idea why sometimes nVault plugins crash the server and don't start until you remove the vault file? Didn't wanna create a thread just for this problem.
__________________
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-07-2018 , 16:54   Re: [REQ] Play Time
Reply With Quote #33

Check if the key isn't empty before saving the data. I can confirm this is happening.
__________________

Last edited by OciXCrom; 01-07-2018 at 16:54.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-07-2018 , 18:14   Re: [REQ] Play Time
Reply With Quote #34

Usually a corrupt vault file. Easiest fix is to delete the vault file and start fresh and make sure you are properly closing the vault when the map changes @ plugin_end(). I suppose a server crash could cause this to happen since the vault is not getting a graceful close.

I was testing something else today and accidentally saved a vault record with a blank key and it did not give me any errors.
__________________

Last edited by Bugsy; 01-07-2018 at 18:15.
Bugsy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-07-2018 , 18:44   Re: [REQ] Play Time
Reply With Quote #35

Not sure why and when it happens, but adding a blank check definitely prevents it. I did some testing a while ago.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-07-2018 , 18:46   Re: [REQ] Play Time
Reply With Quote #36

It happened to me without setting a blank key, I was saving my Levels & XP on SteamID. After I closed the vault in plugin_end it didn't crash anymore but I'm not sure how to reproduce it.
__________________

Last edited by edon1337; 01-07-2018 at 18:47.
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-07-2018 , 19:28   Re: [REQ] Play Time
Reply With Quote #37

Not closing in plugin_end(), saving data for bots and possibly blank keys - I have experienced corrputing in these cases.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-07-2018 , 19:39   Re: [REQ] Play Time
Reply With Quote #38

Having a stack trace from say GDB would help a lot in solving that problem if it's true.
__________________
klippy is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-07-2018 , 20:22   Re: [REQ] Play Time
Reply With Quote #39

Added menu for removing VIP and blacklisted, including both online and offline players. I have only done basic testing since I do not run a server and only have access to bots.

The plugin now requires nVault Utility and nVault Array. Those not running a dev build of AMX-X must use a fixed version of the nVault module.

Spoiler
__________________

Last edited by Bugsy; 02-04-2018 at 11:55.
Bugsy is offline
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 01-09-2018 , 01:54   Re: [REQ] Play Time
Reply With Quote #40

There are two errors in compiling
PHP Code:
nvault_array.inc(42) : error 021symbol already defined"nvault_set_array"
nvault_array.inc(80) : error 021symbol already defined"nvault_get_array" 
khashayar007 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode