Hi everyone and thanks for giving us Forge! Excellent job, Minecraft wouldn't be the same without people like you!
I'm back to Minecraft modding after a few years, a lot of stuff has changed and I'm now doing a test mod to get back on track.
(I'm working in Eclipse, with forge-1.7.10-10.13.0.1200).
I did a custom item: a "Cooked Egg". Everything's fine when I test it with the default run configuration launched from Eclipse : the egg is registered, it's in the right creative-mode tab, stacks correctly, it's edible, it restores hunger & saturation, the localization works, the texture is shown, recipes for it are working. Everything's fine.
Then I build the .jar file, and test it on my current minecraft installation, and...
the texture is not shown.
Having a look at the log, the exception raised is:
Using missing texture, unable to load caveman:textures/items/cookedegg.png, java.io.FileNotFoundException
Curiously, the jar file contains everything in the right path. In fact, the localization works perfectly: that means the .lang file is found and there are no stupid typo errors or wrong path.
The only thing I noticed is an incoherence in capital letters for some of the folders. Given that my modid is: "caveman", and that the unlocalized name of my item is "cookedegg" the texture's path I expected in the jar (as in the folder structure in my project) should be:
/assets/caveman/textures/items/cookedegg.png
instead, what I get in the jar is:
/assets/Caveman/textures/Items/cookedegg.png
As you can see, the C from caveman and the I from items are getting the capitalization during build. Is this normal? Why is it? my modid is lowercase, just as the item folder is!
What I want to stress again, is that the texture is working like a charm if I launch minecraft from Eclipse. I've been trying to understand this for several hours, I tried lots of obvious things but none have resulted in any change of behavior.
Things tried:
- A clean installation for my minecraft client and forge
- several different forge versions
- avoiding strange characters in the unlocalized name (it was cooked_egg before)
- avoiding capital letters in the unlocalized name and in the modid (it was Caveman before)
- changing the texture's dimension, re-doing the texture, using a very simple one
- probably a lot of other stuff I can't remember
Thanks in advance to whoever tries to help.