Good Question. Small oversight on my part.
I will do another pass sometime soon and implement it when I get a chance and get some sleep etc.
I will also redo the readme at somepoint since It was quickly threw together on github, and then I had to mangle it quite a bit when trying to setup the CDB page (which while it didn't help, it needed some redoing anyway, I just needed to be able to test getting it published first etc.) so I had to do that just to be able to kinda fit it on CDB.
I need to rewrite some parts and make some things clear, like there are some permissions for the refresh rate command and performance monitor command so that the commands can be used instead of just config files, but with permissions, players can't just use it willynilly and possibly cause issues or use them maliciously (connect a tonne of clients and put refresh frequency way too high and then run around and cause too many updates) for e.g.
I have a few other server management features in mind but who knows.
I still have some learning and thinking to do on how I should go about this in Luanti.
I should also should make a default config example and include comments there.
I wasn't so sure on how much this mod would be used especially on servers, so I appreciate the comment which indicates that others wanted something like this aswell, and want to use it on their server too.
Hey @Opons Meant to push this a couple days ago but hey, better late than never right?
New update where I rethought and rewrote a lot of the underlying code, and implemented the feature you requested and a little more.
Hope you check it out and find it useful, let me know if you do and how you get on.
It works well, nice! The toggle works, and the only complaint left I and other players seem to have is the display seeming tk be behind a few nodes and tryjng to catch up, but thats probably an issue on my end. if your open to taking one more feature request, maybe a optional setting that has eye spy off by default for all players, makig it opt-in?
Good idea, I can add that at some point.
The being a few nodes behind may be due to the default refresh rate, I may need to update that actually.
try
/eye_spy_rate default 75
this will change the default so it refreshes more often, having it refresh less often helps performance of the server and clients but makes the mod and ui seem to be less performant as a result, increasing makes that seem more responsive but can impact the server so finding the sweet spot of this for the server for balancing server load and responsiveness may need to be dialed in more. I tried to play it safe but may have made the refresh rate too high as a result.
For players that already joined/changed their player-specific refresh-rate/an admin did, I think I will add another setting to force all of theirs to go back to the default. Missed that edge case scenario for doing things like this I think.
In the mean time you would have to change each players or get the player to change theirs.
do /eye_spy_rate [player_name] 75 for each player and yourself for now.
I will also add the ability for the admin to change the range that the users can set for refresh rate, but at-least they require the permission eye_spy_rate to change it themselves as it stands right now.
Give it a try by setting your own and a couple of the users refresh rate to like 50-75 for testing and then see if it changed and made it look and feel more performant on the UI side, would appreciate you letting me know if this was the case you and your users and server.
I considered lowering to somewhere between 75-95, maybe I forgot, I will do that next update too, especially if you get back after testing this too and find it helps.
Hey small quick update, I noticed I somehow accidentally set the default refresh rate way to high at somepoint but it never reflected on my server because of the config I had set there, I fixed that now.
So when you change your servers default refresh rate it will feel much better because it may have been running at 250ms which is unreasonable to be honest.
I've set the new default to 100m which seems to be a perfect setting for balance while remaining responsive feeling.
Is there a setting for players to be able to disable this on a per-player basis?
Good Question. Small oversight on my part. I will do another pass sometime soon and implement it when I get a chance and get some sleep etc.
I will also redo the readme at somepoint since It was quickly threw together on github, and then I had to mangle it quite a bit when trying to setup the CDB page (which while it didn't help, it needed some redoing anyway, I just needed to be able to test getting it published first etc.) so I had to do that just to be able to kinda fit it on CDB.
I need to rewrite some parts and make some things clear, like there are some permissions for the refresh rate command and performance monitor command so that the commands can be used instead of just config files, but with permissions, players can't just use it willynilly and possibly cause issues or use them maliciously (connect a tonne of clients and put refresh frequency way too high and then run around and cause too many updates) for e.g.
I have a few other server management features in mind but who knows. I still have some learning and thinking to do on how I should go about this in Luanti.
I should also should make a default config example and include comments there.
I wasn't so sure on how much this mod would be used especially on servers, so I appreciate the comment which indicates that others wanted something like this aswell, and want to use it on their server too.
Hey @Opons Meant to push this a couple days ago but hey, better late than never right? New update where I rethought and rewrote a lot of the underlying code, and implemented the feature you requested and a little more. Hope you check it out and find it useful, let me know if you do and how you get on.
It works well, nice! The toggle works, and the only complaint left I and other players seem to have is the display seeming tk be behind a few nodes and tryjng to catch up, but thats probably an issue on my end. if your open to taking one more feature request, maybe a optional setting that has eye spy off by default for all players, makig it opt-in?
Good idea, I can add that at some point. The being a few nodes behind may be due to the default refresh rate, I may need to update that actually.
try /eye_spy_rate default 75
this will change the default so it refreshes more often, having it refresh less often helps performance of the server and clients but makes the mod and ui seem to be less performant as a result, increasing makes that seem more responsive but can impact the server so finding the sweet spot of this for the server for balancing server load and responsiveness may need to be dialed in more. I tried to play it safe but may have made the refresh rate too high as a result.
For players that already joined/changed their player-specific refresh-rate/an admin did, I think I will add another setting to force all of theirs to go back to the default. Missed that edge case scenario for doing things like this I think.
In the mean time you would have to change each players or get the player to change theirs.
do /eye_spy_rate [player_name] 75 for each player and yourself for now.
I will also add the ability for the admin to change the range that the users can set for refresh rate, but at-least they require the permission eye_spy_rate to change it themselves as it stands right now.
Give it a try by setting your own and a couple of the users refresh rate to like 50-75 for testing and then see if it changed and made it look and feel more performant on the UI side, would appreciate you letting me know if this was the case you and your users and server.
I considered lowering to somewhere between 75-95, maybe I forgot, I will do that next update too, especially if you get back after testing this too and find it helps.
Hey small quick update, I noticed I somehow accidentally set the default refresh rate way to high at somepoint but it never reflected on my server because of the config I had set there, I fixed that now.
So when you change your servers default refresh rate it will feel much better because it may have been running at 250ms which is unreasonable to be honest.
I've set the new default to 100m which seems to be a perfect setting for balance while remaining responsive feeling.