[Updated 27-12-2011] MyMNCServer - Server Management Tool

Discussion in 'Monday Night Combat PC Discussion' started by LennardF1989, December 26, 2010.

  1. LennardF1989

    LennardF1989 Uber Contractor

    Messages:
    798
    Likes Received:
    323
    Introduction
    Are you running a server but have no tool to easily start it up, manage your bans, map rotation and overall configuration? Then you would be very happy with MyMNCServer!

    Features
    • Easily start both dedicated and listen servers from your desktop
    • Have complete control over your server, set your AdminPassword, servername, gamerules and more from within a simple interface
    • Manage your map rotation
    • Automatically grab the latest acknowledged bans from the internet, or export them for easy sharing
    • Everything works with your current configuration, no magic needed to read your current map rotation and bans into the application, it's all done automatically already
    • Easily ban hackers by entering their Steam username, Community Profile or SteamID

    Screenshots
    NOTE: The UI is work in process and subject to change!

    See attachments

    Requirements
    In order to use this tool your PC has to comply to the following requirements:
    • .NET Framework 3.5
    • A valid Steam installation (you need to have actually installed it)
    • Registry read access (and in some occasions writing, too)
    • Administrator rights

    Download
    You can grab the tool from here: http://projects.lennardf1989.com/Tools/ ... Server.exe

    I can assure you the tool is COMPLETELY virus free nor does it do anything malicious, as I know people tempt to be skeptical about executable files. I spent almost why whole first christmas day creating this (as I eventually did more than I originally planned) and would hate to see that work go down the drains by false accusations.

    Notes
    As said earlier, this tool supports grabbing the latest acknowledged bans from the internet, but for that I need everyone's help. For more instructions regarding reporting hackers, please go to this topic: viewtopic.php?f=27&t=5575.

    -- Untested, but when you add a ban using the tool, it should go into effect after a map travel (from lobby to match, from match to lobby). -- EDIT: Doesn't work.

    This topic can be used for reporting bugs and doing feature requests! Ideas regarding UI updates are always welcomed as well!

    Merry Christmas everyone and happy fragging!

    Attached Files:

    Last edited: December 27, 2010
  2. LennardF1989

    LennardF1989 Uber Contractor

    Messages:
    798
    Likes Received:
    323
    Re: [Download] MyMNCServer - Server Management Tool

    This is a reserved space!

    TODO
    • Add unbanning support by the internet list
    • Add unbanning support by imported lists
    • Add sanity checks to pretty much everything
    • Auto-update tool
    • Create a new UI, no really, do it

    Changelog
    v1.02 (27-12-2011)
    • Really fixed the invalid directory exception now

    v1.01 (27-12-2011)
    • Added a check at startup to determine if the steam folder found in the registry is valid, if not you'll be asked to specify it yourself only one time
    • Starting and stopping to server should throw a nice exception now, but the "invalid directory exception" should be fixed now
    • Fixed the exception upon closing MyMNCServer

    v1.0 (26-12-2010)
    • Initial release

    Feel free to submit bugs and ideas!
    Last edited: December 27, 2010
  3. kotay

    kotay New Member

    Messages:
    230
    Likes Received:
    0
    Re: [Download] MyMNCServer - Server Management Tool

    very nice work bro :D
  4. viperfx

    viperfx New Member

    Messages:
    17
    Likes Received:
    0
    Re: [Download] MyMNCServer - Server Management Tool

    Alot of unhandled exception errors, and invalid directory error when trying to start the server.
    So for for me it does not work.

    However, the tool is very nice, thanks for developing it. If you can just get it working for everyone's setup then it will be popular.

    If you need to ask me anything then i will be on steam - tharshan09.
    Last edited: December 26, 2010
  5. Col_Jessep

    Col_Jessep Moderator Alumni

    Messages:
    4,227
    Likes Received:
    257
    Re: [Download] MyMNCServer - Server Management Tool

    This will be awesome! Thanks for taking the time, on the X-mas holidays even!
  6. LennardF1989

    LennardF1989 Uber Contractor

    Messages:
    798
    Likes Received:
    323
    Re: [Download] MyMNCServer - Server Management Tool

    Hence why I need hell a lot of sanity checks (the invalid directory is most likely caused by not having actually installed Steam, but just having the .exe already).

    If you could take the time to note down most errors (and the action which caused them) I would be very pleased.

    I wanted to have this out as a christmas gift, so to speak, now it's up to refactoring the hell out of it (it is setup in a MVC structure already, more or less, though).
  7. SvartfaR

    SvartfaR Member

    Messages:
    48
    Likes Received:
    0
    Re: [Download] MyMNCServer - Server Management Tool

    This Exception is thrown when clicking Start your server

    Code:
    Informationen ber das Aufrufen von JIT-Debuggen
    anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.
    
    ************** Ausnahmetext **************
    System.ComponentModel.Win32Exception: Der Verzeichnisname ist ungltig
       bei System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
       bei  .()
       bei  .(Object , EventArgs )
       bei System.Windows.Forms.Control.OnClick(EventArgs e)
       bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       bei System.Windows.Forms.Control.WndProc(Message& m)
       bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
       bei System.Windows.Forms.Button.WndProc(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Geladene Assemblys **************
    mscorlib
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.4952 (win7RTMGDR.050727-4900).
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
    ----------------------------------------
    mscorlib.resources
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.4952 (win7RTMGDR.050727-4900).
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
    ----------------------------------------
    MyMNCServer
        Assembly-Version: 1.0.0.0.
        Win32-Version: 1.0.0.0.
        CodeBase: file:///E:/Steam/steamapps/common/monday%20night%20combat/MyMNCServer.exe.
    ----------------------------------------
    System.Windows.Forms
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
    ----------------------------------------
    System
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
    ----------------------------------------
    System.Drawing
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
    ----------------------------------------
    System.Windows.Forms.resources
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
    ----------------------------------------
    System.Design
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll.
    ----------------------------------------
    
    ************** JIT-Debuggen **************
    Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
    Konfigurationsdatei der Anwendung oder des Computers
    (machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
    Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.
    
    Zum Beispiel:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
    Ausnahmen an den JIT-Debugger gesendet, der auf dem
    Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
    "Der Verzeichnisname ist ungltig" = Directory name is not valid.

    I don't use the default path for steam, I use E:\Steam\steamapps\common\monday night combat and My Documents are on drive D: D:\Eigene Dokumente\My Games\UnrealEngine3. Maybe it will help you.
  8. LennardF1989

    LennardF1989 Uber Contractor

    Messages:
    798
    Likes Received:
    323
    Re: [Download] MyMNCServer - Server Management Tool

    Have you really installed steam using the installer, or is this Steam still on your harddrive even though you reinstalled your OS multiple times?

    Can you check by starting your registry editor and go to HKEY_CurrentUser\Software\Valve\Steam. If you get that far, check if SteamPath aims at your steampath as it is now.

    Although I remember XP didn't use that one but the key in HKEY_LocalMachine.

    Which OS are you using? If above key doesn't exist for you, does HKEY_LocalMachine\Software\Valve\Steam or HKEY_LocalMachine\Software\Wow6432Node\Valve\Steam exist?

    Thanks, much appreciated!
  9. Freyar

    Freyar New Member

    Messages:
    5
    Likes Received:
    0
    Re: [Download] MyMNCServer - Server Management Tool

    Brought on by attempting to start the server.
    Initially had a problem starting the application, but grabbed the .Net 4 Framework installer (which apparently has also installed the previous components as well.)

    My installation of Steam has persisted through OS reinstalls. I do have an "InstallPath" Reg Key entry in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432NODE\Valve\Steam

    The key's set for D:\Steam which is the proper path.

    EDIT

    Has a second exception just after.

    Brought on when attempting to close the tool.
    Something that makes me wonder (I've not jumped into dealing with .net Framework myself before), is this line:
    Is that pulling from the proper version of .Net?
  10. LennardF1989

    LennardF1989 Uber Contractor

    Messages:
    798
    Likes Received:
    323
    Re: [Download] MyMNCServer - Server Management Tool

    On closing the tool tries to close the current instance of the server (as the tool sort of manages it), which apparantly fails.

    I'll add more registry keys to retrieve the Steam-path, thanks.

    Side note: Currently my host is having some problems so I can't reupload a new version untill the server has been rebooted, I'll try to get it up somewhere else in the meantime.
  11. LennardF1989

    LennardF1989 Uber Contractor

    Messages:
    798
    Likes Received:
    323
    Version 1.01 is released which should fix most starting issues!
  12. viperfx

    viperfx New Member

    Messages:
    17
    Likes Received:
    0
    Failed to start or stop the server.... the directory name is invalid.

    Il be on steam if you need to ask me anything.
  13. LennardF1989

    LennardF1989 Uber Contractor

    Messages:
    798
    Likes Received:
    323
    Version 1.02 should really fix the error now.
  14. SvartfaR

    SvartfaR Member

    Messages:
    48
    Likes Received:
    0
    Re: [Download] MyMNCServer - Server Management Tool

    I'm running Windows 7 Professional (x64)

    HKEY_CurrentUser\Software\Valve\Steam: Exist and is correct.
    HKEY_LocalMachine\Software\Valve\Steam: Does not exist.
    HKEY_LocalMachine\Software\Wow6432Node\Valve\Steam: Exist.

    ---
    Okay, using 1.02 now and it works. :D

    Well done.
  15. nastjuid

    nastjuid New Member

    Messages:
    16
    Likes Received:
    0
    Wow! thank for sharing this with the community. Maybe we can get some support for being able to chat with players in the game using the tool. Keep up the great work!.
  16. Freyar

    Freyar New Member

    Messages:
    5
    Likes Received:
    0
    I reinstalled Steam from scratch last night (Moved Steamapps, manually ripped it out by it's guts, reinstalled, and put the content back in.) The tool is working properly.
  17. FriedrichPsitalon

    FriedrichPsitalon New Member

    Messages:
    64
    Likes Received:
    0
    Will the ability to change match duration be available in a version of the tool soon? FOOM's server is known for its 1 hour matches, but your tool is convenient enough that I'd rather use it at the moment.
  18. racquemis

    racquemis New Member

    Messages:
    289
    Likes Received:
    0
    great utility.
    What i'd would love to see is a way for this tool to work remotely, i won't have to login to my server with a remote connection(quite cpu intensive) everytime i notice something is going wrong.
    Wherever i am i would be able to restart the server, add bans and such. you get the idea.
  19. LennardF1989

    LennardF1989 Uber Contractor

    Messages:
    798
    Likes Received:
    323
    UE3 doesn't have support for remote RCON, so no, once the server is started I have no actual contol over it other than monitoring it and restarting it when needed (I can retrieve current map/number of users liek the server browser does, though). So it is possible to determine a new list of bans is available and that the server is empty (or in lobby) so clear for a restart.

    Remote RCON can be added by Uber Entertainment if they add support for WebServer, which works like a admin-control panel, which I can hook into again.
  20. do0t

    do0t New Member

    Messages:
    80
    Likes Received:
    0
    Nice tool. It worked once, but now can't get it to work after it crashed the server after one game.

    This was the last thing in server log before it went down.

    Log: Bringing World DLC1_AmmoMule.TheWorld up for play (30) at 2010.12.27-18.57.33
    Log: Bringing up level for play took: 0.048970
    DevNet: Rejected unwanted function ServerSetSpectatorLocation in HPreGamePC DLC1_AmmoMule.TheWorld:persistentLevel.HPreGamePC_3
    DevNet: Rejected unwanted function ServerSetSpectatorLocation in HPreGamePC DLC1_AmmoMule.TheWorld:persistentLevel.HPreGamePC_2

    The DLC1_Map line kept repeating, filling up the server log until I broke out of the executable. It worked for banning, but can't rely on it just yet.

Share This Page