Need help with composite definition and color definition
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Sep 2011
    Posts
    132

    Default Need help with composite definition and color definition

    Hi!

    I would really appreciate any feedback or help on this matter.

    I am starting to learn composite definitions and color definitions as well.

    I am quite lost and unsure how to fix the problem.

    I have attached the note definition, the composite definition and the color definition is displayed as an image here:

    SB_Open_Shoves_75%_78_Vs_Hero_CD.png

    What I am trying to do:

    - Have a badge for players who will open shove the bottom 25% from the small blind versus the big blind.
    - Have a badge for players who will open shove the bottom 10% from the small blind versus the big blind

    When the badge for the bottom 10% is displayed, then I want the badge for the bottom 25% to be hidden (since we have more information, this badge becomes useless).

    What I have done

    I created a composite definition named SB_Open_Shoves_75%_78_Vs_Hero_C with the following Expression:
    100 - NC."SB_Open_Shoves_ATC_78_Vs_Hero".Instances.
    The goal is to know if an occurrence of the badge with the bottom 10% is already present. See attached file.

    I created a color definition that is evaluating the SB_Open_Shoves_75%_78_Vs_Hero_C composite definition. If the value is 100 (aka, no occurrences of the badge with the bottom 10%), then we can display the badge that shows the bottom 25%. See attached image.

    Problems

    - The badge is not shown to players that did open the bottom 25%, but not the bottom 10%.

    - I am unsure what to put in the Sample Expression text field. I can't seem to find anything in the documentation to help me with this.

    - When testing the color definition for a player, I get the following result:

    testing color definition: SB_Open_Shoves_75%_78_Vs_Hero_CD for player: xxx
    Found stats for : Holdem game size Medium Hands: 13509 VPIP: 31.83 PFR: 23.75 Agg%: 0.06 AF: 2.50 BB/100: -1.51
    Replace: NC."SB_Open_Shoves_75%_78_Vs_Hero".Instances with 1
    Expression: 100 - 1
    Expression: 1
    SB_Open_Shoves_75%_78_Vs_All_C - Result: 99.00
    Sample: 1
    NOT FOUND! Replace: NC."SB_Open_Shoves_ATC_78_Vs_Hero".Instances with 0
    Expression: 100 - 0
    Expression: 100
    SB_Open_Shoves_75%_78_Vs_Hero_C - Result: 100.00
    Sample: 100
    found note: [C]SB_Open_Shoves_75%_78_Vs_Hero_C(100.00 - sample: 100) VALUE: 100 SAMPLE: 100
    OUTPUT: SUCCESS

    I am unsure why NoteCaddy is doing the first test (NC."SB_Open_Shoves_75%_78_Vs_Hero). I have not specified it anywhere in the composite definition or color definition. I am confused where this is coming from.
    Attached Files Attached Files
    Last edited by nbenitus; 10-08-2014 at 11:56 PM.

  2. #2
    NoteCaddy sreticentv's Avatar
    Join Date
    Dec 2009
    Location
    No direction but to trust the final destination
    Posts
    6,481

    Default

    Try using a prefixed badge where both definitions share a unique prefix then set the 10% badge to have a higher priority than the 25% and add the prefixed badge to your HUD one time
    NoteCaddy Manual | Coaching Packs | Blog
    NoteCaddy experts: a.k.aAlso, Catalyst_Kh, Derders, karstenkloss, scoobediah (NoteCaddy Edge)

  3. #3
    Senior Member
    Join Date
    Jun 2013
    Posts
    579

    Default

    If solution with shared prefix works, then it is way more convenient than a bunch of composite triggers, because you can simply stack a lot of badges for all different ranges, grouped by prefixes by stack sizes and/or positions and so on.

  4. #4
    Senior Member
    Join Date
    Sep 2011
    Posts
    132

    Default

    Thanks for the input guys, will try it .

  5. #5
    Senior Member
    Join Date
    Sep 2011
    Posts
    132

    Default

    If only I had known earlier ...

    Works like a charm, did not know about this feature . Thank you so much!

Similar Threads

  1. Composite definition help
    By Libera in forum NoteCaddy
    Replies: 15
    Last Post: 08-17-2014, 01:15 PM
  2. Use of Custom Color in a composite definition
    By SeriAce in forum NoteCaddy
    Replies: 1
    Last Post: 06-25-2014, 04:58 PM
  3. Composite Definition Bug 2
    By dmitry10 in forum NoteCaddy
    Replies: 3
    Last Post: 05-30-2013, 08:08 AM
  4. Composite Definition Bug
    By dmitry10 in forum NoteCaddy
    Replies: 1
    Last Post: 05-04-2013, 02:09 PM
  5. Replies: 6
    Last Post: 07-17-2012, 08:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •