Re: OciXCrom's Rank System [XP|Levels|Ranks]
For some reason sometimes it wont save my exp correctly, it will reset to 0, yesterday i gave myself 1000 exp but then (next day) it was on 0 again
SAVE_TYPE = 0 Using same nick EDIT: On change map it will save but if I turn off server it will reset |
Re: OciXCrom's Rank System [XP|Levels|Ranks]
How are you turning off your server exactly? If you're not doing it properly, the plugin won't be able to save the data.
|
Re: OciXCrom's Rank System [XP|Levels|Ranks]
Well, just closing it, but what do you mean "correctly" I mean, what if ""for some reason"" server gets shutdown (power went off, DDOS), it will loss data, not sure but I dont think thats right.
or when do you need to restart your server for whatever reason (Installing a new module or maintenance, for example) |
Re: OciXCrom's Rank System [XP|Levels|Ranks]
"Just closing it" by pressing the X button is not considered a proper shutdown. This won't call any of the plugin's functions which need to detect when the map ends and the players disconnect to save the data. Not only this plugin, but none of your plugins that save stuff in the end will save them. Use the "exit" command to shut it down and "restart" to restart it.
|
Re: OciXCrom's Rank System [XP|Levels|Ranks]
Thats what I did, but still, for some reason EXP will go to 0 regardless.
I was testing with SteamID but it will save correctly Also it makes no sense, because i am playing x map, got 10 exp and then change map it will save then close or rr server and it will go to 0 again |
Re: OciXCrom's Rank System [XP|Levels|Ranks]
Not sure why that is happening. I added some logs in the code that will print what's going in the logs/crxranks.log file. Leave it running for a while and upload the log file when you experience this again.
I'll upload the code in pastebin, since alliedmods has a weird bug at the moment - https://pastebin.com/9r9jEeTG |
Re: OciXCrom's Rank System [XP|Levels|Ranks]
Quote:
I just did the following, choose a map, give 100 exp, change to the same map while being connected, 100 exp still, then restart sv, 0 EXP. |
Re: OciXCrom's Rank System [XP|Levels|Ranks]
Let's add some colors to those logs so we can easily find what we need.
Quote:
|
Re: OciXCrom's Rank System [XP|Levels|Ranks]
I have nothing else more than Deathrun Manager, your custom chat, Ranks and Knife there (and Joropito multimod) so yeah, not sure what is going on
Its strange too because even if the data wasnt saved later, first map I testeed was where I gave me EXP and then it saved correctly |
Re: OciXCrom's Rank System [XP|Levels|Ranks]
The Deathrun Manager itself can be causing the problem - if I recall correctly, its code isn't very good. I suggest you disable any other plugins and enable them 1 by 1 to see which one is causing the problem. You can use the error logs generated from my plugin to help you in the process.
|
All times are GMT -4. The time now is 15:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.