[ADMN/MISC]MC Server GUI .6.10 - A Windows GUI for your server (now w/ archived backups) [803]

Discussion in 'Bukkit Tools' started by dumptruckman, Apr 14, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    dumptruckman

    MC Server GUI .6.10 - A GUI wrapper for your server (w/ backup functionality):

    [​IMG]


    Version: v.6.10

    This is a wrapper for your minecraft server that, at it's base, provides a Graphical User Interface. It also has world and server.log backup functionality. I made this with Autohotkey. It is likely only compatible with Windows 2000/XP/Vista/7.

    SUPER IMPORTANT: I just realized I broke Automatic Backups since version .6.2. PLEASE upgrade to .6.7+ as it fixes this issue.

    News 5/17/11
    I finally have a working extremely basic GUI in java right now. I finally got past some of the really major issues I was having with it and am now moving on to being able to set your configuration. Once I have this complete I will release the first version!


    Features (open)

    • Provides a GUI for your minecraft server
    • Backup your world(s)/log with a single click
    • Archive backups to zip
    • Edit server.properties from GUI as well as server start options
    • Run scheduled restarts/backups with warning messages
    • Customizable color schemes
    • Memory/CPU/Network monitors
    • Player list with kick/ban actions (more to come)
    • Highly configurable (intended to be anyway)
    • Great compatibility with any version of the minecraft server
    • Press ctrl-s to toggle "say" mode!
    Download (open)


    Download MC Server GUI
    Note: You should PROBABLY delete your old guiconfig.ini any time you update.

    Source Code

    Source Code for multi-platform Java version (not released yet)
    Installation (open)

    • 1. Unzip mcservergui.exe and 7za.exe (This file is for archiving ability) into your Minecraft Server directory
    • 2. Run mcservergui.exe. It will attempt to detect the jar file for your server. If it cannot find it, set it manually under Server Config.
    That's it!

    Screen Shots (open)

    (v.6.0)
    [​IMG]
    [​IMG]
    [​IMG]
    TODO (open)

    • Ability to give players items by right clicking name in player list (high priority)
    • Compatibility with many other plugins (mcMMO or iConomy for instance) (low priority)
    • Server file manipulation (like installing/configuring plugins) (low priority)
    • More Error Checking (medium priority)
    • Resizeable GUI (medium priority)
    • Plugin Manager (high priority)
    • A ton of other crap.
    Full todo list

    Change Log (open)

    Version .6.10
    • Removed Xms memory field and replaced with Xincgc checkbox. You can still use Xms if you'd like, you just have to add it in the extra arguments box.
    Version .6.9
    • Alt-Tab works more reliably while looking at the GUI
    • Added ctrl-s hotkey for "say" mode
    • Made slight modification to the way the console output scrolls
    Version .6.8
    • Rewrote how the GUI processes server.log, hopefuly making it more reliable and use less resources
    • Added error checking to this process so that if there's any issues reading it, it will tell you
    Version .6.7 - HOTFIX
    • Automatic backups now work again!
    Version .6.6
    • Added some very specific debug mode values to fight this zero-console output issue
    • Added option to enable/disable minimize to tray
    • Added more checks for the GUI closing (other than the X button) so that it can shut down the server properly
    • Removed error message about GetGUIThreadInfo()
    • Made one tiny change to the startup process that may increase reliability
    Version .6.5
    • Added a new text box to show the phases of the start up process (instead of displaying in the console output), allowing for:
    • Modified the startup process. It will now start displaying console output much sooner
    • Fixed issue where auto-restarts made the GUI think Java was crashing
    • Replaced Warn Restart button with Warn Stop button as this would seem to be more useful
    • Renamed Immediate Restart button to just Restart
    • Added Reload button to send the reload command for you
    • Made Minimize to Tray much more reliable
    Version .6.4 - HOTFIX
    • Fix for restart times not updating correctly while the server is running
    Version .6.3
    • Player list should no longer display duplicate players
    • Fixed bug where Next Restart time would reset to the next restart time shortly after saying it was commencing the first one
    • Possibly fixed a bug that would cause restarts (and therefore backups) to be skipped
    • Added Debug Mode
    • Fixed issue where console would remain blank on server start
    • Now minimizes to the system tray (Doesn't seem to work right)
    • System tray icon's tooltip shows server status and if UP, online player count
    • Possibly fixed bug where server up time would stop displaying
    • Fixed issue where sometimes the GUI would erroneously think that there was a Java error upon starting the server
    • Removed Update Rate setting as it is no longer used
    • The console output should resume scrolling normally when you're not focused on it (such as selecting text within it)
    • Should now detect players being kicked by alternate means
    Full Change Log

    Known Bugs (open)

    • Slight delay (2-seconds?) before restarts commence
    • Players with nick names will be dropped from the list ocassionally

    If you have any issues please read the following frequently asked questions section!
    FAQ (open)
    FAQ (open)

    • Q: There is an error starting Java when I start the server.
    • A: First, instead of using java.exe on the GUI Config page, browse for this file on your computer. Failing that, if you're trying to set the memory above 1024M(1G) you may need to select a 64 bit java.exe
    • Q: What do the options do on the Server Config tab do?
    • A: Take a look at this.

    Love my GUI? Feel free to donate! :)

    Thanks to:
    Geotraildark for some nice initial screenshots, nickrev for a snazzy icon, and the rest of you for all the support!
     
  2. Offline

    MarsXTC

    o.o Sorry but what do you mean? Im not really a tech geek. It just that the server wont start .
     
  3. Offline

    dumptruckman

    Well, the important part is that I'm working on a fix

    Please try the new version .3.2

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  4. Offline

    MarsXTC

    Basically does the same thing, wanna team viewer me?
     
  5. Offline

    nickrev

    nice job man 3.0 is much improved!
     
  6. Offline

    dumptruckman

    Thanks! :) Now if I could just squash this really weird bug that's driving me nuts...
     
  7. Offline

    nickrev

    what is the bug?
     
  8. Offline

    dumptruckman

    Haha, it's really strange.. I can't seem to repeat it except on my live server, so i'm wondering if it has something to do with the setup. (and also no one has mentioned it here..) What happens is that sometimes, at seemingly random times, anything I type is not sent to the server (and the buttons don't work either, since they are just basically telling the server "stop"). This will last for a long time but sometimes will start working again.

    So I attempted to debug the code through various methods. One thing I did was have the GUI show the java console that is running invisibly. I could then minimize and restore the java console and optionally use it just like a normal server IN ADDITION to my GUI. Whenever the Java console was visible in the background and I typed into the GUI, it would send the text to the server 100% of the time. If I minimized the Java Console and then tried typing in the GUI it would only work about 40% of the time.

    After digging through the code, I've determined that the code itself is function just fine but for whatever reason the text doesn't make it from my GUI to the Java Console. *shrug*
     
  9. Offline

    Shasharala

    Alright... let's see here...
    1. I don't mind the initial spam so I left the server.log alone. I delete it daily so it had one sessions worth of material and most of my plugins are silent.
    2. I can do better than just a screenshot... I've added the file itself to the post. I changed it to a .txt though in order to post it.
    3. The GUI runs fine, but when I press start server it says that it's running.... spams me... says it's using 0m/0m though I swore last night it said 2m/2m and once 1m/1m... then it tells me the server is not running. I have tried connecting and it is most certainly down. When I press "start server" again, it clears all the spam, but nothing happens. The server remains down, the words remain red and say "Not Running".

    More info on the dealings with the GUI. Playing around with all the buttons on the bottom can sometimes get the server to spam again and say that it is "Running" in green... but then it shuts down again as soon as the spam ends. Even restarting the GUI doesn't help much. I have to press the "start server" button repeatedly to actually get any output.

    NOTE: This is using the newest version: 3.3. The hotfix isn't working for me...

    I hope you can figure this out. I really like the concepts you're thinking of adding and the backing up bit is a humongous plus. I just can't get it to work...

    EDIT: Thought I should mention this... but my RUN.bat that I use to start the server normally with bukkit contains the following code:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar "%BINDIR%\craftbukkit-0.0.1-snapshot.jar"
    PAUSE
    
    If I edit it to use -Xms1024M -Xmx1024M it also works just fine for me... so I don't see what the problem is with the GUI...
     

    Attached Files:

  10. Offline

    melvinp

    Can anybody help me. I diddnt get it to work.

    It still says Not running.

    This is what i got

    Guiconfig

    Code:
    
    [Folders]
    ServerPath=C:\Users\Melvinp\Desktop\Minecraft Server
    BackupPath=C:\Users\Melvinp\Desktop\Minecraft Server\plugins\mcservergui\backup
    [Exec]
    JavaExec=C:\Program Files (x86)\Java\jre6\bin\java.exe
    MCServerArguments=
    [ServerArguments]
    ServerJarFile=C:\Users\Melvinp\Desktop\Minecraft Server\bukkit.jar
    Xmx=1024M
    Xms=1024M
    UseConcMarkSweepGC=1
    UseParNewGC=1
    CMSIncrementalPacing=1
    AggressiveOpts=1
    ParallelGCThreads=
    Extra=
    [Names]
    GUIWindowTitle=MC Server GUI
    [Timing]
    UpdateRate=250
    RestartTimes=
    WarningTimes=30,15,5
    TimeToReconnect=30
    [Backups]
    RunWorldBackups=1
    RunLogBackups=1
    [Worlds]
    World1=Mine-Town
    
    
    [​IMG]

    And

    [​IMG]

    Does anybody know the good settings ?
     
  11. Offline

    BigRenegade

    The only thing you have set that seems different from my config is that I left the location of the Java executable at java.exe. When you install java it should automatically set a (PATH=) option for windows for the executable location. This lets windows know where it is, so you should not have to change it in the Gui Config section.

    Try taking out the full path name under Java Executable and just leave it at java.exe
     
  12. Offline

    melvinp

    Thanks i have done it.

    Than i clicked on start server en i get all this text in the window. ( See picture )

    [​IMG]
     
  13. Offline

    dumptruckman

    Okay... I have a possible idea of what could be causing this. Could you try making a temporary server folder in just your c: drive? like c:\server

    put your craftbukkit.jar in there along with mcservergui.exe and then try.

    This is just a hunch, let me know if it works. Also make sure the folder does not have anything but letters in the name.

    If this turns out working I'll try and release a fix that will allow it to work better in other locations.
     
  14. Offline

    melvinp

    Hmm that works.

    Thanks. But why doesnt it work on the other folder ?
     
  15. Offline

    Shasharala

    Oh my gosh! It works!
     
  16. Offline

    dumptruckman

    A couple hunches... Either the paths are too long or maybe it's because it has spaces in the path (most likely) or maybe it's because it's in a user folder and it doesn't have admin rights... I think it's because the path has spaces... I'm going to see about a fix for that.
     
  17. Offline

    Shasharala

    Thank you! =) I'm excited to finally be able to use it.
     
  18. Offline

    dumptruckman

    @melvinp @Shasharala
    Update to .3.4. This should fix the folder name issues. Make sure to delete your old guiconfig.ini before running the new version. Please let me know if you have any more problems! :)
     
  19. Offline

    melvinp

    @dumptruckman Thanks it works now :)
     
  20. Offline

    ephesian

    awsome, maybe a minimize to tray ?
     
  21. Offline

    dumptruckman

    I'll add that to the todo list! It's actually something I wanted originally but kind of forgot about.
     
  22. Offline

    BigRenegade

    @dumptruckman:
    Good catch (Renegade kicks himself). I missed the fact that he was using spaces in the folder name. For some reason I have found a number of other server programs that have this same issue (Apache is an example).

    I still have not found a reason for AutoHotKey loading text into a window in reverse order yet, but I'll keep looking.
     
  23. Offline

    snizzle

    very nice plugin dude.
    here are my suggestions:
    1. let the log begin on top and let him scroll down
    2. backup should create automatically a *.zip or *.rar file
    3. memory usage should show up [current usage]/[max allowed usage]
    (4. add cpu usage and count running threads)

    and some questions:
    can u explain what these things will do pls?
    useconcmarksweepgc
    userparnewgc
    cmsincrementalpacing
    agressiveopts
    parallelgc threads
    extra arguments
     
  24. Some response on making another post.

    http://forums.bukkit.org/threads/ho...24gb-dedicated-server.3967/page-2#post-184208

    I have a problem with version 3.5, the console launched several Java.exe session and once that another session is opened, the log plant, I do not see what is written in the console and impossible open the console java of GUI.

    This bug occurs at each reboot of the server

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  25. Offline

    dumptruckman

    Geotraildark found this http://forums.bukkit.org/threads/ho...24gb-dedicated-server.3967/page-2#post-184208. As far as the options I added, honestly, I'm not sure... I just know I used them on my server. ;p If you want to add more you can in the Extra Arguments field.
    Also, don't worry, the texts scrolls from top to bottom in the next version. Lots of customization coming. :)

    1. answered above.
    2. thanks, that's another thing i meant to add to the todo list. shouldn't be hard to add.
    3. Right now it's showing current usage/peak usage... It was hard to decide between peak and max allowed. Once I figure out how to add tooltips I may put peak back in, I'll see about making the right side the max intead.
    4. also will be on todo list.
    :)

    Heh, I've been battling this bug myself for quite a while now (past 3 versions or so). You're the first to report it outside finding it myself.. Ooh, question, are all of those extra windows java.exe opens all console windows? Like the one the server is in? Or are they invisible? :(
     
  26. Completely invisible and the option show java console does not work.
     
  27. Offline

    dumptruckman

    Okay, I figured... Try out .4.1. Just released it. It should fix this darn bug.
     
  28. Offline

    Shasharala

    Woohoo! It works perfectly. I love it. =)
    All the little additions you made since the last update are very much liked by me.
     
  29. Offline

    snizzle

    damnit now i know which suggestion i forgot ;)
    here it is:
    i allready mentioned the *.rar backup files, but set a option to configure the updates count. maybe if u set it to 50 he will delete/overwrite the oldest backupfile automatically and wont add a 51th backup rar.
     
  30. I have over several session of Java, but instead, the server still has the bug with the start option is grayed out and yet Java is not running, suddenly unable to run the server = ( Something which I I'm doing wrong ?
     
Thread Status:
Not open for further replies.

Share This Page