giacecco / bricklink-helper Goto Github PK
View Code? Open in Web Editor NEWSearches http://bricklink.com to calculate the most cost-effective combination of sellers to buy a set of specified LEGO bricks from.
Searches http://bricklink.com to calculate the most cost-effective combination of sellers to buy a set of specified LEGO bricks from.
It's just an uncompressed LXF...
When I try and run the package I get the following error:
$ node bricklink-helper.js --in /Users/pi/Downloads/lddcreation\ \(2\).lxf --out orders.csv --cache cache.json
Reading parts availability from cache...
*** WARNING *** Suitable sellers could not be found for part ids: 4222627.
Handing control over to R; this can take a long time...
Completed.
Rsymphony
TRUE
Loading required package: Rsymphony
Warning message:
In read.table(file = file, header = header, sep = sep, quote = quote, :
incomplete final line found by readTableHeader on '/Users/pi/git/bricklink-helper/.r-exchange/parameters.csv'
Finished.
Edit: I should say it finishes with a warning. It seems the software returns successfully, as an orders.csv
file is generated.
See http://www.bricklink.com/message.asp?ID=819253 . Remove workaround in bricklink-search.js when it is fixed.
Even if it is not possible to know the real one, fake shipping costs (e.g. £2 / order) will limit the fragmentation of the order to a point that the real shipping costs become relevant!
The number of extra pieces could be defined as a %, e.g. 20, meaning one extra piece every 5.
G.
So LDraw models can be imported. See https://github.com/Floppy/MOCs/blob/gh-pages/TIE%20Avenger/TIE%20Avenger.ldr (and others in the same repo) for an example.
Might need some translation of LDraw part IDs to bricklink IDs. Not sure. Rebrickable may help here.
it appears you may have a typo - getting error "lxReader is not defined" referencing:
readFunction = lxReader.read
it appears that it should be lxfReader (missing the f )
This also includes the possibility that the mathematical problem has no solution.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.