lumien231 / Random-Things

The Random Things Minecraft Mod
69 stars 41 forks source link

[1.10.2] Crash on launch #174

Closed MrAmericanMike closed 7 years ago

MrAmericanMike commented 7 years ago

This is not quiet a bug I believe, as the mod launches ok when I use it on MultiMC, but whenever I try inside Eclipse where I trying to fix some problems with a mod I made, I get this error.

http://pastebin.com/Df1suaMa

Any idea what could be causing this?

Both cases I'm using Forge 12.18.3.2185 and Random Things 3.7.7

lumien231 commented 7 years ago

"Caused by: java.lang.RuntimeException: Couldn't find MCP mappings."

Random Things requires an mcp folder with mappings inside in the project folder to work in dev environments. You can download mappings here.

MrAmericanMike commented 7 years ago

Thanks a lot ;) I was not good at reading that crash, wasn't sure what was going on.

Once again thanks, I'm trying to fix a "bug" I introduced with some of my mods, one of the where you can "Fart" on crops to make them grow, but when you do it next to the Magic Bean thingy, it regenerates over and over.

https://clips.twitch.tv/vash505/QuaintCheetahPipeHype

Gonna have to check what I'm doing wrong, because it happens also with a watering can I made in another mod, but not with the Extra Utilities one.

lumien231 commented 7 years ago

I assume you just call Block.updateTick? Maybe you should check whether things are actually plants & whether they receive random ticks before ticking them. Block updates aren't just used for growing stuff after all.

MrAmericanMike commented 7 years ago

Yes I had a "bug" on my loop when trying to find growable blocks, but once it found one, all the loop was running true applying world.scheduleBlockUpdate to all the continious loop :S

Thanks for the help and feedback ;)

BSFishy commented 7 years ago

I have a question... Why do you need this, even when you are using it as a dependency? xD Just found this, after what seems like years of googling, and sure enough, it fixed my issue... Why oh why, @lumien231 xD

lumien231 commented 7 years ago

Because it allows me to use srg names for methods / fields in my Class Transformer / Reflection instead of having to always provide both srg and "normal" names.

BSFishy commented 7 years ago

But even when it is being used as a dependency? I mean, you could at least put it somewhere that you need to add the mcp folder to your environment. Or say somewhere in the error/log, "HEY! You need to add the mcp folder if you want this mod to work!"

lumien231 commented 7 years ago

What uses Random Things as a dependency? This only happens when people use it in a dev environment. And if you know how to read a stacktrace it's not exactly hard to find out what's wrong.

BSFishy commented 7 years ago

I am saying to use it as a dependency in the dev environment. Just think it is a little annoying how I have to have the mcp folder in my environment when I don't really even need to use them myself... 😛

maximumsomething commented 7 years ago

Where exactly do these mappings go? Sorry if this is a dumb question, I'm kinda new to modding.

lumien231 commented 7 years ago

I changed it so it uses the ones from your gradlew instance automatically :).

maximumsomething commented 7 years ago

I'm getting this same error though. With Resource Loader, not Random Things.

lumien231 commented 7 years ago

Well it's only "fixed" in the 1.11.2 version. the mappings have to go in a mcp folder which is in your "main" project folder where your gradlew / build.gradle files are.