Improved NS2 Web Admin

OneEyedOneEyed Join Date: 2003-03-14 Member: 14493Members
edited November 2012 in Server Discussion
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]
«13

Comments

  • DeadmindsXDeadmindsX Join Date: 2012-11-07 Member: 168110Members
    I need a script were we can adjust server max limit beyond 24. I have 3 servers connected to 1 gig line
  • MaxunitMaxunit Join Date: 2005-02-01 Member: 39414Members, Reinforced - Shadow
    <!--quoteo(post=2019004:date=Nov 11 2012, 01:49 AM:name=DeadmindsX)--><div class='quotetop'>QUOTE (DeadmindsX @ Nov 11 2012, 01:49 AM) <a href="index.php?act=findpost&pid=2019004"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I need a script were we can adjust server max limit beyond 24. I have 3 servers connected to 1 gig line<!--QuoteEnd--></div><!--QuoteEEnd-->

    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.
  • MaxunitMaxunit Join Date: 2005-02-01 Member: 39414Members, Reinforced - Shadow
    Anyway, another post to this topic:

    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 :)
  • DeadmindsXDeadmindsX Join Date: 2012-11-07 Member: 168110Members
    Thank you.
    added a 40 man server with improve web admin.
    lets see how this puppy works.
  • OneEyedOneEyed Join Date: 2003-03-14 Member: 14493Members
    <!--quoteo(post=2019103:date=Nov 10 2012, 09:14 PM:name=DeadmindsX)--><div class='quotetop'>QUOTE (DeadmindsX @ Nov 10 2012, 09:14 PM) <a href="index.php?act=findpost&pid=2019103"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Thank you.
    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.
  • DeadmindsXDeadmindsX Join Date: 2012-11-07 Member: 168110Members
    Thanks for the update.
  • eLboteLbot Join Date: 2012-09-13 Member: 159229Members
    edited November 2012
    For the love of god, please, PLEASE don't try and run a server with 40 slots. <a href="https://dl.dropbox.com/u/19755226/40slottick.png" target="_blank">Your hardware simply can't perform at that level</a> , which is no surprise considering there simply isn't any hardware configuration that could! Attempting to do so shows a significant level of inexperience with the server process and it's current performance limitations.

    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.
  • DeadmindsXDeadmindsX Join Date: 2012-11-07 Member: 168110Members
    Taking it back to 24/24 I wanted to see how much tick rate when it reach 40/40. I hope they support multicore asap.
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
    Does this make your server blacklisted?

    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
  • DeadmindsXDeadmindsX Join Date: 2012-11-07 Member: 168110Members
    u can always get around blacklisted :)
  • TechnIckSTechnIckS Join Date: 2007-01-14 Member: 59616Members
    ^ but only for server side mods. Anything to do with client side won't work.
  • eLboteLbot Join Date: 2012-09-13 Member: 159229Members
    edited November 2012
    <!--quoteo(post=2020206:date=Nov 11 2012, 04:05 PM:name=CoTTon)--><div class='quotetop'>QUOTE (CoTTon @ Nov 11 2012, 04:05 PM) <a href="index.php?act=findpost&pid=2020206"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Does this make your server blacklisted?<!--QuoteEnd--></div><!--QuoteEEnd-->


    <!--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?
  • MaxunitMaxunit Join Date: 2005-02-01 Member: 39414Members, Reinforced - Shadow
    I'm using the Improved Web Admin so far and couldn't notice any misbehaviour or anything harmful.

    I'm no JavaScript expert tho...
  • SeeVeeSeeVee Join Date: 2012-10-31 Member: 165206Members
    Can't wait to try it out when I get home, thanks for working on this, it sounds great!
  • WhosatWhosat Singapore Join Date: 2006-11-03 Member: 58301Members, Reinforced - Shadow
    OneEyed! The improvements work as stated :)

    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>
  • OneEyedOneEyed Join Date: 2003-03-14 Member: 14493Members
    <!--quoteo(post=2026991:date=Nov 17 2012, 12:18 PM:name=Whosat)--><div class='quotetop'>QUOTE (Whosat @ Nov 17 2012, 12:18 PM) <a href="index.php?act=findpost&pid=2026991"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->OneEyed! The improvements work as stated :)

    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.
  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    The web admin can be modded though the Workshop.
  • WhosatWhosat Singapore Join Date: 2006-11-03 Member: 58301Members, Reinforced - Shadow
    <!--quoteo(post=2027060:date=Nov 18 2012, 02:27 AM:name=Max)--><div class='quotetop'>QUOTE (Max @ Nov 18 2012, 02:27 AM) <a href="index.php?act=findpost&pid=2027060"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->The web admin can be modded though the Workshop.<!--QuoteEnd--></div><!--QuoteEEnd-->

    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?
  • SeeVeeSeeVee Join Date: 2012-10-31 Member: 165206Members
    Installed and working fine. However, it shows 1 player on all the time when the count is actually zero... anyone else have this issue?
  • SaniKSaniK Join Date: 2012-11-04 Member: 166850Members
    Great job Oneeyed :)

    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
  • woodywoody SoCal Woody56 Join Date: 2004-02-14 Member: 26541Members
    Are there any plans to automaticly add additional maps to the dropdown-menu ? Or are we stuck with editing the html.
  • SeeVeeSeeVee Join Date: 2012-10-31 Member: 165206Members
    edited December 2012
    <!--quoteo(post=2038748:date=Dec 2 2012, 07:58 AM:name=SeeVee)--><div class='quotetop'>QUOTE (SeeVee @ Dec 2 2012, 07:58 AM) <a href="index.php?act=findpost&pid=2038748"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Installed and working fine. However, it shows 1 player on all the time when the count is actually zero... anyone else have this issue?<!--QuoteEnd--></div><!--QuoteEEnd-->

    Still getting the phantom 1 player in the player count on the web admin when server is empty
  • FuhrerDarqueSydeFuhrerDarqueSyde Join Date: 2004-10-04 Member: 32076Members, Constellation
    edited January 2013
    Made a few changes to this mod.

    <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.
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
    Anyway to add the entity count?
  • SeeVeeSeeVee Join Date: 2012-10-31 Member: 165206Members
    <!--quoteo(post=2055164:date=Jan 3 2013, 02:58 AM:name=FuhrerDarqueSyde)--><div class='quotetop'>QUOTE (FuhrerDarqueSyde @ Jan 3 2013, 02:58 AM) <a href="index.php?act=findpost&pid=2055164"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Made a few changes to this mod.

    <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!
  • FuhrerDarqueSydeFuhrerDarqueSyde Join Date: 2004-10-04 Member: 32076Members, Constellation
    np, let me know if you find any more bugs and i'll update it.

    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.
  • SeeVeeSeeVee Join Date: 2012-10-31 Member: 165206Members
    installed and working nicely so far :)
  • FuhrerDarqueSydeFuhrerDarqueSyde Join Date: 2004-10-04 Member: 32076Members, Constellation
    Sounds good. :)

    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).
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
    <!--quoteo(post=2055324:date=Jan 3 2013, 06:11 AM:name=FuhrerDarqueSyde)--><div class='quotetop'>QUOTE (FuhrerDarqueSyde @ Jan 3 2013, 06:11 AM) <a href="index.php?act=findpost&pid=2055324"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->np, let me know if you find any more bugs and i'll update it.

    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.
  • MindstormMindstorm Join Date: 2012-12-17 Member: 175356Members
    Awsome fixes.

    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.
Sign In or Register to comment.