Jump to content

ArmamentHaki

Members
  • Posts

    114
  • Joined

  • Last visited

Everything posted by ArmamentHaki

  1. I managed to scroll my Buttons in a Gui, but whenever I scroll them to far, the Buttons which are Scrolling up are going outside of the field where I want them to be visible. I know I could Change the Buttons visibility upon reaching some Point on the Y-axis, but then the whole button would suddenly vanish, which wouldn't look nice. So my Goal is to overlay the Buttons with a rectangle that is drawn around the box where my Buttons are , so that the Buttons vanish behind the Rectangle Pixel for Pixel. Here is the Problem: I can't figure out how to set the drawing order of something. I tried drawing the Buttons before the Rectangle but that won't work either.
  2. bump. I considered using mc.displayHeight/Width. I tried to log the guiscale related to the screenpixels: For Small Scale, I got the same amount. For Normal and the rest I got half of the original amount, which can't be true, so I am still on it...
  3. If you only Need the mod for testing purposes, put it in the mods folder. If you want to inspire yourself on things that a mod did, custom items for example you could use a deompiler to decompile a jar file, but only if the developer allows you to do that. Also, bumping after 3 hours is rather fast, I think you could wait a Little longer as most Topics take their time to Research and so on
  4. You wrote that you could do if(block == Blocks.TALLGRASS). I am not sure whether that is possible in forge, but if it is you could just replace it if the Statement Returns true. EDIT: I think you should post your structure code, because in the Block class it says that tall grass is replaceable, which means that it would be replaced if the structure spawned
  5. Well I managed to create fixed-scale Objects but the Problem which I have now is the Translation... It still is related to the GuiScale and I don't want to rescale it for each GuiScale as Long as their is another solution. Here are my classes now: package armamenthaki.duelmonsters.gui; import java.util.ArrayList; import armamenthaki.duelmonsters.duel.Card; import armamenthaki.duelmonsters.duel.cards.CardSpeedWarrior; import armamenthaki.duelmonsters.individual.capabilities.DuelDataProvider; import armamenthaki.duelmonsters.util.Log; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.ResourceLocation; public class GuiDeckEditor extends GuiScreen { //the cards I want to display in the box private ArrayList<Card> displayedCards = new ArrayList<Card>(); //the players cards which out of which the the displayedCards resolves private ArrayList<Card> playerCards = new ArrayList<Card>(); //the background, fixed to the screen width and height private static final ResourceLocation debase = new ResourceLocation("duelmonsters", "textures/textures/gui/guidebase.png"); private Button button1; public GuiDeckEditor(EntityPlayer player) { if(!player.world.isRemote) { playerCards = player.getCapability(DuelDataProvider.DUELDAT_CAP, null).getPlayerCards(); } //just some cards to add to the screen for testing purposes displayedCards.add(new CardSpeedWarrior()); displayedCards.add(new CardSpeedWarrior()); displayedCards.add(new CardSpeedWarrior()); displayedCards.add(new CardSpeedWarrior()); displayedCards.add(new CardSpeedWarrior()); displayedCards.add(new CardSpeedWarrior()); displayedCards.add(new CardSpeedWarrior()); displayedCards.add(new CardSpeedWarrior()); displayedCards.add(new CardSpeedWarrior()); displayedCards.add(new CardSpeedWarrior()); displayedCards.add(new CardSpeedWarrior()); } @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { GlStateManager.pushMatrix(); float x = (float)width/512; float y = (float)height/288; GlStateManager.scale(x, y, 1.0); mc.renderEngine.bindTexture(debase); this.drawModalRectWithCustomSizedTexture(0, 0, 0, 0, 512, 288, 512, 288); GlStateManager.popMatrix(); //draws buttons for(GuiButton button : this.buttonList) { if(button instanceof Button) { ((Button) button).drawScreen(mc); } } } @Override public void initGui() { //column and line of the current card int line = 0; int column = 0; //button-id int id = 0; for(Card itCard : displayedCards) { //resource ResourceLocation resource = itCard.getResource(); //calculates button width/height (texture & size) float x = (float)width/256; x = x/20; float y = x*256; float z = x*373; int j = (int)y; int k = (int)z; //button object created GuiButton button = new Button(id, x, 0, 0, j, k, "", resource); //calculates button position if(button instanceof Button) { //this is the problem, I tried out so many things like casting to floats etc but it wont work... //responsible for calculating translations of the textures float a = (float)width; float b = (float)height; float trX = a; float trY = b; trX = (float)trX/6; trY = (float)trY/5; trX = (float)trX + (float)((a/(float)16)*(float)column); trY = (float)trY + (float)((a/(float)16)*(float)line); ((Button) button).setX((int)trX); ((Button) button).setY((int)trY); ((Button) button).setTrX(trX); ((Button) button).setTrY(trY); //responsible for having 6 objects in each line and then starting a new column column++; if(column == 5) { line++; column = 0; } } this.buttonList.add(button); id++; } } } The Button class: package armamenthaki.duelmonsters.gui; import armamenthaki.duelmonsters.util.Log; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.util.ResourceLocation; public class Button extends GuiButton { private ResourceLocation resource; private float scaleFactor; private float trX; private float trY; public Button(int id, float sF, int xPos, int yPos, int width, int height, String str, ResourceLocation pResource) { super(id, xPos, yPos, width, height, str); this.resource = pResource; this.scaleFactor = sF; this.visible = true; this.width = width; this.height = height; } //draws the button, gets called in the gui screen class public void drawScreen(Minecraft mc) { if (this.visible) { GlStateManager.pushMatrix(); mc.renderEngine.bindTexture(this.resource); /*translates the texture, this is the problem*/ GlStateManager.translate(this.trX, this.trY, 1.0); //scaling works properly GlStateManager.scale(this.scaleFactor, this.scaleFactor, 1.0); //reference for me to know what trX and trY are Log.getLogger().info(trX); Log.getLogger().info(trY); this.drawModalRectWithCustomSizedTexture(this.xPosition, this.yPosition, 0, 0, 256, 373, 256, 373); GlStateManager.popMatrix(); } } //getter setter public int getId() { return this.id; } public float getTrX() { return trX; } public void setTrX(float trX) { this.trX = trX; } public float getTrY() { return trY; } public void setTrY(float trY2) { this.trY = trY2; } public int getX() { return this.xPosition; } public void setX(int pX) { this.xPosition = pX; } public int getY() { return this.yPosition; } public void setY(int pY) { this.yPosition = pY; } } And These are 2 Screenshots of what doesn't work: 1. Image: GuiScale "Small" 2. Image: GuiScale "Auto"
  6. Actually just figured out that I was drawing the Rect related to the buttons' texture, so I changed the Parameters of the drawRectMethod from this.width and this.height to the original texture size, and it works. Sorry for posting, but I was trying it some time already.
  7. I made a custom button, which sizes its texture to 1/15 of the Screen. After that, I tried to also do this with the width and height of the button so that they are equally big. But the Problem is that the texture gets cut off if I do that. I will Show you my Gui and Button class: package armamenthaki.duelmonsters.gui; import armamenthaki.duelmonsters.util.Log; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.util.ResourceLocation; public class Button extends GuiButton { private ResourceLocation resource; private float scaleFactor; public Button(int id, float sF, int xPos, int yPos, int width, int height, String str, ResourceLocation pResource) { super(id, xPos, yPos, width, height, str); this.resource = pResource; this.scaleFactor = sF; this.visible = true; this.width = width; this.height = height; } public void drawScreen(Minecraft mc) { if (this.visible) { GlStateManager.pushMatrix(); mc.renderEngine.bindTexture(this.resource); GlStateManager.scale(this.scaleFactor, this.scaleFactor, 1.0); this.drawModalRectWithCustomSizedTexture(this.xPosition, this.yPosition, 0, 0, this.width, this.height, 256, 373); GlStateManager.popMatrix(); } } public int getId() { return this.id; } } package armamenthaki.duelmonsters.gui; import java.util.ArrayList; import armamenthaki.duelmonsters.duel.Card; import armamenthaki.duelmonsters.duel.cards.CardSpeedWarrior; import armamenthaki.duelmonsters.individual.capabilities.DuelDataProvider; import armamenthaki.duelmonsters.util.Log; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.ResourceLocation; public class GuiDeckEditor extends GuiScreen { private ArrayList<Card> displayedCards = new ArrayList<Card>(); private ArrayList<Card> playerCards = new ArrayList<Card>(); private static final ResourceLocation cmbase = new ResourceLocation("duelmonsters", "textures/textures/gui/guicmbase.png"); private Button button1; public GuiDeckEditor(EntityPlayer player) { if(!player.world.isRemote) { playerCards = player.getCapability(DuelDataProvider.DUELDAT_CAP, null).getPlayerCards(); } displayedCards.add(new CardSpeedWarrior()); } @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { for(GuiButton button : this.buttonList) { if(button instanceof Button) { ((Button) button).drawScreen(mc); } } } @Override public void initGui() { int id = 0; for(Card itCard : displayedCards) { float x = (float)width/256; x = x/15; ResourceLocation resource = itCard.getResource(); float y = x*256; float z = x*373; int j = (int)y; int k = (int)z; Log.getLogger().info(j); Log.getLogger().info(k); Log.getLogger().info(x); Log.getLogger().info(y); Log.getLogger().info(z); GuiButton button = new Button(id, x, 0, 0, j, k, "", resource); this.buttonList.add(button); id++; } } } Everything works fine, I get no Errors but if I then go ingame, I get this: (Upper left of the Picture, it should actually show all of the card)
  8. So I often had this Problem with Gui textures resizing upon rescaling the window or changing the guiScale. This is also problematic if other players with a different Resolution use your Guis which are meant to have fixed points. In this tutorial I want to show you how to make a fixed ModalRect which will take up the whole Minecraft-Screen, no matter whether you are in fullscreen-mode or only are using a small window. Tutorial starts here Creating a texture file: In order to make a good Gui, you need to know what you are making. I always create a texture with some pattern scratched on to it to see if all of it is shown. You probably will be using a 4:3 Format, for me it is 512x384. Basic GUI class: I don't think I have to explain this, just create your Gui with everything you want in it. Scaling properly: So first you Need to call GlStateManager.pushMatrix(); where you draw your Rect, to be able to scale your Image. Then, you create two floats, which I will simply call x and y here float x = (float)width/512; //512 -> my texture size float y = (float)height/384; //384 -> my texture size These two floats are equal to the factor by which you have to scale your Image. If you are asking yourself why that is, well, it is because if you divide the Resolution of your current Screen(which may be for example 1024 * 768) by your texture size, you get the exact number of how many times it fits into your Screen. After that, you can call the scale method: GlStateManager.scale(x, y, 1.0); This should scale your texture to your width and height. Now you can simply call the common bindTexture() and drawRect() methods. this.mc.renderEngine.bindTexture(cmbase); this.drawModalRectWithCustomSizedTexture(0, 0, 0, 0, 512, 384, 512, 384); and Pop the Matrix GlStateManager.popMatrix(); Now you should have your whole texture on the Screen. This is an example of how I did it: package armamenthaki.duelmonsters.gui; import armamenthaki.duelmonsters.util.Log; import ca.weblite.objc.Client; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.util.ResourceLocation; public class GuiCardManager extends GuiScreen { private static final ResourceLocation cmbase = new ResourceLocation("duelmonsters", "textures/textures/gui/guicmbase.png"); private GuiButton button1; @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { GlStateManager.pushMatrix(); float x = (float)width/512; //512 -> my texture size float y = (float)height/384; //384 -> my texture size GlStateManager.scale(x, y, 1.0); this.mc.renderEngine.bindTexture(cmbase); this.drawModalRectWithCustomSizedTexture(0, 0, 0, 0, 512, 384, 512, 384); GlStateManager.popMatrix(); } I hope this helps, I know it isn't well explained but I saw many Posts(including myself) on the Internet by People who where trying that, and I didn't find another tutorial. If you have any questions feel free to ask, though I am no expert at modding. Finally, this is a Screenshot of my example, which shows that the 512/384 texture fills the whole Screen.
  9. Ok, so heres what I did: GL11.glPushMatrix(); int i = 250; if(event.getResolution().getScaleFactor() == 2)GL11.glScaled(1.0, 1.0, 1.0); if(event.getResolution().getScaleFactor() == 1) { GL11.glScaled(2.0, 2.0, 2.0); i= i*3; } if(event.getResolution().getScaleFactor() == 3) { GL11.glScaled(0.666, 0.666, 0.666); i = i/3; } if(event.getResolution().getScaleFactor() == 4) { GL11.glScaled(0.5, 0.5, 0.5); i = 0; } mc.renderEngine.bindTexture(mainGui); mc.ingameGUI.drawModalRectWithCustomSizedTexture(x/2 - i, 0, 0, 0, 500, 125, 500, 125); GL11.glPopMatrix(); This works now, thanks
  10. yeah I know and I also tried different factors which all resized the gui properly, but when I then changed the gui scale, the gui still got bigger and smaller
  11. but how do I completely undo it? GlStateManager.pushMatrix(); GlStateManager.scale(1.0, 1.0, 1.0); mc.renderEngine.bindTexture(mainGui); mc.ingameGUI.drawModalRectWithCustomSizedTexture(x-x/3 - 250, 0, 0, 0, 500, 125, 500, 125); GlStateManager.popMatrix(); thats what I tried but GuiScale still affects it, I also tried it with GL11 and it works the same.
  12. Hey. Is there an easy way of doing a Gui which isn't resized by Gui Scale? I want to have a full Screen Gui with every rect in fixed Position.
  13. Actually nvm, I just realized that I wrote Minecraft.getMinecraft() in some part of the Capability Classes, although I didn't even use it. I should have just looked into the Server console, but the Client-one always opened and I didn't think about that then... Small things are hard to find I guess
  14. Hello everyone I attached a capability to the EntityPlayer, which works fine for Singleplayer, but whenever I try it on the Server the Server crashes(NullPointerException, though I think I did the Siding right) 2017-06-23 21:12:42,750 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-06-23 21:12:42,756 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [21:12:42] [main/INFO] [GradleStart]: Extra: [] [21:12:43] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/luca/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [21:12:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [21:12:43] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [21:12:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [21:12:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [21:12:43] [main/INFO] [FML]: Forge Mod Loader version 14.21.0.2327 for Minecraft 1.12 loading [21:12:43] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_131, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_131\jre [21:12:43] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [21:12:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [21:12:43] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [21:12:43] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [21:12:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:12:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [21:12:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [21:12:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:12:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:12:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [21:12:44] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [21:12:47] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [21:12:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [21:12:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [21:12:48] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [21:12:48] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [21:12:48] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [21:12:48] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2017-06-23 21:12:49,702 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-06-23 21:12:51,108 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-06-23 21:12:51,110 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [21:12:51] [main/INFO]: Setting user: Player720 [21:12:58] [main/INFO]: LWJGL Version: 2.9.4 [21:12:59] [main/INFO] [FML]: -- System Details -- Details: Minecraft Version: 1.12 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_131, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 859128400 bytes (819 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.2.11481 Compatibility Profile Context' Renderer: 'AMD Radeon HD 7560D' [21:12:59] [main/INFO] [FML]: MinecraftForge v14.21.0.2327 Initialized [21:13:00] [main/INFO] [FML]: Replaced 921 ore ingredients [21:13:00] [main/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [21:13:00] [main/INFO] [FML]: Searching C:\Users\luca\Diebe im Olymp CD\Desktop\Duel Monsters 1.12\DuelMonsters\mods for mods [21:13:02] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 308821531 nanos [21:13:03] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [21:13:03] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, duelmonsters] at CLIENT [21:13:03] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, duelmonsters] at SERVER [21:13:04] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Duel Monsters [21:13:04] [main/INFO] [FML]: Processing ObjectHolder annotations [21:13:04] [main/INFO] [FML]: Found 464 ObjectHolder annotations [21:13:04] [main/INFO] [FML]: Identifying ItemStackHolder annotations [21:13:04] [main/INFO] [FML]: Found 0 ItemStackHolder annotations [21:13:04] [main/INFO] [FML]: Applying holder lookups [21:13:04] [main/INFO] [FML]: Holder lookups applied [21:13:04] [main/INFO] [FML]: Applying holder lookups [21:13:04] [main/INFO] [FML]: Holder lookups applied [21:13:04] [main/INFO] [FML]: Applying holder lookups [21:13:04] [main/INFO] [FML]: Holder lookups applied [21:13:05] [main/INFO] [FML]: Configured a dormant chunk cache size of 0 [21:13:05] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [21:13:05] [main/INFO] [duelmonsters]: preInit [21:13:05] [main/INFO] [FML]: Applying holder lookups [21:13:05] [main/INFO] [FML]: Holder lookups applied [21:13:05] [main/INFO] [FML]: Injecting itemstacks [21:13:05] [main/INFO] [FML]: Itemstack injection complete [21:13:09] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: BETA_OUTDATED Target: 14.21.0.2347 [21:13:10] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:13:11] [Thread-5/INFO]: Initializing LWJGL OpenAL [21:13:11] [Thread-5/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:13:11] [Thread-5/INFO]: OpenAL initialized. [21:13:11] [Sound Library Loader/INFO]: Sound engine started [21:13:18] [main/INFO] [FML]: Max texture size: 8192 [21:13:18] [main/INFO]: Created: 16x16 textures-atlas [21:13:20] [main/INFO] [duelmonsters]: initItems [21:13:20] [main/INFO] [duelmonsters]: initBlocks [21:13:20] [main/INFO] [duelmonsters]: renderBlockduelmonsters:virtualcardmachine [21:13:20] [main/INFO] [FML]: Injecting itemstacks [21:13:20] [main/INFO] [FML]: Itemstack injection complete [21:13:20] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [21:13:20] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Duel Monsters [21:13:24] [main/INFO]: SoundSystem shutting down... [21:13:24] [main/WARN]: Author: Paul Lamb, www.paulscode.com [21:13:24] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:13:25] [Thread-7/INFO]: Initializing LWJGL OpenAL [21:13:25] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:13:25] [Thread-7/INFO]: OpenAL initialized. [21:13:25] [Sound Library Loader/INFO]: Sound engine started [21:13:31] [main/INFO] [FML]: Max texture size: 8192 [21:13:31] [main/INFO]: Created: 512x512 textures-atlas [21:13:33] [main/INFO]: Narrator library for x64 successfully loaded [21:14:04] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [21:18:50] [Thread-8/INFO]: [STDERR]: java.lang.NullPointerException Exception in thread "Thread-8" [21:18:50] [Thread-8/INFO]: [STDERR]: at com.jcraft.jogg.StreamState.packetout(StreamState.java:186) [21:18:50] [Thread-8/INFO]: [STDERR]: at paulscode.sound.codecs.CodecJOrbis.readBytes(CodecJOrbis.java:575) [21:18:50] [Thread-8/INFO]: [STDERR]: at paulscode.sound.codecs.CodecJOrbis.read(CodecJOrbis.java:354) [21:18:50] [Thread-8/INFO]: [STDERR]: at paulscode.sound.Source.stream(Source.java:953) [21:18:50] [Thread-8/INFO]: [STDERR]: at paulscode.sound.StreamThread.run(StreamThread.java:129) [21:28:41] [main/INFO]: Connecting to , 25565 [21:28:44] [Netty Client IO #2/ERROR] [FML]: NetworkDispatcher exception java.io.IOException: Eine vorhandene Verbindung wurde vom Remotehost geschlossen at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:1.8.0_131] at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) ~[?:1.8.0_131] at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[?:1.8.0_131] at sun.nio.ch.IOUtil.read(IOUtil.java:192) ~[?:1.8.0_131] at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) ~[?:1.8.0_131] at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288) ~[PooledUnsafeDirectByteBuf.class:4.1.9.Final] at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1100) ~[AbstractByteBuf.class:4.1.9.Final] at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:372) ~[NioSocketChannel.class:4.1.9.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123) [AbstractNioByteChannel$NioByteUnsafe.class:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:624) [NioEventLoop.class:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:559) [NioEventLoop.class:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:476) [NioEventLoop.class:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438) [NioEventLoop.class:4.1.9.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [SingleThreadEventExecutor$5.class:4.1.9.Final] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131] Thanks for your help, I will post my code if you demand but I dont want to spam this thread with code for now
×
×
  • Create New...

Important Information

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