I don't really know where to post this, so I'll just post it here. I recently started developing a modded client for Minecraft 1.12.2 using eclipse and mcp, and it's looking pretty good so far. Everything is great and all, except when I recompile the client, obfuscate it, create the jar with the modded classes and then launch it, it has some pretty weird issues. For example, when I open the "settings" -> "video settings" tab, it's looking like this: https://gyazo.com/ced4839831075653e622b19130553cc7 and yes, my client has optifine. If I open eclipse and use debug mode to check the settings tab, it's just fine. Something weird is happening when I'm converting the client to a jar...
You are missing a language file, which the game uses to translate the internal names; you'd probably need to merge your own file (if there is one) or the default one with Optifine's (I presume it has one in newer versions, 1.6.4 does not so my own mod's language file is just the vanilla one with changes and additions, as seen near the bottom). Either that, or it has its own file in its assets (which will also include its own textures, like connected textures).
You could also hard-code the names in; for example, I did this before I realized that you could add new translations to the default language file, which may also be preferable if you are only adding a few new names (anything that cannot be translated is simply displayed as-is):
public String getTranslateName()
{
// Makes world type button display "Triple Height" and not "generator.triple_height"
return (this.worldType == "triple_height" ? "Triple Height" : "generator." + this.worldType);
}
// Translation strings inside of en_US
generator.default=Default
generator.flat=Superflat
generator.largeBiomes=Large Biomes
Thank you! This fixed the issue. I indeed was missing a language file somehow :p. I decided to go with hard coding it, since it's only a few lines anyways
I don't really know where to post this, so I'll just post it here. I recently started developing a modded client for Minecraft 1.12.2 using eclipse and mcp, and it's looking pretty good so far. Everything is great and all, except when I recompile the client, obfuscate it, create the jar with the modded classes and then launch it, it has some pretty weird issues. For example, when I open the "settings" -> "video settings" tab, it's looking like this: https://gyazo.com/ced4839831075653e622b19130553cc7 and yes, my client has optifine. If I open eclipse and use debug mode to check the settings tab, it's just fine. Something weird is happening when I'm converting the client to a jar...
You are missing a language file, which the game uses to translate the internal names; you'd probably need to merge your own file (if there is one) or the default one with Optifine's (I presume it has one in newer versions, 1.6.4 does not so my own mod's language file is just the vanilla one with changes and additions, as seen near the bottom). Either that, or it has its own file in its assets (which will also include its own textures, like connected textures).
You could also hard-code the names in; for example, I did this before I realized that you could add new translations to the default language file, which may also be preferable if you are only adding a few new names (anything that cannot be translated is simply displayed as-is):
public String getTranslateName() { // Makes world type button display "Triple Height" and not "generator.triple_height" return (this.worldType == "triple_height" ? "Triple Height" : "generator." + this.worldType); } // Translation strings inside of en_US generator.default=Default generator.flat=Superflat generator.largeBiomes=Large BiomesTheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
Thank you! This fixed the issue. I indeed was missing a language file somehow :p. I decided to go with hard coding it, since it's only a few lines anyways