Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. [SOLVED] public class RenderGUIHandler { @SubscribeEvent public void renderGUI(RenderGameOverlayEvent.Text event){ Client.hud.draw(); } } As I was playing around a little with the code, i found out about an option to change The RenderGameOverlayEvent.Post to RenderGameOverlayEvent.Text
  3. public class HUD { public Minecraft mc = Minecraft.getMinecraft(); public static class ModuleComparator implements Comparator<Module>{ @Override public int compare(Module o1, Module o2) { if (Minecraft.getMinecraft().fontRendererObj.getStringWidth(o1.name) > Minecraft.getMinecraft().fontRendererObj.getStringWidth(o2.name)){ return -1; } if (Minecraft.getMinecraft().fontRendererObj.getStringWidth(o1.name) < Minecraft.getMinecraft().fontRendererObj.getStringWidth(o2.name)){ return 1; } return 0; } } public void draw(){ ScaledResolution sr = new ScaledResolution(mc); FontRenderer fr = mc.fontRendererObj; Collections.sort(Client.modules, new ModuleComparator()); GlStateManager.pushMatrix(); GlStateManager.translate(4,4,0); GlStateManager.scale(1.5,1.5,1); GlStateManager.translate(-4, -4, 0); fr.drawString("Skyline", 10, 10, -1); GlStateManager.popMatrix(); int count = 0; for (Module m : Client.modules){ if (!m.toggled || m.name.equals("TabGUI")) continue; int offset = count* (fr.FONT_HEIGHT + 6); GL11.glTranslated(0.0f, 0.0f, -1.0f); Gui.drawRect(sr.getScaledWidth() - fr.getStringWidth(m.name) - 10, offset, sr.getScaledWidth() - fr.getStringWidth(m.name) - 8, 6 + fr.FONT_HEIGHT + offset, -1); Gui.drawRect(sr.getScaledWidth() - fr.getStringWidth(m.name) - 8, offset, sr.getScaledWidth(), 6 + fr.FONT_HEIGHT + offset, 0x90000000); fr.drawString(m.name, sr.getScaledWidth() - fr.getStringWidth(m.name) - 4, offset + 4, -1); count++; } Client.onEvent(new EventRenderGUI()); } } I have just recently stumbled upon this Problem, where the HudRenderer renders the wrong section of the textures and therefore completely destroys the Minecraft Armour and Hunger Bar. I am currently thinking if it is an issue with the DrawRect changing something it shouldn't. But I couldn't find anything about it. (To keep things Clean, the function is Called from another file) public class RenderGUIHandler { @SubscribeEvent public void renderGUI(RenderGameOverlayEvent.Post event){ Client.hud.draw(); } } Any help would be greatly appreciated
  4. Hello, I play on a private server (forge 47.2.0) (about 200 mods) with my friends. Everything is normal until the game crashes. I assume it's due to the generation of a chunk, possibly in a biome from the Aquamirae mod. Caused by: java.lang.NullPointerException: No chunk exists at [9, 38] at net.minecraft.server.level.WorldGenRegion.m_6325_(WorldGenRegion.java:2079) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at net.minecraft.server.level.WorldGenRegion.m_6924_(WorldGenRegion.java:375) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at net.minecraft.world.level.levelgen.structure.structures.ShipwreckPieces$ShipwreckPiece.m_213694_(ShipwreckPieces.java:127) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at net.minecraft.world.level.levelgen.structure.StructureStart.m_226850_(StructureStart.java:90) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at net.minecraft.world.level.chunk.ChunkGenerator.m_223080_(ChunkGenerator.java:320) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422) ~[guava-31.1-jre.jar%2374!/:?] at net.minecraft.world.level.chunk.ChunkGenerator.m_213609_(ChunkGenerator.java:319) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at net.minecraft.world.level.chunk.ChunkStatus.m_279978_(ChunkStatus.java:108) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at net.minecraft.world.level.chunk.ChunkStatus$SimpleGenerationTask.m_214024_(ChunkStatus.java:309) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at net.minecraft.world.level.chunk.ChunkStatus.m_280308_(ChunkStatus.java:252) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at net.minecraft.server.level.ChunkMap.lambda$scheduleChunkGeneration$27(ChunkMap.java:643) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-6.0.8.jar%2377!/:?] at net.minecraft.server.level.ChunkMap.lambda$scheduleChunkGeneration$29(ChunkMap.java:634) ~[server-1.20.1-20230612.114412-srg.jar%23375!/:?] at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150) ~[?:?] ... 11 more
  5. that fixed it! Thank you soo much!!! If there is a way I can like upvote your profile or something let me know!
  6. Today
  7. Also add the latest.log from the server after such disconnects
  8. i am the host of the server, so im running the server and playing on it with a friend
  9. https://www.mediafire.com/file/5opvwhk5jrc7xy9/latest.log/file here is the file. So the problem happens when some of my friend after waking up in the bed, or random times.
  10. There are two java lines and the / are mixed up Use this as script: "C:\Program Files\Java\jdk-17.0.10\bin\javaw.exe" -Xmx8G -Xms2048M @libraries/net/minecraftforge/forge/1.20.1-47.2.0/win_args.txt %* pause Replace the complete script with it (you don't need the REM lines) Make sure the java path is correct and keep the quotation marks
  11. I am a beginner modder, with around 50 hours of experience being guided by tutorials and chat-gpt. My mod is almost done, but I want to make the plants specifically require sunlight to encourage players to establish structure above ground. After looking at the vanilla code for a few hours, I'm still unsere what the best way to do this would be. I would be happy if someone with more experience could point me in the right direction.
  12. Ah, its old code that is outdated. Basically EventHandler is for FML specific events. Typically the lifecycle ones. On moddern versions its the modBus.
  13. Please help me! Aternos minecraft server on version 1.20.1 (1132 - 47.2.20) and on the Arclight core - crashes every time a witch throws a splash potion! (But the splash potion from the player does not crash the server) crash log: here
  14. i only have log.gz files https://imgur.com/a/Q3VqDaI
  15. To change to java 17 I downloaded java 17 windows and activated the install .exe and then deleted the jdk 22 folder i previously created. here is what comes up when i edit the .bat file. Which one should I be changing? https://drive.google.com/file/d/1M0EG-c5yfRd08DSnE5HVQNCu2v0YtA7A/view?usp=sharing
  16. Add the log file, not the gz file
  17. How did you change to Java 17? Set the path in your script: replace the word Java with the Java 17 path (to the javaw.exe) and put the path into quotation marks And make sure there is no nogui entry in the script
  18. I don't....I don't understand what you're telling me? Sorry I'm not good with the technical aspect
  19. Here is the error code: internal exception:java.lang.indexoutofboundsexception: reader index(17) length(1) exceeds writerindex(17): pooled unsafedirectbytebuf (ridx: 17, widx: 17, cap: 17) Here is the files https://www.mediafire.com/file/trxgn9piu4kn52k/2024-05-11-5.log.gz/file https://www.mediafire.com/file/le5lvbfu6fdfqtr/debug-4.log.gz/file
  20. https://drive.google.com/file/d/1a9Y5PSWNcV3UEoXzVUgCuJUsqcxeGBYj/view?usp=sharing
  21. I switched to java 17 like you suggested but now the .bat file just says "Press any key to continue" I tried posting a screenshot of it but the site wont allow me to unfortunately Oh also the log I posted for some reason is still under review so hopefully soon you can see it
  22. Event Handler is in the package "net.minecraftforge.fml.common.Mod.EventHandler", and SubscribeEvent is in the package "net.minecraftforge.fml.common.eventhandler.SubscribeEvent" Game Version is 1.12.2
  23. I was wrong, the problematic plugin turned out to be: Polar's Mad Tweaks
  1. Load more activity
×
×
  • Create New...

Important Information

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