Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: How to see all the scripts in which a global variable is used?  (Read 265 times)

0 Members and 1 Guest are viewing this topic.

mihaipuiucernea

  • Lurker
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Currently working on Colors on Canvas
    • View Profile
    • Dev Blog

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

anarchist

  • Regular poster
  • ***
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 212
    • View Profile
Re: How to see all the scripts in which a global variable is used?
« Reply #1 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/) 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.
Logged

mihaipuiucernea

  • Lurker
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • Currently working on Colors on Canvas
    • View Profile
    • Dev Blog
Re: How to see all the scripts in which a global variable is used?
« Reply #2 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.
 

Page created in 0.187 seconds with 22 queries.