playMaker

Author Topic: [SOLVED] ArrayMaker - Index Of after Split Text returns -1  (Read 3091 times)

IDontKnow

  • Junior Playmaker
  • **
  • Posts: 56
[SOLVED] ArrayMaker - Index Of after Split Text returns -1
« on: August 17, 2013, 11:18:43 AM »
I'm having an issue with ArrayMaker where the 'Array List Index Of' action always returns an 'Index Of' result of -1.

This only happens if I've filled the array using a text file via the 'Split Text to Array List' action.

The array list looks fine in the inspector tab, and otherwise seems to work without any issues.

Is there something I'm missing?
« Last Edit: September 09, 2013, 02:56:57 AM by zaskaggs »
--

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayMaker - Index Of after Split Text returns -1
« Reply #1 on: August 19, 2013, 04:19:39 AM »
Hi,

 likely your text file doesn't conform to what you expect. Can you share the file?

bye,

Jean

IDontKnow

  • Junior Playmaker
  • **
  • Posts: 56
Re: ArrayMaker - Index Of after Split Text returns -1
« Reply #2 on: August 20, 2013, 02:37:56 PM »
Sure thing, attached.
--

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayMaker - Index Of after Split Text returns -1
« Reply #3 on: August 26, 2013, 08:27:34 AM »
Hi,

 I can reproduce, I am really unsure about the cause right now. Unfortunatly, I have to leave this week for Unite, so I will only be able to address this next week. Please bump :) then if you don't hear form me.

 bye,

 Jean

IDontKnow

  • Junior Playmaker
  • **
  • Posts: 56
Re: ArrayMaker - Index Of after Split Text returns -1
« Reply #4 on: September 08, 2013, 11:47:37 AM »
Bump.
--

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayMaker - Index Of after Split Text returns -1
« Reply #5 on: September 09, 2013, 02:38:07 AM »
Hi,

 Ok, it's your file encoding that is not suitable. I had this case before.

 Basically, open your test file in MonoDevelop, and touch it ( so you can save it), and when you will save it, it will warn you that you have inconsistent line ending, click on Convert, then it will work.

 I have attached the text file, processed as described above.

Bye,

 Jean

IDontKnow

  • Junior Playmaker
  • **
  • Posts: 56
Re: ArrayMaker - Index Of after Split Text returns -1
« Reply #6 on: September 09, 2013, 02:56:34 AM »
Works like a charm! Thanks Jean.  :)
--