It is currently 19 Apr 2024, 00:42
   
Text Size

Pricing (Scripts and Notes)

Moderators: charmer, CCGHQ Admins

Re: Pricing (Scripts and Notes)

Postby woogerboy21 » 21 Feb 2012, 00:27

Here's a version of the MagicTraders.com pricing scripts in vbs/lua/batch format that detects the available sets on the site. Updating for each set release shouldn't be required.

Another note about magictraders.com. I don't know if I would use there prices, they seem to not have the most recent set readily available for pricing and the prices seem odd to me. Such as a M12 coral merfolk for $16.25?
Attachments
Magic Traders v20.zip
(9.99 KiB) Downloaded 389 times
User avatar
woogerboy21
HQ Team Member
 
Posts: 1136
Joined: 19 Jul 2009, 00:15
Location: USA
Has thanked: 21 times
Been thanked: 152 times

Re: Pricing (Scripts and Notes)

Postby woogerboy21 » 23 Feb 2012, 21:15

Here's a version of the MTGMintCard.com pricing scripts in vbs/lua/batch format that detects the available sets on the site. Updating for each set release shouldn't be required.
Attachments
MTGMintCard v20.zip
(11.34 KiB) Downloaded 376 times
User avatar
woogerboy21
HQ Team Member
 
Posts: 1136
Joined: 19 Jul 2009, 00:15
Location: USA
Has thanked: 21 times
Been thanked: 152 times

Re: Pricing (Scripts and Notes)

Postby dukemb » 24 Feb 2012, 07:15

Hi! What should I dl in my prices dir, and how the new scripts work?
Thanks for help :)
dukemb
 
Posts: 50
Joined: 28 Apr 2010, 19:36
Has thanked: 57 times
Been thanked: 2 times

Re: Pricing (Scripts and Notes)

Postby kristijanH » 24 Feb 2012, 10:31

First start the .bat file to make a .txt file for each script. Then copy/move the .txt to file to your MA directory. Copy/move the .lua file to your MA/Prices directory. Finaly start MA and go to prices - manage and update each price.
kristijanH
 
Posts: 218
Joined: 24 Nov 2009, 13:49
Has thanked: 52 times
Been thanked: 11 times

Re: Pricing (Scripts and Notes)

Postby woogerboy21 » 24 Feb 2012, 16:13

kristijanH wrote:First start the .bat file to make a .txt file for each script. Then copy/move the .txt to file to your MA directory. Copy/move the .lua file to your MA/Prices directory. Finaly start MA and go to prices - manage and update each price.
This will work, also by default if you don't change anything you should be able to extract all the files from the zip's into the "Prices" folder under the MA folder structure and when you run the .bat file the pricing files will be created and populated in the correct paths. Since the .lua file will also be located in "Prices" folder now you should only have to open the MA application and update the chosen price script.

One other thing to note, the vbs/lua/bat files should collect all the prices for all the sets found on the website, however, many sites have different names per set along with misspellings on card names (for example instead of the set name "Magic 2012" the site may have it listed as "Magic 2012 Core Set"). These issue's will still need worked though for any sets older than the current sets listed in the "standard" format.

If anyone is fluent in VB and want to update the scripts on there own, there are 2 functions named "CorrectSetName" and "CorrectCardName" that can be populated with the name corrections. I'll eventually get around to getting things worked out but until I get most of the other sites up and working older sets will have to wait. I've noticed most the time expansion names on sites are correct, its just the Core Set names that have problems.
User avatar
woogerboy21
HQ Team Member
 
Posts: 1136
Joined: 19 Jul 2009, 00:15
Location: USA
Has thanked: 21 times
Been thanked: 152 times

Re: Pricing (Scripts and Notes)

Postby kristijanH » 24 Feb 2012, 18:40

Is there a way you or anyone makes the prices from this site?

http://www.supernovabots.com
kristijanH
 
Posts: 218
Joined: 24 Nov 2009, 13:49
Has thanked: 52 times
Been thanked: 11 times

Re: Pricing (Scripts and Notes)

Postby woogerboy21 » 24 Feb 2012, 19:32

kristijanH wrote:Is there a way you or anyone makes the prices from this site?

http://www.supernovabots.com
Just curious, is this site strictly rares / mythic? (Looks to be that way).
User avatar
woogerboy21
HQ Team Member
 
Posts: 1136
Joined: 19 Jul 2009, 00:15
Location: USA
Has thanked: 21 times
Been thanked: 152 times

Re: Pricing (Scripts and Notes)

Postby kristijanH » 24 Feb 2012, 22:54

Yes. Just R and MR foil and nonfoil cards plus boosters as it's for MTGO.
kristijanH
 
Posts: 218
Joined: 24 Nov 2009, 13:49
Has thanked: 52 times
Been thanked: 11 times

Re: Pricing (Scripts and Notes)

Postby draytalon » 08 Mar 2012, 10:04

Got a question regarding the pricing scripts. I have found that when i update my MA and pricing's, which is every month, it gives me prices for the Premium Decks for regular cards. I thought Premium Decks was all foil, i might be wrong, but i did buy the Sliver deck and every card including lands was foil. Only a small technicality. Another question, when i imported the prices and painstakingly added my decks to the album, then saved them IE: Akroma, Angel of Fury. I add the price to the end as i might have several decks of the same name. *NOTE* I do this as i play EDH and i have several generals of the same. So my Akroma would look like this IE: Akroma, Angel of Fury ($28.18). Now when i log back into MA and update the price list, and when it does, does it actually update the opened deck and reprice it, or do i have to go through the decks again to update their value's.

Time permitted, i am trying to understand and learn LUA so i can keep up to date with the pricing's, hopefully to keep on top of the newest card set's and price's as they change a lot and share with the community. So far without much success i have to add. Managed to implement Graveborn into a script file, but it will not update, either there is no prices from the web site or else i have erred somewhere. I hasten to say that i have probably erred in someway, boy this is fun.
Dray Talon©
draytalon
 
Posts: 22
Joined: 25 Mar 2010, 03:25
Location: Bowling Green, KY, USA
Has thanked: 1 time
Been thanked: 1 time

Re: Pricing (Scripts and Notes)

Postby Goblin Hero » 08 Mar 2012, 10:56

I'm now working on price engine. Some things will be improved. And I will write a sample script with lots of comments to help learn lua.
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: Pricing (Scripts and Notes)

Postby draytalon » 22 Apr 2012, 16:45

Hmm getting some weird invalid returns on the pricing scripts, i looked at it and the command lines look correct, this is the error i am getting.

lual-_loadfile has returned 3: D:\Magic Album\Prices\AbuGames.lua:462: invalid escape sequence near "\-'

Even when i try to update from any other site, i get the same returned error, so if i try cardkingdom i get

lual-_loadfile has returned 3: D:\Magic Album\Prices\AbuGames.lua:462: invalid escape sequence near "\-'

AbuGames via cardkingdom, weird error.

Anyone else come across this.
Dray Talon©
draytalon
 
Posts: 22
Joined: 25 Mar 2010, 03:25
Location: Bowling Green, KY, USA
Has thanked: 1 time
Been thanked: 1 time

Re: Pricing (Scripts and Notes)

Postby woogerboy21 » 23 Apr 2012, 01:13

draytalon wrote:Hmm getting some weird invalid returns on the pricing scripts, i looked at it and the command lines look correct, this is the error i am getting.

lual-_loadfile has returned 3: D:\Magic Album\Prices\AbuGames.lua:462: invalid escape sequence near "\-'

Even when i try to update from any other site, i get the same returned error, so if i try cardkingdom i get

lual-_loadfile has returned 3: D:\Magic Album\Prices\AbuGames.lua:462: invalid escape sequence near "\-'

AbuGames via cardkingdom, weird error.

Anyone else come across this.
Thats probably because the scripting engine in the MA album has been updated and none of the scripts have been updated to reflect the new code changes. Most likely any of the pricing scripts on the main post of this thread won't work. I haven't had any time to update them myself.
User avatar
woogerboy21
HQ Team Member
 
Posts: 1136
Joined: 19 Jul 2009, 00:15
Location: USA
Has thanked: 21 times
Been thanked: 152 times

Re: Pricing (Scripts and Notes)

Postby Mr.C » 25 Apr 2012, 05:35

Same here, getting the same error for the scripts. Highly inconvenient :(
Mr.C
 
Posts: 49
Joined: 13 Jun 2008, 07:58
Has thanked: 0 time
Been thanked: 0 time

Re: Pricing (Scripts and Notes)

Postby woogerboy21 » 12 May 2012, 06:09

An updated "Import Prices.lua" script is now available on the main thread post. The good news is the new version now supports importation of prices from a price file using the MA 1.5 (or newer) application. The bad news is, with the recent changes any data collection scripts prior to this change will NOT format out the price files correctly so you simply can't copy the .lua file over top the existing scripts and have them import. I will work on posting some updated data collection scripts but until then this should get other script kitty's going.

At this point all older .lua based pricing scripts that I have written (not the included MTGMintCard pricing script) will not function and I will not be updating them. Consider them abandoned. As I have stated before, moving forward I will release .vbs/batch data collection scripts that use the price import.lua script to import them into MA. I may at a later date reconsider doing individual .lua scripts if the MA application ever gains the ability to schedule pricing downloads OR can background the pricing download collection functionality.
User avatar
woogerboy21
HQ Team Member
 
Posts: 1136
Joined: 19 Jul 2009, 00:15
Location: USA
Has thanked: 21 times
Been thanked: 152 times

Re: Pricing (Scripts and Notes)

Postby woogerboy21 » 12 May 2012, 15:59

If anyone has downloaded pricing data from older data collection vbs/bat script, you can manually add a (tab) at the end of each line and the new script should recognize the data and insert it properly. If anyone feels rambunctious enough to to do.
User avatar
woogerboy21
HQ Team Member
 
Posts: 1136
Joined: 19 Jul 2009, 00:15
Location: USA
Has thanked: 21 times
Been thanked: 152 times

PreviousNext

Return to Magic Album

Who is online

Users browsing this forum: No registered users and 20 guests


Who is online

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

Login Form