sigurd4 Posted June 4, 2014 Posted June 4, 2014 i have looked up tutorials on it, but i still cant figure out how to. when i try to it finishes in about 15 seconds without any errors. then, when i take a look in the jarfile, i realize that the only content inside it is a META INF folder and a MANIFEST.MF file, but no classes. i think it might be tat I've written down the wrong path to my classes, but i have checked and it is correct, so I'm not sure. my mod is located in (relative to gradlew.bat) /src/sigurd4/. the package is com.sigurd4.Bioshock. this is my build.gradle file: buildscript { repositories { mavenCentral() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } maven { name = "sonatype" url = "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' } } apply plugin: 'forge' version = "0.1.1" group= "com.sigurd4.Bioshock" archivesBaseName = "BioshockMod" minecraft { version = "1.7.2-10.12.1.1085" assetDir = "eclipse/assets" } dependencies { } processResources { inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' expand 'version':project.version, 'mcversion':project.minecraft.version } from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } please help? edit1: spelling Quote http://www.planetminecraft.com/member/sigurd4 I'm making the bioshock mod!
MikaXD Posted June 4, 2014 Posted June 4, 2014 I think your path relative to your gradlew.bat-file should look like this: /src/main/java/sigurd4/... Normally when you set up your workspace, forge creates automatically a /src/main/-folder which contains the java folder and the resources folder. If this is the problem, go to http://files.minecraftforge.net and download the recommended version. Then create a new workspace, put in all the files, ... Then copy all your classes from /src/sigurd4/com/sigurd4/Bioshock to your new workspace to /src/main/java/sigurd4/... If there is no src/main folder, the gradlew file cannot find your main class. Quote
sigurd4 Posted June 4, 2014 Author Posted June 4, 2014 it still doesnt work... Quote http://www.planetminecraft.com/member/sigurd4 I'm making the bioshock mod!
Mitchellbrine Posted June 4, 2014 Posted June 4, 2014 sigurd4, the path you specified is correct. Try running gradlew build --stacktrace and see if you DO get any errors. If not, I'd reinstall ForgeGradle. Quote -Mitchellbrine Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible. It may be freaking fucking hard though, but still possible If you create a topic on Modder Support, live by this motto: I don't want your charity, I want your information
sigurd4 Posted June 5, 2014 Author Posted June 5, 2014 the same thing happens. no errors, and a fairly empty jarfile. Quote http://www.planetminecraft.com/member/sigurd4 I'm making the bioshock mod!
sequituri Posted June 5, 2014 Posted June 5, 2014 Your source packages should be anchored at: <gradlew location>/src/main/java/ So, you main is .../src/main/java/com/sigurd4/bioshock/Bioshock.java is an example main class location. Quote -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
sigurd4 Posted June 6, 2014 Author Posted June 6, 2014 holy snoop doggy it works! HALELUHJA! Thank you so much! :DDDDD Cant wait to realease my mod now! Quote http://www.planetminecraft.com/member/sigurd4 I'm making the bioshock mod!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.