Page 1 of 1

How to get the "String form" of Items

Posted: Tue Jun 10, 2014 3:30 am
by davisdude
I see it in the No-Game screen code, but I was wondering: How would you get the string representation of a picture or sound? (I'm trying to do it for a sound, so that would be great). Thanks!
I tried to find a link for reference, but currently the bitbucket is down! :o

Re: How to get the "String form" of Items

Posted: Tue Jun 10, 2014 4:48 am
by master both
Are you talking about these? They are files encoded in Base-64, which are decoded with this function. I don't know if it can work with sound files, but you could try, here I found a base64 encoder.

Re: How to get the "String form" of Items

Posted: Tue Jun 10, 2014 2:27 pm
by davisdude
Thanks! That's what I was looking for. :)