Pages:
Actions
  • #1 by kineticwing on 26 Dec 2016
  • Hello Welldone,

    I have the following logic in operation to set a user variable to the value '7777' if conditions are met in round 2 of poker turbo (just for testing purposes):

            trigger expression h_1_card_1_suit is equal to h_1_card_2_suit
    AND trigger expression h_1_card_1_suit is equal to h_2_card_1_suit
    AND trigger expression h_2_card_2_suit is equal to h_1_card_2_suit


    The trigger log shows that this variable gets set to 7777, e.g.

    -------------------------------------
    26/12/2016 18:39:31:   Round 2. Channel POKER_TURBO refreshed. Game ID: 98488586
    -------------------------------------

    Checking:  Trigger Expression h_1_card_1_suit is equal to h_1_card_2_suit
    Condition is true. 
    Checking: and  Trigger Expression h_1_card_1_suit is equal to h_2_card_1_suit
    Condition is true. 
    Checking: and  Trigger Expression h_2_card_2_suit is equal to h_1_card_2_suit
    Condition is true. 
    A user variable has been set. Name: suited_and_unique, value: 7777.


    The trigger log also shows that this variable does not get set when one of the conditions is false, e.g.

    -------------------------------------
    26/12/2016 18:38:47:   Round 2. Channel POKER_TURBO refreshed. Game ID: 98487232
    -------------------------------------

    Checking:  Trigger Expression h_1_card_1_suit is equal to h_1_card_2_suit
    Condition is true. 
    Checking: and  Trigger Expression h_1_card_1_suit is equal to h_2_card_1_suit
    Condition is true. 
    Checking: and  Trigger Expression h_2_card_2_suit is equal to h_1_card_2_suit
    Condition is false.  ( Selection 'Hand 1': Trigger Expression is D. Selection 'Hand 2': Trigger Expression is D. Selection 'Hand 3': Trigger Expression is D. Selection 'Hand 4': Trigger Expression is D.)
    Conditions remaining in the block will not be checked.


    HOWEVER... if I change the logic for the third test to "is not equal to", I would expect the game above to return TRUE for all conditions and therefore set the variable to 7777. It does not do this.

            trigger expression h_1_card_1_suit is equal to h_1_card_2_suit
    AND trigger expression h_1_card_1_suit is equal to h_2_card_1_suit
    AND trigger expression h_2_card_2_suit is not equal to h_1_card_2_suit


    returns the following:

    -------------------------------------
    26/12/2016 18:47:06:   Round 2. Channel POKER_TURBO refreshed. Game ID: 98487232
    -------------------------------------

    Checking:  Trigger Expression h_1_card_1_suit is equal to h_1_card_2_suit
    Condition is true. 
    Checking: and  Trigger Expression h_1_card_1_suit is equal to h_2_card_1_suit
    Condition is true. 
    Checking: and  Trigger Expression h_2_card_2_suit is not equal to h_1_card_2_suit
    Condition is false.  ( Selection 'Hand 1': Trigger Expression is D. Selection 'Hand 2': Trigger Expression is D. Selection 'Hand 3': Trigger Expression is D. Selection 'Hand 4': Trigger Expression is D.)
    Conditions remaining in the block will not be checked.



    The test DOES return the expected result for the first game example above, i.e.

    -------------------------------------
    26/12/2016 18:47:40:   Round 2. Channel POKER_TURBO refreshed. Game ID: 98488586
    -------------------------------------

    Checking:  Trigger Expression h_1_card_1_suit is equal to h_1_card_2_suit
    Condition is true. 
    Checking: and  Trigger Expression h_1_card_1_suit is equal to h_2_card_1_suit
    Condition is true. 
    Checking: and  Trigger Expression h_2_card_2_suit is not equal to h_1_card_2_suit
    Condition is false.  ( Selection 'Hand 1': Trigger Expression is D. Selection 'Hand 2': Trigger Expression is D. Selection 'Hand 3': Trigger Expression is D. Selection 'Hand 4': Trigger Expression is D.)
    Conditions remaining in the block will not be checked.




    Am I overlooking something or is this a bug in the software? The games are from the 30/11/16.

    Thanks.
  • #2 by kineticwing on 26 Dec 2016
  • UPDATE - this seems to be the case for a simple, one condition test. Set a trigger on poker turbo for the following, and compare the logs:

           trigger expression h_1_card_1_suit is equal to h_1_card_2_suit

    compare with

           trigger expression h_1_card_1_suit is not equal to h_1_card_2_suit

    One set of results should be the inverse of the other, but the 'not equal' always returns false. Surely this is a bug?

  • #3 by kineticwing on 06 Jan 2017
  • Hello anybody.

    Should I be raising this as a support request instead of posting on the troubleshooting board?

    Thanks very much.
  • #4 by Tim (WellDoneSoft) on 10 Jan 2017
  • Hello,

    Sorry for late response.
    Yes, confirm the bug.
    As a workaround please use the following condition:
    Code: [Select]
    trigger expression IF(h_1_card_1_suit = h_1_card_2_suit, 1, 0) is equal to 0
    Sorry for inconvenience.
  • #5 by kineticwing on 10 Jan 2017
  • Thanks for confirming.

    The workaround was successful, thank you. Do you have scheduled application updates for patching this kind of thing? If so, when would the next one be scheduled for?
  • #6 by Tim (WellDoneSoft) on 11 Jan 2017
  • Not sure, as the latest update was in 2014 :(
Pages:
Actions