Posted July 14, 201213 yr Hello, I'm getting some problems when I tried to make a config file. Always when the game starts, he overriden the current save file, and rename to mod_***.cfg.bak and create a new file with defaults config. But I dont know why this is happening. I use this code to load my config: public static void configurationProperties() { Configuration config = new Configuration(new File(new File(mc.getMinecraftDir(), "config"), "mod_***.cfg")); config.load(); currVer = config.getOrCreateProperty("mod.versao", config.CATEGORY_GENERAL, defautlVer).value; config.save(); }
July 14, 201213 yr dont use {classname}.cfg Thats ModLoader/MLProp territory. Pick a real name. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
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.