Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile CubicChunks on 3 different machines #29

Open
ajthemacboy opened this issue Apr 28, 2015 · 14 comments
Open

Can't compile CubicChunks on 3 different machines #29

ajthemacboy opened this issue Apr 28, 2015 · 14 comments

Comments

@ajthemacboy
Copy link

Hi, I know this isn't an issue with CubicChunks but I ask for your help anyway. I've tried compiling CubicChunks on 3 different machines now, and each time I get a build failure. Here are my versions:


Gradle 2.3

Build time: 2015-02-16 05:09:33 UTC
Build number: none
Revision: 586be72bf6e3df1ee7676d1f2a3afd9157341274

Groovy: 2.3.9
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_45 (Oracle Corporation 25.45-b02)
OS: Linux 3.19.0-14-generic amd64

Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

I use 'git clone https://github.com/TallWorlds/CubicChunks', then 'cd CubicChunks', then 'gradle', at which point it goes through something for about 15 seconds then says build failure.

Here's the build log: http://pastebin.com/EzFKWUum

Thanks for any help you can offer.

@ajthemacboy
Copy link
Author

Note: I don't think this computer has JDK, but the other two I tried DO. They also use Gradle 2.3.

@TheLoneWolfling
Copy link

Did you do gradlew setupDecompWorkspace?

@Barteks2x
Copy link
Contributor

This is not forge. There is no setupDecompWorkspace.
You need 2 additional files: forge jar (because Cuchaz wants to implement forge API) and deobfuscated minecraft jar - generated when building m3l.

@ajthemacboy
Copy link
Author

Any particular forge version? And where do I put them, the root directory of the project?

Edit: Also, I assume you mean compiling M3L with gradle. Where is the project? I can't find it!

@Barteks2x
Copy link
Contributor

Currently compiling TWM is more complicated than it seems to be. It will be improved in the future.
If you want to compile it now:
Forge version 1.8-11.14.1.1334 is specified in build.gradle. It needs to be in libs directory.

M3L can't be compiled with gradle.
To get deobfuscated minecraft jar you need to:
Clone m3l (using mercurial), Clone ssjb, Install python if you don't have it.
In m3l directory create lib directory and copy forge jar to it (the same version).
Run thses commands:
python build.py getMappings
python build.py getDeps
python build.py deobfMinecraftClient

location for deobfuscated minecraft jar specified in buildscript is ../m3l/lib so if m3l and TWM repositories are in the same directory you don't need to copy anything.

@cuchaz
Copy link
Member

cuchaz commented Apr 28, 2015

I haven't made a nice mod development environment for M3L yet. Until then, compiling M3L will be painful. =)

@ajthemacboy
Copy link
Author

You devs sure do go through a lot of hoops.. xD

Anyway, I got the deobfuscated client now.. thanks!

Update: Still having issues: http://pastebin.com/hqewzGuq

Update 2: I checked build.gradle and saw that forge was supposed to be in libs, not lib, so I changed that, but still got this: http://pastebin.com/uqsa6sYh

@Barteks2x
Copy link
Contributor

It doesn't seem to use latest M3L version

@ajthemacboy
Copy link
Author

I just cloned the repository with Mercurial, which I've never used before, but I assume it uses the latest version by default?

@Barteks2x
Copy link
Contributor

It uses version from Cuchaz's maven repository, not the version you used to generate deobfuscated minecraft jar. Actually you probably didn't even compile that version. It used enigma to generate the jar.

@ajthemacboy
Copy link
Author

So confused (not your fault).. I'll try this later when I get some time. Thanks for all your help!

@Barteks2x
Copy link
Contributor

It doesn't compile for me too. You eighter need to compile m3l yourself (and add jar file to dependencies) or wait until Cuchaz updates M3L in maven repository.

@ajthemacboy
Copy link
Author

Can I have the link to the Maven repo? All I can find is Bitbucket.

@Barteks2x
Copy link
Contributor

Gradle downloadds it automatically from the repository. But the version in maven repository isn't up to daye with the version on bitbucket. If you remove the 2 methods with compile errors - it will compile but there will be memory leaks when you save and exit and load other world (see #27)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants