AJAX local CSV

Get help using Construct 2

Post » Thu Jul 11, 2013 6:27 pm

Can I use the AJAX "GET URL" to open a CSV file that's outside my encoded app? I am hoping to keep the file in the local app folder or at least on the local machine as this game won't have internet access or any network access at all.

Currently I am using AJAX Request Project File and loading my CSV file into an array using CSV2ARRAY. I would like to not have to include my CSV in the Project Files.

I have a small test I built to load a CSV into an array and it works when I use "Request Project File" but not when I use "Request URL".

It could be my URL for the local file is very broken as I can't find any examples of how to do this (because maybe you can't?).

AJAX > Request URL >
Tag "x"
URL "file://.../sample.csv"goblynn932013-07-11 19:24:00
B
10
S
4
G
2
Posts: 133
Reputation: 2,667

Post » Thu Jul 11, 2013 7:42 pm

Ok I feel silly and fixed my own issue.

Once again I am over thinking things... it said "URL" so I was looking to have to put in a whole complex URL...

I simply typed in the file name and it works...

AJAX > Request URL >
Tax "x"
URL "filename.CSV"

Hats off again to Scirra for making Construct 2 so awesome that even -I- can use it!
B
10
S
4
G
2
Posts: 133
Reputation: 2,667


Return to How do I....?

Who is online

Users browsing this forum: SneakyHands and 5 guests

cron