Jump to content

BeardlessBrady

Members
  • Posts

    398
  • Joined

  • Last visited

Everything posted by BeardlessBrady

  1. 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
  2. Fixed, Called 'GlStateManager.alphaFunc(GL11.GL_ALWAYS, 1f);' before rendering and then 'GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1f)' after
  3. 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
  4. 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
  5. hmm Alright. I was hoping there was a less weird way then how vanilla does it. Thanks for the help
  6. Right. The issue is I can't push it and move it. I'm wondering where that's handled
  7. I originally tried the pumpkin blur code and it was a solid red color
  8. 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
  9. 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
  10. 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
  11. 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
  12. Fixed Found through this thread: http://www.minecraftforge.net/forum/topic/30578-18-solved-interact-event-not-being-called-for-entities/
  13. 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
  14. 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.
  15. 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.
  16. Yes. You can't delete forums anymore, not sure what to do?
  17. Oh I just ended up removing the packets for now, forgot to say something on this forum
  18. 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
  19. I'm trying to render a nametag above a mod block. How would I go about doing this?
  20. 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
  21. Yes, I actually just got that working, but thanks for the insight!
  22. 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?
  23. I suppose Ill try casting it as an Integer since that can be null
  24. I tried but apparently you cant check an int == null
×
×
  • Create New...

Important Information

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