playMaker

Author Topic: Read Text Asset not reading CSV  (Read 1244 times)

HanTheMan

  • Playmaker Newbie
  • *
  • Posts: 7
Read Text Asset not reading CSV
« on: June 23, 2020, 04:39:47 AM »
Hello All,

As a newbie I have been trying to get Playmaker to read a straight-forward, comma-separated CSV file. Downloaded all the Add-ons and have been trying different things.
Now I am trying Read Text Asset, then Read CSV, and on from there.
But I can't get Playmaker to read the file.

What am I missing? Can anyone give me a quick hand? Have a link to the appropriate tutorial. Although I have been watching those for 4 days now.

Much appreciated.

HanThe Man

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Read Text Asset not reading CSV
« Reply #1 on: June 23, 2020, 11:55:09 AM »
Hi,
Maybe Try 'Resources Load'

Make a folder Called 'Resources'

Then its best to make a subfolder (for example Csv Files)

Then on the 'Resources Load' Asset Path set this : "Csv Files/Textbestand Unity001" (without the quotes)
And store as a string.

The Resources folder can be placed anywhere and you can use multiple Resources folders (that's why its best to use subfolders)

HanTheMan

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Read Text Asset not reading CSV
« Reply #2 on: June 24, 2020, 06:55:48 AM »
Hi Djaydino,

Thank you very much. This ended up solving the problem. Although I have had to change my CSV to semicolon separators. Commas didn't work.
I advanced more this morning than all of last week.

New things keep cropping up. One compiler error I could not find any feedback on is: "OUPPS found a \r".

Any ideas?

Again thank you very much for helping a newbie out.

Best regards,

Han

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Read Text Asset not reading CSV
« Reply #3 on: June 24, 2020, 01:29:33 PM »
Hi.
Sorry i have never used CSV only xml / json

but maybe you have some directory / file targeted.

for example myfile\redGrass.png

HanTheMan

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Read Text Asset not reading CSV
« Reply #4 on: June 24, 2020, 01:52:39 PM »
Thanks again, Djaydino.

Not really clear what's happening here, but it's not an error that stops the program from running, so I'm going to keep going. Appreciate your input getting me unstuck.

Kind regards,

Han