-
Notifications
You must be signed in to change notification settings - Fork 1
Home
spjspj edited this page Oct 18, 2021
·
12 revisions
- Go to the directory where modo is installed. Look for the .xml files and copy all of them to where you put the perl files.
- Make sure you did the precursor step
- Run get_mtgo_artids.pl and redirect the 'echo.*cut.pl' type statements out to a batch file called dl_face.bat
- Change wget_image to wget_image_test_force in the resultant dl_face.bat file (both will work but wget_image_test_force cycles thru all known variants of the image and then downloads the biggest possible image for the best quality).
- Run the bat file - will take around 24 hours..
- Copy all the directories that are created (ones like AER etc) to $XMAGE_IMAGES_DIR/FACE/
- Ensure that you have MTGO Rendering option enabled inside xmage.
(From a cmd prompt):
d:
cd D:\perl_programs\modo_2021
get_mtgo_artids.pl | find /I "echo" > dl_face.bat
(Note the unfiltered output from get_mtgo_artids.pl should have "Finished reading ~24300 names" or else you don't have all the correct xml files from modo)
D:\perl_programs\modo_2021>get_mtgo_artids.pl
Finished reading 24205 names
Hypnotic Specter;1E;DOC_547;artid=118;;(ID2_10177) << current line (1000th line..)
2U;DOC_1548;;Clone=(1547) << current line (1000th line..)
Sphinx Summoner;2XM;DOC_82474;artid=119792;;(ID2_19653) << current line (1000th line..)
4E;DOC_4454;;Clone=(4453) << current line (1000th line..)
etc
Lavaglide Pathway;ZNR;413290;
echo "1" | cut.pl stdin "http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/413290_typ_reg_sty_.jpg" "ZNR\Lavaglide Pathway.jpg" wget_image
Throne of Makindi;ZNR;415142;010
echo "1" | cut.pl stdin "http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/415142_typ_reg_sty_010.jpg" "ZNR\Throne of Makindi.jpg" wget_image
Plains;ZNR;413279;020
etc
- You can then use notepad or gvim or whatever to open up get_all_face_cards.bat
- aka make the 200 odd directories like AER, ZEN, ZNR that the face images will be copied into
STEP 4) So, now, run a test script to make sure that cut.pl is actually working and downloading the FACE image file correctly:
echo "1" | cut.pl stdin "http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/415142_typ_reg_sty_010.jpg" "ZNR\Throne of Makindi.jpg" wget_image_test_force
(Note, output should look like this):
D:\perl_programs\modo_2021>echo "1" | cut.pl stdin "http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/415142_typ_reg_sty_010.jpg" "ZNR\Throne of Makindi.jpg" wget_image_test_force
Download :http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/415142_typ_reg_sty_010.jpg: got 18133
Download :http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/415142_typ_reg_sty_001.jpg: got
Final URL: http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/415142_typ_reg_sty_010.jpg
222222 flip? http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/415142_typ_reg_sty_010.jpg, 18133
Save in ZNR\Throne of Makindi.jpg
http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/415142_typ_reg_sty_010.jpg >>> ZNR\Throne of Makindi.jpg
D:\perl_programs\modo_2021>dir dl_face.bat
Directory of D:\perl_programs\modo_2021
18/10/2021 19:52 4,656,605 dl_face.bat
... 24 hours later..
d:
cd D:\perl_programs\modo_2021
get_mtgo_artids.pl | find /I "copy" > cp_face.bat
- This will put copy of all the duplicate FACE images into the appropritate spot.
- For example, my xmage_images directory is d:\xmage_images, so I made a directory d:\xmage_images\FACE
- Check that all the directories have images in them
- You should have a file at this point called: D:\perl_programs\modo_2021\ZNR\Throne of Makindi.jpg
- Copy the directories and contents across to d:\xmage_images\FACE
- You should have a file after copying the directories and contents called: d:\xmage_images\FACE\ZNR\Throne of Makindi.jpg
D:\perl_programs\modo_2021>dir "d:\xmage_images\FACE\ZNR\Throne of Makindi.jpg"
Directory of d:\xmage_images\FACE\ZNR
30/07/2021 09:28 18,133 Throne of Makindi.jpg
STEP 99) You have to make the directories as well (so you can run these commands when you're in the directory with get_mtgo_artids.pl as well)
mkdir 10E
mkdir 2ED
mkdir 2XM
mkdir 3ED
mkdir 4ED
mkdir 5DN
mkdir 5ED
mkdir 6ED
mkdir 7ED
mkdir 8ED
mkdir 9ED
mkdir A25
mkdir AER
mkdir AFR
mkdir AKH
mkdir ALA
mkdir ALL
mkdir APC
mkdir ARB
mkdir ARN
mkdir ATQ
mkdir AVR
mkdir BBD
mkdir BD
mkdir BFZ
mkdir BNG
mkdir BOK
mkdir BR
mkdir C02
mkdir C13
mkdir C14
mkdir C15
mkdir C16
mkdir C17
mkdir C18
mkdir C19
mkdir C20
mkdir C21
mkdir CC
mkdir CC1
mkdir CH
mkdir CHK
mkdir CMD
mkdir CMR
mkdir CN2
mkdir CNS
mkdir CON
mkdir CSP
mkdir DAR
mkdir DD2
mkdir DDC
mkdir DDD
mkdir DDE
mkdir DDF
mkdir DDG
mkdir DDH
mkdir DDI
mkdir DDJ
mkdir DDK
mkdir DDL
mkdir DDM
mkdir DDP
mkdir DGM
mkdir DIS
mkdir DKA
mkdir DPA
mkdir DRB
mkdir DRK
mkdir DST
mkdir DTK
mkdir ELD
mkdir EMA
mkdir EMN
mkdir EVE
mkdir EVG
mkdir EXO
mkdir EXP
mkdir FEM
mkdir FK
mkdir FRF
mkdir FUT
mkdir G18
mkdir GN2
mkdir GNT
mkdir GPT
mkdir GRN
mkdir GS1
mkdir GTC
mkdir H09
mkdir HML
mkdir HOU
mkdir ICE
mkdir IKO
mkdir IMA
mkdir INV
mkdir ISD
mkdir JMP
mkdir JOU
mkdir JUD
mkdir KHC
mkdir KHM
mkdir KLD
mkdir KTK
mkdir LEA
mkdir LEB
mkdir LEG
mkdir LGN
mkdir LRW
mkdir M10
mkdir M11
mkdir M12
mkdir M13
mkdir M14
mkdir M15
mkdir M19
mkdir M20
mkdir M21
mkdir MBS
mkdir ME2
mkdir ME3
mkdir ME4
mkdir MED
mkdir MH1
mkdir MH2
mkdir MIR
mkdir MM2
mkdir MM3
mkdir MMA
mkdir MMQ
mkdir MOR
mkdir MRD
mkdir MS2
mkdir MS3
mkdir MS4
mkdir NMS
mkdir NPH
mkdir ODY
mkdir OGW
mkdir ONS
mkdir ORI
mkdir P3
mkdir P4
mkdir PC1
mkdir PC2
mkdir PCY
mkdir PD2
mkdir PD3
mkdir PLC
mkdir PLS
mkdir PO2
mkdir POR
mkdir PRM
mkdir PTK
mkdir PZ1
mkdir PZ2
mkdir RAV
mkdir RIX
mkdir RNA
mkdir ROE
mkdir RTR
mkdir SCG
mkdir SHM
mkdir SL2
mkdir SLD
mkdir SOI
mkdir SOK
mkdir SOM
mkdir STA
mkdir STH
mkdir STX
mkdir TD0
mkdir TD2
mkdir THB
mkdir THS
mkdir TMP
mkdir TOK
mkdir TOR
mkdir TPR
mkdir TSB
mkdir TSP
mkdir TSR
mkdir UDS
mkdir UL
mkdir UMA
mkdir UND
mkdir UNH
mkdir USG
mkdir UST
mkdir V09
mkdir V10
mkdir V11
mkdir V12
mkdir V13
mkdir V14
mkdir V15
mkdir V16
mkdir V17
mkdir VAN
mkdir VIS
mkdir VMA
mkdir W16
mkdir W17
mkdir WAR
mkdir WTH
mkdir WWK
mkdir XLN
mkdir ZEN
mkdir ZNC
mkdir ZNE
mkdir ZNR