2014/07/19

MineFactoryReloaded on 1.7.2

英語圏からのアクセスが多くて、しかも情報が古かったのでその方たち向けに。

For English readers:

This is an instruction to build the CoFHLib/Core and MineFactoryReloaded for Minecraft 1.7.2. Please DO NOT ASK ABOUT THIS ARTICLE TO THE ORIGINAL MOD AUTHORS.

First, download the portable-git and Apache Ant and set the PATH to these softwares.

Next, you have to checkout previous revision like below because current version of these MODs are currently targeted for 1.7.10. (Of cource, you can build latest version of the source codes without modification if you are playing on the 1.7.10 already):

git clone https://github.com/CoFH/CoFHLib.git
cd CoFHLib
git checkout ab02b8c41c63bcdb8438899dc09a9926947ba709
cd .. git clone https://github.com/CoFH/CoFHCore.git cd CoFHCore git checkout 56645a1161e30ef79b59d85c1ea5a20c41ab3a2f cd .. git clone https://github.com/skyboy/MineFactoryReloaded.git cd MineFactoryReloaded git checkout a38537c72f5803e0a93c7a5188bf157b23aba6aa cd ..

And you have to modify CoFHCore\build.xml and MineFactoryReloaded\build.xml like below to download correct version of CoFHLib/CoFHCore’s source codes on the build:

CoFHCore\build.xml:

at line 94, replace:
        <get src="https://github.com/CoFH/CoFHLib/archive/master.zip" dest="${download.dir}/CoFHLib.zip"/>
into
        <get src="https://github.com/CoFH/CoFHLib/archive/${cofh.lib.revision}.zip" dest="${download.dir}/CoFHLib.zip"/>

at line 99, replace:
        <javac srcdir="${download.dir}/CoFHLib-master/src/main/java" destdir="${compile.dir}"
into
        <javac srcdir="${download.dir}/CoFHLib-${cofh.lib.revision}/src/main/java" destdir="${compile.dir}"

at line 41, append:
    <!-- CoFH revisions -->
    <property name="cofh.lib.revision" value="ab02b8c41c63bcdb8438899dc09a9926947ba709" />

MineFactoryReloaded\build.xml:

at line 90-91, replace:
        <get src="https://github.com/CoFH/CoFHCore/archive/master.zip" dest="${download.dir}/CoFHCore.zip"/>
        <delete dir="${download.dir}/CoFHCore-master" failonerror="false"/>

into
        <get src="https://github.com/CoFH/CoFHCore/archive/${cofh.core.revision}.zip" dest="${download.dir}/CoFHCore.zip"/>
        <delete dir="${download.dir}/CoFHCore-${cofh.core.revision}" failonerror="false"/>

at line 122, replace:
        <get src="https://github.com/CoFH/CoFHLib/archive/master.zip" dest="${download.dir}/CoFHLib.zip"/>
into
        <get src="https://github.com/CoFH/CoFHLib/archive/${cofh.lib.revision}.zip" dest="${download.dir}/CoFHLib.zip"/>

at line 127, replace:
        <javac srcdir="${download.dir}/CoFHLib-master/src/main/java" destdir="${compile.dir}"
into
        <javac srcdir="${download.dir}/CoFHLib-${cofh.lib.revision}/src/main/java" destdir="${compile.dir}"

at line 137, replace:
        <delete dir="${download.dir}/CoFHLib-master"/>
into
        <delete dir="${download.dir}/CoFHLib-${cofh.lib.revision}"/>

at line 143, replace:
        <javac srcdir="${download.dir}/CoFHCore-master/src/main/java" destdir="${compile.dir}"
into
        <javac srcdir="${download.dir}/CoFHCore-${cofh.core.revision}/src/main/java" destdir="${compile.dir}"

at line 190, replace:
        <copy file="${download.dir}/CoFHCore-master/src/main/resources/CoFH_at.cfg" tofile="${transformers.dir}/z_CoFH_at.cfg"/>
into
        <copy file="${download.dir}/CoFHCore-${cofh.core.revision}/src/main/resources/CoFH_at.cfg" tofile="${transformers.dir}/z_CoFH_at.cfg"/>

at line 45, append:
    <!-- CoFH revisions -->
    <property name="cofh.core.revision" value="56645a1161e30ef79b59d85c1ea5a20c41ab3a2f" />
    <property name="cofh.lib.revision" value="ab02b8c41c63bcdb8438899dc09a9926947ba709" />

And then, build the MODs like below:

cd CoFHLib
gradlew build
cd ..\CoFHCore
ant
cd ..\MineFactoryReloaded
ant

Finally, copy the built MOD files and CodeChickenCore for 1.7.2 into your mods folder.

As you know THESE MODS ARE UNDER THE DEVELOPMENT. Please understand there is a risk to damage your world data and do your own risk.

0 件のコメント:

コメントを投稿