Hello !!!
So i will try to explain quickly my problem :
I modify a java class in minecraft.jar to change the minecraft main directory, in net/minecraft/client/Minecraft.java at
"minecraftDir = getAppDir("minecraft");" (just change minecraft to an other name)
So my new minecraft start in a directory like ".test" in appdata .
BUT : I have tried to add Forge mod loader (for Minecraft 1.5.1) in my minecraft.jar , but he delete my "Minecraft.java" :'( to replace it by his...
conclusion : FML try to load my mods only in the ".minecraft"
I download the FML'source, But impossible to find the "Minecraft.java" class
I understood later that you use java.patch in mcp to ... patch ( ) the original minecraft java class .
There is two interressants patchs :
minecraftforge-src-1.5.1-7.7.1.611.zip\forge\patches\minecraft\net\minecraft\client\Minecraft.java.patch
minecraftforge-src-1.5.1-7.7.1.611.zip\forge\fml\patches\minecraft\net\minecraft\client\Minecraft.java.patch
[shadow=red,left]So : my question is :[/shadow]
it is possible to add in one of this patch, the lines :
- minecraftDir = getAppDir("minecraft");
+ minecraftDir = getAppDir("OTHERNAME");
I think it is the only way to change this Parameter of minecraft with FML but if you have another idea, I would listen carefully you
I already see a topic in the forum, but it didn't help me .
(I also found this , similary problems)
Thank you in advance for your help !
ps: I'm sorry, i'm a little (and beginner) french programmer, so my english is surely not good all the time