Draco18s Posted October 15, 2019 Share Posted October 15, 2019 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 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 comment Share on other sites More sharing options...
TheMikeste1 Posted October 15, 2019 Share Posted October 15, 2019 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 ConfigConfig.java Quote Link to comment Share on other sites More sharing options...
Draco18s Posted October 16, 2019 Author Share Posted October 16, 2019 (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. (And yes, the description there is wrong, I put the wrong one in the toml file) Edited October 16, 2019 by Draco18s Quote 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 comment Share on other sites More sharing options...
TheMikeste1 Posted October 16, 2019 Share Posted October 16, 2019 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 Link to comment Share on other sites More sharing options...
Draco18s Posted October 16, 2019 Author Share Posted October 16, 2019 (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, 2019 by Draco18s Quote 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 comment Share on other sites More sharing options...
Draco18s Posted October 16, 2019 Author Share Posted October 16, 2019 (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 authored and LexManos committed 4 hours ago The bit that allows it to show up was literally just added. Edited October 16, 2019 by Draco18s Quote 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 comment Share on other sites More sharing options...
Recommended Posts
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.