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

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

Not open for further replies.
1. Offline

### Timberjaw

Can you go over your install steps for me?
--- merged: Mar 1, 2011 9:34 AM ---
I encountered the blank output issue today. No apparent cause; no errors in the server log. Very mysterious.

After a while, a > appeared, which makes me unsure if it's a Crafty problem or a Craftbukkit problem. I'll add some Crafty logging and try to figure it out, but it may take a while (the issue didn't occur until the server had been going for 12+ hours).

2. Offline

### Petomatick

I put the jar file and the bat file in the bukkit folder (not plugin folder, but I've also tried that) and (for safety purposes, nothing personal) checked the .bat file (these are illegal to share in sweden btw. ) and then i ran it.

At first I got the message "Unable to access jarfile crafty.jar" and i ran it again as administrator. Same error message.

Then i tried with this code "C:\Program Files\Java\jre6\bin\javaw.exe" -Xincgc -Xmx1G -jar crafty.jar and it told me "Could not find the main class: com.aranai.crafty.Crafty. Program will exit."
Tried running as admin and got the "Unable to access jarfile crafty.jar"

Also tried with "C:\Program Files\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar crafty.jar" and it opened up a new console, which i barely could see because of its speed. After five minutes of screenshotting i capped it.
Running the same code with admin permissions it said "Unable to access jarfile crafty.jar" within the console instead of in an error message.

""C:\Program Files\Java\jre6\bin\javaw.exe" -Xincgc -Xmx1G -jar C:\Users\Petar\Desktop\Bukkit\crafty.jar" gave me the "Could not find the main class: com.aranai.crafty.Crafty. Program will exit." message. Same with admin.

Win 7 Ultimate 32-bit
4GB ram
60GB free space on my 500GB samsung harddrive.
Some AMD quad-core 2.2gHz 64-bit capable
Could run a 3ppl server fine without lagg at the bukkit ~350 and minor laggs with 4ppl
Now i have the latest bukkit version. (I know devs hate when u tell them that ) (458)
If you need anything else tell me, i'll answer in about 30mins

3. Offline

### Timberjaw

@Petomatick Do you have craftbukkit.jar in the same folder (filename needs to match exactly)?

4. Offline

### Petomatick

A picture says more than a million words

5. Offline

### Timberjaw

@Petomatick You need to have craftbukkit.jar in your folder. You have craftbukkit-0.0.1-snapshot.jar. Just rename it to craftbukkit.jar and you should be good to go.

6. Offline

### Petomatick

Working, thanks!

Please put this in the instructions

7. Offline

### Timberjaw

@Petomatick It is in the instructions. "Unzip to your craftbukkit folder (the same folder as craftbukkit.jar)"

8. Offline

### cduce2411

I have the same problem as Petomatick.

9. Offline

### Daveyo

something is constantly freezing the console. The server freezes and I cant tell because the console still displays everyone online and ram usage going up and down, very odd, trying with no crafty for a little while

10. Offline

### TheRevTastic

I keep getting the error when I try to run the .bat file.

"Windows cannot find javaw"

What's going on with this?

Using Windows 7 x64.

11. Offline

### Timberjaw

I've had this happen twice now. I'm not certain about the cause but I'm pretty sure it's the new fancy console causing trouble. I'm looking for a workaround.
--- merged: Mar 4, 2011 9:29 AM ---
It means your Java installation isn't in your windows PATH variable. You need to find out where your Java installation is located and either update your PATH or update the .bat file to use the full path instead of just 'javaw'.

For example, my path has the following entry in it: C:\Program Files\Java\jre6\bin (the folder where java.exe and javaw.exe are located). Note that entries in the PATH variable are separated by a semicolon.

If you're not comfortable modifying your PATH, just edit the .bat file and change javaw to C:\path\to\my\java\bin\javaw (e.g. C:\Program Files\Java\jre6\bin\javaw)
--- merged: Mar 4, 2011 9:47 AM ---
How often would you say this happens, by the way? I've only seen it after the server is running for 12+ hours. Also, in your case, does it impact the operation of the server in any way?

12. Offline

### dan2wik

could you possibly add a kick-all command so you can get rid of griefer groups and do something with less lag. eg. save-all.
also can you add like a loaded worlds dialog. also optional seperate windows/boxs for the info, warnings, severe warnings, and unknown. thats all. and btw thanks for EVERYTHING this makes it sooo much easier to use bukkit.

13. Offline

### Timberjaw

kick-all is a definite possibility, as I plan on doing that automatically in the next version when you shut down/restart the server (kick-all, save-all, restart).

save-all is already built-in to the server, so I'm not sure what you're getting at there.

Can you elaborate on the loaded worlds dialog and separate windows?

14. Offline

### Daveyo

It happens about every 12 hours, but on a busy night it could happen in another 3 hours. The server is completely froze, or not accessable to anyone. The tough part is, I'll be right at the computer and not notice it because it totally looks like the server is still running according to crafty. When i switch back to the game though I'll be disconnected unable to reconnect. Then i look at the console and it says I'm still sitting in the game. I can kick myself but nothing helps, everyone has been disconnected.

Also having an issue with the start/stop server button. Just sits there after I press it. It's suppose to save-all right? My save-all takes about 1 second so I'm not sure why it was stalling.

15. Offline

### Timberjaw

@Daveyo Thanks, I'll see what I can figure out. When it happens to me, it just stops displaying the text in console, but everything else works as normal. It seems to be more likely to happen with more people online, so maybe it's also more severe with large numbers (I never have more than 10 online).

The server start/stop button needs to be less stupid. I've noticed some odd behavior there as well. The .crafty stop|start|restart methods seem to work more reliably, so I may just tie it to those more directly.

16. Offline

### dan2wik

so all the server output is sorted in groups. warnings, info, and other then they get put into seperate windows or something like that. then a loaded worlds dialogue for like multiverse etc

i can also replicate the no text thing by typing a command in the command box then holding enter for a while so it spams crafty with
Code:
 > 09:02:59 [INFO] Unknown console command. Type "help" for help.
> 09:02:59 [INFO] Unknown console command. Type "help" for help.
i think the reason for that no text thing is that i noticed crafty getting rid of 3 lines of output after it's output dialog overflows. if you hold down enter and watch the scroll bar at the side it will get smaller then start getting bigger
and save-all i was referring to as an example

17. Offline

### Timberjaw

That sounds incredibly cluttered. What's the advantage?

Awesome! I was able to reproduce it with that as well. Thanks. Looks like it's removing 3 lines at a time instead of 1 when it hits the 1000 line mark.

18. Offline

### acolite246

Why doen't you just color code warnings? Like this mockup?

19. Offline

### Timberjaw

Turns out the disappearing console is related to the new console changes (surprise!). It's outputting '>' every line on System.out, and the rest of the info on System.err, causing all sorts of unpleasantness. Not sure if it's a Windows-specific issue; anyone encountering this on *nix?
--- merged: Mar 4, 2011 11:44 PM ---
I do. Among other things.

20. Offline

### QQCucumber

It's happened to me on Linux CentOS, yes.

21. Offline

### Timberjaw

Give the attached file a try. It disables System.out, leaving only System.err. Seems to eliminate the '>' silliness as well as the disappearing text issue. Note that this version is capped at 100 lines instead of 1000 to make it easier/faster to reproduce the issue.

File size:
126.9 KB
Views:
27
22. Offline

### acolite246

Oops, missed that, but since dan2wik was interested in de-cluttering, maybe Crafty should filter out unimportant items a little more or just deemphasize them (by changing the black color to a grey -- like the mockup).

23. Offline

### QQCucumber

I am testing the preview release as of writing, I will let you know if anything goes wrong.

24. Offline

### Timberjaw

Much appreciated.

25. Offline

### QQCucumber

Seems to be working fine now Timberjaw.

26. Offline

### Carolusclen

anyone wanting to use biome terrain mod 1.2 for bukkit stable 440... in the crafty.bat file. replace text inside with
Code:
@echo off
start /b javaw -Xincgc -Xmx1G -cp BiomeBukkit.jar;craftbukkit.jar;crafty.jar com.aranai.crafty.Crafty
if you get an error about com.aranai.crafty.Crafty not existing. open up the crafty.jar file in winrar\zip\7z or something and look for the text file called manifest.txt

the line you are looking for is called Main-Class: that is what you need to replace it with.

hope this helps everyone. need help or i didnt explain it well enough. just pm me and i will offer more help

thumbs up for crafty GUI =D

27. Offline

### Timberjaw

Excellent. Thanks. I have one more fix to put in place for the Stop & Exit button, then I'll release 0.7.1.

28. Offline

### jordanneil23

Thank you for this
It is SO much easier to read errors when testing commands now

29. Offline

### seeker144

Could you add a GUI button to do the command 'save-all' and then close the server down?

30. Offline

### Joshpho

Is this different from the standard Java client, and if so, where would I find it?