def main(mcp_dir): src_dir = os.path.join(mcp_dir, 'src') print '================ Forge ModLoader Setup Start ===================' setup_mcp(fml_dir, mcp_dir, True) setup_fml(fml_dir, mcp_dir) apply_fml_patches(fml_dir, mcp_dir, os.path.join(mcp_dir, 'src')) finish_setup_fml(fml_dir, mcp_dir) print '================ Forge ModLoader Setup End ===================' sys.path.append(mcp_dir) from runtime.updatenames import updatenames from runtime.updatemd5 import updatemd5 print '=============================== Minecraft Forge Setup Start =====================================' print 'Applying forge patches' apply_forge_patches(os.path.join(forge_dir, 'fml'), mcp_dir, forge_dir, src_dir, True) os.chdir(mcp_dir) updatenames(None, True, True, False) reset_logger() updatemd5(None, True, True, False) reset_logger() os.chdir(forge_dir) print '=============================== Minecraft Forge Setup Finished ================================='
def fml_main(fml_dir, mcp_dir, dont_gen_conf=True): print '================ Forge ModLoader Setup Start ===================' setup_mcp(fml_dir, mcp_dir, dont_gen_conf) setup_fml(fml_dir, mcp_dir) apply_fml_patches(fml_dir, mcp_dir, os.path.join(mcp_dir, 'src')) finish_setup_fml(fml_dir, mcp_dir) print '================ Forge ModLoader Setup End ==================='
def fml_main(fml_dir, mcp_dir, dont_gen_conf=True, disable_patches=False, disable_at=False, disable_merge=False, enable_server=False, disable_client=False, disable_rename=False): print '================ Forge ModLoader Setup Start ===================' setup_mcp(fml_dir, mcp_dir, dont_gen_conf) setup_fml(fml_dir, mcp_dir, disable_at=disable_at, disable_merge=disable_merge, enable_server=enable_server, disable_client=disable_client) if disable_patches: print 'Patching disabled' else: apply_fml_patches(fml_dir, mcp_dir, os.path.join(mcp_dir, 'src')) finish_setup_fml(fml_dir, mcp_dir, enable_server=enable_server, disable_client=disable_client, disable_rename=disable_rename) print '================ Forge ModLoader Setup End ==================='
def fml_main(fml_dir, mcp_dir, dont_gen_conf=True, disable_patches=False, disable_at=False, disable_merge=False, enable_server=False, disable_client=False): print '================ Forge ModLoader Setup Start ===================' setup_mcp(fml_dir, mcp_dir, dont_gen_conf) setup_fml(fml_dir, mcp_dir, disable_at=disable_at, disable_merge=disable_merge, enable_server=enable_server, disable_client=disable_client) if disable_patches: print 'Patching disabled' else: apply_fml_patches(fml_dir, mcp_dir, os.path.join(mcp_dir, 'src')) finish_setup_fml(fml_dir, mcp_dir, enable_server=enable_server, disable_client=disable_client) print '================ Forge ModLoader Setup End ==================='
def main(): print '================ Forge ModLoader Setup Start ===================' setup_mcp(fml_dir, mcp_dir, True) setup_fml(fml_dir, mcp_dir) apply_fml_patches(fml_dir, mcp_dir, os.path.join(mcp_dir, 'src')) finish_setup_fml(fml_dir, mcp_dir) print '================ Forge ModLoader Setup End ===================' sys.path.append(mcp_dir) from runtime.updatenames import updatenames from runtime.updatemd5 import updatemd5 print '=============================== Minecraft Forge Setup Start =====================================' print 'Applying forge patches' apply_forge_patches(os.path.join(forge_dir, 'fml'), mcp_dir, forge_dir, src_dir, True) os.chdir(mcp_dir) updatenames(None, True, True, False) reset_logger() updatemd5(None, True, True, False) reset_logger() os.chdir(forge_dir) print '=============================== Minecraft Forge Setup Finished ================================='
import urllib import zipfile import sys import os if __name__ == '__main__': if not len(sys.argv) >= 3: print 'Invalid arguments, must supply mcp folder and fml folder: decompile.py <MCPFolder> <FMLFolder>' else: mcp_dir = os.path.abspath(sys.argv[1]) fml_dir = os.path.abspath(sys.argv[2]) dont_gen_conf = '-no_gen_conf' in sys.argv sys.path.append(os.path.join(fml_dir, 'install')) from fml import setup_fml, setup_mcp setup_mcp(fml_dir, mcp_dir, dont_gen_conf) setup_fml(fml_dir, mcp_dir)