SpongePowered / Mixin

Mixin is a trait/mixin and bytecode weaving framework for Java using ASM
MIT License
1.43k stars 193 forks source link

Trying to have Sponge run in a dev environment. #215

Closed Ordinastie closed 5 years ago

Ordinastie commented 7 years ago

I'm trying to have Songe in my dev environment to help me fix my mixin, but it crashes. I just put the dev jar in mods/ folder. Here is the log : https://gist.github.com/Ordinastie/ffdb58b42b4ff7a58fa62cde7a544946

Mumfrey commented 7 years ago

Looks like something else you have in your environment is breaking the coremod contract.

Mumfrey commented 7 years ago

Also there is not sufficient information in the console log to troubleshoot something like that, the fml log will provide the required details.

Ordinastie commented 7 years ago

I added the log to the gist.

Mumfrey commented 7 years ago

Looks like it's discovering the spongeforge jar too late to get the PREINIT phase mixins applied, you could try putting the spongeforge jar on the classpath instead.

Ordinastie commented 7 years ago

If I just put the jar on the classpath, it apparently gets loaded first and takes its Mixin version instead of the 0.7.4 MalisisCore needs. I don't see to be able to change the order.

Mumfrey commented 7 years ago

Assuming you're using eclipse, you can just click on the sponge jar in the run configuration and change its order with respect to the other items on the classpath.

Ordinastie commented 7 years ago

I got the same result for both : https://puu.sh/xRsYy.png and https://puu.sh/xRsY2.png

Mumfrey commented 7 years ago

Hm weird, I wonder if there's some internal sorting going on in FML or ForgeGradle. There's two possible remedies:

Ordinastie commented 7 years ago

I somehow broke everything as I can't even launch at all anymore, even without Sponge. I'll get back to you once it's fixed.

Mumfrey commented 7 years ago

It's probably easier to deal with this kind of thing over IRC anyway, better to wait until this evening if you can.