Collection & LCD

    Mar 02 2011 | 3:32 am
    Hello hello,
    I'm a new user and running in to a few problems with my patch that I just can't seem to figure it out. Hoping someone here can shed some light.
    Patch attached.
    Essentially I am trying to make a list of countries that tally by number of inputs and then draw in decreasing order.
    The first problem is the collection, specifically when I try to sort. The entries should tally themselves according to the country and add one each time a specific country is entered. However, the collection is listing duplicates. If you try to enter a few different countries you'll notice that duplicated occur. This part of the patch is located in the top left corner of the patch, marked in green.
    The second problem is the output from the collection into the LCD object. I've tried several different approaches to try and draw the information from the collection to the LCD so that the tallies are displayed in order and sequence with their corresponding countries. I was able to draw them out but they would not obey their ordering or sorting. These sections are marked in orange.
    Anyone have any ideas?

    • Mar 02 2011 | 4:59 am
      that jit.cellblock thing looks familiar ;)
      guess who is procrastinating again...
      have a look at the patch below. I don't get any duplication errors... could you give me steps to reproduce? I think the lcd drawing is now working as well. I recorded the odd/even positions from your calculations into a coll and then access them when I need to draw the text. Have a look at let me know.
    • Mar 02 2011 | 3:40 pm
      Hahahaha so so so good to hear from you again! Thank you a hundred times, I really do appreciate the help. I'm so curious as to what this project of yours is that's warranted so much procrastination hahah.
      To reproduce the duplication, click on Zimbabwe. Then click on Zimbabwe again. Then click Zambia. Now click Zambia again. When I do this, two separate Zambia entries occur. It is also reproducible elsewhere with other entries. More entries after this point produces more duplicates.
      I'm sure I'm just missing something very obvious here.
      LCD drawing works much, much better now. I didn't think of using a list of coordinates to draw from.
      However, the problem I'm having now is that there are 53 entries in the coordinate list, so when the number of different entries or countries exceeds 53, the entries draw on top of each other.
      Also, I want to skip two rows every tenth row. In this case, do I simply remove those specific coordinates which I do not want to write to from the bgTest 1 coordinate list?
      Thank you again! Really.