It is currently 27 Apr 2024, 22:30
   
Text Size

Magic Album Discussion

Moderators: charmer, CCGHQ Admins

Re: Magic Album Reborn

Postby gschmidl » 21 May 2009, 19:40

OK, so I lied. I wrote a perl script to do the file copying for me. Running it from the same directory as Sets.csv will (mostly) do it.

Code: Select all
#! perl -w

use strict;
use File::Copy;
use File::Glob ':glob';
use File::Path;

my $from = "C:/Games/Magic Workstation/Pics"; # no trailing slash!!
my $to = "C:/Games/Magic Album/Images"; # no trailing slash!!

open FILE, "<Sets.csv" or die "$!\n";
my @lines = <FILE>;
close FILE;

for my $line (@lines) {
  my @fields = split /\t/, $line;
 
  if (defined($fields[-1]) && $fields[-1] !~ /^\s*$/) {
    my $set = $fields[1];
    my $dir = $fields[-1];
    $set =~ s/[^A-Za-z0-9_\-\\\/ ]//g;
    $dir =~ s/[^A-Za-z0-9_\-\\\/ ]//g;
    $dir =~ s/\\/\//g;
    chomp($dir);
   
    if (-e "$from\\$set") {
      my $sd = "$from/$set";
      my $src = "$from/$set/*.*";
      my $dest = "$to/$dir";
      print "$src => $dest\n";
     
      mkpath("$dest", {verbose => 1});
      my @filelist = bsd_glob($src);
      foreach my $fn (@filelist) {
        $fn =~ s/^.*\///;
        my $sn = $fn;
        $fn =~ s/\.full//;
        print "$sd/$sn => $dest/$fn\n";
        copy("$sd/$sn", "$dest/$fn");
      }
    }
  }
}
gschmidl
 
Posts: 6
Joined: 17 May 2009, 22:00
Has thanked: 0 time
Been thanked: 0 time

Re: Magic Album Reborn

Postby staggerwingjtstw » 22 May 2009, 07:09

thanks for that explanation gschmidl
I like being bad... it makes me happy...
User avatar
staggerwingjtstw
 
Posts: 181
Joined: 31 May 2008, 18:03
Has thanked: 3 times
Been thanked: 1 time

Re: Magic Album Reborn

Postby Goblin Hero » 26 May 2009, 07:17

A13 is out. Lots of fixes for token support + Save/Load filter feature.
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
User avatar
Goblin Hero
Site Admin
Site Admin
 
Posts: 1992
Joined: 23 Oct 2005, 09:37
Location: Russia
Has thanked: 218 times
Been thanked: 351 times

Re: Magic Album Reborn

Postby FrontLineFodder » 07 Jun 2009, 13:24

Hello,

Is it possible to download this Beta, been using MWS but frankly, It's Obvious it has not been updated in 4 years.

The download linke are broken at the moment.

Thanks

A.
FrontLineFodder
 
Posts: 14
Joined: 07 Jun 2009, 13:20
Location: Western Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Magic Album Reborn

Postby Goblin Hero » 07 Jun 2009, 17:48

FrontLineFodder wrote:The download linke are broken at the moment.
Fixed.
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
User avatar
Goblin Hero
Site Admin
Site Admin
 
Posts: 1992
Joined: 23 Oct 2005, 09:37
Location: Russia
Has thanked: 218 times
Been thanked: 351 times

Re: Magic Album Reborn

Postby FrontLineFodder » 23 Jun 2009, 03:46

Good Morning,

I have been adding my cards into this app, it looks quite promising, easy interface, filters.

After adding a couple of sets i went to do a "Missing" cards query. It seems the app is hard coded to 8 cards, is there a way to change this value ?

I also though i could simply export to csv and use speadsheet (OO) but there is no export to csv feature :-(.

Exporting to CSV would be ultimately the most useful feature so anybody who is using the app is not "Locked in". For a collector, Album is better than MWS, however as it is right now i'm not sure if i want to continue using it to catalog all my cards.

Looking forward to hearing your thoughts.

Adam.
FrontLineFodder
 
Posts: 14
Joined: 07 Jun 2009, 13:20
Location: Western Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Magic Album Reborn

Postby Goblin Hero » 23 Jun 2009, 06:34

FrontLineFodder wrote:It seems the app is hard coded to 8 cards
Hmm. It's a bug. It should show the real number of missed cards.
FrontLineFodder wrote:I also though i could simply export to csv and use
You want to export inventory as CSV, do you? What fields should be exported?
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
User avatar
Goblin Hero
Site Admin
Site Admin
 
Posts: 1992
Joined: 23 Oct 2005, 09:37
Location: Russia
Has thanked: 218 times
Been thanked: 351 times

Re: Magic Album Reborn

Postby FrontLineFodder » 23 Jun 2009, 06:51

Goblin Hero wrote: FrontLineFodder wrote:It seems the app is hard coded to 8 cards


Hmm. It's a bug. It should show the real number of missed cards.
I'll post (or PM) Exactly what Album is reporting when i get home.

Goblin Hero wrote: FrontLineFodder wrote:I also though i could simply export to csv and use


You want to export inventory as CSV, do you? What fields should be exported?
If it is not asking too much... :-) Card Name-Unicode (nice) Card Name-Ascii (Nice) Collector Number (Must) Set (Must) Qty Regular (Must) and Qty Foil (seeing as you went to all that trouble, Must)

I believe this would be the minimum required if you needed(wanted) to migrate to a different format, Unless i am wrong :-)
FrontLineFodder
 
Posts: 14
Joined: 07 Jun 2009, 13:20
Location: Western Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Magic Album Reborn

Postby Goblin Hero » 23 Jun 2009, 08:07

FrontLineFodder wrote:I'll post (or PM) Exactly what Album is reporting when i get home.
Nevermind. I've found the bug myself.
FrontLineFodder wrote:If it is not asking too much... :-) Card Name-Unicode (nice) Card Name-Ascii (Nice) Collector Number (Must) Set (Must) Qty Regular (Must) and Qty Foil (seeing as you went to all that trouble, Must)
Card Name-Ascii? Waht do you mean? Original english name of the card?
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
User avatar
Goblin Hero
Site Admin
Site Admin
 
Posts: 1992
Joined: 23 Oct 2005, 09:37
Location: Russia
Has thanked: 218 times
Been thanked: 351 times

Re: Magic Album Reborn

Postby FrontLineFodder » 23 Jun 2009, 08:23

Goblin Hero wrote:Nevermind. I've found the bug myself.
Great, Thanks

Goblin Hero wrote:Card Name-Ascii? Waht do you mean? Original english name of the card?
Off the Top of my head i can't remember what Album uses, There is the "English" card names, then there are the names with the accented characters, If Album knows both brilliant, Some tools / web sites will use Standard English (A-Z) while others will use the names with the accented characters eg (Æther Spellbomb)
FrontLineFodder
 
Posts: 14
Joined: 07 Jun 2009, 13:20
Location: Western Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Magic Album Reborn

Postby hunter60 » 18 Jul 2009, 18:05

please help me i wasn't able to see pictures in the album.
I have try in every mode ' what I have to do?
User avatar
hunter60
 
Posts: 68
Joined: 05 Jul 2009, 20:29
Location: Italy
Has thanked: 0 time
Been thanked: 0 time

Re: Magic Album Reborn

Postby Goblin Hero » 19 Jul 2009, 08:48

hunter60 wrote:please help me i wasn't able to see pictures in the album.
Read the first post. I've just updated it.
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
User avatar
Goblin Hero
Site Admin
Site Admin
 
Posts: 1992
Joined: 23 Oct 2005, 09:37
Location: Russia
Has thanked: 218 times
Been thanked: 351 times

Re: Magic Album Reborn

Postby hunter60 » 19 Jul 2009, 11:05

I have try in different way but no picture .this is what
I do .
I have install the album 13 Alpha on C:\Magic Album
then I have create in a folder named Regular Cards after a subfolder named Expansions and on in a folder named
Legends because I would see for example the cards Abominium and Acid Rain. I have renamed the 2 without the
.full. (abominium.jpg )
In the path i wrote C:\Magic Album\Regular Cards
but nothing happen . i'm going crazy.
What's wrong
User avatar
hunter60
 
Posts: 68
Joined: 05 Jul 2009, 20:29
Location: Italy
Has thanked: 0 time
Been thanked: 0 time

Re: Magic Album Reborn

Postby Goblin Hero » 19 Jul 2009, 11:10

hunter60 wrote:In the path i wrote C:\Magic Album\Regular Cards
Set the path to C:\Magic Album
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
User avatar
Goblin Hero
Site Admin
Site Admin
 
Posts: 1992
Joined: 23 Oct 2005, 09:37
Location: Russia
Has thanked: 218 times
Been thanked: 351 times

Re: Magic Album Reborn

Postby hunter60 » 19 Jul 2009, 12:40

don't work I upload the folder if you wish see it
Attachments
Acid Rain.jpg
User avatar
hunter60
 
Posts: 68
Joined: 05 Jul 2009, 20:29
Location: Italy
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to Magic Album

Who is online

Users browsing this forum: No registered users and 23 guests


Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 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 23 guests

Login Form