Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Gamers & Players
  • Search

Minecraft (ebuild to build deps from source!)

Having problems getting your favorite Linux game to work? Want to discuss strategies? This is the place!
Post Reply
  • Print view
Advanced search
330 posts
  • Page 10 of 14
    • Jump to page:
  • Previous
  • 1
  • …
  • 8
  • 9
  • 10
  • 11
  • 12
  • …
  • 14
  • Next
Author
Message
Phluffy
n00b
n00b
User avatar
Posts: 39
Joined: Mon Dec 08, 2008 7:14 am
Location: Englewood, Co
Contact:
Contact Phluffy
Website

  • Quote

Post by Phluffy » Thu Oct 25, 2012 10:00 pm

Minecraft 1.4.2 is out :D
Is this still maintained?
Regards,
Phluffy
Top
cohone
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Mon Mar 27, 2006 2:10 pm

  • Quote

Post by cohone » Fri Oct 26, 2012 11:25 am

Phluffy wrote:Minecraft 1.4.2 is out :D
Is this still maintained?
When you run the game, it ask for an update, you do not need to emerge the ebuild again.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Fri Oct 26, 2012 3:59 pm

For the server you can just rename the ebuild (and have to, since upstream recycles URLs for each version).
Top
Zolcos
n00b
n00b
Posts: 39
Joined: Sun Oct 28, 2012 4:15 pm

  • Quote

Post by Zolcos » Tue Nov 13, 2012 1:06 am

Ant P. wrote:For the server you can just rename the ebuild (and have to, since upstream recycles URLs for each version).
You're talking about the official server right? Is there as easy of a solution for craftbukkit?
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Tue Nov 20, 2012 3:34 pm

Zolcos wrote:You're talking about the official server right? Is there as easy of a solution for craftbukkit?
The bare minimum would be to rename the bukkit and craftbukkit ebuilds, then edit $MY_PV in both. I haven't tested this but it looks like it should work.
Top
HyperQuantum
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 88
Joined: Tue Sep 27, 2005 7:57 am
Contact:
Contact HyperQuantum
Website

  • Quote

Post by HyperQuantum » Sun Jan 27, 2013 6:13 pm

When installing the latest ebuild of minecraft-server from the overlay (1.3.2), I get a distfile fetch error. Reason for this is that the SRC_URI for the ebuild points to the latest, unversioned, download of the minecraft server, which is no longer 1.3.2.

How can I easily fix this problem? I'd like to have the latest version of the server, not 1.3.2. Is it only a matter of recalculating the ebuild digest or something?
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Sun Jan 27, 2013 7:23 pm

The ebuild in java-overlay points to an unversioned URL. Here's a fix:

Code: Select all

--- java-overlay/games-server/minecraft-server/minecraft-server-1.3.2.ebuild	2012-09-29 18:31:32.000000000 +0100
+++ local/games-server/minecraft-server/minecraft-server-1.4.7.ebuild	2012-12-28 17:35:16.729676011 +0000
@@ -7,7 +7,7 @@
 
 DESCRIPTION="Official dedicated server for Minecraft"
 HOMEPAGE="http://www.minecraft.net"
-SRC_URI="http://www.minecraft.net/download/minecraft_server.jar -> ${P}.jar"
+SRC_URI="http://assets.minecraft.net/${PV//\./_}/minecraft_server.jar -> ${P}.jar"
 LICENSE="as-is"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
Top
HyperQuantum
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 88
Joined: Tue Sep 27, 2005 7:57 am
Contact:
Contact HyperQuantum
Website

  • Quote

Post by HyperQuantum » Sun Jan 27, 2013 8:44 pm

I had already 'solved' the problem with a hack:

Code: Select all

# cd /usr/portage/distfiles/
# mv minecraft-server-1.3.2.jar._checksum_failure_.DeegP9 minecraft-server-1.4.7.jar
# cd /var/lib/layman/java-overlay/games-server/minecraft-server/
# cp minecraft-server-1.3.2.ebuild minecraft-server-1.4.7.ebuild
# ebuild minecraft-server-1.4.7.ebuild digest
# emerge -avut minecraft-server
Top
Chewi
Developer
Developer
User avatar
Posts: 890
Joined: Mon Sep 01, 2003 4:29 pm
Location: Edinburgh, Scotland
Contact:
Contact Chewi
Website

  • Quote

Post by Chewi » Sun Jan 27, 2013 9:03 pm

I've actually just updated the overlay and made the SRC_URI change. Sorry for the trouble but the fact is I don't play the game any more.
Top
Chewi
Developer
Developer
User avatar
Posts: 890
Joined: Mon Sep 01, 2003 4:29 pm
Location: Edinburgh, Scotland
Contact:
Contact Chewi
Website

  • Quote

Post by Chewi » Sun Feb 03, 2013 10:19 pm

The Bukkit ebuilds have been updated. Many thanks to Robert Förster for doing the work and adding a systemd enchancement. It was a simple bump this time but you never know that until you try it.
Top
cravengemetzel
n00b
n00b
Posts: 40
Joined: Mon Mar 12, 2012 8:23 pm

  • Quote

Post by cravengemetzel » Sat Mar 09, 2013 3:56 pm

Hi, I had installed Minecraft via Wine and started a thread because I found it ridiculously slow and unplayable, to which it was suggested that I install minecraft from the java-overlay. I did this, attempted to log in with my credentials, where the launcher told me that it was not downloaded (as expected). I checked out the installation folder, ~/.minecraft and compared it with the folder that Wine installed it into, found that it had a few similar files in ~/.minecraft, ~/.minecraft/bin and ~/.minecraft/natives, but that many were missing so I copied the missing files from the Wine installation to the ~/.minecraft folder (I have no idea if this was the proper way of doing this), leaving ~/.minecraft/bin/lwgl.jar and ~/.minecraft/bin/natives untouched as these were already installed (so I assumed that this was the part that was compiled natively for linux).

Minecraft is launching, but it is still just as slow and unplayable as it was with Wine. This isn't due to low hardware specs as my laptop is a beast (quad-core cpu, 8gb ram, 2gb dedicated DDR3 memory for graphics). What should I do? Thanks.


EDIT: I posted a thread with more specific information about about my problem here
http://forums.gentoo.org/viewtopic-p-72 ... ml#7261770
Top
Yminus
Apprentice
Apprentice
Posts: 185
Joined: Sun Jan 06, 2008 9:06 pm

  • Quote

Post by Yminus » Sat Apr 27, 2013 10:40 pm

I am completely new to minecraft and I do not know how to get it started.

I emerged the minecraft ebuild and

Code: Select all

minecraft
starts the minecraft launcher.

Then I saw the "Need account?" link, created an account and verified my e-mail. But still logins (with e-mail address and password) are failing. I also read the previous comment and learned I first have to download minecraft? But where should it be downloaded to? It would be nice if the post installation message would contain some hints so someone like me who never played minecraft before learns how to get started.

I also tried to play the minecraft demo in the browser, but nothing happens after the download completes. The demo just freezes.

Edit: I found the "Play offline" Button in minecraft launcher. Playing offline works.
Top
Chewi
Developer
Developer
User avatar
Posts: 890
Joined: Mon Sep 01, 2003 4:29 pm
Location: Edinburgh, Scotland
Contact:
Contact Chewi
Website

  • Quote

Post by Chewi » Sun Apr 28, 2013 7:32 am

I forget the exact process now, it's been so long. Have you actually bought the game? It's not free! You don't need to manually download anything, that's what the ebuild is for.
Top
Yminus
Apprentice
Apprentice
Posts: 185
Joined: Sun Jan 06, 2008 9:06 pm

  • Quote

Post by Yminus » Tue Jun 25, 2013 10:14 pm

When I (finally) logged in, I've been asked to update. Is it save to use the games update procedure or should I just wait for a newer ebuild?
Top
Chewi
Developer
Developer
User avatar
Posts: 890
Joined: Mon Sep 01, 2003 4:29 pm
Location: Edinburgh, Scotland
Contact:
Contact Chewi
Website

  • Quote

Post by Chewi » Wed Jun 26, 2013 5:45 am

Updating is fine, the ebuild only installs the launcher, which rarely changes.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Wed Jun 26, 2013 2:38 pm

The current launcher's going to be obsolete come next week...
Top
Chewi
Developer
Developer
User avatar
Posts: 890
Joined: Mon Sep 01, 2003 4:29 pm
Location: Edinburgh, Scotland
Contact:
Contact Chewi
Website

  • Quote

Post by Chewi » Wed Jun 26, 2013 2:50 pm

Thanks for the heads up. What's happening, I'm out of the loop?
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Wed Jun 26, 2013 7:00 pm

They've got a new launcher with support for "slotted" game jars basically, and they say it's required for 1.6+. There's a link to a prerelease version of it on the top of mojang.com currently.

It doesn't seem to interfere with the native libs hack AFAIK, but the command line is -jar based now, doesn't need the $gjl_main that the current gentoo launcher script has.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Mon Jul 01, 2013 4:35 pm

Diff for 1.6.1 server ebuild, not sure what to do about the launcher.

Code: Select all

--- /var/db/repositories/java-overlay/games-server/minecraft-server/minecraft-server-1.4.7.ebuild	2013-02-04 00:05:33.000000000 +0000
+++ code/ebuilds/games-server/minecraft-server/minecraft-server-1.6.1.ebuild	2013-07-01 16:33:26.540039723 +0100 
@@ -7,7 +7,7 @@
 
 DESCRIPTION="Official dedicated server for Minecraft"
 HOMEPAGE="http://www.minecraft.net"
-SRC_URI="http://assets.minecraft.net/${PV//./_}/minecraft_server.jar -> ${P}.jar"
+SRC_URI="http://s3.amazonaws.com/Minecraft.Download/versions/${PV}/minecraft_server.${PV}.jar -> ${P}.jar"
 LICENSE="as-is"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
edit: needed the " -> ${P}.jar" after all.
Top
lyallp
Veteran
Veteran
User avatar
Posts: 1655
Joined: Thu Jul 15, 2004 12:07 am
Location: Adelaide/Australia
Contact:
Contact lyallp
Website

  • Quote

Post by lyallp » Tue Jul 16, 2013 12:51 pm

Is there an ebuild for the 1.6.2 Client?

I see that I can simply download the Launcher.jar and execute it with

Code: Select all

$ java -jar Minecraft_Launcher.jar
(I probably renamed the downloaded jar to suit my own sensibilities but the concept still applies)
...Lyall
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Sat Aug 03, 2013 7:01 pm

It looks like the 1.6 client broke the native binary hack we use, it downloads them into a different location and does extra version checks now.
Top
Chewi
Developer
Developer
User avatar
Posts: 890
Joined: Mon Sep 01, 2003 4:29 pm
Location: Edinburgh, Scotland
Contact:
Contact Chewi
Website

  • Quote

Post by Chewi » Sat Aug 03, 2013 10:27 pm

Ant P. wrote:It looks like the 1.6 client broke the native binary hack we use, it downloads them into a different location and does extra version checks now.
That's unfortunate. Still, I'm surprised the hack worked completely unmodified for so long!

So there's been no updates from me since February. Sorry about that. Not only have I stopped playing but my wife now uses OpenSUSE rather than Gentoo so there's been no incentive for me to work on this. I still care about it but I'm moving house, among other things. java-overlay also switched from Subversion to git. I've finally checked out the new repository.

So I had a look at the new launcher tonight. On first inspection, it's a total change, but I do at least have some ideas that I could try. I see that it's properly versioned now so regardless of whether I manage to find a new hack, I'll change the package's version scheme to reflect this.
Top
Chewi
Developer
Developer
User avatar
Posts: 890
Joined: Mon Sep 01, 2003 4:29 pm
Location: Edinburgh, Scotland
Contact:
Contact Chewi
Website

  • Quote

Post by Chewi » Sun Aug 04, 2013 11:27 am

I've been mulling over my ideas. They ranged from patching some Java methods at runtime to writing a FUSE filesystem to sit on top of the libaries directory but I've just realised there's a much easier way.

By default, the launcher starts the game using the Java executable that you used to start the launcher itself with, such as /opt/icedtea-bin-7.2.3.9/bin/java. This can be overridden through the GUI and could be pointed to some kind of wrapper named something like minecraft-gentoo.

Pros:
  • It's a lot less hacky than the other ideas.
  • All you'd need to do is unset this field to use the upstream libraries, if you wanted to.
  • It does utilise the PATH so minecraft-gentoo is literally all you'd need to enter.
  • We could easily fallback to an upstream library if we don't have a compatible version installed.
Cons:
  • It's difficult (i.e. not worth the hassle) to set this field by default so you'd have to do it yourself.
  • It will still download and unpack the upstream libraries.
  • If they keep updating to non-compatible library versions, the ebuild would need to depend on several versions of the same libraries.
The last point seems unlikely. Until now, they never changed the versions once. On the other hand, this new mechanism may have been put in place because they want to update more frequently. If the situation gets out of hand, we could just focus on the latest versions and fall back to upstream for older versions.

Thoughts? Suggestions?
Top
Chewi
Developer
Developer
User avatar
Posts: 890
Joined: Mon Sep 01, 2003 4:29 pm
Location: Edinburgh, Scotland
Contact:
Contact Chewi
Website

  • Quote

Post by Chewi » Sun Aug 04, 2013 9:52 pm

I've started working on this wrapper. Although I can pull off some pretty hairy stuff with Bash, I felt that parsing command line options intelligently really called for something else. My weapon of choice is usually Ruby but I don't want to make that a dependency so I've broken out some Python. It's a language I rarely use but the thing is coming together quite nicely.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Mon Aug 05, 2013 12:19 am

I've got a half-baked hack to get the new version to use the existing native libs:

Code: Select all

cd ~/.minecraft/bin/natives/
jar -cMf ../../libraries/org/lwjgl/lwjgl/lwjgl-platform/2.9.0/lwjgl-platform-2.9.0-natives-gentoo.jar lib{lwjgl,openal}{,64}.so
jar -cMf ../../libraries/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-gentoo.jar libjinput-linux{,64}.so
cd ~/.minecraft/versions/1.6.2/
sed -i -e 's/natives-linux/natives-gentoo/g' 1.6.2.json
It seems to work pretty reliably. Doing it "correctly" would probably entail building a JSON file with the correct library version strings in it.
Top
Post Reply
  • Print view

330 posts
  • Page 10 of 14
    • Jump to page:
  • Previous
  • 1
  • …
  • 8
  • 9
  • 10
  • 11
  • 12
  • …
  • 14
  • Next

Return to “Gamers & Players”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic