Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.14] ModConfig?


Recommended Posts

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

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to post
Share on other sites

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


 

 

Link to post
Share on other sites

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 by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to post
Share on other sites
8 minutes ago, Draco18s said:

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

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.

Link to post
Share on other sites
23 minutes ago, TheMikeste1 said:

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 by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to post
Share on other sites

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 by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.