Jump to content

Interesting bug that only affects me (everyone else on server is fine)


Zer0HD2

Recommended Posts

So my mod was working fine yesterday when I launched it through Eclipse. Today, I made no changes to the code, I just compiled it. Now, whenever I launch my mod, either through Eclipse or through Minecraft, my GUI looks like this: ZbProm3.jpg

 

It affects every GUI that I can open; pause menu, crafting, inventory, etc, and any GUI that any other mod provides, like the minimap. I tried on a fresh version of Forge, and the only difference was that I had nothing but a blue screen. Like the screen you get when you run out of memory, but I could pause (nothing happened but a cursor appeared) and control my character (could hear my footsteps, and other players can I was moving). I tried removing the mod from forge, and it fixed it.

 

Has anyone experienced this error before, or know what causes it? And as I said, it does not affect any players but me.

Link to comment
Share on other sites

I'm not very familiar with GUI's as much as others, and I have also never seen this bug before.

 

Post your code and maybe I can or someone else can figure it out.

 

Since you said that everyone else's was working in the title, you must've done the textures right then.

Got a question that's somewhat beginner - intermediate? Don't hesitate to ask!

 

Here to help! :)

Link to comment
Share on other sites

I must ask, were the other people using your mod or was it just you? If that was the case... Hmm, I wonder why it was just you!

 

If the others were using your mod... Hmm, post the code.

We all stuff up sometimes... But I seem to be at the bottom of that pot.

Link to comment
Share on other sites

I get a "blue screen" (it is a bit paler color than actual windows blue screen) sometimes when I screw up rendering.  And your issue here seems to be some rendering scaling problem.

 

I suggest that maybe you're not pushing/popping the g11 transforms properly.  You probably are messing up the stack and some transform is affecting the next rendered element.

 

I know you say you didn't modify your code, but sometimes I leave Eclipse open on my computer with something highlighted and then someone (maybe me) comes along later to wake up the computer and presses space bar.  It can easily wipe out a line or section of code without you really noticing.

 

Anyway, I'd look everywhere you do rendering and especially g11 transformations.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

The thing is, I was playing on the same server with the exact same .jar as two other people, and it didn't affect them at all. Also, I haven't used any GL11 scaling anywhere in my mod.

 

However, as you mentioned, it is that pale blue colour that you get when Minecraft runs out of memory.

Link to comment
Share on other sites

Memory and stack issues can exhibit quite different behavior on different computers.  For example, maybe g11 clears out occasionally and depends on the timing -- on some computers they may not run into stack trouble as fast as on yours.

 

What Forge version exactly are you using?  I find that with the latest (1133) that I'm getting occasionally VM heap problems even though I've got 4GB heap paramters for the JVM and I'm also not doing much fancy.  Is it possible that you're running slightly different Forge version than the other users?

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • this is my first time using this website. Im having an issue where if I have EC Apotheosis enabled the game launches but crashes on the loading screen. If I disable the mod the game runs fine. Dont know if it will help but this is the exported curseforge proflie file. https://drive.google.com/file/d/1iDoqIGmiJsTKW5ocru7FBxIdBiKgUr0i/view?usp=sharing
    • How to fix file server-1.20.1-20230612.114412-srg.jar  
    • Just a few months ago I was creating my own plugin for Minecraft 1.20.2 spigot that did the same thing, but the skins were not saved, if you can understand this code that I made a long time ago it may help you.   //This is a class method private static String APIRequest(String value, String url, String toSearch) { try { URL api = new URL(url + value); HttpURLConnection connection = (HttpURLConnection) api.openConnection(); connection.setRequestMethod("GET"); int responseCode = connection.getResponseCode(); if (responseCode == HttpURLConnection.HTTP_OK) { BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream())); StringBuilder response = new StringBuilder(); for (String responseChar; (responseChar = reader.readLine()) != null; ) response.append(responseChar); reader.close(); JSONObject responseObject = new JSONObject(response.toString()); if (!toSearch.equals("id")) return responseObject .getJSONArray("properties") .getJSONObject(0) .getString("value"); else return responseObject.getString("id"); } else { AntiGianka.ConsoleMessage(ChatColor.RED, String.format( "Could not get %s. Response code: %s", ((toSearch.equals("id")) ? "UUID" : "texture"), responseCode )); } } catch (MalformedURLException error) { AntiGianka.ConsoleMessage(ChatColor.RED, "An error occurred while trying to access the URL. Error: " + error); } catch (IOException error) { AntiGianka.ConsoleMessage(ChatColor.RED, "An error occurred while attempting to connect to the URL. Error: " + error); } return ""; } //other class method private void SkinGetter() { String uuid; String textureCoded; if ((uuid = APIRequest(args[0], "https://api.mojang.com/users/profiles/minecraft/", "id")).isEmpty() || (textureCoded = APIRequest(uuid, "https://sessionserver.mojang.com/session/minecraft/profile/", "value")).isEmpty() ) sender.sendMessage(ChatColor.RED + String.format( "An error has occurred while trying to obtain the %s player skin, please check if the name %s is spelled correctly or try again later.", args[0], args[0] ) ); else SkinSetter(textureCoded); } //other more private void SkinSetter(String textureCoded) { JSONObject profile = new JSONObject(new String(Base64.getDecoder().decode(textureCoded))); try { URL textureUrl = new URL(profile.getJSONObject("textures"). getJSONObject("SKIN"). getString("url")); if (sender instanceof Player && args.length == 1) { PlayerTextures playerTextures = ((Player) sender).getPlayerProfile().getTextures(); playerTextures.setSkin(textureUrl); ((Player) sender).getPlayerProfile().setTextures(playerTextures); if (((Player) sender).getPlayerProfile().getTextures().getSkin() != null) sender.sendMessage(((Player) sender).getPlayerProfile().getTextures().getSkin().toString()); else sender.sendMessage("Null"); sender.sendMessage("Skin changed successfully.a"); } else { } AntiGianka.ConsoleMessage(ChatColor.GREEN, "Skin command executed successfully."); } catch (MalformedURLException error) { sender.sendMessage(ChatColor.RED + String.format( "An error has occurred while trying to obtain the %s player skin, please check if the name %s is spelled correctly or try again later.", args[0], args[0] ) ); AntiGianka.ConsoleMessage(ChatColor.RED, "An error occurred while trying to access the URL. Error: " + error); } }  
    • Use /locate structure The chat should show all available structures as suggestion For the Ancient City it is /locate structure ancient_city
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.