Darth_Rogue Posted March 24, 2015 Report Share Posted March 24, 2015 This isn't really a *bug* per se, just an annoyance. I've noticed that when running a headless client every time the server restarts it is assigned a new player ID in the database (see screenshot below). It would be helpful for certain scripts and also for the sake of organization if the headless client could be given the same player ID on every restart or reconnect. This will help prevent unnecessary database bloat and allow admins to use a finite player ID to make their HC do what they want it to do, like move to a new location via script, among other things. Also, what happens if the random ID that's assigned goes past 'HC9999'? Is an error caused then or can the system assign more than 4 digits to the HC's player ID? It's something that should be considered as development continues, especially with the performance issues that many server owners are facing. The effective use of a headless client is becoming more and more important. Friendly 1 Link to comment Share on other sites More sharing options...
Friendly Posted March 24, 2015 Report Share Posted March 24, 2015 Please do this as over the past 3 months there are now about 50+ of these in my db and just gets told to have to delete them. http://gyazo.com/da121271020dc79f0035758bd7df58bb Link to comment Share on other sites More sharing options...
SpiRe Posted March 24, 2015 Report Share Posted March 24, 2015 True story... DEVs should exclude HC from being saved to DB and from Players Trading, Money sending Darth_Rogue 1 Link to comment Share on other sites More sharing options...
RC_Robio Posted March 24, 2015 Report Share Posted March 24, 2015 Awol had posted about adding custom key namespaces to redis. You would then just change the TTL to whatever your restart length is. As I'm assuming they are created at each restart? Link to comment Share on other sites More sharing options...
vbawol Posted March 24, 2015 Report Share Posted March 24, 2015 We will provide support for headless clients in future patches, At this time I dont think this should be to much of an issue since this headless client player data should expire after 30 days just like normal player data does, even 50 entries should not be much data and they should cleanup automatically over time. How many MB is your redis process using ATM? stonXer 1 Link to comment Share on other sites More sharing options...
SpiRe Posted March 24, 2015 Report Share Posted March 24, 2015 13.7MB redis-server.exe 24:4=6 ( 4 hours restarts = 6 entries per day ) 6x30 = 180 entries ( 180 entries minimum per month ) Half of entries in DB are just HC Link to comment Share on other sites More sharing options...
RC_Robio Posted March 24, 2015 Report Share Posted March 24, 2015 For now I would set up a redsmin account https://redsmin.com as you can do batch delete keys easily. I've used this quite a bit. Nice web interface. http://blog.redsmin.com/post/67268871371/rename-duplicate-and-delete-redis-keys-in-batch Simply put Player:HC* in the top left box hit delete Link to comment Share on other sites More sharing options...
Darth_Rogue Posted March 24, 2015 Author Report Share Posted March 24, 2015 I'm currently at 2.1MB but my server gets pretty little traffic. Link to comment Share on other sites More sharing options...
Darth_Rogue Posted March 24, 2015 Author Report Share Posted March 24, 2015 For now I would set up a redsmin account https://redsmin.com as you can do batch delete keys easily. I've used this quite a bit. Nice web interface. http://blog.redsmin.com/post/67268871371/rename-duplicate-and-delete-redis-keys-in-batch Simply put Player:HC* in the top left box hit delete Can't seem to get it to connect. Keep getting socket errors. Windows Firewall is off on the server. Link to comment Share on other sites More sharing options...
RC_Robio Posted March 24, 2015 Report Share Posted March 24, 2015 Did you add your server ip after the localhost ip in redis.conf so it can make outside connections? Example: bind 127.0.0.1 192.168.1.23 maxmemory 4gb save 900 1 save 300 10 save 60 1000 requirepass mysupersecurepassword Link to comment Share on other sites More sharing options...
Darth_Rogue Posted March 24, 2015 Author Report Share Posted March 24, 2015 Did you add your server ip after the localhost ip in redis.conf so it can make outside connections? Example: bind 127.0.0.1 192.168.1.23 maxmemory 4gb save 900 1 save 300 10 save 60 1000 requirepass mysupersecurepassword Ahhhh....no that's probably why. Will try that later after my next restart. Thanks! Link to comment Share on other sites More sharing options...
Darth_Rogue Posted March 24, 2015 Author Report Share Posted March 24, 2015 That works! I like the look of the monitoring tool. Supposedly it's still under development and has more features coming "soon", like editing. Gonna keep my eye on this one for sure! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now