playMaker

Author Topic: Arraylist Contains | Action | Not Currently Functioning  (Read 1644 times)

mynameismow

  • Playmaker Newbie
  • *
  • Posts: 4
Arraylist Contains | Action | Not Currently Functioning
« on: February 02, 2022, 06:57:50 AM »
Everything should be working fine but the Arraylist Contains action cannot locate any of the strings I have contained within my Arraylist Proxy. Reference is exact - have tried all possible variations I can think of at this time and nothing seems to work.

Anyone else experiencing this issue.

FYI - my array contains 16480 different items... could it be size?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Arraylist Contains | Action | Not Currently Functioning
« Reply #1 on: February 02, 2022, 07:33:36 AM »
Hi.
Can you make a video showing the issue or some images.
Also what unity / playmaker version are you using?

mynameismow

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Arraylist Contains | Action | Not Currently Functioning
« Reply #2 on: February 02, 2022, 10:04:44 PM »
Just a quick FYI - This forum platform is trash - I just spent 45mins trying to delete attachments that were too big so am only making this post to see if I can clear them.
« Last Edit: February 02, 2022, 10:07:19 PM by mynameismow »

mynameismow

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Arraylist Contains | Action | Not Currently Functioning
« Reply #3 on: February 02, 2022, 10:06:40 PM »
... And they didnt even clear ...

The attached images should give you all that you need...

Playmaker version is most recent 1.9.4.f2<br><br>Unity version is 2021.2.9f1

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Arraylist Contains | Action | Not Currently Functioning
« Reply #4 on: February 03, 2022, 08:31:58 AM »
Hi.

For images, use imgur for example and use a direct link with the insert image button.

There is no reference name set on component and action, it's best to use a reference.

how are you building the array list.
Maybe a space or enter (nextline) is added and that might cause not matching

mynameismow

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Arraylist Contains | Action | Not Currently Functioning
« Reply #5 on: February 03, 2022, 05:49:23 PM »
I've used reference names and they make no difference - have used arraylists many times before in many projects but have not used the "Arraylist contains" action in a couple of years now.

I'm using the "split to text to array list" to populate the arraylist and the strings added to the arraylist contain only the 6 characters of the split string.

The current flow of operations is simply:
1. Split text to array (this action is successful)
2. The split strings populate into the specified arraylist (successful - both with and without a reference)
3. Arraylist contains (this action is unsuccessful)
4. Confirmation of "Arraylist contains" failure = "is not contained event" and "is contained" bool and manually finding and comparing the sting to be checked against the corresponding string within the arraylist.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Arraylist Contains | Action | Not Currently Functioning
« Reply #6 on: February 03, 2022, 10:07:47 PM »
can you sent the text file to me so i can test
also if you can show a image of the split text action with your settings