Jump to content

RESOLVED - [1.19.2] Recipe Book not fully opening


Recommended Posts

Posted (edited)

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

23 minutes ago, warjort said:

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

Okay, I understand. The question is, what exactly do you need to look at? I can just put the entire test mod up there.

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

Posted (edited)

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

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