Page 2 of 2

Re: Forge Beta: 07-29-2011 ver 1.1.1

PostPosted: 31 Jul 2011, 15:12
by Sloth
gos wrote:Is there a possibility of getting a full list of all implemented cards with each release? I maintain a list myself, and use the new cards list for each release to add to it, but there is a mismatch at this point.

I'm comparing this list with a list of decks from the various columns on http://www.wizards.com to see which ones are forgeable...
There is no maintained list of cards, but you can look directly into the cardsfolder or the deck editor.

Maybe the Python scripts can produce a list of cards as a side product?

Re: Forge Beta: 07-29-2011 ver 1.1.1

PostPosted: 31 Jul 2011, 15:13
by Braids
gos wrote:Is there a possibility of getting a full list of all implemented cards with each release? I maintain a list myself, and use the new cards list for each release to add to it, but there is a mismatch at this point.

I'm comparing this list with a list of decks from the various columns on http://www.wizards.com to see which ones are forgeable...
if you're running a unix os or cygwin, you can run the following commands:

cd forge-home
cd res/cardsfolder
find . -name '*.txt' -print0 | xargs -0 grep '^Name:' | sed -e 's/^[^:]*:Name: *//g'

it takes a while to run.

Re: Forge Beta: 07-29-2011 ver 1.1.1

PostPosted: 31 Jul 2011, 15:13
by friarsol
gos,

If you have python installed you can use this script. Just drop it in your /res/ folder and run from there. I'm outputting as one Name per line but you should be able to tweak as necessary.

Code: Select all
#!/usr/bin/env python

import os,fnmatch

#get master card list and print to file fullCardList.log
folder = "cardsfolder"
err = open('fullCardList.log','w')

for root, dirnames, filenames in os.walk(folder):
   for fileName in fnmatch.filter(filenames, '*.txt'):
      if fileName.startswith('.'):
         continue

      # parse cardsfolder for Card
      file = open(os.path.join(root, fileName))

      line = file.readline().strip()
      # Handle name
      name = line.replace('Name:','')
      err.write(name + '\n')
      
      file.close()

err.close()
Hopefully the forum doesn't kill my whitespace

Re: Forge Beta: 07-29-2011 ver 1.1.1

PostPosted: 31 Jul 2011, 15:27
by Chris H.
gos wrote:Is there a possibility of getting a full list of all implemented cards with each release? I maintain a list myself, and use the new cards list for each release to add to it, but there is a mismatch at this point.

I'm comparing this list with a list of decks from the various columns on http://www.wizards.com to see which ones are forgeable...
`
Go to the constructed mode deck editor. Highlight the first line. Scroll to the bottom and shift (?) click on the last entry. In essence you want to select each and every card. Do a copy to place all of this data onto your clipboard.

Paste the contents into a spreadsheet program set up to have enough rows for the number of cards included in forge. Select the column of card names and do a copy and you will have the data that you are looking for.

Re: Forge Beta: 07-29-2011 ver 1.1.1

PostPosted: 31 Jul 2011, 16:18
by gos
Chris H. wrote:
gos wrote:Is there a possibility of getting a full list of all implemented cards with each release? I maintain a list myself, and use the new cards list for each release to add to it, but there is a mismatch at this point.

I'm comparing this list with a list of decks from the various columns on http://www.wizards.com to see which ones are forgeable...
`
Go to the constructed mode deck editor. Highlight the first line. Scroll to the bottom and shift (?) click on the last entry. In essence you want to select each and every card. Do a copy to place all of this data onto your clipboard.

Paste the contents into a spreadsheet program set up to have enough rows for the number of cards included in forge. Select the column of card names and do a copy and you will have the data that you are looking for.
Perfect. That'll do it for me :)

Re: Forge Beta: 07-29-2011 ver 1.1.1

PostPosted: 15 Aug 2011, 12:39
by Corwin72
Will there be a new beta soon?

Re: Forge Beta: 07-29-2011 ver 1.1.1

PostPosted: 15 Aug 2011, 13:17
by Chris H.
Corwin72 wrote:Will there be a new beta soon?
`
Hope to be ready of done on Friday.