jobob Posted January 10, 2013 Posted January 10, 2013 Hi guys, I come here because i think no one in the french community can help me .. ><. I've a MinecraftForge Server and i try to make a launcher for my serveur, i actually did it but i got a problem, i need to change in something in the client : In minecraft.java : public static File getMinecraftDir() { if (minecraftDir == null) { minecraftDir = getAppDir("minecraft"); } Everyone say i need to change "minecraft" with "name_of_the_server" so i take eclipse, MCP and forge source. But i got these error when i add a mods after doing the modification even if i'm changing nothing i got the same error. The mod who i tried to add is NotEnoughItem and i control it i've no problem of versions or bad install of forge i just got all the time this error : 2013-01-10 00:34:16 [iNFO] [ForgeModLoader] Forge Mod Loader version 4.7.4.520 for Minecraft 1.4.7 loading 2013-01-10 00:34:16 [iNFO] [sTDOUT] Adding Accesstransformer map: codechickencore_at.cfg 2013-01-10 00:34:17 [iNFO] [sTDOUT] FMLRelauncher.relaunchApplet 2013-01-10 00:34:17 [iNFO] [sTDERR] java.lang.reflect.InvocationTargetException 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2013-01-10 00:34:17 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:601) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchApplet(FMLRelauncher.java:230) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.appletEntry(FMLRelauncher.java:212) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.MinecraftApplet.init(MinecraftApplet.java:25) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.fmlReentry(Minecraft.java:2326) 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2013-01-10 00:34:17 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:601) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:111) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:26) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.main(Minecraft.java:2235) 2013-01-10 00:34:17 [iNFO] [sTDERR] at Start.main(Start.java:29) 2013-01-10 00:34:17 [iNFO] [sTDERR] Caused by: java.lang.NoClassDefFoundError: cpw/mods/fml/common/registry/GameData 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.item.Item.<init>(Item.java:250) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.item.ItemTool.<init>(ItemTool.java:26) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.item.ItemSpade.<init>(ItemSpade.java:12) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.item.Item.<clinit>(Item.java:38) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.block.Block.<clinit>(Block.java:1319) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.texturefx.TextureWaterFX.<init>(TextureWaterFX.java:26) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.<init>(Minecraft.java:248) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.<init>(MinecraftAppletImpl.java:19) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.MinecraftApplet.fmlInitReentry(MinecraftApplet.java:32) 2013-01-10 00:34:17 [iNFO] [sTDERR] ... 16 more 2013-01-10 00:34:17 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: cpw.mods.fml.common.registry.GameData 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185) 2013-01-10 00:34:17 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) 2013-01-10 00:34:17 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) 2013-01-10 00:34:17 [iNFO] [sTDERR] ... 25 more 2013-01-10 00:34:17 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException 2013-01-10 00:34:17 [iNFO] [sTDERR] at codechicken.core.asm.FeatureHackTransformer.transform001(FeatureHackTransformer.java:39) 2013-01-10 00:34:17 [iNFO] [sTDERR] at codechicken.core.asm.FeatureHackTransformer.transform(FeatureHackTransformer.java:50) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:228) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:173) 2013-01-10 00:34:17 [iNFO] [sTDERR] ... 27 more 2013-01-10 00:34:17 [iNFO] [sTDERR] java.lang.reflect.InvocationTargetException 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2013-01-10 00:34:17 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:601) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:111) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:26) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.main(Minecraft.java:2235) 2013-01-10 00:34:17 [iNFO] [sTDERR] at Start.main(Start.java:29) 2013-01-10 00:34:17 [iNFO] [sTDERR] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchApplet(FMLRelauncher.java:237) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.appletEntry(FMLRelauncher.java:212) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.MinecraftApplet.init(MinecraftApplet.java:25) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.fmlReentry(Minecraft.java:2326) 2013-01-10 00:34:17 [iNFO] [sTDERR] ... 8 more 2013-01-10 00:34:17 [iNFO] [sTDERR] Caused by: java.lang.reflect.InvocationTargetException 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 2013-01-10 00:34:17 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2013-01-10 00:34:17 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:601) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchApplet(FMLRelauncher.java:230) 2013-01-10 00:34:17 [iNFO] [sTDERR] ... 11 more 2013-01-10 00:34:17 [iNFO] [sTDERR] Caused by: java.lang.NoClassDefFoundError: cpw/mods/fml/common/registry/GameData 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.item.Item.<init>(Item.java:250) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.item.ItemTool.<init>(ItemTool.java:26) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.item.ItemSpade.<init>(ItemSpade.java:12) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.item.Item.<clinit>(Item.java:38) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.block.Block.<clinit>(Block.java:1319) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.renderer.texturefx.TextureWaterFX.<init>(TextureWaterFX.java:26) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.<init>(Minecraft.java:248) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.<init>(MinecraftAppletImpl.java:19) 2013-01-10 00:34:17 [iNFO] [sTDERR] at net.minecraft.client.MinecraftApplet.fmlInitReentry(MinecraftApplet.java:32) 2013-01-10 00:34:17 [iNFO] [sTDERR] ... 16 more 2013-01-10 00:34:17 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: cpw.mods.fml.common.registry.GameData 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185) 2013-01-10 00:34:17 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) 2013-01-10 00:34:17 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) 2013-01-10 00:34:17 [iNFO] [sTDERR] ... 25 more 2013-01-10 00:34:17 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException 2013-01-10 00:34:17 [iNFO] [sTDERR] at codechicken.core.asm.FeatureHackTransformer.transform001(FeatureHackTransformer.java:39) 2013-01-10 00:34:17 [iNFO] [sTDERR] at codechicken.core.asm.FeatureHackTransformer.transform(FeatureHackTransformer.java:50) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:228) 2013-01-10 00:34:17 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:173) 2013-01-10 00:34:17 [iNFO] [sTDERR] ... 27 more So what i'm suppose to do for change the .minecraft in .name_of_my_server whit forge ? Thanks for answers Quote
LexManos Posted January 10, 2013 Posted January 10, 2013 Why the hell are you doing it in such a stupid way? Go look at MultiMC or any of the many many other launchers. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
jobob Posted January 10, 2013 Author Posted January 10, 2013 And how i'm suppose to do whit launcher like MutliMc, to make a launcher who download the same mod I have on my server. That is not for playing minecraft forge lonely i need to make a launcher for the the server and I actually do it but i can't change where mods take place, i want them user the config file in the .name_of_my_server not in the .minecraft Quote
luacs1998 Posted January 10, 2013 Posted January 10, 2013 As in, you look at how they launch minecraft, you write your launcher accordingly. Quote Read the EAQ before posting! OR ELSE! This isn't building better software, its trying to grab a place in the commit list of a highly visible github project. www.forgeessentials.com Don't PM me, I don't check this account unless I have to.
Recommended Posts
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.