Page 1 of 1

Cannot find the script/functions for joinServerDlg.gui

Posted: Thu Apr 30, 2020 7:10 pm
by Sir_Skurpsalot
Where is the script/functions that are used by joinServerDlg.gui?? I can't find them anywhere for some reason.

Re: Cannot find the script/functions for joinServerDlg.gui

Posted: Thu Apr 30, 2020 10:12 pm
by Sir_Skurpsalot
Found them. Opened up the gui file itself in a text editor and found the functions hidden at the bottom of the gui file itself... could they really not be bothered to put them in a cs file?!?? Only wasted like 4 hours on this today

Re: Cannot find the script/functions for joinServerDlg.gui

Posted: Sun May 03, 2020 12:08 am
by Duion
Yes, sometimes it is done like this, I spend time and separated all of them in my game, but a few instances were left, where the GUI would only work properly when the functions were written in the same file for some unknown reason.

Re: Cannot find the script/functions for joinServerDlg.gui

Posted: Mon May 04, 2020 1:24 am
by Jason Campbell
You can use a text editor that allows a Find in Project search to cut down on the endless searching. I've been using one called Atom. Really helps a lot. I just open console.log then go to find in Project. Finds every instance.

Re: Cannot find the script/functions for joinServerDlg.gui

Posted: Mon May 04, 2020 1:30 am
by Duion
@
User avatar
Jason Campbell

I did not realize some people do not know this. I for example use notepad++ and have it search all .cs and .gui files every time I need to find something, the first search takes a while but after it is just a matter of seconds to search every file, so you pretty much can find anything instantly.

Alternatively you can use Torsion for coding, it also finds things easily and helps you with Torquescript coding.

Re: Cannot find the script/functions for joinServerDlg.gui

Posted: Tue May 05, 2020 1:00 pm
by Sir_Skurpsalot
Yeah I use Jedit and can do mass search-in-files with that but didn't realize at the time I needed to be looking in .gui files also.... now I know

Re: Cannot find the script/functions for joinServerDlg.gui

Posted: Tue May 05, 2020 2:18 pm
by Duion
In an emergency you could just search all files, will take a bit longer, but will make sure you get everything.