Jump to content

Forge loading mod from the wrong path


Recommended Posts

There is no Java error when loading mods put there is a probleme anyway.

I made a custom launcher for minecraft which allow to launch minecraft from %appdata%/.XoCraft (/bin)

Minecraft is working good but forge load the mod from %appdata%/.minecraft/mods

I include some lines of the ForgeModLoader-client-0.log

Forge libs, Forge Configuration files, Forge log are all in %appdata%/.minecraft/  it's automatic

I tryed with thos forge version: 7.8.0.684 / 7.8.0.733 / 7.8.1.737

 

 

2013-06-25 17:51:47 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.2.23.737 for Minecraft 1.5.2 loading
2013-06-25 17:51:47 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_25, running on Windows 7:amd64:6.1, installed at d:\Program Files\Java\jre7
2013-06-25 17:51:47 [FINE] [ForgeModLoader] Java classpath at launch is d:\Users\Thomas\Dropbox\Public\Launcher\Launcher_XoCraft.exe
2013-06-25 17:51:47 [FINE] [ForgeModLoader] Enabling runtime deobfuscation
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] All core mods are successfully located
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Discovering coremods
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Found a candidate coremod CodeChickenCore 0.8.6.12.jar
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Loading coremod CodeChickenCore 0.8.6.12.jar
2013-06-25 17:51:47 [WARNING] [ForgeModLoader] The coremod codechicken.core.asm.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Loaded coremod CodeChickenCore 0.8.6.12.jar
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Found a candidate coremod NotEnoughItems 1.5.2.22.jar
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Loading coremod NotEnoughItems 1.5.2.22.jar
2013-06-25 17:51:47 [WARNING] [ForgeModLoader] The coremod codechicken.nei.asm.NEICorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Loaded coremod NotEnoughItems 1.5.2.22.jar
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Found library file argo-small-3.2.jar present and correct in lib dir
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Found library file guava-14.0-rc3.jar present and correct in lib dir
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Found library file asm-all-4.1.jar present and correct in lib dir
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Found library file bcprov-jdk15on-148.jar present and correct in lib dir
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Found library file deobfuscation_data_1.5.2.zip present and correct in lib dir
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Found library file scala-library.jar present and correct in lib dir
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Running coremod plugins
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin
2013-06-25 17:51:47 [sEVERE] [ForgeModLoader] FML appears to be missing any signature data. This is not a good thing
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Running coremod plugin CodeChickenCorePlugin
2013-06-25 17:51:47 [iNFO] [sTDOUT] Adding Accesstransformer map: codechickencore_at.cfg
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Coremod plugin CodeChickenCorePlugin run successfully
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Running coremod plugin NEICorePlugin
2013-06-25 17:51:47 [iNFO] [sTDOUT] Adding Accesstransformer map: nei_at.cfg
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Coremod plugin NEICorePlugin run successfully
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Validating minecraft
2013-06-25 17:51:47 [FINEST] [ForgeModLoader] Minecraft validated, launching...
2013-06-25 17:51:48 [iNFO] [sTDOUT] Inserted super call into azg.c
2013-06-25 17:51:48 [iNFO] [sTDOUT] ayl was overriden from NotEnoughItems 1.5.2.22.jar
2013-06-25 17:51:49 [iNFO] [sTDOUT] Generated BlockMobSpawner helper method.
2013-06-25 17:51:49 [iNFO] [sTDOUT] 229 recipes
2013-06-25 17:51:49 [iNFO] [sTDOUT] 27 achievements
2013-06-25 17:51:50 [iNFO] [Minecraft-Client] Setting user: 50thomatoes50
2013-06-25 17:51:50 [iNFO] [sTDOUT] (Session ID is ##################)
2013-06-25 17:51:50 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-06-25 17:51:50 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-06-25 17:51:50 [iNFO] [sTDOUT] MinecraftForge v7.8.1.737 Initialized
2013-06-25 17:51:50 [iNFO] [ForgeModLoader] MinecraftForge v7.8.1.737 Initialized
2013-06-25 17:51:50 [iNFO] [sTDOUT] Replaced 85 ore recipies
2013-06-25 17:51:50 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-06-25 17:51:50 [iNFO] [ForgeModLoader] Reading custom logging properties from D:\Users\Thomas\AppData\Roaming\.minecraft\config\logging.properties
2013-06-25 17:51:50 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-06-25 17:51:50 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer, codechicken.core.asm.CodeChickenCoreModContainer, codechicken.nei.asm.NEIModContainer]
2013-06-25 17:51:50 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes
2013-06-25 17:51:50 [FINER] [ForgeModLoader] Skipping known library file d:\Users\Thomas\AppData\Roaming\.XoCraft\bin\lwjgl.jar
2013-06-25 17:51:50 [FINER] [ForgeModLoader] Skipping known library file d:\Users\Thomas\AppData\Roaming\.XoCraft\bin\jinput.jar
2013-06-25 17:51:50 [FINER] [ForgeModLoader] Skipping known library file d:\Users\Thomas\AppData\Roaming\.XoCraft\bin\lwjgl_util.jar
2013-06-25 17:51:50 [FINE] [ForgeModLoader] Found a minecraft related file at d:\Users\Thomas\AppData\Roaming\.XoCraft\bin\xocraft.jar, examining for mod candidates
2013-06-25 17:51:50 [FINE] [ForgeModLoader] Found a minecraft related file at D:\Users\Thomas\AppData\Roaming\.minecraft\coremods\CodeChickenCore 0.8.6.12.jar, examining for mod candidates
2013-06-25 17:51:50 [FINE] [ForgeModLoader] Found a minecraft related file at D:\Users\Thomas\AppData\Roaming\.minecraft\coremods\NotEnoughItems 1.5.2.22.jar, examining for mod candidates
2013-06-25 17:51:50 [FINER] [ForgeModLoader] Skipping known library file D:\Users\Thomas\AppData\Roaming\.minecraft\lib\argo-small-3.2.jar
2013-06-25 17:51:50 [FINER] [ForgeModLoader] Skipping known library file D:\Users\Thomas\AppData\Roaming\.minecraft\lib\guava-14.0-rc3.jar
2013-06-25 17:51:50 [FINER] [ForgeModLoader] Skipping known library file D:\Users\Thomas\AppData\Roaming\.minecraft\lib\asm-all-4.1.jar
2013-06-25 17:51:50 [FINER] [ForgeModLoader] Skipping known library file D:\Users\Thomas\AppData\Roaming\.minecraft\lib\bcprov-jdk15on-148.jar
2013-06-25 17:51:50 [FINER] [ForgeModLoader] Skipping known library file D:\Users\Thomas\AppData\Roaming\.minecraft\lib\deobfuscation_data_1.5.2.zip
2013-06-25 17:51:50 [FINER] [ForgeModLoader] Skipping known library file D:\Users\Thomas\AppData\Roaming\.minecraft\lib\scala-library.jar
2013-06-25 17:51:50 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully
2013-06-25 17:51:50 [iNFO] [ForgeModLoader] Searching D:\Users\Thomas\AppData\Roaming\.minecraft\mods for mods
2013-06-25 17:51:50 [FINE] [ForgeModLoader] Found a candidate zip or jar file [1.5.2]ReiMinimap_v3.3_06.zip
2013-06-25 17:51:50 [FINE] [ForgeModLoader] Found a candidate zip or jar file buildcraft-A-3.7.1.jar

Link to comment
Share on other sites

bin/Minecraft.jar -> net.minecraft.client.Minecraft.java ->

    public static File getMinecraftDir()
    {
        if (minecraftDir == null)
        {
            minecraftDir = getAppDir("minecraft");
        }

        return minecraftDir;
    }

You must change this code. But change the main minecraft class is bad.

You can use java reflection to modify this field, is that FTB's Launcher does :

https://github.com/Slowpoke101/FTBLaunch/blob/master/src/net/ftb/mclauncher/MinecraftLauncher.java#L185

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.