Jump to content

Recommended Posts

Posted

Hello!

 

I added GUI Configs, but when I try to open it I get this error

 

  Reveal hidden contents

 

 

Main Mod File

 

  Reveal hidden contents

 

 

Config

 

  Reveal hidden contents

 

 

EventHandler

 

  Reveal hidden contents

 

 

GuiFactory

 

  Reveal hidden contents

 

 

Config GUI

 

  Reveal hidden contents

 

Posted

I'm somewhat suspicious that there may be a problem in this part of your code, in your config GUI class:

public class ZaetConfigGUI extends GuiConfig
{
    public ZaetConfigGUI()
    {
        super(new GuiMainMenu(), new ConfigElement(Config.config.getCategory("textures")).getChildElements(), "zaet", false, false, "./config/zaet/config.cfg");
    }
}

I have a simpler config GUI working and the code for mine looks like:

    public WildAnimalsConfigGUI(GuiScreen parent) 
    {
        super(parent,
                new ConfigElement(WildAnimals.config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(),
                WildAnimals.MODID, false, false, GuiConfig.getAbridgedConfigPath(WildAnimals.config.toString()));
    }

I understand that some of the differences are simply due to the way you've set up your class structure, so may not be a problem.  But it might be good to break down this line a bit to see if it is doing what you expect.  In particular, see if the category is working, maybe try using a built in category to see if you can get that working first, maybe double check the config file path and maybe try doing it with the abridged config path method I used.

 

I just feel that the problem is somewhere in this line.  Just a hunch, but a lot has to be working right for this line to execute as expected.

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.