Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Retrieving data from Excel Spreadsheet

Hi,
I am using Twine 2.0 with Sugarcube. I want to import Data from Excel spreadsheet, so that when I will change data in the Spreadsheet it should get reflected in the story. Is this possible?

Comments

  • Someone please help me in importing data
  • This is not a simple thing to do because by design a web-browser limits (when, how, and what) access to external files it allows.

    I have not done this myself but you may able to do what you want using the js-xlsx library to access the Excel spreadsheet, and you may also want to combine it with something like the alasql library to make your spreadsheet queries easier.
  • Also note that reading from spreadsheets in JS is notoriously slow. I don't recommend you go this route unless you have a very good reason to want spreadsheets. Far simpler would be to parse CSV, which is much faster as it's simple text and can be exported from excel.

    Why do you need excel data in the game?
Sign In or Register to comment.