Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: robmuzz on January 08, 2016, 06:47:17 PM
-
Hello all,
It's been a while since I posted here but I need help again.
There are a few good tutorials out there about Arraymaker, but being somebody who knows nothing about programming (other than over a year with Playmaker,) what I want to do is make a .txt file or something and read it from Playmaker.
I'm pretty sure what I need is very simple to do but I need help understanding the basics... Is there any special formatting needed when writing the list? (I think the items need commas between them) Is there anything else?
If I have (for example,)
Animals;
Cats,Dogs,Rabbits
and
Vehicles;
Lorries,Cars,Vans
How do I specify an Animal and then a Vehicle?
Thank you in advance,
Rob
-
To do something like that you'd have to use Arraymaker at this time because the only action that will bring in a text file and split up the entries using a divider like a comma is "Split Text To Array List"
That action will notallow you to make categories though
For that you'd import either an xml or json file
I recently made a tutorial on bring in data with categories using an xml file
https://www.youtube.com/watch?v=gqRwEPGjWpk (https://www.youtube.com/watch?v=gqRwEPGjWpk)
There was also a new json import action posted in the new actions thread on these forums that you could use-
You could also use assets like G2U or Game Data Editor- I find their workflows clunkier than using Playmakers native tools like in the above tutorial but there are several options-
-
Thanks for the tutorial i tried to figure it few months back but it was complex to do without proper samples and getting started.
now your tutorial will help lot other to know how
-
We'll be releasing more actions that use arrays soon.
As a sneak peak I've attached String Split and String Join actions.
These should do what you need. Let me know how you get along...
-
Thank you for all your help and replies. I did watch your tutorial mdotstrange xml looked too complicated for me, and I've never even heard of a json before now ! :p
Forgetting sub categories for the moment, I'm just pleased I was on the right track with a txt file and comma separation.
So, do I need to name the txt file anything special? I assume it goes into the Assets folder?
Thank you again,
Rob