It is currently 14 Jul 2025, 05:47
   
Text Size

Forge Beta: 07-29-2011 ver 1.1.1

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

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

Postby Sloth » 31 Jul 2011, 15:12

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?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

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

Postby Braids » 31 Jul 2011, 15:13

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.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

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

Postby friarsol » 31 Jul 2011, 15:13

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
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

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

Postby Chris H. » 31 Jul 2011, 15:27

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.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

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

Postby gos » 31 Jul 2011, 16:18

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 :)
gos
 
Posts: 4369
Joined: 03 Mar 2011, 15:21
Location: Reykjavík, Iceland
Has thanked: 231 times
Been thanked: 232 times

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

Postby Corwin72 » 15 Aug 2011, 12:39

Will there be a new beta soon?
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

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

Postby Chris H. » 15 Aug 2011, 13:17

Corwin72 wrote:Will there be a new beta soon?
`
Hope to be ready of done on Friday.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Previous

Return to Forge

Who is online

Users browsing this forum: Google [Bot] and 47 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 48 users online :: 1 registered, 0 hidden and 47 guests (based on users active over the past 10 minutes)
Most users ever online was 5050 on 26 Jun 2025, 06:02

Users browsing this forum: Google [Bot] and 47 guests

Login Form