Is there an easy way to find all the actors that use a particular game.attribute?

rab127rab127 Member, PRO Posts: 47
edited January 2012 in Working with GS (Mac)
Hi

As a game gets more complicated and I wrestle with debugging is there an easy way to find all the actors that use a particular game.attribute?

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Yes. Save a backup of your game just in case. Then highlight the attribute and click the minus sign. It will not delete. Instead a pop up warning will list the actors that use the attribute and will ask if you really want to delete it. Obviously click no. Just make a backup in case your hand slips!
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    edited January 2012
    Yes there is but you must be very careful. You can do a lot of unintentional damage to your game. So to be perfectly safe I would make a backup of your app just before you start this process at least until you are comfortable with it.

    Now that you have your back up select the game level attribute you want to know about and click the little - sign below the attributes. If it is refferenced in any actor it will give you a warning asking are you sure? this attribute is referenced in these actors. And list out everything its in. No make sure you hit cancel. Otherwise the attribute is gone for good. But atleast you have a backup made.

    Edit: Grr my long winded piss poor typing skills have let Scitunes beat me to it.
  • rab127rab127 Member, PRO Posts: 47
    Thanks for getting back to me. Works great for game attributes! Is there anything that works for self.attributes? I tried this on one of these and it doesn't give a warning just deletes.
  • rab127rab127 Member, PRO Posts: 47
    ok I'm tired! I know which actor its part of, what I'd like to find is which rule/s or group/s a self.attribute is in....
  • flapairflapair Member Posts: 67
    There is a Deep Blue Apps tool which shows everything you want of the attribute who is using it, in which scenes they are being used and it helps you organize your attributes. The Application is called GS Attributes and you can purchase it here: http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./GS_Attributes.html
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Well the key term here is self.Attribute. Its only in that actor unless you have gone through and unlocked a bunch of actors and accessed them through the scene. If you have more of those than you can remember then you really should have used game attributes.
  • CloudsClouds Member Posts: 1,599
    edited January 2012
    "Thanks for getting back to me. Works great for game attributes! Is there anything that works for self.attributes? I tried this on one of these and it doesn't give a warning just deletes.

    Even I can tell you who is using the self.attribute and without even looking at your game ! (Unless you have a load of unlocked actors in the scene that is 8-X in which case I am completely wrong!).

    To find the actors using that self.attribute do this:

    1) Go to the actor with the self.attribute you want to find out about.
    2) Click on it to see it's attributes.
    3) Look at the actor.
    4) Look back at the attributes.
    5) Then back at the actor once more.
    6) There he is.
  • CloudsClouds Member Posts: 1,599
    Bah !
    tenrdrmer beats me to it !
    :(|)
Sign In or Register to comment.