Plugins Section

General discussion regarding the OpenMW project.
For technical support, please use the Support subforum.
Post Reply
User avatar
sandstranger
Posts: 438
Joined: 19 May 2014, 19:53
Location: Oblivion

Plugins Section

Post by sandstranger » 20 Aug 2014, 16:26

4
Last edited by sandstranger on 18 Jan 2018, 15:36, edited 1 time in total.

Digmaster
Posts: 22
Joined: 20 Apr 2014, 05:12

Re: Plugins Section

Post by Digmaster » 21 Aug 2014, 03:40

Does it need anymore functionality then just an order of files? If not, you might just want to go with, well, a dumb list of files in a text file. I don't see the need for anything more complicated?

User avatar
psi29a
Posts: 4905
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Plugins Section

Post by psi29a » 21 Aug 2014, 07:13

keep it simple, a simple csv file is easy to read for a human and serialize for a machine.

sqlite3 would just be another dependency that doesn't gain you anything, it is useful for storing lots of K/V and searching on those K/V.

Json is also OK, but more verbose.

CSV is perfect for this I think.

How often do you change the settings?

User avatar
sandstranger
Posts: 438
Joined: 19 May 2014, 19:53
Location: Oblivion

Re: Plugins Section

Post by sandstranger » 21 Aug 2014, 09:44

4
Last edited by sandstranger on 18 Jan 2018, 15:36, edited 2 times in total.

ezze
Posts: 481
Joined: 21 Nov 2013, 13:20

Re: Plugins Section

Post by ezze » 21 Aug 2014, 09:51

About sqlite and dependencies, it can easily avoided using the amalgamation .c file directly, compiling it and linking it with openmw.

I am not sure for this particular task, but in some project I worked on having a db proven far superior than any other alternative. (transactions, tables, easy-to-do queries or serialization...)

SquireNed
Posts: 402
Joined: 21 Dec 2013, 22:18

Re: Plugins Section

Post by SquireNed » 21 Aug 2014, 16:32

You could also consider YAML if user-legibility is a concern and you've got a need for something that provides more data than a CSV.

Post Reply