MinimallyCorrect / ModPatcher

Allows easy patching of mods/plugins/arbitrary minecraft classes using config files
MIT License
8 stars 6 forks source link

Compiling for 1.6.4 - extractMinecraftSrc #4

Closed Slind14 closed 10 years ago

Slind14 commented 10 years ago

Hey @nallar,

we still have a big group of 1.6.4 servers, and we're currently using a modified version of tickThreading to patch a bunch of bugs there. We'd like to use your new patcher, but unfortunately it's only available for 1.7. As far as we see, the Code should work on 1.6.4 too, but we can't get the build environment to work with that version. could you assist us?

Could not find property 'extractMinecraftSrc' on task set.

LunNova commented 10 years ago

Try just removing the project.tasks.extractMinecraftSrc.doLast { task -> Main.generateMappings(file("./build/tmp/recompSrc"), true) } bit in the build.xml.

The only thing you'll miss out on is a /generated/src/ directory containing the MC sources. I find that useful when working with intellij as I can add it as a "generated sources directory", not as a library which means that find references/etc. will search the MC sources by default.

Slind14 commented 10 years ago

Unfortunately I ended up with this issue now:

ERROR ModPatcher Failed to load MCP mappings java.lang.NullPointerException
>       at java.io.Reader.<init>(Reader.java:78)
>       at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
>       at java.util.Scanner.<init>(Scanner.java:608)
>       at me.nallar.modpatcher.mappings.MCPMappings.loadCsv(MCPMappings.java:255)
>       at me.nallar.modpatcher.mappings.MCPMappings.<init>(MCPMappings.java:37)
>       at me.nallar.modpatcher.ModPatcher.<clinit>(ModPatcher.java:49)
>       at me.nallar.modpatcher.CoreMod.injectData(CoreMod.java:27)
>       at cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper.injectIntoClassLoader(CoreModManager.java:111)
>       at net.minecraft.launchwrapper.Launch.launch(Launch.java:111)
>       at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
>       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 cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:43)
>       at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:12)