I guess this is a matter of coding style but I've seen this in other mods so I'm asking out of curiousity:
The initial event listeners in your TutorialMod class you have (as an example):
@EventHandler
public void preInit(FMLPreInitializationEvent event){
proxy.preInit();
}
Shouldn't this be:
@EventHandler
public void preInit(FMLPreInitializationEvent event){
proxy.preInit(event);
}
I realize that the event handlers in proxy, ClientProxy and CommonProxy aren't set up to receive the event variable but shoudn't they be set up that way? If not, what's the rational?
I like this tutorial series. Please keep going with it. Are you planning on doing a tutorial on core mods?
That's not a version for MC 1.10.2! SD's natural version numbers just happened to get far enough to also hit 1.10.2, but the prefix is what tells you which MC version it's compatible with: 1.7.10.
Oops. Sorry. Figured the file version was one of those "this works with 1.7.10 +" things. Completely missed the version number column when I downloaded it from Curse.
Got this when I upgraded from 3.2.6 on a 1.10.2 server:
There are 26 missing blocks and items in this save.
If you continue the missing blocks/items will get removed.
A world backup will be automatically created in your saves directory.
Missing Blocks/Items:
storagedrawers:customTrim
storagedrawers:customDrawers
storagedrawers:trim
storagedrawers:controllerSlave
storagedrawers:controller
storagedrawers:compDrawers
storagedrawers:basicDrawers
storagedrawers:framingTable
storagedrawers:upgradeStatus
storagedrawers:controllerSlave
storagedrawers:upgradeCreative
storagedrawers:basicDrawers
storagedrawers:upgradeTemplate
storagedrawers:upgradeVoid
storagedrawers:shroudKey
storagedrawers:upgradeRedstone
storagedrawers:personalKey
storagedrawers:drawerKey
storagedrawers:customTrim
storagedrawers:customDrawers
storagedrawers:trim
storagedrawers:tape
storagedrawers:controller
storagedrawers:compDrawers
storagedrawers:upgradeStorage
storagedrawers:framingTable
Run the command /fml confirm or or /fml cancel to proceed.
Alternatively start the server with -Dfml.queryResult=confirm or -Dfml.queryResult=cancel to preselect the answer.
If I'm reading this right, it looks like forge wants to remove all storage drawers from the world. Is this right? If so, how do I upgrade without losing everything?
Edit: Looking more closely at the logs I see this:
[10:30:38] [Server thread/INFO] [FML]: FML has found a non-mod file StorageDrawers-1.7.10-1.10.2.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
2. please check that you could create mod directory manually.
i suggest you to put the all class in one zip
Sorry for taking so long to reply to this but I get a crash of I put all of the mods into a single zip file.
Here are the commands I ran:
cp CJB_MAIN.zip CJB_MAIN-plus.zip
mkdir t
cd t
jar xf ../CJB_MAIN.zip
unzip ../mod_cjb_cheats.zip
unzip ../mod_cjb_x_ray.zip
unzip ../mod_cjb_minimap.zip
unzip ../mod_cjb_moreinfo.zip
unzip ../mod_cjb_teleport.zip
unzip ../mod_cjb_measure.zip
unzip ../PlayerAPI-1.1.jar
rm -rf META-INF/
jar uf ../CJB_MAIN-plus.zip ./
cd ../../../mods/
rm mod_cjb_*
rm CJB_MAIN.zip
cp ../temp/cjb/mods/CJB_MAIN-plus.zip .
Started the game and it loaded without an issue.
Did the following to install the files directly into the game jar file:
mkdir t
cd t/
jar xf ../1.6.4-Forge9.11.1.933.jar
unzip ~/.minecraft/temp/cjb/jar/CJB.zip
jar uf ../1.6.4-Forge9.11.1.933.jar ./
Start game the same way and it crashes with:
---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.
Time: 10/30/13 3:19 PM
Description: Initializing game
java.lang.NoClassDefFoundError: CJB
at mod_cjb_main.getVersion(mod_cjb_main.java:157)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.getVersion(ModLoaderModContainer.java:418)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:473)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808)
at net.minecraft.client.main.Main.main(SourceFile:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Caused by: java.lang.ClassNotFoundException: CJB
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 13 more
Caused by: java.lang.NullPointerException
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at mod_cjb_main.getVersion(mod_cjb_main.java:157)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.getVersion(ModLoaderModContainer.java:418)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:473)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808)
at net.minecraft.client.main.Main.main(SourceFile:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
-- System Details --
Details:
Minecraft Version: 1.6.4
Operating System: Linux (amd64) version 3.10.0-gentoo
Java Version: 1.7.0_40, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 307192576 bytes (292 MB) / 556793856 bytes (531 MB) up to 954728448 bytes (910 MB)
Mod Pack: ~~ERROR~~ NullPointerException: null
LiteLoader Mods: ~~ERROR~~ NullPointerException: null
JVM Flags: 1 total; -Xmx1G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: ~~ERROR~~ NoClassDefFoundError: CJB
Launched Version: 1.6.4-Forge9.11.1.933
LWJGL: 2.9.0
OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.4.0 NVIDIA 331.13, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Pack: JSTR-16-STH_32-1.1.zip
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
Crash when I installed the class files to the main jar file for x-ray mod. Had CJB working in game even with the external mod file for x-ray but as soon as unpacked the files into the main jar file game started crashing at start up with:
2013-10-18 20:23:26 [INFO] [STDOUT] // There are four lights!
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] Time: 10/18/13 8:23 PM
2013-10-18 20:23:26 [INFO] [STDOUT] Description: Initializing game
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] java.lang.NoClassDefFoundError: CJB
2013-10-18 20:23:26 [INFO] [STDOUT] at mod_cjb_main.getVersion(mod_cjb_main.java:157)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.common.modloader.ModLoaderModContainer.getVersion(ModLoaderModContainer.java:418)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:472)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:807)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(SourceFile:101)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-10-18 20:23:26 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Method.java:606)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2013-10-18 20:23:26 [INFO] [STDOUT] Caused by: java.lang.ClassNotFoundException: CJB
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
2013-10-18 20:23:26 [INFO] [STDOUT] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2013-10-18 20:23:26 [INFO] [STDOUT] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2013-10-18 20:23:26 [INFO] [STDOUT] ... 13 more
2013-10-18 20:23:26 [INFO] [STDOUT] Caused by: java.lang.NullPointerException
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)
2013-10-18 20:23:26 [INFO] [STDOUT] ... 15 more
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2013-10-18 20:23:26 [INFO] [STDOUT] ---------------------------------------------------------------------------------------
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] -- Head --
2013-10-18 20:23:26 [INFO] [STDOUT] Stacktrace:
2013-10-18 20:23:26 [INFO] [STDOUT] at mod_cjb_main.getVersion(mod_cjb_main.java:157)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.common.modloader.ModLoaderModContainer.getVersion(ModLoaderModContainer.java:418)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:472)
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] -- Initialization --
2013-10-18 20:23:26 [INFO] [STDOUT] Details:
2013-10-18 20:23:26 [INFO] [STDOUT] Stacktrace:
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:807)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(SourceFile:101)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-10-18 20:23:26 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Method.java:606)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] -- System Details --
2013-10-18 20:23:26 [INFO] [STDOUT] Details:
2013-10-18 20:23:26 [INFO] [STDOUT] Minecraft Version: 1.6.4
2013-10-18 20:23:26 [INFO] [STDOUT] Operating System: Linux (amd64) version 3.10.0-gentoo
2013-10-18 20:23:26 [INFO] [STDOUT] Java Version: 1.7.0_40, Oracle Corporation
2013-10-18 20:23:26 [INFO] [STDOUT] Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
2013-10-18 20:23:26 [INFO] [STDOUT] Memory: 455772184 bytes (434 MB) / 604504064 bytes (576 MB) up to 954728448 bytes (910 MB)
2013-10-18 20:23:26 [INFO] [STDOUT] JVM Flags: 1 total; -Xmx1G
2013-10-18 20:23:26 [INFO] [STDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
2013-10-18 20:23:26 [INFO] [STDOUT] Suspicious classes: FML and Forge are installed
2013-10-18 20:23:26 [INFO] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2013-10-18 20:23:26 [INFO] [STDOUT] FML: ~~ERROR~~ NoClassDefFoundError: CJB
2013-10-18 20:23:26 [INFO] [STDOUT] Launched Version: 1.6.4-Forge9.11.1.916
2013-10-18 20:23:26 [INFO] [STDOUT] LWJGL: 2.9.0
2013-10-18 20:23:26 [INFO] [STDOUT] OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.4.0 NVIDIA 331.13, NVIDIA Corporation
2013-10-18 20:23:26 [INFO] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'
2013-10-18 20:23:26 [INFO] [STDOUT] Type: Client (map_client.txt)
2013-10-18 20:23:26 [INFO] [STDOUT] Resource Pack: Default
2013-10-18 20:23:26 [INFO] [STDOUT] Current Language: English (US)
2013-10-18 20:23:26 [INFO] [STDOUT] Profiler Position: N/A (disabled)
2013-10-18 20:23:26 [INFO] [STDOUT] Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
2013-10-18 20:23:26 [INFO] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# /usr/home/martin/.minecraft/crash-reports/crash-2013-10-18_20.23.26-client.txt
I don't know if this is related to the crashes that yakushin reported but I also get the following from both the client and server.
[INFO] [Additional-Buildcraft-Objects] Starting Additional-Buildcraft-Objects #128 1.0.3 (Built for Minecraft 1.5.1 with Buildcraft 3.5.0 and Forge 7.7.1.650
[INFO] [Additional-Buildcraft-Objects] Copyright (c) Flow86, 2011-2013
[INFO] [STDERR] java.lang.NullPointerException
[INFO] [STDERR] at java.util.Properties$LineReader.readLine(Properties.java:434)
[INFO] [STDERR] at java.util.Properties.load0(Properties.java:353)
[INFO] [STDERR] at java.util.Properties.load(Properties.java:341)
[INFO] [STDERR] at buildcraft.core.utils.Localization.load(Localization.java:76)
[INFO] [STDERR] at buildcraft.core.utils.Localization.addLocalization(Localization.java:44)
[INFO] [STDERR] at buildcraft.additionalpipes.AdditionalPipes.preInit(AdditionalPipes.java:192)
[INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
[INFO] [STDERR] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
[INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
[INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
[INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
[INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
[INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
[INFO] [STDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:514)
[INFO] [STDERR] at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:85)
[INFO] [STDERR] at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)
[INFO] [STDERR] at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:69)
[INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:429)
[INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
[SEVERE] [APUnofficial] Failed to load default localization.
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:434)
at java.util.Properties.load0(Properties.java:353)
at java.util.Properties.load(Properties.java:341)
at buildcraft.additionalpipes.AdditionalPipes.preInit(AdditionalPipes.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:514)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:85)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:69)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:429)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
0
I guess this is a matter of coding style but I've seen this in other mods so I'm asking out of curiousity:
The initial event listeners in your TutorialMod class you have (as an example):
Shouldn't this be:
I realize that the event handlers in proxy, ClientProxy and CommonProxy aren't set up to receive the event variable but shoudn't they be set up that way? If not, what's the rational?
I like this tutorial series. Please keep going with it. Are you planning on doing a tutorial on core mods?
0
Oops. Sorry. Figured the file version was one of those "this works with 1.7.10 +" things. Completely missed the version number column when I downloaded it from Curse.
0
Got this when I upgraded from 3.2.6 on a 1.10.2 server:
If I'm reading this right, it looks like forge wants to remove all storage drawers from the world. Is this right? If so, how do I upgrade without losing everything?
Edit: Looking more closely at the logs I see this:
0
Sorry for taking so long to reply to this but I get a crash of I put all of the mods into a single zip file.
Here are the commands I ran:
cp CJB_MAIN.zip CJB_MAIN-plus.zip
mkdir t
cd t
jar xf ../CJB_MAIN.zip
unzip ../mod_cjb_cheats.zip
unzip ../mod_cjb_x_ray.zip
unzip ../mod_cjb_minimap.zip
unzip ../mod_cjb_moreinfo.zip
unzip ../mod_cjb_teleport.zip
unzip ../mod_cjb_measure.zip
unzip ../PlayerAPI-1.1.jar
rm -rf META-INF/
jar uf ../CJB_MAIN-plus.zip ./
cd ../../../mods/
rm mod_cjb_*
rm CJB_MAIN.zip
cp ../temp/cjb/mods/CJB_MAIN-plus.zip .
Started the game and it loaded without an issue.
Did the following to install the files directly into the game jar file:
mkdir t
cd t/
jar xf ../1.6.4-Forge9.11.1.933.jar
unzip ~/.minecraft/temp/cjb/jar/CJB.zip
jar uf ../1.6.4-Forge9.11.1.933.jar ./
Start game the same way and it crashes with:
---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.
Time: 10/30/13 3:19 PM
Description: Initializing game
java.lang.NoClassDefFoundError: CJB
at mod_cjb_main.getVersion(mod_cjb_main.java:157)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.getVersion(ModLoaderModContainer.java:418)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:473)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808)
at net.minecraft.client.main.Main.main(SourceFile:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Caused by: java.lang.ClassNotFoundException: CJB
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 13 more
Caused by: java.lang.NullPointerException
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at mod_cjb_main.getVersion(mod_cjb_main.java:157)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.getVersion(ModLoaderModContainer.java:418)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:473)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808)
at net.minecraft.client.main.Main.main(SourceFile:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
-- System Details --
Details:
Minecraft Version: 1.6.4
Operating System: Linux (amd64) version 3.10.0-gentoo
Java Version: 1.7.0_40, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 307192576 bytes (292 MB) / 556793856 bytes (531 MB) up to 954728448 bytes (910 MB)
Mod Pack: ~~ERROR~~ NullPointerException: null
LiteLoader Mods: ~~ERROR~~ NullPointerException: null
JVM Flags: 1 total; -Xmx1G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: ~~ERROR~~ NoClassDefFoundError: CJB
Launched Version: 1.6.4-Forge9.11.1.933
LWJGL: 2.9.0
OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.4.0 NVIDIA 331.13, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Pack: JSTR-16-STH_32-1.1.zip
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
0
2013-10-18 20:23:26 [INFO] [STDOUT] // There are four lights!
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] Time: 10/18/13 8:23 PM
2013-10-18 20:23:26 [INFO] [STDOUT] Description: Initializing game
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] java.lang.NoClassDefFoundError: CJB
2013-10-18 20:23:26 [INFO] [STDOUT] at mod_cjb_main.getVersion(mod_cjb_main.java:157)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.common.modloader.ModLoaderModContainer.getVersion(ModLoaderModContainer.java:418)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:472)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:807)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(SourceFile:101)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-10-18 20:23:26 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Method.java:606)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2013-10-18 20:23:26 [INFO] [STDOUT] Caused by: java.lang.ClassNotFoundException: CJB
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
2013-10-18 20:23:26 [INFO] [STDOUT] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2013-10-18 20:23:26 [INFO] [STDOUT] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2013-10-18 20:23:26 [INFO] [STDOUT] ... 13 more
2013-10-18 20:23:26 [INFO] [STDOUT] Caused by: java.lang.NullPointerException
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)
2013-10-18 20:23:26 [INFO] [STDOUT] ... 15 more
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2013-10-18 20:23:26 [INFO] [STDOUT] ---------------------------------------------------------------------------------------
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] -- Head --
2013-10-18 20:23:26 [INFO] [STDOUT] Stacktrace:
2013-10-18 20:23:26 [INFO] [STDOUT] at mod_cjb_main.getVersion(mod_cjb_main.java:157)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.common.modloader.ModLoaderModContainer.getVersion(ModLoaderModContainer.java:418)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
2013-10-18 20:23:26 [INFO] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:472)
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] -- Initialization --
2013-10-18 20:23:26 [INFO] [STDOUT] Details:
2013-10-18 20:23:26 [INFO] [STDOUT] Stacktrace:
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:807)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(SourceFile:101)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-10-18 20:23:26 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-10-18 20:23:26 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Method.java:606)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2013-10-18 20:23:26 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2013-10-18 20:23:26 [INFO] [STDOUT]
2013-10-18 20:23:26 [INFO] [STDOUT] -- System Details --
2013-10-18 20:23:26 [INFO] [STDOUT] Details:
2013-10-18 20:23:26 [INFO] [STDOUT] Minecraft Version: 1.6.4
2013-10-18 20:23:26 [INFO] [STDOUT] Operating System: Linux (amd64) version 3.10.0-gentoo
2013-10-18 20:23:26 [INFO] [STDOUT] Java Version: 1.7.0_40, Oracle Corporation
2013-10-18 20:23:26 [INFO] [STDOUT] Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
2013-10-18 20:23:26 [INFO] [STDOUT] Memory: 455772184 bytes (434 MB) / 604504064 bytes (576 MB) up to 954728448 bytes (910 MB)
2013-10-18 20:23:26 [INFO] [STDOUT] JVM Flags: 1 total; -Xmx1G
2013-10-18 20:23:26 [INFO] [STDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
2013-10-18 20:23:26 [INFO] [STDOUT] Suspicious classes: FML and Forge are installed
2013-10-18 20:23:26 [INFO] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2013-10-18 20:23:26 [INFO] [STDOUT] FML: ~~ERROR~~ NoClassDefFoundError: CJB
2013-10-18 20:23:26 [INFO] [STDOUT] Launched Version: 1.6.4-Forge9.11.1.916
2013-10-18 20:23:26 [INFO] [STDOUT] LWJGL: 2.9.0
2013-10-18 20:23:26 [INFO] [STDOUT] OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.4.0 NVIDIA 331.13, NVIDIA Corporation
2013-10-18 20:23:26 [INFO] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'
2013-10-18 20:23:26 [INFO] [STDOUT] Type: Client (map_client.txt)
2013-10-18 20:23:26 [INFO] [STDOUT] Resource Pack: Default
2013-10-18 20:23:26 [INFO] [STDOUT] Current Language: English (US)
2013-10-18 20:23:26 [INFO] [STDOUT] Profiler Position: N/A (disabled)
2013-10-18 20:23:26 [INFO] [STDOUT] Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
2013-10-18 20:23:26 [INFO] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# /usr/home/martin/.minecraft/crash-reports/crash-2013-10-18_20.23.26-client.txt
0
[INFO] [Additional-Buildcraft-Objects] Starting Additional-Buildcraft-Objects #128 1.0.3 (Built for Minecraft 1.5.1 with Buildcraft 3.5.0 and Forge 7.7.1.650
[INFO] [Additional-Buildcraft-Objects] Copyright (c) Flow86, 2011-2013
[INFO] [STDERR] java.lang.NullPointerException
[INFO] [STDERR] at java.util.Properties$LineReader.readLine(Properties.java:434)
[INFO] [STDERR] at java.util.Properties.load0(Properties.java:353)
[INFO] [STDERR] at java.util.Properties.load(Properties.java:341)
[INFO] [STDERR] at buildcraft.core.utils.Localization.load(Localization.java:76)
[INFO] [STDERR] at buildcraft.core.utils.Localization.addLocalization(Localization.java:44)
[INFO] [STDERR] at buildcraft.additionalpipes.AdditionalPipes.preInit(AdditionalPipes.java:192)
[INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
[INFO] [STDERR] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
[INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
[INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
[INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
[INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
[INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
[INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
[INFO] [STDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:514)
[INFO] [STDERR] at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:85)
[INFO] [STDERR] at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)
[INFO] [STDERR] at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:69)
[INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:429)
[INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
[SEVERE] [APUnofficial] Failed to load default localization.
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:434)
at java.util.Properties.load0(Properties.java:353)
at java.util.Properties.load(Properties.java:341)
at buildcraft.additionalpipes.AdditionalPipes.preInit(AdditionalPipes.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:514)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:85)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:69)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:429)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)