Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: mihaipuiucernea on March 28, 2018, 07:45:31 PM

Title: How to see all the scripts in which a global variable is used?
Post by: mihaipuiucernea on March 28, 2018, 07:45:31 PM
Topic title is pretty descriptive.

I have a global and it's value changes between scenes. But I have literally dozens of scripts, and I don't remember exactly in which ones I use the global.

I would like to avoid checking all scripts (for obvious reasons...too time consuming  ;D ), so is there a way to see all the scripts in which a global is used?

Thanks guys!  ::rock
Title: Re: How to see all the scripts in which a global variable is used?
Post by: anarchist on March 28, 2018, 11:12:46 PM
I don't know of a way you can achieve this in Wintermute. For such tasks though, I usually use a very nice feature of Notepad++ (https://notepad-plus-plus.org/ (https://notepad-plus-plus.org/)) which is called "Find in files". You can give it the name of the variable, the folder in which to search and even the extensions of the files you want to search into and it will tell you where the variable is used.
Title: Re: How to see all the scripts in which a global variable is used?
Post by: mihaipuiucernea on March 29, 2018, 12:02:54 AM
Cheers!  ::beer

I actually mnaged to find a prolem by checking aa script for something else and found what's cauding the change.

But that feature of Notepad++ will definitely come in handy in the future.