View Single Post
01/11/21, 02:51 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,994
The problem is:
ESO is not allowed to access your local files.
Only the SavedVariables can be used and they need a decent lua table to read the data from,
or you could create a lua file in your addon table which holds this information in a table.
So there would be the need to replace/enhance the SV/the lua table file somehow, via an external tool or a client.exe shipped with the addon.
And this is something that virus tools block (or tend to).

The addon should work, it's just tricky to add new questions etc. It's not that simple that you could copy&paste excel sheets or similar.
You'd need to transfer them the corret lua table format first, by external tools.
But perhaps it would be possible to create the questions and answers data in an excel, and then (by the help of excel formulas) add the lua needed table surroundings. I did such within LibSets e.g.
You store the question in column a, the answers in columns b, c, d (multiple choice e.g.) and then you need a formula to concatenate all of them + adding the table lines end , into column d.

Then you'd be able to copy&paste the whole excel sheet's column d generated code contents into the lua file's table.

A table in lua looks like this:

Lua Code:
  1. tableName = { -- opening tag
  2.  [keyName1] = value1, -- , ends a line
  3.  [keyName2] = { -- subtable open
  4.    [subTableKeyName1] = value2,
  5.    [subTableKeyName2] = value3,
  6.  }, --subtable close
  7. } --closing tag

Last edited by Baertram : 01/11/21 at 02:57 AM.
  Reply With Quote