Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • octa

octa

Members
 View Profile  See their activity
  • Content Count

    8
  • Joined

    January 27
  • Last visited

    February 3

Community Reputation

0 Neutral

About octa

  • Rank
    Tree Puncher
  1. octa

    Registering objects with @ObjectHolder

    octa replied to octa's topic in Modder Support

    Oh, I forgot all of the annotations in my blocks class. ¯\_(ツ)_/¯ Thanks for the eye.
    • February 2
    • 3 replies
  2. octa

    Registering objects with @ObjectHolder

    octa posted a topic in Modder Support

    Hello, I've recently decided to clean up my mod because it was a huge mess, so one thing I did was move all of the registration out of the one "registration" god class and divide the registration tasks into categories of block and item. Somewhere during this process, I must have gone wrong because my mod either fails to load or inevitably crashes when loading a world. I've played around with adding listeners and registering classes to the forge and mod busses, and gotten different errors. One thing I noticed is that they all lead to null pointers to items whose fields should have been injected from registries using the @ObjectHolder tag, so this is where I focused my research. I'm struggling to find anything about object holders, and beyond the idea that I didn't update the resource locations to match my new modid I'm stumped. Latest Log and crash report (which correspond to the version on my repo) are attached. Repo: https://github.com/eddie1101/PortalTest Can someone tell me what I'm doing wrong? latest.log crash-2021-02-01_20.37.37-client.txt
    • February 2
    • 3 replies
  3. octa

    Textures not wrapping onto item models

    octa replied to octa's topic in Modder Support

    Can you tell me how you're viewing the image? When I view it in gimp it looks pretty clean: Edit: Using Gimp's threshold alpha tool worked wonders. Thanks for the help.
    • January 30
    • 3 replies
  4. octa started following Disconnection From Server When Placing Modded Block and Textures not wrapping onto item models January 30
  5. octa

    Textures not wrapping onto item models

    octa posted a topic in Modder Support

    You can see the handle and part of the top of the axe are flat. This is happening with all except for two of the tools I've made, and I can't discern any difference between the broken ones and the ones that work correctly. Here is the texture im using in the above example: https://github.com/eddie1101/PortalTest/blob/master/src/main/resources/assets/basicportals/textures/item/item_void_axe.png Here is the model json: { "parent": "item/handheld", "textures": { "layer0": "basicportals:item/item_void_axe" } } Here is the rest of the project: https://github.com/eddie1101/PortalTest Please let me know why this is happening. Thanks.
    • January 30
    • 3 replies
  6. octa

    Disconnection From Server When Placing Modded Block

    octa replied to octa's topic in Modder Support

    Oh, that makes sense. Do you have a suggested way of initializing that BlockPos? I can't think of anything other than assigning a symbolic value which gets verified before use, but that seems clumsy. Edit: Nvm, I was trying to return some nbt data instead of the tileentity's actual position. Thanks for the help.
    • January 27
    • 7 replies
  7. octa

    Disconnection From Server When Placing Modded Block

    octa replied to octa's topic in Modder Support

    Woops. Fixed the item names. According to the docs, RegistryEvent.Register is a valid way of registering entries, so I'll stick with that since I know it better. The repo should build now, so back to my original question: Why when placing a Portal Base does the client get disconnected from the server?
    • January 27
    • 7 replies
  8. octa

    Disconnection From Server When Placing Modded Block

    octa replied to octa's topic in Modder Support

    Repo is fixed. How do I run my client with system properties? It works on the server but when I add it to JVM arguments in the launcher's installation settings the game crashes.
    • January 27
    • 7 replies
  9. octa

    Disconnection From Server When Placing Modded Block

    octa posted a topic in Modder Support

    I'm playing around with making my own mod. It works fine in Singleplayer but when I test it on a server my client gets disconnected with error message Internal Exception: io.netty.handler.codec.EncoderException: java.lang.NullPointerException (there is no further stack trace) when I place the Portal Base block. I can reconnect just fine, but will get disconnected again when I place another of those blocks. I haven't found much about this specific issue. Any help would be appreciated. Code: https://github.com/eddie1101/PortalTest/ logs: (Though they're not very helpful, is there some way to make the error more verbose? A stack trace would really help) Server: https://pastebin.com/JN6gnQyx Client: https://pastebin.com/AWVavatz Thanks in advance. Edit: Attached .jar if you want to try to reproduce basicportals-0.1.jar
    • January 27
    • 7 replies
  • All Activity
  • Home
  • octa
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community