RegisterRegister    Log inLog in    SearchSearch   

Post new topic   Reply to topic
 
View previous topic :: View next topic  
Author Message
Zauberfisch



PostPosted: Tue Nov 15, 2011 7:51 pm    Post subject: Linux Ubuntu Minecraft - missing minecraft_launch.x86 Reply with quote

good day,

I installed minecraft via gamecreate on my ubuntu host.

after install there is only 1 file in the folder /gamecreate/minecraft named minecracft_server.jar, NO minecraft_launch.x86

when I add a server and start it, a folder for that server gets created with config files and such.

and the gamecreate trys to start the server, but fails:

log:
LOG: Tue Nov 15 10:08:23 2011: ** Start GameCreate Booking: ID 9440680 **
LOG: Tue Nov 15 10:08:23 2011: Launching process: *****/minecraft/minecraft_launch.x86 25565 -Xmx1024M -Xms1024M from directory *****/minecraft
LOG: Tue Nov 15 10:08:23 2011: stat(*****/minecraft/minecraft_launch.x86) failed: (Error: 2)

trying to start from shell:

root@*****:~# *****/minecraft/minecraft_launch.x86
bash: *****/minecraft/minecraft_launch.x86: No such file or directory

I found this post:
http://www.gamecreate.com/forum/viewtopic.php?p=9455#9455
problem is that I also have no start.sh


thanks in advance

best regards
zauberfisch
Back to top
View user's profile Send private message
adbot



PostPosted: Thu Mar 31, 2011 3:57 am 

Kybber



PostPosted: Wed Nov 16, 2011 8:14 pm    Post subject: Reply with quote

The GC devs don't maintain Linux installations, and haven't for quite a few years. Install the server manually to your /gamecreate/minecraft-folder and see what you end up with.
Back to top
View user's profile Send private message
Zauberfisch



PostPosted: Wed Nov 16, 2011 8:35 pm    Post subject: Reply with quote

hello,

since in an older revision the minecraft installation for linux had a start.sh, would it be possible to include this file in the current installation?

just adding the old file would be very little work, but help me a lot.

Or could you paste me the source of this start script?

thanks in advance!

best regards
zauberfisch
Back to top
View user's profile Send private message
Kybber



PostPosted: Thu Nov 17, 2011 12:06 am    Post subject: Reply with quote

I have never installed Minecraft, so I don't have the files.

Simply download the server files from their original location (not GC) and figure out which file should be used to start the server. Rename that file to whatever file GC tries to start, and you should hopefully be set.
Back to top
View user's profile Send private message
Zauberfisch



PostPosted: Thu Nov 17, 2011 12:44 am    Post subject: Reply with quote

hello,

thanks for the reply,

but the minecraft server is actually just 1 file.
"minecraft_server.jar"

for windows it comes with a minecraft.exe which actually just starts the jar file using java.

on linux you just have the .jar file and you are suppose to run it like this:
$ java -jar minecraft_server.jar

problem is that I can not tell GC to pupt "java -jar" into the command like.
GC always trys to run the "minecraft_launch.x86" file, which is probably just a shell script to start it.
GC devs have created a start script for windows that starts the server and somehow keeps track of the server or the pid of the server so that GC knows if the server is still running.

renaming minecraft_server.jar to minecraft_launch.x86 would not work, because you can not execute a .jar file like that from what i know, you whould get:
bash: ./minecraft_launch.x86: cannot execute binary file

since I don't know how GC keeps track of the server status, I can't write a start script my self.
that would start the server and end. but GC will have no idea that the server is running and start it again and again and again. (had the same problem on windows, before GC added a start script for it)

and as it seems, GC already had a start.sh file once, no idea why it is not included any more.
all I need is this file, then it should work.

GameCreate: could you please check if you still have this start.sh somewhere, and hand paste here or inculde in the linux install files?

best regards
zauberfisch
Back to top
View user's profile Send private message
Kybber



PostPosted: Thu Nov 17, 2011 5:59 am    Post subject: Reply with quote

Have you tried to download the windows startscript that GC uses? I would guess it can easily be translated to bash.

If you don't have a Windows host on which you can/want to install GC:
[GC-Lore]
Enable the GC log if you haven't already. Redownload minecraft on your linux host. The logfile will tell you that it downloaded a file called minecraft.txt from a specific URL. That file lists all the files to be downloaded for a (supposedly) complete Minecraft installation for Linux. You want that file for Windows, so use your web browser, modify the URL and replace 'linux' with 'win32'. Inspect the resulting minecraft.txt-file and find the file(s) you are interested in. Download the file from the previously found URL, but replace 'minecraft.txt' with 'minecraft/path/to/the/file', where 'path/to/the/file' is found in minecraft.txt.
[/GC-Lore]
Back to top
View user's profile Send private message
Zauberfisch



PostPosted: Thu Nov 17, 2011 5:45 pm    Post subject: Reply with quote

Hello,

problem is the start script as I called it is actually a .exe, so its more a launcher, sorry :/
Back to top
View user's profile Send private message
Kybber



PostPosted: Thu Nov 17, 2011 7:01 pm    Post subject: Reply with quote

Ah, that definitely complicates things... Hopefully the GC devs will chime in here.

Last edited by Kybber on Fri Nov 18, 2011 5:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zauberfisch



PostPosted: Thu Nov 17, 2011 7:32 pm    Post subject: Reply with quote

yeah, I hope so.

thanks for your effort, I really appreciate it.
Back to top
View user's profile Send private message
Kybber



PostPosted: Fri Nov 18, 2011 5:11 pm    Post subject: Reply with quote

Sure, glad to try to be of assistance Smile
Back to top
View user's profile Send private message
Donzi



PostPosted: Tue Feb 14, 2012 4:16 am    Post subject: Reply with quote

hope we can help you all
i didnt have much skills on shellscripts, but it works on SUBDOMAIN-Servers!
brainstorming http://www.utzone.de/forum/showthread.php?t=2550&page=3



Command Line from th GC-menue must be set to:
Code:
-Xms512M -Xmx1024M %server:ip% %server:port%

Xms and Xmx can be set as you want.



Screen Configuration must be set to "Require screen for server to be run"

Make a file, called minecraft_launch.x86
c&p the following lines into it
Code:
#   Settings for Subdomainservers
SERVICE='craftbukkit.jar'
OPTIONS='nogui'
XMS=$1
XMX=$2
IP=$3
PORT=$4
PIDFILE=port"$4".pid

#   Serverstartline
INVOCATION="java $XMS $XMX -jar $SERVICE $OPTIONS $IP $PORT"

#   PID from GC-Screen to pidfile
ps -ef | grep SCREEN | grep $IP | grep $PORT | grep -v grep | awk ' { print $2 }' > $PIDFILE

#   copy mc-server to port-destination-folder
cp -f $SERVICE port$PORT/

#   change director to port-destination-folder
cd port$PORT/

#   Start mc-Server with all settings
$INVOCATION



Script is tested with a Debian Squeeze bukkit-server and maybe run with the official files too.
Only edit SERVICE to the mc-serverfile, see codeline 2.

Please update minecraft_server.jar (Installed by GC) with an official serverfile or the bukkit-file

official minecraft_server.jar Download

Latest Recommended Build download permalink (wget friendly!):
http://cbukk.it/craftbukkit.jar
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum powered by phpBB © 2001, 2005 phpBB Group
GameCreate Service Terms | Privacy Policy | © Copyright Mammoth Media 2001-2007
GameCreate™ is a trademark of Mammoth Media Pty Ltd. GameCreate® is a registered trademark in Australia.