Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.14] ModConfig?
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
Draco18s

[1.14] ModConfig?

By Draco18s, October 15 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Draco18s    2093

Draco18s

Draco18s    2093

  • Reality Controller
  • Draco18s
  • Members
  • 2093
  • 14025 posts
Posted October 15

I've seen Cadiboo's code regarding configs (see his post, here), but in implementing it myself I'm not seeing it in-game nor am I getting a config file generated on disk (ok, the file is generated, but it is blank).

 

I'm not sure what I haven't set up, as far as I can tell, its exactly like Cadiboo's example (just with different config fields).

 

https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/flowers/OreFlowers.java#L44-L55

https://github.com/Draco18s/ReasonableRealism/tree/1.14.4/src/main/java/com/draco18s/flowers/config

  • Quote

Share this post


Link to post
Share on other sites

TheMikeste1    7

TheMikeste1

TheMikeste1    7

  • Tree Puncher
  • TheMikeste1
  • Members
  • 7
  • 41 posts
Posted October 15

It looks like the config system has changed a little bit since 1.13. I followed McJty's tutorial here: https://wiki.mcjty.eu/modding/index.php?title=Tut14_Ep6#Configuration

Video: https://youtu.be/Qz5gpY37KdQ?list=PLmaTwVFUUXiBKYYSyrv_uPPoPZtEsCBVJ&t=733

I also have some code you can look at here:
Registering and loading Config
Config.java


 

 

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2093

Draco18s

Draco18s    2093

  • Reality Controller
  • Draco18s
  • Members
  • 2093
  • 14025 posts
Posted October 16 (edited)

Ok, my config toml file is getting populated with values, but the config button on the main menu's mods list is still grayed out.

 

2019-10-15_19_15_31.png.0ceb52cc9bb4de2cc91a452c2dc03b90.png

(And yes, the description there is wrong, I put the wrong one in the toml file)

Edited October 16 by Draco18s
  • Quote

Share this post


Link to post
Share on other sites

TheMikeste1    7

TheMikeste1

TheMikeste1    7

  • Tree Puncher
  • TheMikeste1
  • Members
  • 7
  • 41 posts
Posted October 16
8 minutes ago, Draco18s said:

the config button on the main menu's mods list is still grayed out.

I think you need to register a GUI factory for you mod. See line 408 of net.minecraftforge.fml.client.gui.GuiModList. Unfortunately, I'm not quite sure how you do that. I would suspect it has to do with ScreenManager, like Block GUIs do.

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2093

Draco18s

Draco18s    2093

  • Reality Controller
  • Draco18s
  • Members
  • 2093
  • 14025 posts
Posted October 16 (edited)
23 minutes ago, TheMikeste1 said:

I think you need to register a GUI factory for you mod. See line 408 of net.minecraftforge.fml.client.gui.GuiModList. Unfortunately, I'm not quite sure how you do that. I would suspect it has to do with ScreenManager, like Block GUIs do.

Gotcha. I'll look into it.

Edited October 16 by Draco18s
  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2093

Draco18s

Draco18s    2093

  • Reality Controller
  • Draco18s
  • Members
  • 2093
  • 14025 posts
Posted October 16 (edited)

Dug into it, found all the right bits, wired it up and...nothing.

 

Turns out:

Allow mods actually to have their own usable config gui (#6208)

@JoJoDeveloping@LexManos
JoJoDeveloping authored and LexManos committed 4 hours ago

 

The bit that allows it to show up was literally just added.

Edited October 16 by Draco18s
  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • salvestrom
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By salvestrom · Posted 2 minutes ago

      ModelUnicorn should extend ModelHorse. Everything else you want will come from your UnicornEntity class extending EntityHorse.
    • mindstorm3223
      1.12.2-Problem with tile entity custom crafting table

      By mindstorm3223 · Posted 8 minutes ago

      Sorry, I looked around and couldn't figure out how to do that, do you know of any good place where it can tell me how to?
    • Jaffaaaaa
      ScreenGui does nothing

      By Jaffaaaaa · Posted 9 minutes ago

      I'm trying to make a gui to edit values and settings using a command, but the gui just does nothing apart from showing me the "init gui" message I put i the initGui() method. package xyz.jaffaaaa.zealotmanager; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.util.ChatComponentText; public class GuiHandler extends GuiScreen { private GuiButton reset; private ZealotManager zm; public GuiHandler(ZealotManager zm) { this.zm=zm; } @Override public void initGui() { super.initGui(); this.buttonList.clear(); Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("init gui")); this.buttonList.add(reset = new GuiButton(0, this.width / 2 - 100, this.height / 2, "Reset Counters")); } @Override protected void actionPerformed(GuiButton button) { if (button == reset) { zm.counter.zealotsSinceLastEye = 0; zm.counter.totalEyes = 0; zm.counter.totalZealots = 0; } } @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { super.drawScreen(mouseX, mouseY, partialTicks); drawDefaultBackground(); } }  
    • Yanny7
      [1.14.4] Stone Age mod

      By Yanny7 · Posted 10 minutes ago

      Stone age is minecraft 1.14.4 mod that gives you feeling of man from stone age. No more magically created planks from wood logs, the way to first crafting table is long and dangerous. In prehistoric ages, animals was not domesticated and same apply to this mod. There are no cows/sheeps/pigs/chickens, but their ancestors aurochs/mouflons/boars/fowls which are quit upset when you attack them or their friends. For more information, see wiki. Found bug? Please report here. This mod depends on Ages api.   Suggestions? New ides? Code comments? Just comment or PM me    
    • ShyAlpha22
      More Player Models won't change character

      By ShyAlpha22 · Posted 29 minutes ago

      I have been having this problem for quite some time with the 1.12.2 versions of More Player Models. Whenever I change anything with my character it doesn't actually change, for example, I changed the size and my view changed but my character remained the same size. Animations and movements also don't work, once again if I try to sit it changes my view, but my character is just standing with their feet slightly in the ground. I am using other mods with this, but not anything I think would affect it. The mods are:   chiselsandbits-14.33 CMDCam_v1.4.4_mc1.12.2 CreativeCore_v1.9.66_mc1.12.2 CutsomNPCs_1.12.2-(01Oct19) Decocraft-2.6.3_1.12.2 DoggyTalents-1.12.2-1.15.1.4-universal mclib-1.0.3-1.12.2 MorePlayerModels_1.12.2-(05Dec19) pa1.10 PTRLib-1.0.4   Any help would be appreciated, thank you.
  • Topics

    • DragonITA
      25
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA
      Started Monday at 10:06 AM

    • mindstorm3223
      2
      1.12.2-Problem with tile entity custom crafting table

      By mindstorm3223
      Started Yesterday at 02:18 AM

    • Jaffaaaaa
      0
      ScreenGui does nothing

      By Jaffaaaaa
      Started 8 minutes ago

    • Yanny7
      0
      [1.14.4] Stone Age mod

      By Yanny7
      Started 10 minutes ago

    • ShyAlpha22
      0
      More Player Models won't change character

      By ShyAlpha22
      Started 28 minutes ago

  • Who's Online (See full list)

    • XD_Claassen_XD
    • loordgek
    • lucidagrande
    • Yanny7
    • salvestrom
    • Jaffaaaaa
    • EmerProd
    • fenekvert
    • Pyre540
    • DcZipPL
    • DaemonUmbra
    • mindstorm3223
    • matorassan
    • diesieben07
    • D4Rk
    • motky
    • coolsim
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.14] ModConfig?
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community