Jump to content

ItsAMysteriousYT

Members
  • Posts

    785
  • Joined

  • Last visited

Everything posted by ItsAMysteriousYT

  1. Okay, good luck Cool, never coded directX myself, but it would be cool if i could learn it. Where have you learned it?
  2. Okay it crashes - with this error Here is my Message: Handler: And where i call it: if (Keyboard.isKeyDown(Keyboard.KEY_RETURN)) { RealLifeMod.network.sendToServer(new MountVehicleMessage(this)); }
  3. Oh, you can do this an easier way i think why don't you do it with objectMouseOver.entityHit to get the entity and then maybe this helps you https://www.evl.uic.edu/luc/488/slides/class7.pdf
  4. Oh, thanks And i don't know what to use as maxValue, so i tried getting a bigger entityID than all the ids that exist doing getGlobalUniqueEntityID
  5. If you need help, then please post all you code at one place so people can read it clearly.
  6. I didn't see a method for it, only BufferUtils.writeVarInt, maybe i didn't looked correctly. Well also i tried fixing the fact that now, when i press enter (which should mount the player to the entity) let's the player fall out of the world using packets. But somehow the getEntityID does not work look: IMessage: MessageHandler: I registered the message to the SERVER side, cuz i wan't that the server mounts the player or do i have to do sendToAll when i press RETURN in the entitys onUpdate() method?
  7. But what i don't get, is what you want to do with that complicated GLStateManager stuff? If you wanna render an overlay, just use ScaledResolution to get the correct screen coordinates.
  8. StackUnderflow means that you do popMatrix to often. For every PushMatrix() you need a related popmatrix call. That also fixes the fact that inventorytextures aren't rendered.
  9. Yay Okay, so in the packet i need a double for the positions, but there only is a possibility to save an integer/ItemStack etc to the buffer, no double. Do i have to parse the double to a String, save it as UTF8 String and then reparse it as double?
  10. Well, depends on what you wanna make... You know how colors work - they have RGB values, so you have to have a possibility to change those values. Sliders would be smart.
  11. So i have to creat a global variable vehiclesXPos etc and then add the motionX to it on client and send it to the server like this if(!worldObj.isRemote){ this.setPosition(vehicleXPos, vehicleYPos, vehicleZPos); }
  12. Oh, i recognized there already are some fields and methods for that in the entityclass: Hidden also there is that in the onUpdate() method this.prevPosX = this.posX; this.prevPosY = this.posY; this.prevPosZ = this.posZ; can i just use this?
  13. Oh, i recognized there already are some fields and methods for that in the entityclass: also there is that in the onUpdate() method this.prevPosX = this.posX; this.prevPosY = this.posY; this.prevPosZ = this.posZ; can i just use this?
  14. So basicly update the physics (let the vehicle fall down if not on ground etc)?
  15. Hey diesieben07, in another topic you said my code in the entity was totally broken - no i recognized it too. I removed the if(worldObj.isRemote) check on spawning and now it is totally buggy and glitchy. You know very much, you find mistakes even if you never saw the game running Well, anyway - you said this to me in that topic: So, you said a kind off packets. does that mean i can do the whole thing in the onUpdate method? Like if(worldObj.isRemote){ clientPosX+=motionX; clientPosY+=motionY; clientPosZ+=motionZ; } if(!worldObj.isRemote){ posX=clientPosX; posY=clientPosY; posZ=clientPosZ; }
  16. I mean this: private void loadCoreModules(){ List<IResourcePack> defaultResourcePacks = ObfuscationReflectionHelper.getPrivateValue(Minecraft.class, Minecraft.getMinecraft(), "defaultResourcePacks", "field_110449_ao"); defaultResourcePacks.add(new FolderResourcePack(new File(Minecraft.getMinecraft().mcDataDir+"/RLM"))); Minecraft.getMinecraft().refreshResources(); }
  17. Okay, now im confused. The method i used with reflection is right or wrong? Cuz it works perfectly fine.
  18. My Custom Vehicle entity has some weird errors and bugs. I know the code is really full, thats cuz im struggeling with that errors for ages and once i solved an error a new one appears. Please help. First of all, i aint able to mount the entity by clicking on it. The method interactFirst() isn't even called. So i made a debug option in the update method to mount the entity by pressing enter. Well, now i have the problem, that i can not dismount by pressing L-SHIFT. If i wanna leave the entity, i need to do /kill. Here is the EntutyClass: PS: It would be cool if somebody with Entity/VehicleEntity knowledge could add me on skype (itsamysterious), so he/she can assist me in making my car mod(not nessecary)
  19. Kay, the option with reflection worked perfect - thanks!!
  20. Okay, im kinda struggling what to put into the IResourcePack file. I had a look at the minecraft defaultpack, but im not sure if theres anything missing. Heres the FIle:
  21. Okay thank you. Ill try both methods. The IResourcePack is my File right?
×
×
  • Create New...

Important Information

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