NovaViper Posted June 8, 2015 Author Posted June 8, 2015 At the top of the configuration file. Also I noticed that mods like Not Enough Items and the CCC api have custom named configuration title headings like so. Also to answer the question I asked, I added the configuration version to the Configuration parameter (config = new Configuration(file, configversion). #Main configuration of NEI. #Most of these options can be changed ingame. #Deleting any element will restore it to it's default value checkUpdates=true inventory.cheatmode=2 inventory.gamemodes=creative, creative+, adventure inventory.hidden=false inventory.itemIDs=1 inventory.itemsort=nei.itemsort.minecraft,nei.itemsort.mod,nei.itemsort.id,nei.itemsort.default,nei.itemsort.damage,nei.itemsort.name inventory.layoutstyle=0 #For those who can't help themselves. #Set this to a mode and you will be unable to change it ingame ...configurations Quote Main Developer and Owner of Zero Quest Visit the Wiki for more information If I helped anyone, please give me a applaud and a thank you!
NovaViper Posted June 8, 2015 Author Posted June 8, 2015 Also, I'm wondering if there is a way to check the config file version and if it's outdated, have the old file removed and have the new one created? Quote Main Developer and Owner of Zero Quest Visit the Wiki for more information If I helped anyone, please give me a applaud and a thank you!
Abastro Posted June 8, 2015 Posted June 8, 2015 1. I think adding heading comments is done by adding comments to the general category using Configuration#setCategoryComment(category, comment) 2. Updating config file is automatically done by forge, why do you want to do it yourself? Quote I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
NovaViper Posted June 8, 2015 Author Posted June 8, 2015 The add comment is for categories, and also, I noticed when I have the config version, even though the old one is outdated, it isn't deleted and the latest version isn't created, it doesn't even change the old one Quote Main Developer and Owner of Zero Quest Visit the Wiki for more information If I helped anyone, please give me a applaud and a thank you!
Elix_x Posted June 8, 2015 Posted June 8, 2015 The add comment is for categories, and also, I noticed when I have the config version, even though the old one is outdated, it isn't deleted and the latest version isn't created, it doesn't even change the old one It adds missing values. Let's say that your user configured your mod to hardcore mode, and by default it comes in normal mode. Then when update comes and new property is added, if config file is removed and re-added, then all values get defaulted. So it will be set back to normal mode... Forge does not delete existing vlaues, but adds missing ones... Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
NovaViper Posted June 8, 2015 Author Posted June 8, 2015 But then it doesn't update the configuration version Quote Main Developer and Owner of Zero Quest Visit the Wiki for more information If I helped anyone, please give me a applaud and a thank you!
Elix_x Posted June 8, 2015 Posted June 8, 2015 But then it doesn't update the configuration version What do you mean by it? Version number in top of config??? Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
NovaViper Posted June 8, 2015 Author Posted June 8, 2015 Like this # Configuration file ~CONFIG_VERSION: 1.0 Quote Main Developer and Owner of Zero Quest Visit the Wiki for more information If I helped anyone, please give me a applaud and a thank you!
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.