Topic category: Help with Minecraft modding (Java Edition)
Hello everyone. I'm here because I have little (big problems) with some mod elements, GUI in particular.
I explain. I created an interface, where people can buy things. At first, everyting worked fine. Then, I created a second shop by duplicating every GUI and changing the pics and values. I don't know if it's why all is mess up, but now when I click on a button in some GUI, it does not display the correct interface but a random one. Really. I checked multiple times. The procedures are good, the buttons return the right procedures. I don't understand at all. I tried to regenerate the code (by the way, the software have told me a lot to regenerate the code, all the time) but it is not working. Sometimes, some buttons activate a totally random procedure that I created months ago, especially those on the third screen. The game is even crashing on certain occasions when I click on one of them. I tried to recreate procedures and buttons, to update MCreator (I'm working on the 2023.1 currently).
your backgrounds are quite nice :)
btw if u want help from the guys here u prb need to post your procedures pictures too
Hello, thanks for the reply and compliment. :)
For the procedure, it's just, basically what's below:
To give more informations: You can access the shop with a block (cf: First screen above), then click on one of the items to access another GUI and you can buy it or return to the previous page. The procedures are simple, and they are a lot of them. (A few hundreds.) However, the game open a random GUI even if the procedures are the right ones. Sometimes the wrong item page is displayed, sometimes the return button makes the game crash, it doesn't work at all or it opens another page. I double checked every procedure. Even previous GUIs, who were normally fonctionning before, are now "glitched".
Update: Things are getting worse. Now, the buy button procedure is called on other GUIs, with which they have no nothing to do. Plus, a purchased item will change in the inventory when the GUI is closed, transforming into a new one, reversing the procedure to call up another one. You don't understand anything? Me too.
Update, and it will be the last because I think my first hypothesis is the right: other GUI's, created well before, no longer work or their buttons send to completly random interfaces.
I don't know how it happened. Everything was fine like one week ago. My computer didn't not shut down while writing or anything like that.