All Activity
- Past hour
-
[SOLVED] [1.8.9] DrawRect messes up the GUI (Hunger Bar and Armour)
Jocore replied to Jocore's topic in Modder Support
[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 -
Jocore started following [SOLVED] [1.8.9] DrawRect messes up the GUI (Hunger Bar and Armour)
-
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
-
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
-
Created a server that wont start
LittleDinnerplate replied to LittleDinnerplate's topic in Support & Bug Reports
that fixed it! Thank you soo much!!! If there is a way I can like upvote your profile or something let me know! -
Jocore joined the community
- Today
-
MyCactuss joined the community
-
Bramborak joined the community
-
Also add the latest.log from the server after such disconnects
-
flavius09100 joined the community
-
i am the host of the server, so im running the server and playing on it with a friend
-
Maybe it is a server side issue
-
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.
-
Created a server that wont start
TileEntity replied to LittleDinnerplate's topic in Support & Bug Reports
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 -
The last one - latest.log
-
jean807617 joined the community
-
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.
-
What's the difference between EventHandler and SubscribeEvent?
LexManos replied to JustDreaming's topic in Modder Support
Ah, its old code that is outdated. Basically EventHandler is for FML specific events. Typically the lifecycle ones. On moddern versions its the modBus. -
kiro joined the community
-
BudgieGamer671 joined the community
-
i only have log.gz files https://imgur.com/a/Q3VqDaI
-
Santana2767 joined the community
-
Created a server that wont start
LittleDinnerplate replied to LittleDinnerplate's topic in Support & Bug Reports
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 -
Henrique BM joined the community
-
TileEntity started following Internal expection Error
-
Add the log file, not the gz file
-
Created a server that wont start
TileEntity replied to LittleDinnerplate's topic in Support & Bug Reports
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 -
1.20.1 cannot get property direction property
Tenshiiclone replied to Tenshiiclone's topic in Support & Bug Reports
I don't....I don't understand what you're telling me? Sorry I'm not good with the technical aspect -
KITYOF joined the community
-
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
-
Created a server that wont start
LittleDinnerplate replied to LittleDinnerplate's topic in Support & Bug Reports
https://drive.google.com/file/d/1a9Y5PSWNcV3UEoXzVUgCuJUsqcxeGBYj/view?usp=sharing -
Created a server that wont start
TileEntity replied to LittleDinnerplate's topic in Support & Bug Reports
Use sites like https://paste.ee/ -
Created a server that wont start
LittleDinnerplate replied to LittleDinnerplate's topic in Support & Bug Reports
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 -
What's the difference between EventHandler and SubscribeEvent?
JustDreaming replied to JustDreaming's topic in Modder Support
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 -
Created a server that wont start
TileEntity replied to LittleDinnerplate's topic in Support & Bug Reports
Use Java 17 instead of Java 22 -
Server crash when hit by a standard Minecraft mob
unclickable replied to unclickable's topic in Support & Bug Reports
I was wrong, the problematic plugin turned out to be: Polar's Mad Tweaks