Topic category: Troubleshooting, bugs, and solutions
Hello, I've been working on a mod recently and i added a few things. When i wanted to test it and clicked to launch the test client enviroment nothing happend. When i went into the console, i got this:
Executing gradle command: clean runClient
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Pylo\MCreator161>cd forge
C:\Pylo\MCreator161\forge>SET "JAVA_HOME=C:\Pylo\MCreator161\jdk64\"
C:\Pylo\MCreator161\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator161\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator161\forge>SET "JAVA_OPTS=-Xmx2048m -Xms625m"
C:\Pylo\MCreator161\forge>gradlew clean runClient
This set of MCP mappings was designed for MC 1.8. Use at your own peril.
#################################################
ForgeGradle 2.1-SNAPSHOT-9fb7522
https://github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP unknown
http://modcoderpack.com
by: Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
#################################################
:clean UP-TO-DATE
:deobfCompileDummyTask
:deobfProvidedDummyTask
FAILURE: Build failed with an exception.
* What went wrong:
java.io.FileNotFoundException: C:\Pylo\MCreator161\forge\.gradle\2.7\taskArtifacts\cache.properties (The system cannot find the file specified)
> C:\Pylo\MCreator161\forge\.gradle\2.7\taskArtifacts\cache.properties (The system cannot find the file specified)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
:getVersionJson
BUILD FAILED
Total time: 16.328 secs
C:\Pylo\MCreator161\forge>
Task completed with return code 0 in 17094 milliseconds
Task return code check OK!
Please help! D:
Nevermind i got this fixed but now i cant run any world on test enviroment without it crashing, people here are very helpful responding to this post and all
Here are solutions which matches your cause:
1.Recompile mod
Go to tools then recompile, or edit one of your mods
(This will check if you got any errors, you can post error message to me or the fourm)
2.Test mod on minecraft.exe
Get jar or zip of mod and put it in .minecraft mods folder
(If error pops up, this may be because you have a custom model or mob set up incorrectly. If not message me.)
3. Get a mcr file as backup and update or redownload the latest version.
Note: Get mcr file first. If you are on 1.7.10- update to next version as you cannot go straight to 1.8.8. It is recommended to stay at the latest version of this software.
If there is problems after trying this then comment back.
Alright, thank you soooo much i will try these
Alright so i recompiled and i got this
Executing gradle command: clean build
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Pylo\MCreator161>cd forge
C:\Pylo\MCreator161\forge>SET "JAVA_HOME=C:\Pylo\MCreator161\jdk64\"
C:\Pylo\MCreator161\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator161\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator161\forge>SET "JAVA_OPTS=-Xmx1021m -Xms516m"
C:\Pylo\MCreator161\forge>gradlew clean build
This set of MCP mappings was designed for MC 1.8. Use at your own peril.
#################################################
ForgeGradle 2.1-SNAPSHOT-9fb7522
https://github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP unknown
http://modcoderpack.com
by: Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
#################################################
:clean
:deobfCompileDummyTask
:getVersionJson
:extractUserdev UP-TO-DATE
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:applyBinaryPatches SKIPPED
:deobfProvidedDummyTask
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:deobfMcMCP SKIPPED
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
:compileJava
:processResources
:classes
:jar
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:reobfJar
:extractRangemapSrc
:retromapSources
remapping source...
:sourceJar
:assemble
:check UP-TO-DATE
:build
BUILD SUCCESSFUL
Total time: 2 mins 32.767 secs
C:\Pylo\MCreator161\forge>
Task completed with return code 0 in 154721 milliseconds
Task return code check OK!
I think that came out pretty clean i haven't triend testing in minecraft.exe yet. I will do that now.
Ok i just realised i dont know if my mod will need forge or anything, do i just put it in the mods folder and run it? i seriously doubt that would work.
Nevermind i got forge to work... But.. the same as test enviroment.. when i load a world.. i crash -_-.. heres the crash report... i really dont know whats wrong
---- Minecraft Crash Report ----
// My bad.
Time: 12/31/15 11:45 PM
Description: Exception initializing level
java.lang.IllegalArgumentException: bound must be positive
at java.util.Random.nextInt(Unknown Source)
at mod.mcreator.mcreator_enderSteelOre.generateSurface(mcreator_enderSteelOre.java:131)
at mod.mcreator.EnderAscendece.generate(EnderAscendece.java:137)
at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:112)
at net.minecraft.world.gen.ChunkProviderServer.func_73153_a(ChunkProviderServer.java:262)
at net.minecraft.world.chunk.Chunk.func_76624_a(Chunk.java:1039)
at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:172)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:114)
at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:84)
at net.minecraft.world.gen.ChunkProviderServer.func_73154_d(ChunkProviderServer.java:181)
at net.minecraft.world.World.func_72964_e(World.java:287)
at net.minecraft.world.World.func_175726_f(World.java:282)
at net.minecraft.world.World.func_180495_p(World.java:820)
at net.minecraft.world.World.func_175623_d(World.java:204)
at net.minecraft.world.World.func_175703_c(World.java:189)
at net.minecraft.world.WorldProvider.func_76566_a(WorldProvider.java:64)
at net.minecraft.world.WorldServer.func_73052_b(WorldServer.java:844)
at net.minecraft.world.WorldServer.func_72963_a(WorldServer.java:766)
at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:89)
at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:123)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at java.util.Random.nextInt(Unknown Source)
at mod.mcreator.mcreator_enderSteelOre.generateSurface(mcreator_enderSteelOre.java:131)
at mod.mcreator.EnderAscendece.generate(EnderAscendece.java:137)
at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:112)
at net.minecraft.world.gen.ChunkProviderServer.func_73153_a(ChunkProviderServer.java:262)
at net.minecraft.world.chunk.Chunk.func_76624_a(Chunk.java:1039)
at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:172)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:114)
at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:84)
at net.minecraft.world.gen.ChunkProviderServer.func_73154_d(ChunkProviderServer.java:181)
at net.minecraft.world.World.func_72964_e(World.java:287)
at net.minecraft.world.World.func_175726_f(World.java:282)
at net.minecraft.world.World.func_180495_p(World.java:820)
at net.minecraft.world.World.func_175623_d(World.java:204)
at net.minecraft.world.World.func_175703_c(World.java:189)
at net.minecraft.world.WorldProvider.func_76566_a(WorldProvider.java:64)
at net.minecraft.world.WorldServer.func_73052_b(WorldServer.java:844)
-- Affected level --
Details:
Level name: New World
All players: 0 total; []
Chunk stats: ServerChunkCache: 23 Drop: 0
Level seed: -5954239631425449824
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options:
Level spawn location: 0.00,0.00,0.00 - World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 0 game time, 0 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.world.WorldServer.func_72963_a(WorldServer.java:766)
at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:89)
at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:123)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)
at java.lang.Thread.run(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.8.8
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_66, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 133674952 bytes (127 MB) / 363376640 bytes (346 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.18 Powered by Forge 11.15.0.1655 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAA mcp{9.18} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAA FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.8-11.15.0.1655.jar)
UCHIJAA Forge{11.15.0.1655} [Minecraft Forge] (forge-1.8.8-11.15.0.1655.jar)
UCHIJAA EnderAscendece{1.0.0} [EnderAscendece] (EnderAscendence.jar)
Loaded coremods (and transformers):
GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
Profiler Position: N/A (disabled)
Player Count: 0 / 8; []
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
i really dont know what to do, as far as im concerened im the only one who ever got this problem because i cant find anyone else who did.. im so annoyed. Please help
Hang on i think i know whats happening here. I looked at the crash report and i think something is happening with the ore generation, i launched a super flat world for that and as soon as it loads chunks it crashes. It says: at java.util.Random.nextInt(Unknown Source)
at mod.mcreator.mcreator_enderSteelOre.generateSurface(mcreator_enderSteelOre.java:131)
at mod.mcreator.EnderAscendece.generate(EnderAscendece.java:137)
at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:112)
at net.minecraft.world.gen.ChunkProviderServer.func_73153_a(ChunkProviderServer.java:262)
at net.minecraft.world.chunk.Chunk.func_76624_a(Chunk.java:1039)
at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:172)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:114)
at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:84)
at net.minecraft.world.gen.ChunkProviderServer.func_73154_d(ChunkProviderServer.java:181)
at net.minecraft.world.World.func_72964_e(World.java:287)
at net.minecraft.world.World.func_175726_f(World.java:282)
at net.minecraft.world.World.func_180495_p(World.java:820)
at net.minecraft.world.World.func_175623_d(World.java:204)
at net.minecraft.world.World.func_175703_c(World.java:189)
at net.minecraft.world.WorldProvider.func_76566_a(WorldProvider.java:64)
at net.minecraft.world.WorldServer.func_73052_b(WorldServer.java:844)
The Code of the problematic mod would be very helpful
Nevermind i fixed it somehow and i got it to run