Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Please use this guide instead, this one was written in a hurry and I forgot I had the older one.

Basically, you'll want to start with the MCP 1.12 release (temporarily at http://www.modcoderpack.com/files/mcp940.zip ), and then modify it to work with 1.12.2. This is actually quite simple. First, you need to edit conf/version.cfg and set both versions to 1.12.2. That on its own is not enough, but it's a critical step. Then you need to grab new SRG mappings. Normally you'd get that through the !srg command, but MCPBot doesn't have it for some versions. Instead, you can get it through forge's maven. (normally it's also on the export site but not for 1.12.2). The link is http://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp/1.12.2/mcp-1.12.2-srg.zip . To set that up, first delete the conf/patches folder (otherwise patches will be merged, breaking things), and then unzip the contents of that ZIP into conf, overwriting files as prompted. Then, grab a fresh set of MCP mappings. You can get this just via the export site: http://export.mcpbot.bspk.rs/ . Grab the latest fields, methods, and params CSV files, and place those in conf as well. That's all! You can now run the normal MCP scripts, and it'll work for that version.

Note that as always, the MCP license applies, even for development builds.  Please read the LICENSE.txt included with MCP for more information about what you are and are not permitted to do.

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Oct 15, 2017

that dident work):

@xiphmont

This comment has been minimized.

Copy link

@xiphmont xiphmont commented Nov 24, 2017

Thanks, worked perfectly.

@Ghent

This comment has been minimized.

Copy link

@Ghent Ghent commented Dec 13, 2017

Worked great for me, thank you!

@stevex86-old

This comment has been minimized.

Copy link

@stevex86-old stevex86-old commented Dec 23, 2017

One more thing that you may have to do if you're the Eclipse project or importing into another IDE – the Eclipse project configuration adds the 1.12 jar, 1.12 natives, and Realms dependencies to the classpath. Due to the discrepancies in version you have to modify the classpath to reflect the proper versions per 1.12.2:

e.g. in eclipse/Client/.classpath

<classpathentry kind="lib" path="jars/versions/1.12.2/1.12.2.jar">
	<attributes>
		<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="Client/jars/versions/1.12.2/1.12.2-natives"/>
	</attributes>
</classpathentry>
<classpathentry kind="lib" path="jars/libraries/com/mojang/realms/1.10.17/realms-1.10.17.jar"/>
@gurland

This comment has been minimized.

Copy link

@gurland gurland commented Feb 27, 2018

Thanks! It works

@orborb

This comment has been minimized.

Copy link

@orborb orborb commented Mar 28, 2018

When I try to decompile, it just says:

ERROR:root:FATAL ERROR
Traceback (most recent call last):
File "runtime\decompile.py", line 61, in decompile
commands = Commands(conffile, verify=True, no_patch=no_patch, workdir=workdir, json=json)
File "E:\DarkSun\runtime\commands.py", line 178, in init
normalStart = self.readconf(workdir, json)
File "E:\DarkSun\runtime\commands.py", line 491, in readconf
self.versionClient, self.versionServer = self.getVersions()
TypeError: 'NoneType' object is not iterable

@Dyiing

This comment has been minimized.

Copy link

@Dyiing Dyiing commented May 31, 2018

Works as expected, many thanks.

@hYdos

This comment has been minimized.

Copy link

@hYdos hYdos commented Jul 20, 2018

can u do a 1.13 guide plz im making a custom server jar and need the src code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment