Posted June 5, 20196 yr So with the old 1.12 config annotation system, you used to be able to make a custom config GUI. Is this still implemented, if so how to enable it?
June 6, 20196 yr It’s not implemented yet and cpw doesn’t have the time to work it out with his real world commitments and 1.14. If you’d like to help, I’m trying to do some work on porting it at https://github.com/Cadiboo/NoCubes/tree/1.13.2-config (currently only has the base GUI without any of the config entries implemented). About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
June 6, 20196 yr Author 3 minutes ago, Cadiboo said: It’s not implemented yet and cpw doesn’t have the time to work it out with his real world commitments and 1.14. If you’d like to help, I’m trying to do some work on porting it at https://github.com/Cadiboo/NoCubes/tree/1.13.2-config (currently only has the base GUI without any of the config entries implemented). I'd love to help, though that would be difficult for me since I'm not very experienced making GUIS. Ill try do atleast something if I can though
June 6, 20196 yr It’s not really the GUI that’s the issue right now, it’s trying to understand how the old system works and trying to apply that to the slightly incomplete new system. The IConfigElement used by the old system needs significant changes, so do the config elements in the GUI. I’m not sure how to handle categories or the different input types (these changed too) and I haven’t even thought of how to make it save yet. About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
June 6, 20196 yr Author 7 minutes ago, Cadiboo said: It’s not really the GUI that’s the issue right now, it’s trying to understand how the old system works and trying to apply that to the slightly incomplete new system. The IConfigElement used by the old system needs significant changes, so do the config elements in the GUI. I’m not sure how to handle categories or the different input types (these changed too) and I haven’t even thought of how to make it save yet. I'll take a look. To test, how would I open the config menu? Just clicking Config or what?
June 7, 20196 yr With my repo? You need to launch the game, then recompile & hotswap the ModListGui from Forge. This enabled the Config GUI for NoCubes. Then you should be able to open the config menu. I’m thinking of removing the hasConfig method from ModInfo and replacing it with something else instead About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
June 7, 20196 yr Author Just now, Cadiboo said: With my repo? You need to launch the game, then recompile & hotswap the ModListGui from Forge. This enabled the Config GUI for NoCubes. Then you should be able to open the config menu. I’m thinking of removing the hasConfig method from ModInfo and replacing it with something else instead Thanks, how about replace for a list getConfigs() instead of a boolean hasConfig(), and if you want to check if it has a config check if the list is empty
June 7, 20196 yr I was thinking ConfigGuiHandler.getGuiFactoryFor(selectedMod).map(f->f.apply(this.mc, this)).ifPresent(newScreen -> this.mc.displayGuiScreen(newScreen)).orElse(() -> { if(selectedMod.hasConfigs()) this.mc.displayGuiScreen(new GuiConfig(selectedMod.getConfigs())); }); About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
June 7, 20196 yr Author Just now, Cadiboo said: I was thinking ConfigGuiHandler.getGuiFactoryFor(selectedMod).map(f->f.apply(this.mc, this)).ifPresent(newScreen -> this.mc.displayGuiScreen(newScreen)).orElse(() -> { if(selectedMod.hasConfigs()) this.mc.displayGuiScreen(new GuiConfig(selectedMod.getConfigs())); }); Seems good to me I'm just fixing java references and fixing override methods atm.
June 7, 20196 yr I should probably start a new repo for this tbh About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
June 7, 20196 yr Author 20 minutes ago, Cadiboo said: With my repo? You need to launch the game, then recompile & hotswap the ModListGui from Forge. This enabled the Config GUI for NoCubes. Then you should be able to open the config menu. I’m thinking of removing the hasConfig method from ModInfo and replacing it with something else instead So by recompile and hotswap, how is that done? Is it a gradle task or something I specify in build.gradle?
June 7, 20196 yr Run the game in debug mode, open up the config screen, select NoCubes (see the greyed our config button), recompile the GuiModList and hotswap it in (just save it in eclipse). This will put the code from my modified version into the game (the one that enables the config for NoCubes). About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
June 7, 20196 yr Author 2 hours ago, Cadiboo said: Run the game in debug mode, open up the config screen, select NoCubes (see the greyed our config button), recompile the GuiModList and hotswap it in (just save it in eclipse). This will put the code from my modified version into the game (the one that enables the config for NoCubes). I’m guessing that doesn’t apply to Intelij?
June 7, 20196 yr This applies to IntelliJ. Recompile the GuiModList class by either right clicking it in the project explorer and selecting “recompile” or going into the class in the editor and selecting “recompile” from the build menu or recompiling it with the keybind (shift + fn + f9 by default). Edited June 7, 20196 yr by Cadiboo About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
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.