Jump to content

RESOLVED - [1.19.2] Recipe Book not fully opening


Warren Tode

Recommended Posts

So I got the recipe book added and everything is working correctly, except that the book does not fully open and the main GUI doesn't slide over to make room for it. I've tried playing around with parameters for the sizing and whatnot to fix this, but no dice. I even went so far as to start over from scratch a few times to try to figure out where I messed up, and while I figured out other things along the way, it's still doing this. At this point I know I'm missing something and would like to know what I need to be checking.

GHL4vmG.pngOtUL6tq.png

Edited by Warren Tode
Link to comment
Share on other sites

We can't debug screenshots. You need to put the all relevant code on github.

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.

Link to comment
Share on other sites

We need enough to reproduce the problem, i.e. we should be able to build the mod and run the game.

So the whole thing would be okay.

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.

Link to comment
Share on other sites

Looks like a trivial issue to me?

You are miscalculating the x position of the background.

https://github.com/toadie-odie/TodeCoins/blob/e63ed9728c9aa222f5a09799fe7938bdd188e71b/src/main/java/net/warrentode/todecoins/gui/CoinPressScreen.java#L86

Compare your code with CraftingScreen which uses the value calculated based on whether the recipe book is displayed

int x = leftPos;

 

Edited by warjort
  • Thanks 1

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.

Link to comment
Share on other sites

1 hour ago, warjort said:

Looks like a trivial issue to me?

You are miscalculating the x position of the background.

https://github.com/toadie-odie/TodeCoins/blob/e63ed9728c9aa222f5a09799fe7938bdd188e71b/src/main/java/net/warrentode/todecoins/gui/CoinPressScreen.java#L86

Compare your code with CraftingScreen which uses the value calculated based on whether the recipe book is displayed

int x = leftPos;

 

Yes, this fixed the problem completely. The devil is always in the details. Thank you.

Link to comment
Share on other sites

  • Warren Tode changed the title to RESOLVED - [1.19.2] Recipe Book not fully opening

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.



×
×
  • Create New...

Important Information

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