![]() |
OpenDocument spreadsheet (.ods) reader
Request: A function that can read the specified spreadsheet file and return a two-dimensional array of cell values for each sheet in the file.
Rationale: Many servers use different formats of text files for storing static read-only data like item archetypes. This often requires using a text editor that doesn't allow for much flexibility as far as comments and readability goes. Using spreadsheets allows a wide variety of sophisticated techniques to be used to generate the values of the cells, such as macros and formulas. It also makes editing much easier since the columns can be annotated and formatted in helpful ways, and multiple related worksheets can be grouped into one file. Additionally, these files can be read and written by either OpenOffice Calc or Microsoft Excel. ODS files are ZIP files containing XML files. In most languages this is something that could be done by script, but not with Graal unforunately, unless something has changed. Source: The source of this feature request is this wiki article explaining its extensive use in Dragon Age: Origins by BioWare. Most of the previous paragraph was quoted from the article: http://social.bioware.com/wiki/datoolset/index.php/2DA I'm quite used to having to make do with what Graal has though, so not expecting implementation, but figured I should get it out there anyways. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Well, if it's possible to just write your own parser, why not just ask Stefan to enable the .ods and .xls extensions?
|
Quote:
And it isn't possible to write my own until I decompressfile will work properly. |
Quote:
|
Quote:
|
Quote:
Integrating a spreadsheet processor into Graal that understands macros and formula seems a bit overkill, at least convert it to a CSV text file or something before uploading. :I |
Quote:
|
Quote:
What I was trying to get at is that as I understand it, this Dragon Age thing does not have Excel inside the actual engine either. |
Quote:
PHP Code:
|
I'm thinking that Inverness would find more ideal to be able to just edit the OpenDocument spreadsheet and upload it to have changes take effect, instead of having to run some macro every time and update an array in a script somewhere.
I'm not sure that, in the scope of Graal, that doing all this is completely worth while, though...unless you're planning some huge server on the scale of Dragon Age lol |
Quote:
Quote:
Quote:
Quote:
|
Isn't there a way you could convert it from To/From SQL?
|
Quote:
|
I think I can see his point. In essence a spreadsheet is basically a more visual form of an SQL table (and much easier to work with, not that SQL is difficult). While there is the SQL Explorer readily available, it is just much easier and a much more viable solution to use a spreadsheet.
You have to think about development as something involving more than just yourself. Just because you are easily able to use the tools already available to us doesn't mean that others on your team are. Spreadsheets would make it trivial to have just about anybody with a good idea to be able to tweak stats and create items, characters, and such, so that you don't have to. That's the real value I see in this, because I, much like many of the people in this thread, am perfectly able to edit an ini file or manipulate SQL. But I know people on projects I'm on who get a lot more done and make better content if they could manipulate the data too. |
Well if this isn't added there's Excel 2003 XML Format (works in OpenOffice too), which looks pretty easy to parse and doesn't require any decompression.
|
Quote:
That or any XML parser I've seen on Graal doesn't consider it valid xml |
I think at this point in time people should stop suggesting new ways of doing things and should actually do things. By saying you need these kind of additions isn't really enabling anything but is limiting yourself. Common theme lately seems to be putting wrappers around wrappers for what could be simple tasks with mass levels of obfuscation yet nothing ever comes out of it.
|
Extracting zips is not working on server-side yet because the folder-access rights check is not working for the npcserver yet. XML should work fine though, it's using the standard libxml2.
|
| All times are GMT +2. The time now is 08:46 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.