Jump to content

maxpowa

Forge Modder
  • Posts

    75
  • Joined

  • Last visited

Everything posted by maxpowa

  1. Try changing event.manager.soundPoolSounds.addSound(soundFiles[i] ); to event.manager.addSound(soundFiles[i] ); I'm pretty sure both ways do the exact same thing, but it might work... Also, is "StaffODarkness.1.wav" the path to where your sound is stored? So according to that your path would be "assets/StaffODarkness.1.wav" Could you have a typo? Is it supposed to be StaffODarkness.1.wav or StaffOfDarkness.1.wav ? Also, confirmed only wav and ogg: (From SoundManager.java) try { SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class); SoundSystemConfig.setCodec("ogg", CodecJOrbis.class); SoundSystemConfig.setCodec("wav", CodecWav.class); MinecraftForge.EVENT_BUS.post(new SoundSetupEvent(this)); } catch (SoundSystemException soundsystemexception) { soundsystemexception.printStackTrace(); System.err.println("error linking with the LibraryJavaSound plug-in"); }
  2. I think they can be ogg or wav, but anything else Minecraft doesn't have codecs for... Just guessing by paulscode libraries that are imported into the workspace in the forge/mcp setup.
  3. In previous versions, the Minecraft class had a method to getServerData(), which returned a variable which that class holds in memory. /** * Get the current ServerData instance. */ public ServerData getServerData() { return this.currentServerData; } I went back into my MCP 1.5.2 folder, and here is the exact code... currentServerData is a private variable and that's why I need the getter for it, the strangest thing about it is that the setter is there, but then the variable is never used.
  4. Ah sweet, thanks -- I downloaded forge yesterday so I'm sure they've updated as you said.
  5. Hello fellow modders, Since the 1.6 update, ItemRenderer.renderItemAndEffectIntoGUI no longer exists. Does anyone know of the new version of this method? I've found a few obfuscated methods, but none of them match the parameters that were put into the old method. Thanks in advance, maxpowa
  6. If you still haven't found it, the new start class is net.minecraft.launchwrapper.Launch
  7. Wherever you ran the install.cmd from, there should be an mcp directory in that. Look in the mcp directory, there will be an eclipse folder there. That is the auto-generated workspace.
  8. Why not just take a look at the auto-generated eclipse workspace? I'm sure it has all the answers to your questions.
  9. That is the problem, nothing draws...
  10. So I changed it to not use the tessellator. Still doesn't work. private static void drawOutlineRect(int x, int y, int x1, int y1, int color) { GL11.glPushMatrix(); float f = (float)(color >> 24 & 255) / 255.0F; float f1 = (float)(color >> 16 & 255) / 255.0F; float f2 = (float)(color >> 8 & 255) / 255.0F; float f3 = (float)(color & 255) / 255.0F; GL11.glEnable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glColor4f(f1, f2, f3, f); GL11.glBegin(GL11.GL_LINES); GL11.glVertex2d((double)x, (double)y); GL11.glVertex2d((double)x1, (double)y); GL11.glVertex2d((double)x1, (double)y1); GL11.glVertex2d((double)x, (double)y1); GL11.glVertex2d((double)x, (double)y); GL11.glEnd(); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glPopMatrix(); }
  11. Hello fellow modders, my name is maxpowa and you may be familiar with the mods that I work on; TukMC and more recently, AdvancedHUD. I'm having issues drawing the outline of a rectangle, rather than filling it completely. I think, but I'm not sure if the issue is simply me failing to understand OpenGL and the Minecraft Tessellator. What I currently have, which is failing to draw an unfilled rectangle: private static void drawOutlineRect(int x, int y, int x1, int y1, int color) { GL11.glPushMatrix(); float f = (float)(color >> 24 & 255) / 255.0F; float f1 = (float)(color >> 16 & 255) / 255.0F; float f2 = (float)(color >> 8 & 255) / 255.0F; float f3 = (float)(color & 255) / 255.0F; Tessellator tessellator = Tessellator.instance; GL11.glEnable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glColor4f(f1, f2, f3, f); tessellator.startDrawing(GL11.GL_LINES); tessellator.addVertex((double)x, (double)y, 0.0D); tessellator.addVertex((double)x1, (double)y, 0.0D); tessellator.addVertex((double)x1, (double)y1, 0.0D); tessellator.addVertex((double)x, (double)y1, 0.0D); tessellator.addVertex((double)x, (double)y, 0.0D); tessellator.draw(); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_BLEND); GL11.glPopMatrix(); } Thanks in advance, maxpowa
×
×
  • Create New...

Important Information

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