Everything posted by BeardlessBrady
- 
	
		
		[1.11.2]WorldSavedData issues
		
		So I'm trying to make my own WorldSavedData. Not quite sure what I'm doing wrong but this is the error I get when I attempt to get data: http://pastebin.com/aWWXhpj1 WorldSavedData: https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/mod/core/data/BankAccountSavedData.java Data Saved: https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/mod/core/data/BankAccount.java Testing when Block Activated here: https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/mod/block/BlockATM.java
 - 
	
		
		Opaque Overlay not rendering correctly
		
		Fixed, Called 'GlStateManager.alphaFunc(GL11.GL_ALWAYS, 1f);' before rendering and then 'GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1f)' after
 - 
	
		
		[1.11.2] Fixing Render Lag
		
		Fixed: I was doing things with the update method during every tick even if it wasn't necessary. Now it only does it if the player is actually in the container Sorry
 - 
	
		
		[1.11.2] Fixing Render Lag
		
		So well stress testing my mod I found out placing 9 or more of my tile entities (Vendor/Seller specifically) drops my FPS from 200 to 30 and it gets worse the more I place. This only occurs well looking at these blocks. So I'm just wondering if there is any way to optimize the render of my tiles? https://github.com/BeardlessBrady/Currency-Mod/tree/master-1.11/src/main/java/gunn/modcurrency/mod
 - 
	
		
		[1.11.2] Entity Collision
		
		hmm Alright. I was hoping there was a less weird way then how vanilla does it. Thanks for the help
 - 
	
		
		[1.11.2] Entity Collision
		
		Right. The issue is I can't push it and move it. I'm wondering where that's handled
 - 
	
		
		Sending Packet from Server to Client
		
		Oh woopsie, thanks
 - 
	
		
		Opaque Overlay not rendering correctly
		
		I originally tried the pumpkin blur code and it was a solid red color
 - 
	
		
		Opaque Overlay not rendering correctly
		
		Trying to draw a red fading overlay but it just ends up weird. I tried messing around with OpenGL blend but I can't get it right, any ideas? (How it shows in game Vs. How it should look) https://github.com/BeardlessBrady/PlayerTraits-Mod/blob/master-1.11/src/main/java/gunn/modtraits/mod/event/ClientEvents.java#L49
 - 
	
		
		Sending Packet from Server to Client
		
		I know its been awhile but I've been rather busy. Alright I broke each packet into its own class as you said but now whenever the game tries to send one of my packets it breaks and spouts out issues but I don't quite understand what the problem is. Log when problem occurs: http://pastebin.com/KNMc92qr https://github.com/BeardlessBrady/Currency-Mod/tree/master-1.11/src/main/java/gunn/modcurrency/mod/network
 - 
	
		
		[1.11.2] Entity Collision
		
		Yes I have those. I guess I should mention it's just extending entity not living entity. https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/entity/EntityHorseCart.java
 - 
	
		
		[1.11.2] Entity Collision
		
		Is there a specific method that is fired in an entity when it collides with another entity? Example: when you walk into a mine cart it turns. I can't seem to figure out where its handled
 - 
	
		
		[1.11.2] Can't interact/hit custom entity
		
		Fixed Found through this thread: http://www.minecraftforge.net/forum/topic/30578-18-solved-interact-event-not-being-called-for-entities/
 - 
	
		
		[1.11.2] Can't interact/hit custom entity
		
		Trying to make my entity take damage when hit but when attempting to hit it I hit the blocks behind or under it. My bounding box is fine as I collide with it. https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/common/entity/EntityHorseCart.java
 - 
	
		
		Sending Packet from Server to Client
		
		Honestly I made this original packet system early on when I started modding so if its broken and weird I suppose its time I remake it. I wasn't aware this was bad practice, I will fix this. Wasn't sure what to use when sending to client The packet isn't working because when I use a test to check the variable its true on the server but false on the client. As I stated before, I will redo how Im handing packet messages. I suppose I get ride of the current system now, re add it a cleaner way and get back to you if it's still broken, Thanks for the input.
 - 
	
		
		Sending Packet from Server to Client
		
		Hey Diesieben, so I lied. I actually do need help. I reverted my repository to before I deleted the packet message. The links above should work as intended now. Basically my problem is that I'm changing something in the container (which is server side obviously) and then I send a packet to do the same client side. For some reason the message isn't changing it client side.
 - 
	
		
		Sending Packet from Server to Client
		
		Yes. You can't delete forums anymore, not sure what to do?
 - 
	
		
		Sending Packet from Server to Client
		
		Oh I just ended up removing the packets for now, forgot to say something on this forum
 - 
	
		
		Sending Packet from Server to Client
		
		I'm trying to send a message from server to client. But it doesn't seem to be changing client side I send the message at Line 287 https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/common/containers/ContainerBuySell.java#L287 Packet Handler: https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/common/core/handler/PacketHandler.java Message with Handler: https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/common/core/network/PacketSendIntDataToClient.java
 - 
	
		
		Render NameTag above Block without using TESR
		
		I'm trying to render a nametag above a mod block. How would I go about doing this?
 - 
	
		
		[1.11.2] Collidable Entity wont move.
		
		Im working on a horse cart entity that should be pushable like a minecart or boat but I can't seem to get the 'pushing' part working. The collision/bounding boxes are working. The Boat and Minecart code is a bit confusing so I'm not sure what Im missing here. https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/common/entity/EntityHorseCart.java
 - 
	
		
		GetBoundingBox from TileEntity State
		
		Yes, I actually just got that working, but thanks for the insight!
 - 
	
		
		GetBoundingBox from TileEntity State
		
		Ya, I think it may be the only way. Even casting the int as an Integer still crashes from nullPointException. Is there a way to check if the tileEntity has be placed yet?
 - 
	
		
		GetBoundingBox from TileEntity State
		
		I suppose Ill try casting it as an Integer since that can be null
 - 
	
		
		GetBoundingBox from TileEntity State
		
		I tried but apparently you cant check an int == null
 
IPS spam blocked by CleanTalk.