I'm trying to build an abstraction that can read a text file consisting of a list of names of .wav files and put each of the .wavs into an array. I'm using [text] to store the contents of the .txt file and some simple counter stuff to iterate through it and send the names to the respective arrays.
I'm running into something really baffling with the [text get] object, though. If I click a message box with say, 2 in it, and that goes to the [text get], it outputs the third line. If the message box goes into a number box and then into [text get], like the help file for [text get] shows, it also works fine. However, if the counter sends the same number to [text get] it only outputs a bang. The counter just consists of the usual integer and [+ 1] objects, and also a [- 1] before the [text get] since I numbered my arrays starting from 1 but [text] counts from 0.
As far as I can tell, the 2 coming from the number box and the 2 coming out of the [- 1] object box seem like they should be the same thing. But the former correctly outputs the stored text line when the [text] object receives it, and the latter just makes the [text] output a bang.
Any ideas what the heck is going on?
Pictures of patch and test print output attached.