Author Topic: Possible bug within x-feeder: card[st]_[number][_suit] logic, or am I confused?  (Read 5524 times)

Tags:
  • All members
  • Posts: 31
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.

  • All members
  • Posts: 31
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?


  • All members
  • Posts: 31
Hello anybody.

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

Thanks very much.

  • Tim Vetrov
  • Administrator
  • Posts: 4905
  • Gender: Male
*
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.
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 31
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?

  • Tim Vetrov
  • Administrator
  • Posts: 4905
  • Gender: Male
*
Not sure, as the latest update was in 2014 :(
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

 

Please note, BetFair is seems to be currently OFFLINE