-
Posts
785 -
Joined
-
Last visited
Everything posted by ItsAMysteriousYT
-
Projecting a 3D vector from object space into screen space
ItsAMysteriousYT replied to 504185787's topic in Modder Support
Okay, good luck Cool, never coded directX myself, but it would be cool if i could learn it. Where have you learned it? -
Projecting a 3D vector from object space into screen space
ItsAMysteriousYT replied to 504185787's topic in Modder Support
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 -
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?
-
Projecting a 3D vector from object space into screen space
ItsAMysteriousYT replied to 504185787's topic in Modder Support
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. -
Projecting a 3D vector from object space into screen space
ItsAMysteriousYT replied to 504185787's topic in Modder Support
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. -
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.
-
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; }
-
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(); }
-
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)