Inactive [ADMIN] Crafty v0.7.6 - Server GUI [1240]

Discussion in 'Bukkit Tools' started by Timberjaw, Feb 3, 2011.

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

    Timberjaw

    If it's available with the version of Java you're using (it may be OS-dependent), it will be in the same location as java.exe (in your JRE's bin folder).

    javaw starts up without a console display. If you launch Crafty with java.exe (on Windows, at least) you end up with two consoles.
     
  2. Offline

    tips48

    you could change the bat to -no gui at the end and run java.exe? I could try it if you would like?
    is there any chance you can give us the source?


    EDIT: If you run the crafty.bat as this:
    @echo off
    start /b javaw -Xincgc -Xmx4G -jar crafty.jar no gui
    then it won't pop up the gui, but you will have to change the source code to java.exe... if you can that would be great that way if minecraft or crafty freezes we can end them in process manager without ending the other one ;)
     
  3. Offline

    Timberjaw

    I tried that and it didn't seem to make any difference. On Vista it would not remove the first console with any configuration unless I ran it with javaw.

    I'll be providing source when Crafty hits v1.0.

    How is that line different from the current .bat?
     
  4. Offline

    jwshields

    Okay, so, I love this GUI, you've done a good job with it.
    The only problem I have is that after a while, all text disappears, and I am no longer able to see console output, or do anything.. Only stopping and restarting the server will fix it. I'm running the newest bukkit, the newest Crafty, and Server 1.3 on Windows 7 32bit with Java 6 update 24. Core2Quad and 4gb of ddr ram.
    Attached is a screen shot of what I'm experiencing..
     

    Attached Files:

  5. Offline

    Timberjaw

    Try the attached 0.7.1 preview file here: http://forums.bukkit.org/threads/admin-crafty-v0-7-server-gui-426.3285/page-6#post-106839
     
  6. Offline

    jwshields

  7. Offline

    Timberjaw

    Yeah, I'll be putting 0.7.1 up as the main download probably this weekend. It will be back to 1000 lines.
     
  8. Offline

    tips48

    sorry, who knows... can't wait for the source!
     
  9. Offline

    Aetcho

    Crafty wont start,
    when i start it with
    Code:
    @echo off
    javaw -Xincgc -Xmx1G -cp BiomeBukkit.jar;craftbukkit-0.0.1-SNAPSHOT.jar;crafty.jar org.crafty.Crafty
    pause
    a window pops up and says it can't find the main class org.crafty.Crafty

    Please halp and thou shallt forever bath in diamonds
     
  10. Offline

    Timberjaw

    @Aetcho Crafty expects to have craftbukkit.jar (NOT craftbukkit-0.0.1-SNAPSHOT.jar) locally available. Give that a try.
     
  11. Offline

    Aetcho

    Will do

    It didnt work, same error
     
  12. Offline

    Timberjaw

    @Aetcho The last part where you have 'org.crafty.Crafty' is wrong. It should be 'com.aranai.crafty.Crafty'
    [MERGETIME="1300046006"][/MERGETIME]
    Updated! v0.7.1 is a minor update that fixes some console issues (disappearing text, '>' marks), and adds a Crafty-specific log file.

    Note to those curious about the 'Stop & Exit' button. It is, actually doing a proper server save before shutting down, but it doesn't look that way because the thread handling the shutdown process doesn't wait for the GUI to update before exiting. Check the logs if you're unsure. I have some plans to handle this in a more friendly way in the future.

    Slated for v0.8:
    • kick-all (for use either manually via .crafty kick-all or automatically when the server stops/restarts)
    • Setting persistence
    • Better support for manual console scrolling (i.e. it won't keep jumping to the bottom if you've intentionally scrolled up)
    • [Possible] 'Give' context menu for giving items to player. This one is more work than it might seem.
    • [Unlikely] Minimize to tray. There are some cross-platform issues with this that make me hesitant to tackle it. If anyone here has experience with this in Java specifically, feel free to share your wisdom.
     
  13. Offline

    jwshields

    So, OP, The new version 7.1 fixes the lines and the ">" problem, but it crashes every so often.. I don't know why, but the gui completely freezes, and I have to force kill the server and restart it, losing data..
    Do you have older versions available on the net?

    Edit: Nevermind.. >.<
    It's crashing with .7 and .7.1..
    Here's my error anyway, http://pastebin.com/EL46GVR8
     
  14. Offline

    Timberjaw

    Haven't encountered this issue after leaving 0.7.1 running for several days. What Java version and OS? Does the server stop responding, or just the GUI?
     
  15. Offline

    sniboy

    When, im turn on, this its flash light and disapper
     
  16. Offline

    Aetcho

    It works, Thanks :D
     
  17. Offline

    acolite246

    How could I theme Crafty?
     
  18. Offline

    Sieve

    Can I give crafty commands i-game? I'd like my mods to be able to restart the server when it gets laggy
     
  19. Offline

    KoryuObihiro

    LOL, I was about to write and complain about how it wasn't working, then I saw somebody with the craftbukkit SNAPSHOT filename error. Derp. :B

    Anyway, I love this! It's so much easier to look at and use the console now. :D **bookmarks**

    I have the same question as Sieve - is there any way to use the Crafty commands from ingame? If not, would that be something you'd consider in the future?
     
  20. Offline

    way2blue4u

    Followed the instructions, I get this error message
    "Could not find the main class: com.aranai.crafy.Crafty. Program will exit." Photo Below.
    Crafty Error.JPG

    Edit:
    I think its working now, had to rename the .jar that was named "craftbukkit-0.0.1-SNAPSHOT"
    to
    craftbukkit.jar

    :D
     
  21. Offline

    ledhead900

    Can you get this to do auto restart with timer and Restart on crash, I will use this when it has those two things!

    Its looking pretty decent so far as it is tho so this is a request.
     
  22. Offline

    City Builder

    Hi,
    Just found your ummm, Loader?

    Anyway, mine says Memory Used 190/293mb.

    I normally give java 4GB to run the server, what is the limit with your loader? How do I specify that it's allowed to use up to 4GB to run the server?

    Thanks,
     
  23. Offline

    KoryuObihiro

    @City Builder: I'm not entirely certain, but I think it'll dynamically allocate memory for the server as the need grows.
    @ledhead900:Agreed. That would make this a fabulous tool. :D
     
  24. Offline

    City Builder

    ok, one more question.

    If I press Stop & Exit button, should it save first? Or must I manually type in save-all

    Also I don't suppose there is an automatic save feature that happens every xx minutes built in is there?

    Thanks,
     
  25. Offline

    Sieve

    It saves itself.
     
  26. Offline

    City Builder

    Timberjaw, can you confirm that crafty will continue to allocate RAM to the bukkit server as the need arises, and how much is the limit that it will allocate?

    I want to ensure that my server has access to 4GB if it's needed by the server. I use to see our server using about 1.5GB before starting to use crafty, and now I never see it go above 1GB which leads me to wonder if this line in crafty.bat is only allowing the server to use up to 1GB:
    start /b javaw -Xincgc -Xmx1G -jar crafty.jar

    Would changing Xmx1G to Xmx4G allocate up to 4GB to the server, or only to crafty or not do anything at all?

    Thanks

    okay, no matter what I've tried crafty seems to limit java to 1GB.

    In my testing the memory allocated to java never went higher than about 965MB, and eventually the server or crafty would become unstable after a day, or 12 hours or whenever.

    So I loaded up the server using the start.bat file that allocates 4GB to java and in about 5 or 6 hours java is using 3.5GB according to task manager and the server is running great and solid.

    If there is a way to have crafty allocate an amount of RAM to java to run the server than this could be very useful as a GUI for me as I really dont like working in a window command prompt window.

    Thanks for reading.

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

    mik99925

    It should. I changed it to Xmx1536M (1.5 GB). I also can't find separate javaw processes in the task manager. Just one, so memory for crafty should equal memory for the server.
     
  28. Offline

    City Builder

    Very strange then, since it won't seem to go above 1GB when I run crafty. But running the server from the start.bat file I've seen it go as high as 4GB. Using McMyAdmin I've seen it go up to 2GB. Strange.
     
  29. Offline

    acolite246

    Just updated my server launcher to use your frontend by default. That OK?
     
  30. Offline

    Bakuhatsu

    I wonder, this is a thing that bugs me a lot. Is there a possbility to filter the logins/logouts and chat into a seperate log while keeping server stuff by itself?

    Because some people keep to love getting packeterrors which spams the log all over. x.x
     
Thread Status:
Not open for further replies.

Share This Page