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
11 hours ago, DakotaPride said:

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

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)
2 hours ago, Hipposgrumm said:

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

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
46 minutes ago, 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

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

48 minutes ago, DakotaPride said:

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

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
1 hour ago, 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).

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
16 hours ago, DakotaPride said:

here's the git repo (Forge)

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
10 minutes ago, Hipposgrumm said:

 just extend the original BoatRenderer class.

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
2 minutes ago, DakotaPride said:

Still comes out with the same crash report sadly.

Can you update the github page so that I can see?

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

Posted
14 minutes ago, DakotaPride said:

Still comes out with the same crash report sadly.

Can you send the crash report? It might not be completely identical.

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

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 3:50 PM, warjort said:

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.