Page 2 of 3

Re: Shandalar Card List (March 2016 Update)

PostPosted: 22 Mar 2016, 11:58
by Rawky
stassy wrote:Thanks very much for the list, is it possible to convert it to pre-xlsx compatible format? (office 97/2003 compatible?)
Added to previous comment. Mind the noted change in tab 3. This may be nothing, not sure. I'm half asleep right now.

Re: Shandalar Card List (March 2016 Update)

PostPosted: 22 Mar 2016, 14:13
by Rawky
New Question: How can I edit the gold price values on individual cards? I'd like to make my own price list, which I will share when complete.

New Question: Is there a way to make rares and mythics as [NoSale]? I want them available as quest rewards from the card picker, but not available for sale in towns. I didn't see it as an option in Shandalar.ini but I figure I might as well ask.

Re: Shandalar Card List (March 2016 Update)

PostPosted: 22 Mar 2016, 14:20
by Aswan jaguar
In update topics there is a "How you can help, even if you're not a programmer" among other things it says:
la.Redesign the card pricing formula.I like to think that the function base_sell_price() in src/shandalar/replace_functions.cpp is more or less legible even to a nonprogrammer, but if not, there's a simpler restatement of it here.

Re: Shandalar Card List (March 2016 Update)

PostPosted: 22 Mar 2016, 14:55
by Rawky
Aswan jaguar wrote:In update topics there is a "How you can help, even if you're not a programmer" among other things it says:
la.Redesign the card pricing formula.I like to think that the function base_sell_price() in src/shandalar/replace_functions.cpp is more or less legible even to a nonprogrammer, but if not, there's a simpler restatement of it here.
Thank you kindly for the link. My search terms were a little off.

I'm alright at programming logic in general. Language-specific tasks take me a while to pick up, since I'm not presently practicing any.

If I am understanding this correctly, setting prices programatically based on type, casting cost, and abilities seems wonky as all hell (to me, anyway). Is that the only way to do it?

Edit: I downloaded NotePad++ and I'm skimming through the source files. This will take me a while to piece together.

Had another question pop up while looking at lair.cpp
Is it possible to add another lair type (19) that spawns a random dungeon, with a random host color, with an opposing permanent in play (perhaps selected from a new list), and a variable quantity of rare/mythic dungeon rewards?

Re: Shandalar Card List (March 2016 Update)

PostPosted: 22 Mar 2016, 20:33
by Rawky
Here's some info on the Shandalar card list database that I made.

I am using Magic Assistant (102 MB download from the link). No fancy install, just unzip it where you want and then dive into magicassistant.exe

On your first run, it will ask you for a folder location which will be where you want to store your card collection. This folder will fill up to maybe 300+ MB or more, depending how many individual cards you look at when using it. Most of it is image files of each card that MA grabs from Gatherer, provided that you have an internet connection when doing so.

You can start building your own collection, or take the xml file below and drop it into \magiccards\Collections (I recommend you close MA when you replace the file).
main.rar
(148 KiB) Downloaded 423 times
main.2016.July.28.rar
(170.33 KiB) Downloaded 374 times


Then you'll have nearly all the cards in Shandalar. Please note that the Astral set cannot be added to this database.

My main purpose for making this was so that I can use the card filter feature while looking in the "My Cards" tab. I will be using this mainly for building enemy decks, but it can also be used to figure out what's out there in the game that you might want for your play deck(s). My intent is to just use MA for searching among the available cards and deciding which and how many I want, then using deck.exe to actually make the decks (note: not all Shandalar cards are actually in deck.exe). This is where you can add Astral cards, if need be. For enemy decks, I just manually cut/paste the deck list blocks from its /Playdeck .dck file and into the /Deck enemy .dck file.

Another advantage of MA is portability. I can use it at home or at work, whenever inspiration or curiosity strikes me, and the only file I need to transport is the the main.xml. I attached it to a draft email in my hotmail account, so I can access it from any computer and then just download MA from SourceForge. No muss, no fuss.

NB: Building this database was a long (10 days, 2-7 hours per day) and mind-numbing process. I may have accidentally added a few cards that aren't in Shandalar. The card total is maybe 10ish cards higher than it should be, but I didn't spot any extras when I exported the collection and added the Shandalar card IDs in excel. Maybe I'm just seeing ghosts. If you happen to discover any, please let me know. I'd love to weed them out.

Example: "How many 1 casting cost Goblins are in the game?" 39. 5 are black, the rest are red. 4 of the red ones are also castable with an alternate color. 6 of the red ones have 2 power, 4 of those have 2 toughness. 3 of the 39 are rare (2 red, 1 black) and 6 of the red ones are uncommon. Only 1 of the 39 has no rules text. Only 1 of the 39 has 0 power. This is all just stats though. You can examine all the finer points of each card in order to pick which ones you like.

I'm excited to get started using it. I hope other people find this helpful. :D

Re: Shandalar Card List (March 2016 Update)

PostPosted: 17 Apr 2016, 23:23
by Rawky
Aswan jaguar wrote:In update topics there is a "How you can help, even if you're not a programmer" among other things it says:
la.Redesign the card pricing formula.I like to think that the function base_sell_price() in src/shandalar/replace_functions.cpp is more or less legible even to a nonprogrammer, but if not, there's a simpler restatement of it here.
I've been giving this some thought now and then, which lead me to some new questions.

I'm not familiar enough with the code in base_sell_price() nor the things it refers too outside of that file. Is it possible with code to distinguish between a static combat ability like First Strike and an activated ability like "{t}: deal 1 damage to target creature or player" without naming them explicitly? Also, are drawbacks like on the Juzam Djinn noted as an ability or something else? Is Defender considered an ability?

Re: Shandalar Card List (March 2016 Update)

PostPosted: 18 Apr 2016, 14:03
by dingbat1
Rawky wrote:Then you'll have nearly all the cards in Shandalar. Please note that the Astral set cannot be added to this database.
It's not something worth working on now, but it would be awesome to have some decks built around the Astral cards

Re: Shandalar Card List (March 2016 Update)

PostPosted: 20 Apr 2016, 11:43
by stassy
Most astral card are RNG based (but Aswan jaguar), but there are already others deck with RNG with more "useful" cards (Chaos Orb and Fiery Gambit flip coin type deck)

Re: Shandalar Card List (Updated July 2016)

PostPosted: 29 Jul 2016, 04:55
by Rawky
Magic Assistant collection file updated here.

Excel file update coming soon.

Re: Shandalar Card List (Updated July 2016)

PostPosted: 15 Sep 2016, 12:17
by lujo
You can use Forge for this purpose way more easily, as all you have to do is stick some dummy files in the card folder for cards that are missing in forge such as astral ones. There's a large number of filters there too, for whatever you need.

The only hassle there is actually updating the "shandalar" cardset list whenever Korath makes an update*, and keeping the missing card fiiles somewhere where they won't get lost which is why I don't have a nice little bundle to give you right now. But I'll have it when I get back to my wholesale enemy decks remake.

Whish there was a way to talk the Forge guys into including the files in the standard Forge release, and-or someone writing a file that could easily turn forge decklists into shandalar ones.

EDIT: Errr, I remebered how to do it in 5 mins just now, so it wasn't an actual hassle to update to the latest patch.

Re: Shandalar Card List (Updated July 2016)

PostPosted: 15 Sep 2016, 12:59
by stassy
I though there was an option to convert Shandalar deck file to Forge deck, so maybe the reverse is possible...

Re: Shandalar Card List (Updated July 2016)

PostPosted: 15 Sep 2016, 20:05
by Korath
If the cardlist that Forge inspects is in a reasonable format, I can make an option for Shandalar to write it directly, separately from what shandalar -c does.

Re: Shandalar Card List (Updated October 2016)

PostPosted: 16 Oct 2016, 02:48
by Rawky
Magic Assistant Library
main.2016.OCT.15.rar
(171.27 KiB) Downloaded 380 times

MS Excel Card List
Shandalar Card List (xls).rar
(639.31 KiB) Downloaded 488 times

Shandalar Card List (xlsx).rar
(1.14 MiB) Downloaded 1081 times

Re: Shandalar Card List (Updated December 2016)

PostPosted: 30 Dec 2016, 21:39
by Rawky
So just yesterday I realized that my October update was missing two whole sections of cards. Whoops! Those have been added to this update.

Put the XML file into the Collections subfolder of card library folder. All collection files will be accessible from the My Cards tab for browsing or deck-building purposes.

You can also import the new list into your main collection list from the Card Navigation tab, under the Collections tree. Then you can delete the new XML file, since you'll now have access to all the cards via your main collection. However, this step is not required.

Re: Shandalar Card List (Updated December 2016)

PostPosted: 02 Jan 2017, 02:09
by PsyintZ
Rawky: I've been trying for a few days to download your new 2016 DEC Update to no avail. Do you have another working link, perhaps? Thanks in advance!