Posted May 22, 201213 yr hey, I have a question about Configuration in Forge, I have it in SP and it works fine, but when I try and do it in my SMP thingy, it spits out errors.... This error only is at this line: static Configuration configuration = new Configuration(new File(Minecraft.getMinecraftDir(), "/config/CocoCraft/CocoCraft.cfg")); NOTE: this is the SP line! I thought in smp it would be this: static Configuration configuration = new Configuration(new File(MinecraftServer.getMinecraftDir(), "/config/CocoCraft/CocoCraft.cfg")); Well it wasn't, anyone know the correct way? Thanks
May 23, 201213 yr i have not found a way to get the directory in the same way but if you remove getting the directory part it seem to work just fine. I think you only need to get the directory is if the file your finding is not in the same file as the application. http://i577.photobucket.com/albums/ss215/bobstrong/ModBannerMed.png[/img]
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.