Improved NS2 Web Admin
OneEyed
Join Date: 2003-03-14 Member: 14493Members
The "Players" tab in the web admin was lacking on the list features.
Here are the changes I made:
- Added ability to sort rows by clicking on column title.
- Added player connection time. (It starts from when you open the web admin, and resets when map changes. This is the best I can do at the moment.)
- Added row numbering.
- Improved list updating code for better performance.
- Improved player count. (It was telling me I had more players than were actually in server, now it always shows real player count.)
To Install, simply add and replace the files in the .zip to your NS2Server/ns2/web/ folder
(Updated to <i>v1.2</i> 11/10/2012 @ 8:03pm)
- Fixed "No Connected Players." staying after players enter.
- Fixed players not being removed.
- Fixed "No Connected Players." appearing multiple times when map changed.
[attachment=36167:Improved...min_v1.2.zip]
Here are the changes I made:
- Added ability to sort rows by clicking on column title.
- Added player connection time. (It starts from when you open the web admin, and resets when map changes. This is the best I can do at the moment.)
- Added row numbering.
- Improved list updating code for better performance.
- Improved player count. (It was telling me I had more players than were actually in server, now it always shows real player count.)
To Install, simply add and replace the files in the .zip to your NS2Server/ns2/web/ folder
(Updated to <i>v1.2</i> 11/10/2012 @ 8:03pm)
- Fixed "No Connected Players." staying after players enter.
- Fixed players not being removed.
- Fixed "No Connected Players." appearing multiple times when map changed.
[attachment=36167:Improved...min_v1.2.zip]
Comments
There is no script for that. You would have to modify the Server.exe with a hex editor and modify a small part from the exe to unlock it. It was mentioned on the forums somewhere.
Thank's for modding the Web Admin :)
I like the changes and I hope, that there might be a way to read the real player connection time.
Keep it up :)
added a 40 man server with improve web admin.
lets see how this puppy works.
added a 40 man server with improve web admin.
lets see how this puppy works.<!--QuoteEnd--></div><!--QuoteEEnd-->
I updated the code, there was some errors, make sure u get the latest one.
PLEASE take this server down, an average tick of 5 before the server is even full is appalling and only serves to damage public perception of the game's performance and balance harming our community. The game was not designed, nor balanced, nor is it even possible to host a server with 40 slots at any reasonable tick/choke/hit reg. Just.. no. Stop.
EDIT: Live and historical perf graphs for what I assume is your server, it was the only 40 slot I saw: <a href="http://ns2servers.devicenull.org/detail.php?id=20489" target="_blank">http://ns2servers.devicenull.org/detail.php?id=20489</a> bare in mind that ANY tick deviation from 29-30 is undesirable and dropping below 25 very noticeable and detrimental.
Is it possible to add entity count as well? I have to use HLSW just to find it.
But these features looks really good - Thanks
<!--quoteo(post=2020403:date=Nov 11 2012, 08:11 PM:name=DeadmindsX)--><div class='quotetop'>QUOTE (DeadmindsX @ Nov 11 2012, 08:11 PM) <a href="index.php?act=findpost&pid=2020403"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->u can always get around blacklisted :)<!--QuoteEnd--></div><!--QuoteEEnd-->
It's worth stating that nothing is black-listed currently, but rather grey-listed instead.
This thread has suffered massive derailment, can we get back on the initial topic? Who's using the improved WebAdmin and has anyone given the code a glance to see if it's friendly?
I'm no JavaScript expert tho...
Any chance you have this on Github or something so other people can work on it too? Perhaps branch off the original developer devicenull's ns2web? <a href="https://github.com/devicenull/ns2web" target="_blank">https://github.com/devicenull/ns2web</a>
Any chance you have this on Github or something so other people can work on it too? Perhaps branch off the original developer devicenull's ns2web? <a href="https://github.com/devicenull/ns2web" target="_blank">https://github.com/devicenull/ns2web</a><!--QuoteEnd--></div><!--QuoteEEnd-->
I don't have anything. I just saw a change I could make and did it, and thought you guys might like it. The web admin is great and all, but its very buggy, and takes up a lot of browser memory. AJAX is a cool thing they added, but it's communication protocol is extremely slow. Web sockets have been on browsers for a while now, I think they should move towards that.
Hey Max, would this not mean that it would filter the server off the default server browser list as the server would be tagged as having community content?
Even though the web interface will do absolutely nothing to change gameplay?
Are these other changes possible?
-A way to get rid of installed mods
-chat to a specific player or group of players
-Players tab grouping so you can view all the players by team/ping/score/etc.
-performance tab has a bigger graph with more stats you can click on or off to see
Still getting the phantom 1 player in the player count on the web admin when server is empty
<a href="http://www.neonblu.com/upload/NS2Web.7z" target="_blank">http://www.neonblu.com/upload/NS2Web.7z</a>
1) Tick rate is now string formatted to xx.xx so 29.9 tickrate shows as 29.90, 30 tickrate shows as 30.00. More consistent.
2) Class shows as Ready Room and Spectator instead of 0 and 3.
3) Added (*) to class when the player is the commander.
4) Added popup prompt to the 4 buttons below the player list such as Reset Round because I've already accidentally clicked it once on a full server. Ok executes, cancel does nothing.
5) Fixed the 1 players bug. It now properly shows "0 Players", "1 Player" and "x Players" (for more than 1).
I think that's all I added...
Technically all i edited was the rcon.js and index.html if I recall correctly.
<a href="http://www.neonblu.com/upload/NS2Web.7z" target="_blank">http://www.neonblu.com/upload/NS2Web.7z</a>
1) Tick rate is now string formatted to xx.xx so 29.9 tickrate shows as 29.90, 30 tickrate shows as 30.00. More consistent.
2) Class shows as Ready Room and Spectator instead of 0 and 3.
3) Added (*) to class when the player is the commander.
4) Added popup prompt to the 4 buttons below the player list such as Reset Round because I've already accidentally clicked it once on a full server. Ok executes, cancel does nothing.
5) Fixed the 1 players bug. It now properly shows "0 Players", "1 Player" and "x Players" (for more than 1).
I think that's all I added...
Technically all i edited was the rcon.js and index.html if I recall correctly.<!--QuoteEnd--></div><!--QuoteEEnd-->
AWESOME!!! Thanks for updating this!
As for entity count, i can check to see if ServerWebAdmin.lua (or w/e the file is called, i forget) is passing that data to the webui. If not, it could be modified but that may flag your server and that is not something i want to do. So i'll see if that data is provided using the stock ServerWebAdmin.lua and if so i'll add it to the perf tab.
I do plan to look into adjusting how the chat shows up as right now you basically cant scroll because when it refreshes the chat it throws you right back to the bottom of the frame. Another thing I want to look into is getting the response to manual rcon commands (i.e. i type sv_status and I get the returned data represented on the page somewhere).
As for entity count, i can check to see if ServerWebAdmin.lua (or w/e the file is called, i forget) is passing that data to the webui. If not, it could be modified but that may flag your server and that is not something i want to do. So i'll see if that data is provided using the stock ServerWebAdmin.lua and if so i'll add it to the perf tab.<!--QuoteEnd--></div><!--QuoteEEnd-->
I can get the entity count information from HLSW so I'm sure it's in there somewhere.
Is it also possible to fix the time wich is displayed at the bottom of the performance graph?
Currently its like
10:01 --- 11:01 ---- 11:01 ---- 11:01 ---- 11:01
Something wrong with the increments there.