Zerobrain & Linux Issues {Solved} - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Zerobrain & Linux Issues {Solved} (/thread-2239.html) |
Zerobrain & Linux Issues {Solved} - chrobione - 12-08-2015 I am having troubles getting basic debugging working with Cuberite and Zerobrain. I never see the Cubrite server fully start, with a terminal window. My google-fu is failing to find a solution. I am hoping someone here goes oh yeah you need to do <insert fix here> and bam this is done. So I follow the instructions over here to get to this point. Since I get the choice of Cuberite - release mode and Cuberite - debug mode in the ZeroBrain IDE, as well I get code completion, I assume I have the IDE configured correctly. Since I am using the pre-compiled binary, I have "Cuberite - release mode" selected. My project folder is set to Code: /home/user/Server/Plugins/APIDump When I press F5 I get the following from the ouput window in ZeroBrain: Code: Debugger server started at computername:8172. ps aux |grep Cuberite shows that it is started: Code: user 9356 0.0 0.1 58416 12312 ? Ssl 22:35 0:00 /home/user/Server/Cuberite --no-output-buffering Also the server starts fine from the terminal by running ./Cuberite and output of: Code: [22:43:02] --- Started Log --- Here is the 411 on the rig I am playing with: Code: Intel Core i5 Toshiba Laptop with 8GB ram Thanks for reading to here... Chrobi RE: Zerobrain & Linux Issues - xoft - 12-08-2015 I've just tried running ZBS + Cuberite on Linux for the first time I see similar results to what you're seeing - the server seemingly starts, but is not available. In my case, it also terminates rather soon, within 2 seconds, so that was my clue. After doing some sniffing around, I found out that the issue is caused by ZBS launching Cuberite in a detached state and closing its stdin; Cuberite by default terminates when its stdin is closed, so effectively the server starts up and terminates immediately. Please try this fix first: In ZBS's packages folder, there's the "cuberite.lua" file (that you downloaded from ZeroBranePackages), open it up and it should have this on line 132: false, -- Redirect debuggee output to Output pane? (NOTE: This force-hides the Cuberite window, not desirable!)Change that line to a simple true,and restart ZBS. This should force the debugger to instead put both cuberite's output and input in the Output pane of ZBS and for me it has helped keep the server running. If this works, I'll update the package accordingly. The "false" value is there because on Windows, the redirection doesn't work, so I expect we'll need per-OS value there in the end. And yes, your assumptions were correct RE: Zerobrain & Linux Issues - chrobione - 12-09-2015 This was the issue fixer as exactly described. Thank you for the response. Chrobi |