finol-digital / Card-Game-Simulator

Create, Share, and Play
https://www.cardgamesimulator.com
Mozilla Public License 2.0
323 stars 73 forks source link

Can there only be 1 image for all cardbacks? #133

Open gitHu6-newb opened 5 months ago

gitHu6-newb commented 5 months ago

Awesome job making this! I'm having lots of fun playing with it. Is there a way to have more than one CardBack for different decks? As I understand it, the CardBackImageUrl is the only pic for a cardback, and acts as a global back image for all cards. Is there, or can there be, a way to have another image for all cards of a certain SetId? Many thanks!

Describe the solution you'd like To be able to see multiple decks on the table with different cardback pictures

Describe alternatives you've considered i dunno, i'm a newb

Additional context Add any other context or screenshots about the feature request here.

davidmfinol commented 5 months ago

Currently, only 1 card back is supported, but I do want to add support for more in the future!

DrVecctor commented 2 months ago

+1

davidmfinol commented 1 month ago

With v1.114, I'm adding initial support for different card backs. I'll build out deeper support in an upcoming release.

DrVecctor commented 1 month ago

How does this initial support work? Do I have to edit any file (for a deck, for instance) to set the image file that should be used as back?

davidmfinol commented 1 month ago

It currently requires manually editing json files for your game in the CGS Games directory. Documentation is available at https://www.cardgamesimulator.com/custom.html

To give an overview, though: 1) The card back images go into the backs folder 2) You have to declare cards in AllCards.json that use the back 3) You can have decks use the card with that back by placing the back id next to the card name in <> brackets (ie 1 Card Name <cardBackId>)

davidmfinol commented 22 hours ago

Targeting full rollout of this feature in v1.120: