bannedplayers.json not showing all bans on web interface
Mavick
Join Date: 2012-11-07 Member: 168138Members
Not sure what the trigger is that's causing this, but I've noticed lately that not all of the bans in my bannedplayers.json are showing on the ban tab on the web interface. This has caused me some confusion in the past, as the web interface is generally the quickest, easiest way to look at bans.
Comments
I also found out, the hard way, that if you alter the bannedplayers.json manually, while the server is running, that you will end up wiping your entire bannedplayers.json eventually. I believe it's most likely something to do with the fact that the web interface is also doing read/write from the file as well, and things go haywire when you make a change without using it on a running server.
Edit: The only way I could reproduce was to have no reason specified for the ban. Would still be nice to have your ban list and ensure that is what is going on.
In rcon.js (located ns2/web/js) you can add the following lines at line 172, just after the line that reads
if(!ban.reason){
ban.reason = "None";
}
That should solve the problem. I will try to get it in the next patch.
I might give your idea a try tho. Would be odd, I'm pretty sure most of bans on my old list didn't have any reasons, but it was only a few bans that wouldn't show up.
It looks like Brian took care of it in the engine, so next patch should fix things and a ll your bans should appear. In the interim, you can add the above code to your rcon.js and things should work out until then.