Jump to content

2.5.24 Release Notes please? Many issues


DylanSRT
 Share

Recommended Posts

Hi Developers,

What exactly was changed in the 24 update because it broke all of my GUIs lol. They go black like the picture below and entire client crashes as well as original client (I'm using mirror mode btw). Even logger can't output anything before it freezes. Never had a problem with this code before 24. I can provide a sample code if you don't think it was something on your end.

image.png.5c9c416986cd09a79fced959a6b0ca19.png

@Token Can't bother Alek anymore , but could you look into this please mate.

Thanks

Link to comment
Share on other sites

 

1 minute ago, ScummyBotter said:

I was waiting on gui input in my onStart, setting settings (like zoom etc), reading the user setup etc. Apparently it's bad practice I think so I'll stop doing that now.

I don't have any sleeps in my GUI class and I just initialize it in OnStart. Indeed just by taking out the reference to my GUI, the script works fine.. But why did this start happening? Kind of annoying now that I have to update everything. Can we get option to use previous version or a fix please devs?

Link to comment
Share on other sites

57 minutes ago, ScummyBotter said:

I was waiting on gui input in my onStart, setting settings (like zoom etc), reading the user setup etc. Apparently it's bad practice I think so I'll stop doing that now.

Yeah probably not a good idea - I usually have a variable that tells the script when the gui is compete - just set it to true on the start button action listener.

Link to comment
Share on other sites

7 hours ago, Ragnar Lothbrok said:

Yeah probably not a good idea - I usually have a variable that tells the script when the gui is compete - just set it to true on the start button action listener. 

I have the same thing, but you need to wait on that variable to become true before you start doing the main section of the script right? That's what I was waiting on, essentially had these in my onStart, the second one was what was causing it to break for me:


private void makeGUI() {
	frame = new GUI();
	frame.setVisible(true);
}

private void waitForGUI() throws InterruptedException {
    while(!frame.getStartButtonState()){
      sleep(200);
    }
    frame.setVisible(false);
}

 

Link to comment
Share on other sites

1 hour ago, ScummyBotter said:

I have the same thing, but you need to wait on that variable to become true before you start doing the main section of the script right? That's what I was waiting on, essentially had these in my onStart, the second one was what was causing it to break for me:



private void makeGUI() {
	frame = new GUI();
	frame.setVisible(true);
}

private void waitForGUI() throws InterruptedException {
    while(!frame.getStartButtonState()){
      sleep(200);
    }
    frame.setVisible(false);
}

 

Nah I just do a check on my onLoop method like this:

i

if (started) {
	// DO SHIT
}
return 500;

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...