Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gregacuna on June 22, 2017, 04:33:00 AM

Title: List of Variables
Post by: gregacuna on June 22, 2017, 04:33:00 AM
Hi All...

Is there a way to export a text list of variables/global variables used in Playmaker? Want to clean up the game and it would help to have a list in a document to cross check where variables are being used.

Thanks, Greg
Title: Re: List of Variables
Post by: Fat Pug Studio on June 22, 2017, 07:30:29 AM
I'm interested in that too, i'm neck deep in the project and have some similarly named stuff that i want to throw out :)

Edit: You can open PlayMakerGlobals.asset in a simple text editor:

Quote
      name: PlayerPositionGlobal
      tooltip:
      showInInspector: 0
      networkSync: 0
      value: {x: 0, y: 0, z: 0}
    - useVariable: 1
      name: ProvokerPozicija
      tooltip:
      showInInspector: 0
      networkSync: 0
      value: {x: 0, y: 0, z: 0}
    colorVariables:
    - useVariable: 1
      name: Bela
      tooltip:
      showInInspector: 0
      networkSync: 0
      value: {r: 1, g: 1, b: 1, a: 1}

I don't know about local variables, but it doesn't really matter since they're local. It would be neat to somehow export the list of global variables with the number of them used in the current scene.

Also, while we are there, is there a way to see a full list of FSM's in which the global variables are used? Another thing puzzles me, when i click on a global variable with right mouse click, tho it says it's used, for example, 8 times, it shows only two FSM's.

(https://s9.postimg.org/wii91nl67/Screenshot_2017-06-22_14.32.54.jpg)
Title: Re: List of Variables
Post by: Fat Pug Studio on June 23, 2017, 09:11:55 AM
Also, while we are there, is there a way to see a full list of FSM's in which the global variables are used? Another thing puzzles me, when i click on a global variable with right mouse click, tho it says it's used, for example, 8 times, it shows only two FSM's.

(https://s9.postimg.org/wii91nl67/Screenshot_2017-06-22_14.32.54.jpg)

Bump, any ideas on this one?
Title: Re: List of Variables
Post by: Fat Pug Studio on June 26, 2017, 06:05:05 AM
Oh, i got it, it shows only two because the global variable was used 8 times in those 2 FSM's. Problem solved!
Title: Re: List of Variables
Post by: gregacuna on June 26, 2017, 07:41:19 AM
Bump...still looking for a way to make a text list of global variables. Anyone?
Title: Re: List of Variables
Post by: Fat Pug Studio on June 26, 2017, 10:36:27 AM
The easiest way is to buy Easy Save 2, which now supports saving all globals to a comma delimited file.