Skip to content

Instantly share code, notes, and snippets.

@StillManic
Last active August 29, 2015 14:27
Show Gist options
  • Save StillManic/e9cfeb7f017a792a9438 to your computer and use it in GitHub Desktop.
Save StillManic/e9cfeb7f017a792a9438 to your computer and use it in GitHub Desktop.
package rcteam.rc2.rollercoaster;
import com.google.common.collect.Lists;
import net.minecraft.block.material.Material;
import org.apache.commons.lang3.StringUtils;
import rcteam.rc2.block.BlockTrack;
import rcteam.rc2.util.Reference;
import java.util.List;
public enum CategoryEnum {
STEEL("steel", Material.iron),
WOODEN("wooden", Material.wood),
INVERTED("inverted", Material.iron),
WATER("water", Material.iron);
private final String name;
private final Material material;
private TrackPieceInfo info;
public final BlockTrack.TrackPieceProperty PIECE_PROPERTY;
public final String BLOCKSTATE_DIR;
CategoryEnum(String name, Material material) {
this.name = name;
this.material = material;
this.info = new TrackPieceInfo(this);
this.PIECE_PROPERTY = new BlockTrack.TrackPieceProperty("piece");
this.BLOCKSTATE_DIR = Reference.TRACK_STATE_DIR + name + "/";
}
public String getName() {
return this.name;
}
public String getDisplayName() {
return StringUtils.capitalize(this.name);
}
public Material getMaterial() {
return this.material;
}
public void setInfo(TrackPieceInfo info) {
this.info = info;
}
public TrackPieceInfo getInfo() {
return this.info;
}
// public TrackPieceInfo setValidPieces(List<TrackPiece> pieces) {
// //TODO!!!
//// this.info.addPieces(pieces);
// this.PIECE_PROPERTY.setAllowedValues(pieces);
// return this.info;
// }
public TrackPieceInfo setValidPieces() {
List<TrackPiece> pieces = Lists.newArrayList();
for (CoasterStyle style : this.info.getStyles()) {
pieces.addAll(style.getPieces());
}
this.PIECE_PROPERTY.setAllowedValues(pieces);
return this.info;
}
public static CategoryEnum getByName(String name) {
return Lists.newArrayList(CategoryEnum.values()).stream().filter(categoryEnum -> categoryEnum.getName().equals(name)).findAny().get();
}
}
Connected to the target VM, address: '127.0.0.1:56461', transport: 'socket'
[12:47:16] [main/INFO] [GradleStart]: username: [email protected]
[12:47:16] [main/INFO] [GradleStart]: Extra: []
[12:47:16] [main/INFO] [GradleStart]: Password found, attempting login
[12:47:16] [main/INFO]: Logging in with username & password
[12:47:18] [main/INFO] [GradleStart]: Login Succesful!
[12:47:18] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, [{"name":"twitch_access_token","value":"fnpsih9tsgq7wgs04619cbzxwfu024d"}], --assetsDir, C:/Users/Gerald/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --userType, mojang, --accessToken, {REDACTED}, --version, 1.8, --uuid, 1487d900d7a847b494cf0cd5ddf9160e, --username, shadekiller666, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[12:47:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:47:18] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:47:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:47:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[12:47:18] [main/INFO] [FML]: Forge Mod Loader version 8.99.205.1502 for Minecraft 1.8 loading
[12:47:18] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jdk1.8.0_45\jre
[12:47:18] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[12:47:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:47:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[12:47:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[12:47:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:47:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:47:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:47:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:47:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:47:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:47:18] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[12:47:21] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[12:47:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:47:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:47:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:47:21] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:47:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:47:21] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[12:47:22] [Client thread/INFO]: Setting user: shadekiller666
[12:47:25] [Client thread/INFO]: LWJGL Version: 2.9.1
[12:47:25] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: ---- Minecraft Crash Report ----
// Shall we play a game?
Time: 8/20/15 12:47 PM
Description: Loading screen debug info
This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 958213600 bytes (913 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
Loaded coremods (and transformers):
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.200.1062.1002' Renderer: 'AMD Radeon HD 7800 Series'
[12:47:25] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[12:47:25] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1502 Initialized
[12:47:25] [Client thread/INFO] [FML]: Replaced 204 ore recipies
[12:47:25] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[12:47:26] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[12:47:26] [Client thread/INFO] [FML]: Searching C:\Users\Gerald\Documents\GitHub\Rollercoaster2\eclipse\mods for mods
[12:47:30] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[12:47:30] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, rc2] at CLIENT
[12:47:30] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, rc2] at SERVER
[12:47:30] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§4§lRollercoaster 2
[12:47:31] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[12:47:31] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
[12:47:31] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[12:47:31] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[12:47:31] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at rcteam.rc2.rollercoaster.CategoryEnum.<init>(CategoryEnum.java:27)
at rcteam.rc2.rollercoaster.CategoryEnum.<clinit>(CategoryEnum.java:11)
at rcteam.rc2.RC2.preInit(RC2.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:550)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:446)
at net.minecraft.client.Minecraft.run(Minecraft.java:356)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
[0x7FFA684A4450] ANOMALY: meaningless REX prefix used
[13:01:01] [Client thread/INFO] [FML]: Applying holder lookups
[13:01:01] [Client thread/INFO] [FML]: Holder lookups applied
[13:01:01] [Client thread/INFO] [FML]: Injecting itemstacks
[13:01:01] [Client thread/INFO] [FML]: Itemstack injection complete
[13:01:01] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[13:01:01] [Client thread/ERROR] [FML]:
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.3.1502.jar)
UCH Forge{11.14.3.1502} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1502.jar)
UCE rc2{v0.1} [§4§lRollercoaster 2] (Rollercoaster2)
[13:01:01] [Client thread/ERROR] [FML]: The following problems were captured during this phase
[13:01:01] [Client thread/ERROR] [FML]: Caught exception from rc2
java.lang.NoClassDefFoundError: Could not initialize class rcteam.rc2.util.Reference
at rcteam.rc2.rollercoaster.CategoryEnum.<init>(CategoryEnum.java:27) ~[Rollercoaster2/:?]
at rcteam.rc2.rollercoaster.CategoryEnum.<clinit>(CategoryEnum.java:11) ~[Rollercoaster2/:?]
at rcteam.rc2.RC2.preInit(RC2.java:67) ~[Rollercoaster2/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:537) ~[forgeSrc-1.8-11.14.3.1502.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[forgeSrc-1.8-11.14.3.1502.jar:?]
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.8-11.14.3.1502.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?]
at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:550) [Loader.class:?]
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249) [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_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[13:01:02] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: ---- Minecraft Crash Report ----
// Shall we play a game?
Time: 8/20/15 1:01 PM
Description: There was a severe problem during mod loading that has caused the game to fail
net.minecraftforge.fml.common.LoaderException: java.lang.NoClassDefFoundError: Could not initialize class rcteam.rc2.util.Reference
at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:163)
at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:553)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:446)
at net.minecraft.client.Minecraft.run(Minecraft.java:356)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class rcteam.rc2.util.Reference
at rcteam.rc2.rollercoaster.CategoryEnum.<init>(CategoryEnum.java:27)
at rcteam.rc2.rollercoaster.CategoryEnum.<clinit>(CategoryEnum.java:11)
at rcteam.rc2.RC2.preInit(RC2.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:550)
... 12 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 811930936 bytes (774 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1502 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
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.3.1502.jar)
UCH Forge{11.14.3.1502} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1502.jar)
UCE rc2{v0.1} [§4§lRollercoaster 2] (Rollercoaster2)
Loaded coremods (and transformers):
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.200.1062.1002' Renderer: 'AMD Radeon HD 7800 Series'
[13:01:02] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Gerald\Documents\GitHub\Rollercoaster2\eclipse\.\crash-reports\crash-2015-08-20_13.01.02-client.txt
Disconnected from the target VM, address: '127.0.0.1:56461', transport: 'socket'
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Process finished with exit code -1
package rcteam.rc2;
import com.google.common.collect.Lists;
import com.google.common.collect.Ordering;
import net.minecraft.command.CommandHandler;
import net.minecraft.launchwrapper.Launch;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import rcteam.rc2.block.RC2Blocks;
import rcteam.rc2.client.gui.GuiHandler;
import rcteam.rc2.command.GiveThemeParkCommand;
import rcteam.rc2.item.RC2Items;
import rcteam.rc2.network.packets.PacketPipeline;
import rcteam.rc2.proxy.CommonProxy;
import rcteam.rc2.rollercoaster.CategoryEnum;
import rcteam.rc2.rollercoaster.TrackPieceRegistry;
import rcteam.rc2.util.*;
import java.io.File;
import java.io.IOException;
import java.util.*;
@Mod(modid = RC2.MODID, name = RC2.NAME, version = RC2.VERSION)
public class RC2 {
public static final String MODID = "rc2";
public static final String NAME = "Roller Coaster 2";
public static final String VERSION = "v0.1";
public static final boolean isRunningInDev = (Boolean) Launch.blackboard.get("fml.deobfuscatedEnvironment");
// public static HashMap<String, CoasterPack> packs = new HashMap<>();
@Instance(MODID)
public static RC2 instance;
@SidedProxy(clientSide="rcteam.rc2.proxy.ClientProxy", serverSide="rcteam.rc2.proxy.CommonProxy")
public static CommonProxy proxy;
public static Logger logger;
public static CreativeTabs tab;
public static Comparator<ItemStack> tabSorter;
public static final PacketPipeline packetPipeline = new PacketPipeline();
public static File configDir;
// public static String srcDir;
// public static String packsDir;
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
proxy.preInit();
logger = LogManager.getLogger(NAME);
CategoryEnum.values();
configDir = new File(event.getModConfigurationDirectory() + "/" + Reference.CONFIG_FOLDER_NAME);
// if (!configDir.exists() || configDir.list().length <= 1) { //TODO: should this happen every time we launch?
configDir.mkdirs();
FileManager.copyDefaultsFromJar(getClass(), configDir);
// }
ConfigHandler.init(new File(configDir.getPath(), MODID.toLowerCase() + ".cfg"));
tab = new CreativeTabs(NAME) {
@Override
public void displayAllReleventItems(List items) {
super.displayAllReleventItems(items);
Collections.sort(items, tabSorter);
}
@Override
@SideOnly(Side.CLIENT)
public Item getTabIconItem() {
return null;
}
@Override
@SideOnly(Side.CLIENT)
public ItemStack getIconItemStack() {
return new ItemStack(RC2Items.hammer);
}
};
// TrackPieceRegistry.INSTANCE.registerDefaultPieces();
try {
FileManager.readInfoFiles();
} catch (IOException e) {
throw new RuntimeException(e);
}
RC2Items.preInit(event.getSide());
RC2Blocks.preInit(event.getSide());
List<Item> items = Lists.newArrayList(RC2Blocks.getItemList());
items.addAll(RC2Items.modelMap.keySet());
tabSorter = Ordering.explicit(items).onResultOf(ItemStack::getItem);
}
@EventHandler
public void init(FMLInitializationEvent event) {
packetPipeline.initalise();
proxy.init();
NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());
}
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
packetPipeline.postInitialise();
}
@EventHandler
public void serverStarting(FMLServerStartingEvent event) {
((CommandHandler) event.getServer().getCommandManager()).registerCommand(new GiveThemeParkCommand());
}
}
package rcteam.rc2.util;
import rcteam.rc2.RC2;
public class Reference {
public static final int GUI_ID_ENTRANCE = 0;
public static final int GUI_ID_EDIT_THEME_PARK = 1;
public static final String RESOURCE_PREFIX = RC2.MODID.toLowerCase() + ":";
public static final String CONFIG_FOLDER_NAME = "Roller Coaster 2";
public static final String TRACKS_DIR = RC2.configDir.getAbsolutePath() + "/tracks/";
public static final String TRACK_STATE_DIR = Reference.RESOURCE_PREFIX + "tracks/";
Reference() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment