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

    Rynn21

    What's even weirder is sometimes when I try to open the .bat file it'll open for a split second then make a windows error sound and close.
    The contents of the file look like this:
    @echo off
    start /b javaw -Xincgc -Xmx1G -jar crafty.jar "-nojline"
     
  2. Offline

    Fearlesspain

    Im having a really weird issue, when I double-click the crafty.bat it gives me the error "Could not find the main class: com.aranai.crafty.Crafty. Program will exit" I have windows 7 64bit I also tried the different .bat that was posted by pyongyang99 and it gives the exact same error. Please help!
     
  3. Offline

    XZeenon

    @Timberjaw
    How did you manage to get the players and their status? I would love to know. :)
    Please answer, I was working on my own wrapper. :)
     
  4. Offline

    Celtic Minstrel

    Failed to bind to port could also mean that there's another instance of Minecraft that didn't shut down properly; in fact I'd suspect that's the most likely reason to get that error.
     
  5. Looks nice and clean :)
     
  6. Offline

    Timberjaw

    Preview Build
    Could use some testers on v0.7.6. I have two fixes:
    • Strips color codes (the "[0m" stuff)
    • Prevents auto-scrolling if you've manually scrolled up (a lot of people have asked for this)
    Give it a try, let me know if you run into trouble (in particular, weird viewport behavior or garbled output).
     

    Attached Files:

  7. Offline

    Celtic Minstrel

    Wouldn't it be better to interpret rather than strip colour codes?
     
  8. Offline

    Timberjaw

    Yes. That's a larger task though. In MC, you just interject a color code when you want it to change, like in IRC. In a JTextPane though, you have to select a specific region to style. So you need to parse the first color code in a line, then look for the next color code before you can finish coloring the first.

    Not an unmanageable task by any means, but a quick fix for garbled output in the meantime is better than nothing.
     
  9. Offline

    Celtic Minstrel

    It would be easier if you had an embedded terminal rather than a JTextPane. :p Then it would do all that for you.

    Also, it might help to replace the ColouredConsoleCommandSender in the CraftServer class with something else. Unless that's what you already did.
     
  10. Offline

    Timberjaw

    I have no idea how to do that, but I can google it later ;)

    I just search for the ESC code. The color codes come in as ESC[#m

    I've avoided mucking about in the CB internals as much as I can (Crafty already does too much of that). Right now I just take over the System.in,System.out, and System.err streams before CB loads.
     
  11. Offline

    Celtic Minstrel

    I have no idea how to do it either. I don't even know if it's possible.


    True, but if you had a ConsoleComandSender that didn't convert the colours you'd be able to just search for the ยง character instead. :p I guess it's not much of a difference though.
     
  12. Offline

    kanx

    source??? :D
     
  13. Offline

    Timberjaw

  14. Offline

    CrazyBoman

    @Timberjaw When can i use it on Minecraft 1.8?:oops:
     
  15. Offline

    Bakuhatsu

    @CrazyBoman You already can, it has got no issues running on 1.8, the only issue that remains is if using Ubuntu and doing the .crafty restart command which calls a default startscript instead of the custom one.
     
  16. Offline

    CrazyBoman

    can you please help me =)? what shuld i do to make it work? when i try to connect it yust says "outdated"...:eek:
     
  17. Offline

    Timberjaw

    @CrazyBoman You need to either download a newer craftbukkit.jar or update your Minecraft.
     
  18. Offline

    CrazyBoman

    where do i downlad the new craftbukkit.jar?
     
  19. Offline

    Timberjaw

  20. Offline

    CrazyBoman

    @Timberjaw @Bakuhatsu are you guys useing the "Crafty server"?[sheep]

    @Timberjaw Thanks!

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

    BJonez21

    how do i add more ram? i use the jar file, i tried editing the batch file and using the code-

    @echo off
    Java -Xms1024M -Xmx1024M -jar craftbukkit.jar
    pause

    and it says " java is not recognized as an internal or external command ", the server lags so i would love to allocate more RAM, i have 4GB available and wold like to use 2GB as i always do when i use minecrafts provided server, thanks for any advice in advance!
     
  22. Offline

    Timberjaw

    @BJonez21 Go back to the original batch file (if it was working ok for you) and change -Xmx1024M to -Xmx2G
     
  23. Offline

    Jow2009

    19:56:06 [SEVERE] java.io.IOException: Received string length longer than maximum allowed (18 > 16)
    19:56:06 [SEVERE] at net.minecraft.server.Packet.a(Packet.java:134)
    19:56:06 [SEVERE] at net.minecraft.server.Packet1Login.a(SourceFile:38)
    19:56:06 [SEVERE] at net.minecraft.server.Packet.a(Packet.java:81)
    19:56:06 [SEVERE] at net.minecraft.server.NetworkManager.h(NetworkManager.java:149)
    19:56:06 [SEVERE] at net.minecraft.server.NetworkManager.c(NetworkManager.java:263)
    19:56:06 [SEVERE] at net.minecraft.server.NetworkReaderThread.run(SourceFile:77)
    19:56:06 [INFO] /5.21.6.238:52826 lost connection

    WTF?
     
  24. Offline

    Timberjaw

    @Jow2009 Looks like an issue with the server itself, not Crafty.
     
  25. Offline

    Bakuhatsu

    Crafty doesn't work with later dev builds.
     
  26. Offline

    Timberjaw

  27. Offline

    Bakuhatsu

    No, 1.8 ones, sometime after 1213, I know 1228 doesn't work with crafty but works without. Also... the error about server.log seem to be an issue in Ubuntu 11.04 which has existed for long.

    Code:
    [SEVERE] Unexpected exception
    java.lang.ExceptionInInitializerError
        at net.minecraft.server.StatisticList.<clinit>(SourceFile:65)
        at net.minecraft.server.Item.<clinit>(SourceFile:212)
        at net.minecraft.server.Block.<clinit>(Block.java:531)
        at net.minecraft.server.BiomeBase.<init>(SourceFile:33)
        at net.minecraft.server.BiomeOcean.<init>(SourceFile:6)
        at net.minecraft.server.BiomeBase.<clinit>(SourceFile:17)
        at net.minecraft.server.WorldChunkManager.<init>(SourceFile:22)
        at net.minecraft.server.WorldChunkManager.<init>(SourceFile:28)
        at net.minecraft.server.WorldProvider.a(SourceFile:38)
        at net.minecraft.server.WorldProvider.a(SourceFile:25)
        at net.minecraft.server.World.<init>(World.java:147)
        at net.minecraft.server.WorldServer.<init>(WorldServer.java:27)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NullPointerException
        at net.minecraft.server.ItemStack.b(ItemStack.java:125)
        at net.minecraft.server.ItemStack.<init>(ItemStack.java:38)
        at net.minecraft.server.ItemStack.<init>(ItemStack.java:15)
        at net.minecraft.server.ItemStack.<init>(ItemStack.java:11)
        at net.minecraft.server.Achievement.<init>(SourceFile:21)
        at net.minecraft.server.AchievementList.<clinit>(SourceFile:21)
        ... 16 more
    
    Sep 30, 2011 10:49:08 PM com.aranai.crafty.Crafty prepAndPrintText
    ALL: 22:49:08 [SEVERE] null
    java.io.IOException: Input/output error
        at java.io.FileInputStream.read(Native Method)
        at jline.ConsoleReader.readLine(ConsoleReader.java:637)
        at jline.ConsoleReader.readLine(ConsoleReader.java:490)
        at net.minecraft.server.ThreadCommandReader.run(ThreadCommandReader.java:23)
    
    Sep 30, 2011 10:49:12 PM com.aranai.crafty.Crafty startServer
    ALL: Using JLine: NO
    Sep 30, 2011 10:49:12 PM com.aranai.crafty.Crafty prepAndPrintText
    ALL: 22:49:12 [WARNING] Failed to log to server.log
    java.lang.NullPointerException
        at net.minecraft.server.ConsoleLogManager.init(ConsoleLogManager.java:42)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:87)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
     
  28. Offline

    Timberjaw

    @Bakuhatsu I'll take a look at it tomorrow. Thanks for the log.
     
  29. Offline

    Bakuhatsu

    @Timberjaw In case you haven't looked into it or found any solution yet, it's either the #1215 or #1216 build that breaks craftbukkit. Likely the 1216 one as the 1215 is flagged as red. And I would say 1216 because of tons of modifications in server related files.
     
  30. Offline

    Snow Leopard

    Crafty definitely needs updating for CB 1240.
     
Thread Status:
Not open for further replies.

Share This Page