My question is pretty simple but hard to put to words, what is the best way to store trading card like data.
What im aiming for is a number that can be loaded each time the player joins that is what the player owns in terms of cards. The problem is im looking to have around 200 cards at launch alone and the number can get really long.
here are the methods ive tried in the past:
five digit ids for what cards are owned ex:
000010000200003000040000500006…ect (got way too long too fast and made tracking the amounts of each card a hassle
0 for unowned, 1 for owned: 1001110111…ect (cant store # of cards owned)
I want to try doing something like this: 2;5;3;0;0;2;1;… where each number would be how many cards the player owns and its spot would be the card’s id, however with 200 cards it alone would be 400 characters and only grow once people begin obtaining of each card. Would this be a data efficient method or should i try something else? Thank you!
I should have also mentioned in my original post is that this is to be for datastores, I’m gonna do another read over of the wiki page but to my knowledge tables cant be stored, if they can be, than that’s probably how I’m going to do it
Ive tried another method which would store the 3 different kinds of cards as different data stores which wasn’t really efficient, im starting to become completely lost with this, is there anyone whos made a functioning TCG that would be willing to share a very simplified method of storing card data? I do not want to completely give up on this project but over 3 iterations its starting to get frustrating.
Should I add a cap to the amount of cards you can have of each id? then the 00111101 idea would work, limiting it to 10 copies of the same card looking something like this (-74059–24…) 0 standing for 0 cards and 0 standing for 1, 9 standing for 10.
Limiting it at 4 could also make good sense as a play set is 4. In this same regard i can make it once a card is pulled you have an unlimited amount, 4 still being the cap for amount allowed in a deck. This would kill a trading scene but if that needs to be cut in favor of a functioning game, which i doubt, than so be it.
Im not sure how bumping or updating this would work but i hope this is how, im really becoming lost and would really appreciate the help, thank you!