playMaker

Author Topic: List of Variables  (Read 1884 times)

gregacuna

  • Full Member
  • ***
  • Posts: 142
List of Variables
« 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

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: List of Variables
« Reply #1 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.

« Last Edit: June 22, 2017, 08:37:49 AM by krmko »
Available for Playmaker work

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: List of Variables
« Reply #2 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.



Bump, any ideas on this one?
Available for Playmaker work

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: List of Variables
« Reply #3 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!
Available for Playmaker work

gregacuna

  • Full Member
  • ***
  • Posts: 142
Re: List of Variables
« Reply #4 on: June 26, 2017, 07:41:19 AM »
Bump...still looking for a way to make a text list of global variables. Anyone?

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: List of Variables
« Reply #5 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.
Available for Playmaker work