Jump to content

Recommended Posts

Posted

On my mod I've got a

GuiFactory

setup to show a config screen in-game. The changes work on the game, but I cannot get it to save to the actual .cfg file. I checked and the .cfg isn't read only. It's even properly putting in the

# Configuration file

header, but isn't updating the settings. Relevant code:

GuiConfig class

 

  Reveal hidden contents

 

Config class:

 

  Reveal hidden contents

 

From the class with the @mod annotation:

 

  Reveal hidden contents

 

I didn't include the

GuiFactory

class since the only overwritten method simply returns the

GuiConfig

class. Any idea what's wrong?

Posted

I assume you're following a tutorial like this one: http://www.minecraftforge.net/wiki/How_to_make_an_advanced_configuration_file

 

Also, I have a tutorial on config GUI here: http://www.minecraftforge.net/wiki/How_to_make_an_advanced_configuration_file

 

Both of the above were working for 1.8. I'm just going through effort to port to 1.10 so not sure if anything changed, although probably not.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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