playMaker

Author Topic: undesirable Globale Variable bool modified [SOLVED]  (Read 1616 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
undesirable Globale Variable bool modified [SOLVED]
« on: January 29, 2015, 09:12:05 AM »
hi,

i have a big problem today and i chacked everything i think to find what can cause my trouble this morning, but without result...

my problem is that :
i'm using a Gobal variable bool wich indicate when the game is started
this bool is activated only at a precise time, after the first player has dropped his first card.
i use this variable in many cases, like for exemple the first board on wich player can drop a card. as long as this variable is set to false the board is available, after that, the bool should set it to unavailable, and then the game is started.

my problem is that this variable is set to false by defaut
my starting board is set to true, and after fiew seconds change to false because the global variable is set to true... without any call from any action.

i checked multiple time in wich scripts the variable is used,
only 1 time to set it as true, others are only checking if it's true or false.

my game was working perfectly before that, and now suddenly don't want to listen correctly. so there is a real problem with global variable or i'm not on the right direction.

any help !!! is welcome ...
« Last Edit: January 29, 2015, 02:10:35 PM by blackant »

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: undesirable Globale Variable bool modified
« Reply #1 on: January 29, 2015, 09:18:27 AM »
or most appropried feature is the ability to check and seen when a variable has been modified and by what

does it exist ??

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: undesirable Globale Variable bool modified
« Reply #2 on: January 29, 2015, 11:46:37 AM »
You obviously are changing its value somewhere.  If you go to the area where the global variables are you can see the number of times it is being used.  OR delete it.  Then it will give you 4 errors.  This indicates that you have this global variable 4 times used.  Then you click on the error and a list pops up of where the missing bools are at.

I know that's kind of a hack, but it will tell you.

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: undesirable Globale Variable bool modified
« Reply #3 on: January 29, 2015, 02:09:57 PM »
You fund the problem
it was just because my variable was set to True at the begginning, instead of False..

i feel stupid  :-[