It is currently 26 Sep 2017, 14:32
   
Text Size

Decks for Magarena

Moderators: melvin, beholder, ubeefx, ShawnieBoy, Lodici, CCGHQ Admins

Re: Decks for Magarena

Postby mike » 24 Sep 2015, 18:10

All sound very interesting - how would you actually implement it though? Magarena does not use a database (yet!) so this info would most likely need to be stored in each deck file or maybe as separate text files where each file represents a tag containing lists of matching decks. Potentially could be a right pain (or slow) if relying solely on the filesystem (through directory organization or lists of files etc)!
This is what I was getting at with the API.

Adding a local database to magarena seems very clunky and error-prone to me. Just think about ensuring compatibility after upgrades etc. There is also the downside that you can't (easily) move the data to a second device.

So why not create a powerful API that could provide all the functionality of a deck database without adding too much overhead on the client side?

To not overwhelm users with all the decks that are on firemind I could also imagine a curator system where the magarena devs could mark decks as something like "core deck" which would be the equivalent of shipping them with magarena as text files.

Obviously I'm arguing to use firemind because I already built a pretty powerful deck database and have the hosting taken care of. But if you dislike the idea of using some else's servers you could build your own independent API. I'd still argue for that solution over a local database because having the ability to store game data for users remotely feels so important to me. Of course I'm biased here because that's the type of app I work on all the time :)
User avatar
mike
Programmer
 
Posts: 126
Joined: 05 Jul 2013, 17:00
Has thanked: 0 time
Been thanked: 28 times

Re: Decks for Magarena

Postby Lodici » 24 Sep 2015, 19:22

mike wrote:
This is what I was getting at with the API.

Adding a local database to magarena seems very clunky and error-prone to me. Just think about ensuring compatibility after upgrades etc. There is also the downside that you can't (easily) move the data to a second device.
I don't think a database is the answer either, I have my fill of Oracle and SQL in my day job as it is! Magarena is all about doing stuff that I don't get to do normally.

mike wrote:So why not create a powerful API that could provide all the functionality of a deck database without adding too much overhead on the client side?

To not overwhelm users with all the decks that are on firemind I could also imagine a curator system where the magarena devs could mark decks as something like "core deck" which would be the equivalent of shipping them with magarena as text files.
I think using Firemind as a source of decks is a great idea and if we can add a powerful search/query UI to Magarena that will be a major distinctive feature. I still think there will be a demand for locally stored decks as well though which brings us back to how to store and query these decks.
User avatar
Lodici
Programmer
 
Posts: 399
Joined: 13 Oct 2013, 09:44
Has thanked: 29 times
Been thanked: 71 times

Re: Decks for Magarena

Postby sponeta » 27 Sep 2015, 06:22

Sounds like a lot of work... I don't know anything about databases though. Can't you just write a few words in the deck file like the descriptions now?
sponeta
Tester
 
Posts: 131
Joined: 26 Sep 2011, 17:09
Has thanked: 13 times
Been thanked: 22 times

Previous

Return to Magarena

Who is online

Users browsing this forum: No registered users and 5 guests


Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 5 guests

Login Form