Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author

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

 

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!

  • Replies 82
  • Views 492.7k
  • Created
  • Last Reply

Top Posters In This Topic

  • Author

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?

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!

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?

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

  • Author

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

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!

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...

  • Author

But then it doesn't update the configuration version

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!

  • Author

Like this

 

# Configuration file

~CONFIG_VERSION: 1.0

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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.