Jump to content

Recommended Posts

Posted

I've done this with fabric using a library but noticed that the classes related to Boats in Forge also handle it in a similar fashion, using an enum for boat types, making it harder to create a custom boat. Is there any documentation or anything that would help as a reference or guide to this?

Posted
  On 3/16/2023 at 2:37 AM, DakotaPride said:

Here's the crash report for this and here's the git repo (Forge) in case it may help.

Expand  

It's saying that an "entityrender" variable is null, check that. 

Funnily enough, I once played on a server where the BYG boats crashed the game and they had to make a rule where crafting BYG boats was not allowed, but that was in 1.16.5.

I'm not good at modding, but at least I can read a crash report (well enough). That's something, right?

Posted (edited)
  On 3/16/2023 at 1:56 PM, Hipposgrumm said:

It's saying that an "entityrender" variable is null, check that. 

Expand  

Is there any easy way to check where this variable is located? As I have gone through the files and haven't found a null entityrender variable. Unless I'm just missing it somehow

Or do you know how BYG managed to fix their issue?

Edited by DakotaPride
Posted
  On 3/16/2023 at 3:49 PM, DakotaPride said:

Is there any easy way to check where this variable is located? As I have gone through the files and haven't found a null entityrender variable. Unless I'm just missing it somehow

Expand  

You must check the shouldrender method in your renderer class. If you can't find it, try searching for it in the parent class (that minecraft has).

  On 3/16/2023 at 3:49 PM, DakotaPride said:

Or do you know how BYG managed to fix their issue?

Expand  

All I know is that BYG had a similar issue and it was with other mods. I didn't think to look at the crash report back then.

I'm not good at modding, but at least I can read a crash report (well enough). That's something, right?

Posted
  On 3/16/2023 at 4:38 PM, Hipposgrumm said:

You must check the shouldrender method in your renderer class. If you can't find it, try searching for it in the parent class (that minecraft has).

Expand  

What exactly am I checking it for? (I know that I should check it since that seems to be where the problem is. However, the method doesn't seem to even have an entityrenderer variable inside of the parent class.) Again, I may just be missing something, sorry.

Posted
  On 3/16/2023 at 2:37 AM, DakotaPride said:

here's the git repo (Forge)

Expand  

I checked your code; instead of creating a new renderer for your boat, just extend the original BoatRenderer class.

I'm not good at modding, but at least I can read a crash report (well enough). That's something, right?

Posted
  On 3/16/2023 at 7:38 PM, Hipposgrumm said:

 just extend the original BoatRenderer class.

Expand  

Still comes out with the same crash report sadly. I think I may just wait until 1.20 releases and see if there are any more effective ways of doing this or any new documentation/guides (would've liked it to be sooner, but can't really control that)

Posted

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted
  On 3/16/2023 at 8:50 PM, warjort said:
Expand  

Is there any examples of how this is used? I've never really used events before, so I'm not sure how I would get started with this. (sidenote, sorry for the long reply. Have been having Pc issues for the past couple of days)

Posted

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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