How to Install Bukkit (Newb-Friendly!)

Discussion in 'Bukkit Help' started by TheArcher, Jan 7, 2011.

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

    TnT

    The server commands can be run by typing /#<command> not /<command>
     
  2. Offline

    Elliott

    thanks for your help, thats all that I need for now.
     
  3. Offline

    Toasty

    Read the first post. You create a startup script (like in the tutorial), and you execute it by double clicking on it. Other than Java, you don't need any other programs to start the server.
     
  4. Offline

    TheArcher

    As stated in the last step, you use the text file (either .bat or .sh) that you created.
     
  5. Offline

    WaddleJrJr

    I'm already running a server though. So I can't start this. What do I do?
     
  6. Offline

    Brandon1

    I got this to work through Hamachi last night, but it was very slow, probly just connection speed. But today im tryin to get it to play through LAN, and it is have ALL SORTS of problems. I thought bukkit was my savior from bad server programs as of last night, but today im getting "internal exception errors" out the ass. Idk alot about coding and stuff, heres the log from the server,

    "(...) 2011-01-29 14:21:50 [INFO] Done! For help, type "help" or "?"
    138 recipes
    2011-01-29 14:22:07 [INFO] rb_bgs_2 [/127.0.0.1:50627] logged in with entity id
    127
    Player count: 1
    java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at java.io.DataOutputStream.writeInt(Unknown Source)
    at net.minecraft.server.Packet24MobSpawn.a(SourceFile:55)
    at net.minecraft.server.Packet.a(SourceFile:114)
    at net.minecraft.server.NetworkManager.e(SourceFile:132)
    at net.minecraft.server.NetworkManager.d(SourceFile:15)
    at net.minecraft.server.NetworkWriterThread.run(SourceFile:85)
    java.net.SocketException: Software caused connection abort: recv failed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.FilterInputStream.read(Unknown Source)
    at net.minecraft.server.Packet.b(SourceFile:102)
    at net.minecraft.server.NetworkManager.f(SourceFile:157)
    at net.minecraft.server.NetworkManager.c(SourceFile:15)
    at net.minecraft.server.NetworkReaderThread.run(SourceFile:68)
    2011-01-29 14:22:07 [INFO] rb_bgs_2 lost connection: disconnect.genericReason"

    Minecraft reports with: Internal exception: java.io.IOException: Bad packed id 206

    Sometimes I get exception with around byte 1-9 or something like that.
    Any fixes for this? Help would be much appreciated!
     
  7. Offline

    grouperfish

    THANK YOU. This works. Also, I found out how to make the startup a command.

    make this a .command file
    Code:
    #!/bin/sh
    cd /Users/[YourName]/Desktop/Bukkit
    java -Xms1024M -Xmx1024M -jar craftbukkit.jar nogui
     
  8. Offline

    Toasty

    Are you having these problems with a fresh, vanilla install of bukkit? (i.e. no plugins, default config, etc.)
    Do you have these problems with the vanilla Minecraft server?

    The only problem I can think of at the moment is improper port forwarding, but you shouldn't need that if you're on a LAN. However, you would still need to make sure the port is allowed through your firewall.
     
  9. Offline

    Brandon1

    Nailed it, totally forgot to turn off my firewall lol. Thanks!! :D
     
  10. Offline

    TheArcher

    If you want to keep your world, copy the "world" file and delete the rest. Then follow the tutorial and, when finished, run your server. It should generate a world file, which you can just replace with the one you copied.
     
  11. Offline

    MonsieurApple

    Horray, I'm in the credits! *resumes work*
     
  12. Offline

    TnT

    Suggestion: Change every command from using this:
    Code:
    -Xms1024M
    to this:
    Code:
    -Xincgc
    It provides much better garbage collection, and thus, greatly improved RAM usage. Works for every server with 512MB and over.
     
  13. Offline

    Jakebobjo

    Omg ty so much i couldnt use more than 1.5gb ram till now lol now i can run my server with 2.5gb ty so much again :D
    --- merged: Feb 2, 2011 7:59 AM ---
    With that u cant controll the amount of dedicated ram tho! so if ui use ur method how can i limit it to 2.5gb?
     
  14. Offline

    TnT

    You can limit the max RAM to 2.5G with the -Xmx flag. The -Xms only sets the initial heap size.
     
  15. Offline

    NoamAK

    I did everything right (I think), and got the server running, but when i try to login it gives a "Failed to login:Bad Login" error...
    does anybody know how to solve that problem?
    great tutorial btw, newb-friendly indeed. :D
     
  16. Offline

    Jakebobjo

    Im kinda new to this wht does heap do?
     
  17. Offline

    TnT

    The heap size is the amount of RAM your process uses.
     
  18. Offline

    Jakebobjo

    Oh
     
  19. Offline

    TnT

    Information for you on the Java commands you may have seen in this post, or others.

    -Xms<value>
    Initial Heap Size. This is the initial amount of RAM you allocate your Java process.

    -Xmx<value>
    Maximum Heap Size. This is the max RAM your Java process uses.

    -d64
    This is the flag to make your Java program use 64 bit binaries, if possible. Note: Flag isn't available on Windows.

    -Xincgc
    Enable Incremental Garbage Collection. This has proven to allow your server to run better and consume less RAM. Note: -Xms flag is not needed when this flag is set.

    I haven't seen any other Java command line flag that works any better. There are many other flags that can be used for garbage collection, but none seem to be any better than the simple -Xincgc flag.
     
  20. Offline

    TheArcher

    Thank you for the recommendation, it has been changed and you have been accredited.

    As an update, the guide looks nice and it will probably stay this way for a while. I'm satisfied with how its come so far and I hope everyone else has felt the same way, too.
     
  21. Offline

    NoamAK

    seriously guys, anyone knows what should i do? [​IMG]
     
  22. Offline

    TnT

    Restart your server and try again. I got that briefly once. I just kept trying and it worked.
     
  23. Offline

    NoamAK

    ive been trying for 2 days now :p
    for some reason it just wouldn'g log in.. for me or for others
     
  24. Offline

    TnT

    For me it lasted about 5 minutes. :p
    Are you seeing console errors?
     
  25. Offline

    Funkdefied

    Thank you, good sir. This help alot!
     
  26. Offline

    NoamAK

    there are no console errors.. everything is fine, it just wouldn't login.
     
  27. Offline

    TnT

    Nothing at all? You should at least see the connection attempt, then the disconnect, right?
     
  28. Offline

    NoamAK

    oh :D, after i fail to login i get
    "/*my ip*:*some random port* lost connection*"
     
  29. Offline

    TnT

    What OS are you running?
     
  30. Offline

    NoamAK

    Windows 7
     
Thread Status:
Not open for further replies.

Share This Page