Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello,

I have been working on a custom recipe class. As part of this recipe, I needed to read fluids from a JSON file, and had to write a custom handler to deal with this since there doesn't appear to be one (as with Ingredient for example). As far as I can tell, it works perfectly. It reads the recipe correctly from the JSON file. However, I'm not sure if I have done my PacketBuffer read and write methods correctly for my FluidIngredient class. The reason I say this is because when trying to run JEI, I get the following error in the log:

[20:48:05] [Render thread/FATAL]: Error executing task on Client
java.lang.NullPointerException: null

I know this has to be the issue, because when I disable the custom recipe from being serialized, JEI runs fine and the error disappears. I have attached the full log below, and have also given links to the relevant classes. In this case, they are FluidItem2FluidRecipeSerializer and FluidIngredient.

 

FluidItem2FluidRecipeSerializer: https://github.com/skiprocks999/ElectrodynamcisExperimental/blob/main/src/main/java/electrodynamics/common/recipe/categories/fluiditem2fluid/FluidItem2FluidRecipeSerializer.java

FluidIngredient: https://github.com/skiprocks999/ElectrodynamcisExperimental/blob/main/src/main/java/electrodynamics/common/recipe/recipeutils/FluidIngredient.java

 

This is new ground for me in terms of modding, so I imagine the mistake will be easy to spot.

 

 

latest.log

  • Author

Okay so I have made the changes you recommended plus a few more, but to no avail. I can't get anything from the log, and it looks like the write() method in the serializer nor the read() methods are even called. The links are the same as before, and I have attached the latest log as well.

latest.log

  • Author

I finally tracked down the error. It actually was coming from another class entirely. At least I know what the issue is being caused by now. As a quick question, can anyone point me to a list of fluid tags please. I can't seem to find one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.