Hi, I'm busy writing a GUI (Graphical User Interface) for bukkit. For this i'm using Microsoft visual studio professional 2010. my first question: now i run the run.bat, and redirect input, output and error stream. The application launches the server, and i get: Code: 17:09:42 [INFO] Starting Minecraft server on *:25565 17:09:42 [INFO] Starting Minecraft server on *:25565 17:09:42 [INFO] Starting Minecraft server on *:25565 17:09:42 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-706-gf53e007-b740jnks (MC: 1.5_02) 17:09:42 [INFO] Preparing level "world" 17:09:42 [INFO] Preparing start region 17:09:43 [INFO] Done (0,067s)! For help, type "help" or "?" 17:11:22 [INFO] /127.0.0.1:49507 lost connection but as you can see, lots of information is missing here. I don't get the plugin messages, I don't get information about my join,... how does bukkit send text to the cmd output? All the info you can see above is retrieved from the error stream. 2nd question: when i try to login to my server , which i start with the GUI, I get an error "User not Premium" when i run the server by double-clicking the .jar, or running my run.bat file, everything works. And in fact visual basic just opens the .bat file. Does bukkit search how it is opened? initialization code for bukkit process: Code: bukkit.StartInfo.UseShellExecute = False bukkit.StartInfo.RedirectStandardOutput = True bukkit.StartInfo.RedirectStandardInput = True bukkit.StartInfo.RedirectStandardError = True Dim path As String = bukkitlocation.Text bukkit.StartInfo.FileName = path bukkit.StartInfo.CreateNoWindow = True bukkit.Start() bukkitid = bukkit.Id Debug.WriteLine("starting bukkit") Debug.WriteLine("process:" & bukkitid) the string path is pointing to a string which contains the path of my run.bat file can anyone help me? (and of course i will share this program with the community when it's finished ) greetings,
i guess that system out (at the java side?) is the standardoutput stream at vb. Not ignoring it, but it doesnt return any values MSDN isn't really clear about this function, i don't get clearly how to implent it. (i just find java code how to use this for output, but no vb code about how to import this data) Do you have experience with this, ore do you have an example code? this is the current input i get from the cmd window: Code: output stream: errorstream: 18:12:02 [INFO] Starting minecraft server version Beta 1.5_02 18:12:02 [INFO] Loading properties 18:12:02 [INFO] Starting Minecraft server on *:25565 18:12:02 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-729-g5ee3f0f-b766jnks (MC: 1.5_02) 18:12:02 [INFO] Preparing level "world" 18:12:02 [INFO] Preparing start region 18:12:03 [INFO] Done (0,067s)! For help, type "help" or "?" output stream: errorstream: output stream: errorstream: output stream: errorstream: or Code: errorstream: 18:10:06 [INFO] Starting minecraft server version Beta 1.5_02 18:10:06 [INFO] Loading properties 18:10:06 [INFO] Starting Minecraft server on *:25565 18:10:06 [WARNING] Perhaps a server is already running on that port? 18:10:06 [WARNING] The exception was: java.net.BindException: Address already in use: JVM_Bind output stream: errorstream: output stream: errorstream:
I'm still having problems with the "user not premium" when i try to login on the server started by the GUI. Does anyone has any idea about what can cause this problem?
User not premium is the authentication check. You get that message when you are logged in as player if online-mode is on in the server.properties. The usual fix for this is to buy a minecraft account
I know that, but the server runs in offline mode (config file linenline-mode=false) but if I run the server by .bat launcher, or by double-clicking the .jar, everything works. It seems that craftbukkit "detects" that it runs by antother program
*bump* I have rewriteen every single bit of my program, after i stopped it for a while. And again, I'm facing the same problems: 1) I Can't read all console output in the GUI, plugin info, info about player login,... is missing. this is a copy of what i see: Code: 151 recipes 16 achievements 19:10:28 [INFO] Starting minecraft server version Beta 1.7.3 19:10:28 [INFO] Loading properties 19:10:28 [INFO] Starting Minecraft server on *:25565 19:10:28 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-980-g4ed23b1-b1060jnks (MC: 1.7.3) 19:10:28 [INFO] Preparing level "world" 19:10:28 [INFO] Preparing start region for level 0 (Seed: 1220302377133873405) 19:10:29 [INFO] Preparing start region for level 1 (Seed: 1220302377133873405) 19:10:29 [INFO] Server permissions file permissions.yml is empty, ignoring it 19:10:29 [INFO] Done (0,060s)! For help, type "help" or "?" 19:10:56 [INFO] /127.0.0.1:52778 lost connection Edit: I took a closer look, it seems the server uses another config file when started from the GUI??? 2)I can't login, i always get user not premium, while online check is disabled in the config file... EDIT: Problem solved solution: i selected the craftbukkit.jar file in my original server folder. But: Bukkit reads the needed files from the folder where your launcher is located. So in my case, the debug folder of the project. I Continue to work at this GUI, I hope i can publish it soon at the dev forum