Posted April 18, 201510 yr Hi, I have a problem that I think is with my build.gradle file. The mod loads in build/libs, but nothing inside of the assets folder loads (except the subfolders). There is no content, like .json files and .png images. When I run gradle build in cmd, it throws no errors. Here is the CMD output: https://www.dropbox.com/s/9dsa03c72gd91r9/CMDOutput.PNG?dl=0 Here is my gradle.build: 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 = "1.8-11.14.1.1334" group= "net.extend.mod" archivesBaseName = "extend" minecraft { version = "1.8-11.14.1.1334" runDir = "eclipse" mappings = "snapshot_20141130" } dependencies { } processResources { inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version include 'mcmod.info' from(sourceSets.main.resources.srcDirs) { expand 'version':project.version, 'mcversion':project.minecraft.version } } Sup bruh.
April 18, 201510 yr Author Here is my debug output: [12:34:12] [main/INFO] [GradleStart]: Extra: [] [12:34:12] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Lucas/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [12:34:12] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [12:34:13] [main/INFO] [FML]: Forge Mod Loader version 8.0.37.1334 for Minecraft 1.8 loading [12:34:13] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_05, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre8 [12:34:13] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [12:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [12:34:13] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [12:34:13] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [12:34:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:34:13] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [12:34:16] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [12:34:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:34:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:34:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:34:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [12:34:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [12:34:16] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [12:34:17] [Client thread/INFO]: Setting user: Player897 [12:34:20] [Client thread/INFO]: LWJGL Version: 2.9.1 [12:34:21] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [12:34:21] [Client thread/INFO] [FML]: MinecraftForge v11.14.1.1334 Initialized [12:34:21] [Client thread/INFO] [FML]: Replaced 204 ore recipies [12:34:21] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [12:34:21] [Client thread/INFO] [FML]: Config directory created successfully [12:34:21] [Client thread/INFO] [FML]: Searching C:\Users\Lucas\Desktop\Forge Source\eclipse\mods for mods [12:34:21] [Client thread/ERROR] [FML]: The mcmod.info file in bin cannot be parsed as valid JSON. It will be ignored com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 8 column 5 at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?] at com.google.gson.JsonParser.parse(JsonParser.java:84) ~[JsonParser.class:?] at com.google.gson.JsonParser.parse(JsonParser.java:59) ~[JsonParser.class:?] at net.minecraftforge.fml.common.MetadataCollection.from(MetadataCollection.java:56) [MetadataCollection.class:?] at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:69) [DirectoryDiscoverer.class:?] at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:53) [DirectoryDiscoverer.class:?] at net.minecraftforge.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?] at net.minecraftforge.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?] at net.minecraftforge.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?] at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:348) [Loader.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:469) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:446) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:356) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 8 column 5 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:480) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?] at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?] ... 22 more [12:34:21] [Client thread/INFO] [ultracraft]: Mod ultracraft is missing the required element 'name'. Substituting ultracraft [12:34:22] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [12:34:23] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ultracraft] at CLIENT [12:34:23] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ultracraft] at SERVER [12:34:23] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ultracraft [12:34:23] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [12:34:23] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [12:34:23] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [12:34:23] [Client thread/INFO] [FML]: Applying holder lookups [12:34:23] [Client thread/INFO] [FML]: Holder lookups applied [12:34:24] [sound Library Loader/INFO]: Starting up SoundSystem... [12:34:24] [Thread-6/INFO]: Initializing LWJGL OpenAL [12:34:24] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:34:25] [Thread-6/INFO]: OpenAL initialized. [12:34:25] [sound Library Loader/INFO]: Sound engine started [12:34:28] [Client thread/INFO]: Created: 512x512 textures-atlas [12:34:29] [Client thread/INFO] [sTDOUT]: [uc.mainmod.UltraCraft:init:27]: init [12:34:29] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [12:34:29] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ultracraft [12:34:30] [Client thread/INFO]: SoundSystem shutting down... [12:34:30] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [12:34:30] [sound Library Loader/INFO]: Starting up SoundSystem... [12:34:30] [Thread-8/INFO]: Initializing LWJGL OpenAL [12:34:30] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:34:30] [Thread-8/INFO]: OpenAL initialized. [12:34:30] [sound Library Loader/INFO]: Sound engine started [12:34:33] [Client thread/INFO]: Created: 512x512 textures-atlas Sup bruh.
April 18, 201510 yr You need to change this sections; version = "1.8-11.14.1.1334" group= "net.extend.mod" archivesBaseName = "extend" group should be same with your main class folder and extend should be your modid.
April 18, 201510 yr Author Okay, this is my new build.gradle: 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 = "1.8-11.14.1.1334" group= "uc.mainmod" archivesBaseName = "ultracraft" minecraft { version = "1.8-11.14.1.1334" runDir = "eclipse" mappings = "snapshot_20141130" } dependencies { } processResources { inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version include 'mcmod.info' from(sourceSets.main.resources.srcDirs) { expand 'version':project.version, 'mcversion':project.minecraft.version } } But the textures still do not load into the build/resources/main/assets/UltraCraft/ folder. Sup bruh.
April 18, 201510 yr if you didn't change your mod Id was examplemod I remember, you need to check public Static MODID from your main class, because it works for me
April 18, 201510 yr Author My public static String MODID is equal to "ultracraft" (and was before). What I did now was, I deleted the entire "build" folder and re-ran gradle build . Now, there are no files or folders in build\resources\main except for mcmod.info. I'm not sure if this good or bad, but the texture still doesn't load. Sup bruh.
April 18, 201510 yr Author Also, in case anyone is curious, I'm trying to load the texture into a creative tab. Sup bruh.
April 19, 201510 yr Are you using IntelliJ 14? If so you need to add a line to your build.gradle, otherwise it won't copy your resources properly If you are using Intellij 14 (which you should) you need to add the following to the end of your build.gradle before importing: idea { module { inheritOutputDirs = true } } If you don't do that, your assets will not work. (Thanks to SanAndreasP for finding this solution) see here http://www.minecraftforge.net/forum/index.php?topic=21354.0 -TGG
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.