Jump to content

What does this all mean?


Robo51

Recommended Posts

I've been working on my mod for a little bit now and things have been going pretty well so far.

 

However when I tired to put the mod on my little local server so a friend and I could test it the server crashed.

And I have no idea what to do. Ive scoured my mod files looking for what could be causing the error but I can't find anything.

 

This is the error log:

 

 

---- Minecraft Crash Report ----

// My bad.

 

Time: 10/3/14 5:55 PM

Description: Exception in server tick loop

 

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: newt.NeWt

at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)

at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87)

at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:313)

at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:117)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

Caused by: java.lang.ClassNotFoundException: newt.NeWt

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:270)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:420)

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 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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

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 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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:492)

... 5 more

Caused by: java.lang.NullPointerException

at org.objectweb.asm.ClassReader.<init>(Unknown Source)

at cpw.mods.fml.common.asm.transformers.TerminalTransformer.transform(TerminalTransformer.java:14)

at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:276)

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:174)

... 33 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_67, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 1963836672 bytes (1872 MB) / 2058878976 bytes (1963 MB) up to 2058878976 bytes (1963 MB)

JVM Flags: 2 total; -Xmx2048M -Xms2048M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.05 FML v7.10.25.1208 Minecraft Forge 10.13.0.1208 4 mods loaded, 4 mods active

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML{7.10.25.1208} [Forge Mod Loader] (forge-1.7.10-10.13.0.1208-universal.jar) Unloaded->Constructed

Forge{10.13.0.1208} [Minecraft Forge] (forge-1.7.10-10.13.0.1208-universal.jar) Unloaded->Constructed

newt{0.2} [NeWt] (Newt-1.7.2-0.2.jar) Unloaded->Errored

Profiler Position: N/A (disabled)

Is Modded: Definitely; Server brand changed to 'fml,forge'

Type: Dedicated Server (map_server.txt)

 

 

I'm not trying to be rude it just comes out that way sometimes.

I'm here to try and learn as much as I can, won't you join me?

Link to comment
Share on other sites

Hi

 

Unfortunately I don't have the time to look deeper right now; but if your earlier versions worked ok, I'd suggest you find the latest one you know worked (version history in Git?) and look carefully to compare your main mod file NeWt and constants file.  The problem is almost certainly there.  Forge wasn't even able to load your main class which is pretty much the first thing it does with your code.

 

-TGG

 

 

Link to comment
Share on other sites

I'm not sure what changed but I tore the files apart and put together a new mod file and it works now.

 

No idea what changed.  ???

 

Thank you for your help. :)

 

 

Also what would cause the textures to load fine in the dev environment but not load once the mod is packaged?

I'm not trying to be rude it just comes out that way sometimes.

I'm here to try and learn as much as I can, won't you join me?

Link to comment
Share on other sites

No worries, sometimes there's subtle stuff which it's easier just to start again :)

 

> Also what would cause the textures to load fine in the dev environment but not load once the mod is packaged?

 

I've had this twice before;

Once was because I put the textures in the wrong folder and they weren't packaged into the jar properly

Once was because the file capitalisation didn't match exactly.  Windows ignores file upper/lower case, but packaged mod doesn't, so for example

MyBlockTexture.png and myblocktexture.png are interchangeable in the dev environment, but not when packaged.

 

-TGG

Link to comment
Share on other sites

I've discovered whats wrong, when the mod is packaged for some reason it capitalizes the file my textures are stored in.

I've tried changing all the values I could think of to make it lowercase but nothing seems to work.

 

My main class file is capitalized is that why it capitalizes the texture folder?

I'm not trying to be rude it just comes out that way sometimes.

I'm here to try and learn as much as I can, won't you join me?

Link to comment
Share on other sites

So I have become thoroughly confused by this capitalization thing.

 

Here is the GitHub for my mod:

https://github.com/Robo51/Newt

 

I'm hoping someone could tell me what needs to be capitalized and what doesn't.

I've tried several different things and some of them won't load the mod at all, and the other tries won't load the textures.

 

I'm not sure what I'm doing wrong anymore.  :-\

I'm not trying to be rude it just comes out that way sometimes.

I'm here to try and learn as much as I can, won't you join me?

Link to comment
Share on other sites

Okay I have figured out a little more, for some reason when i run: gradlew build

It takes the folder where all of the textures are and capitalizes it and I have no idea why.

 

Manually changing the folder back to lowercase fixes it but I can't figure out why it get capitalized in the first place.

I'm not trying to be rude it just comes out that way sometimes.

I'm here to try and learn as much as I can, won't you join me?

Link to comment
Share on other sites

Hi

 

It might be because your Newt package starts with a capital letter (which goes against java coding style conventions), or because your mod id is Newt or NeWt and the gradle build script is being "helpful"

 

FYI http://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s5-naming in case you didn't see it before, I for sure found it helpful coming from a C++ background.

 

Personally I make my modid, all my resources, folders, packages, resource filenames lower case because I kept having these kinds of problems.  It was a real pain with Git/GitHub because it ignores case and the only way I could get my filenames to change to lower case was to rename them to something totally different, commit and push, then rename to the lower case and commit and push again (if there's a "case sensitive" option I didn't find it...)

 

-TGG

 

Link to comment
Share on other sites

I tired changing the package to lowercase and it threw a method doesn't exist when packaged.

I'm not sure whats wrong still, but I know how to make it work.

 

As long as i remember to rename the folder the textures are stored in its fine.

I may fiddle with it at a later time.

 

Thanks so much for your help its much appreciated. :)

 

 

Also how did my code read?

 

I'm not trying to be rude it just comes out that way sometimes.

I'm here to try and learn as much as I can, won't you join me?

Link to comment
Share on other sites

Hi

 

> I'm not sure whats wrong still, but I know how to make it work.

> As long as i remember to rename the folder the textures are stored in its fine.

> I may fiddle with it at a later time.

Hmm ok :) personally I would find that really frustrating but that's just me :)

 

>Also how did my code read?

I'm for sure no coding guru but it looked good to me.  Easy to understand at a glance.

 

-TGG

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.