Everything posted by ItsAMysteriousYT
-
Projecting a 3D vector from object space into screen space
Okay, good luck Cool, never coded directX myself, but it would be cool if i could learn it. Where have you learned it?
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
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)); }
-
Projecting a 3D vector from object space into screen space
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
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
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
-
[1.8] Custom Furnace, some bugs....that i am spinning in circles!
If you need help, then please post all you code at one place so people can read it clearly.
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
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
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
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.
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
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?
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
lol what then?
-
Character Editor
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.
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
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); }
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
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?
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
Oh, not to good
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
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?
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
So basicly update the physics (let the vehicle fall down if not on ground etc)?
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
Okay, so what are the securitychecks?
-
Include external folders into minecrafts default resourcepack?[NEED HELP]
Awesome thanks
-
Moving a VehicleEntity and how to propperly set it up[Question for diesieben07]
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; }
-
Include external folders into minecrafts default resourcepack?[NEED HELP]
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(); }
-
Include external folders into minecrafts default resourcepack?[NEED HELP]
Okay, now im confused. The method i used with reflection is right or wrong? Cuz it works perfectly fine.
-
Unable to dismount/mount an entity[1.8]
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)
-
Include external folders into minecrafts default resourcepack?[NEED HELP]
Kay, the option with reflection worked perfect - thanks!!
-
Include external folders into minecrafts default resourcepack?[NEED HELP]
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:
-
Include external folders into minecrafts default resourcepack?[NEED HELP]
Okay thank you. Ill try both methods. The IResourcePack is my File right?
IPS spam blocked by CleanTalk.