Please use our links: LEGO.com • Amazon
Recent discussions • Categories • Privacy Policy • Brickset.com
Brickset.com is a participant in the Amazon Services LLC Associates Program, the Amazon.com.ca, Inc. Associates Program and the Amazon EU Associates Programme, which are affiliate advertising programs designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.
As an Amazon Associate we earn from qualifying purchases.
Comments
(... and now to find some rare Sand Green bricks, sigh)
I think a lot of people tried it and available quantities have been depleted.
Soooo I wanted to ask those of you not technically retarded like I am if at this point the procedures are fairly straightforward and user-friendly. I'll be using a pretty new Mac if that info helps. If I could make a wish, I'd wish for a comprehensive and up-to-the-moment post that clarifies current procedures for basic use and provides all necessary links and instructions. If such a post is lurking in these pages somewhere a link or repost would be super.
Thank you!
Program development is continuous between the announcements of new versions. There is currently a multi-user behind the scenes effort to test compiled versions of the code that run hundreds of times faster than any previous version. Those will be included in the next release after an appropriate vetting. To receive a copy of the latest scripts, PM me with an email address and I'll send one along.
The amazing speed increase is due to the efforts of many BrickSet users who helped compile and test this new version, but special thanks go to user @CrazyP who voluntarily translated key Matlab functions into C++ source code. The tool is now truly a community effort.
Bravo and thanks to everyone involved.
My one question, is there any spot in the script to include the "Min Buy Amount" specified by some vendors? Seems a few of the choices I am given are always lower but don't meet vendor requirements. Could this also be done for shipping as well? I am sure bricklink has that data in the backend somewhere, I just don't know if you could grab it like the script does for part prices.
Second, I may be a little slow, but where can I get a copy of the tool? I realize I'll need to download Octave but can someone point me in the right direction?
The main thoughts I have atm, are that it can be expensive shipping from the US/Australia to the UK though, so am wondering about ways to filter out all non EU stores. In the UK, there are three postage bands: Within UK, Europe, and Rest of World.
At the moment I'm thinking of a flag (or perhaps two) that we can set within one of the scripts to select either our own country or choose one of the other two options. I suspect this would be similar for other countries in the EU, but don't know how international postage bands are set in the rest of the World.
Any thoughts on this?
You can possibly temper how far it has to hunt by things like average prices for parts etc, as long as it is in the right ranges, no need to hunt further.
The US-only filtering option is implemented not by parsing vendor info, but rather by checking if the price is reported in US currency. To query and retain vendor location info would require some extra parsing and bookkeeping be added to the code, but it should be possible. In the meantime, one way to limit your vendors by location would be to prune all vendors (with the vendor yield filter, for example) while loading a personal white list of vendors from your location. See the vendor pruning logic in merge_price_guide_data.m.
Using Win 7
Installed Jave Runtime
Installed file 7z utility - watching out to only install the decompressor and not the rest of the rubbish it wanted to install.
Downloaded Octave
Downloaded Octave _pkgs
Installed octave in c:\octave folder
Installed Pkgs to c:\octave folder
Ran Octave and rebuilt as per instructions.
Octave now loads, runs through the startup script, with many warnings, then gives prompt,
Octave responds correctly to simple commmands i.e. pwd()
Now how do I get 'run_all.m" to execute?
Cost Minimisation code is currently loaded in c:\lego folder - where should it be?
I tried:
cd c:\lego
source("run_all.m")
program started then gave a message:-
panic: segmentation violation - - stopping myself
Advice appreciated
Allan
I didnt make any changes to any files just 'run from box'
The following output appears
Reading wanted list Wanted List for 7110 Landspeeder.bsx
Warning: load: can not read non-ASCII portions of UTF characters; replacing unreadable characters with '?' (abt 50 of these - didnt count them)
Requesting data for 1 of 23: Any Coplor Luke Skywalker (Tatooine)
warning: C: \lego\readpricequide.m: possible Matlab-style short-circuit operator at line 32, column 20
warning: C: \lego\readpricequide.m: possible Matlab-style short-circuit operator at line 35, column 24
warning: C: \lego\readpricequide.m: possible Matlab-style short-circuit operator at line 76, column 32
ERROR during Price Guide parsing, likely due to currency mismatch
Non-US users, see README notes for instructions on making modifications.
error: Stopping
error: Called from:
error: c:\lego\findnextstring.m at line 12, column 5
error: c:\lego\parsepriceguidestring.m at line 36, column 14
error: c:\lego\readpriceguide.m at line 65, column 14
error: c:\lego\parse_wanted_list_and_price_guide.m at line 90, column 58
error: c:\lego\RUN_ALL.m at line 13, column 1
and prompt reappears.
I will have a go at the currency changes and report back.
Hope my experiences ar eof benefit to other users
Allan
Oh yes - I had an idea.
If this script was configurable so that the user could enter ther Bricklink id/pwd into this script then the script could then log in to BL as if it was the user. Provided the user has configured there BL account properly then when you go to My Wanted List/By Store it only lists the stores in the country(region) the user has already preselected.
This page could then be parsed out to provide a 'white list' of stores to use for minimisation.
Allan
One question about the US-only filtering being done by checking currency, aren't there some stores that sell in US dollars but aren't in the US? Or am I mistaken about that?
??? Error using ==> findnextstring at 12
Stopping.
Error in ==> parsepriceguidestring at 37
priceindend=findnextstring(temp,'',priceindstart+1)-1;
And if you haven't done so already, consider allowing USED rare parts instead of just NEW; that may open up a few more vendors for consideration.
I maybe want to try to make this, using your code as reference, in Visual Basic, so one can get a "real" aplication, but I'm very, very new to visual basic. It's more like an idea and maybe a future project :)
Anyway, thanks for the code :D
For any still following along in the development, my notes show that I've had 170 requests so far. I doubt that many are using it, but I'd be curious if any use it regularly. At least I do!
Rgrds
>> RUN_ALL
Reading wanted list Inventory for 4000001-1.bsx
Requesting data for 1 of 182: Dark Bluish Gray Plate, Modified 1 x 2 with Handle on Side - Free Ends
WARNING: No sellers found for Dark Bluish Gray Plate, Modified 1 x 2 with Handle on Side - Free Ends
Program stopped. Suggest revising wanted list.
Error using load
Unable to read file Price guide data.mat: No such file or directory.
Error in merge_price_guide_data (line 89)
load(priceguidedatafile)
Error in RUN_ALL (line 14)
merge_price_guide_data
There are certainly sellers for that item, not sure what is happening. I have changed my currency to CA but still nothing. Any ideas?
Up and running now, what an awesome tool!!! Thanks @atxdad