AJAX local CSV

0 favourites
  • 2 posts
From the Asset Store
Ludo Local Multiplayer board game can be played by 2 to 4 players
  • 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"

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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! <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)