It is currently 12 Jun 2025, 13:04
   
Text Size

New preference : exclude cards from desired edition section

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

New preference : exclude cards from desired edition section

Postby Ayora » 18 Sep 2024, 19:53

Hello,

I'm a Java developer since 12 years now, and a Magic player for even longer. And of course, I really enjoy Forge!
I would like to add a new feature on Forge for something that bothered me.
I would like to add a preference to exclude "borderless", "showcase", "promo", ... cards from Forge.

Personally, I like to have "regular" alternate arts for cards, but I really dislike modified frame cards, borderless cards, foils, ...
It would be cool to have the choice to not load those cards in Forge at all.
Moreover, it will free some space on hard drive as we won't download picture of undesired cards (then we can download High res pictures for the rest :D )

I see that in CardEdition.java, there is the list of known sections. It would be relatively easy to filter those we don't want to be loaded in Forge.
I have successfully tested to exclude "borderless" and "showcase" cards. My previously saved deck that contained the 3 art versions of the same card (Mabel, Heir to Cragflame) is now displaying 3 original art.
As I understand the Forge's mechanic, it is ok to not load a card if at least one card with the same name is still present in the whole game (meaning we can exclude reprints, promos, etc.

The big part of the job will be to update edition "txt files" to make sure every section is correctly defined, as I saw a lot with only "[cards]" section. It will also need to allow "cardName1.fullboder.txt" to be selected instead of "cardName.fullboder.txt" in case we already downloaded all the card arts and suddenly disable alternate arts and now load only 1 unique version of the card. But I'm okay to do that.

Before starting the work, I would like to ask if such a modification seems feasible to you (long time forge developers)? And if I'm allowed to work on it and then make a pull request?

In my first tests, it worked as intended, but I don't know yet if it could produce errors in other part of the game (adventure? Static IA decks? Multiplayer game?) or with specific sets.
For instance, I saw people complaining about Alchemy cards. They could be easily excluded with the solution I suggested, but then, what happens if Player A with no Alchemy card loaded play against player B with Alchemy cards in his deck? So maybe be this preference option should be strictly used for alternate art exclusion?

I hope I'm clear enough as English is not my native language. Thank you for reading ;)
User avatar
Ayora
 
Posts: 2
Joined: 18 Sep 2024, 18:56
Has thanked: 0 time
Been thanked: 0 time

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 21 guests


Who is online

In total there are 21 users online :: 0 registered, 0 hidden and 21 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 21 guests

Login Form