GithubHelp home page GithubHelp logo

ed-rare-trade-route-generator's Introduction

hi my name is cowboy
during the day i write enterprise software
during the evening i make music

pro tip: if you feel you have to add a comment that says /* Valid JavaScript */ it's enterprise ready

ed-rare-trade-route-generator's People

Contributors

cowboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ed-rare-trade-route-generator's Issues

New Features Proposal

Could it be possible to parameter the search with :

  • Max cargo capacity (Ex: 108t)
  • Jump Distance (Ex: 21Ly)
  • Put our own average of goods produced (in % of Max) depending on our experience

Thanks for your contribution the ED!

Fails on Mac OS X 10.10.3 (Yosemite) with vanilla ruby

Here's the output when I run the script on my Mac OS X 10.10.3 (Yosemite) box, right after cloning the project:

$ ./generate-routes.rb 
Downloading spreadsheet to "ED_RareGoods_SystemsDistance - CURRENT.csv"...done
Parsing CSV data..../generate-routes.rb:106:in `block in <main>': undefined method `match' for nil:NilClass (NoMethodError)
    from ./generate-routes.rb:104:in `each'
    from ./generate-routes.rb:104:in `<main>'

And here the ruby version:

$ which ruby
/usr/bin/ruby
$ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

I don't know if that makes a difference, but I also have Homebrew installed on the machine.

I could probably figure this out myself if I took the time to learn a bit of ruby, but I haven't started my ED trading career in earnest yet, so my motivation is rather low at the moment. Let me do a bit of exploring first (I just got me a nicely outfitted Asp), and if there's no fix in a couple of weeks I'll try to provide one myself :-)

fails to run on CentOS 6

[draeath@host ed-rare-trade-route-generator]$ ./generate-routes.rb
./generate-routes.rb:333: odd number list for Hash
    warnings << {weight: 2, message: "Possible cargo o...
                        ^
./generate-routes.rb:333: syntax error, unexpected ':', expecting '}'
    warnings << {weight: 2, message: "Possible cargo o...
                        ^
./generate-routes.rb:333: syntax error, unexpected '}', expecting kEND
./generate-routes.rb:338: odd number list for Hash
    warnings << {weight: 1, message: "Suboptimal sell ...
                        ^
./generate-routes.rb:338: syntax error, unexpected ':', expecting '}'
    warnings << {weight: 1, message: "Suboptimal sell ...
                        ^
./generate-routes.rb:338: syntax error, unexpected '}', expecting kEND
./generate-routes.rb:395: odd number list for Hash
    route: route,
          ^
./generate-routes.rb:395: syntax error, unexpected ':', expecting '}'
    route: route,
          ^
./generate-routes.rb:396: syntax error, unexpected ':', expecting '='
    warning_weight: warning_weight,
                   ^
./generate-routes.rb:397: syntax error, unexpected ':', expecting '='
    distance: route_distance,
             ^
./generate-routes.rb:398: syntax error, unexpected ':', expecting '='
    output: $p_output,
           ^
./generate-routes.rb:436: syntax error, unexpected $end, expecting kEND
[draeath@host ed-rare-trade-route-generator]$ ruby --version
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]

FeatureRequest: Exclude systems which require permits

I like that your program explicitly notes which systems require a permit to enter, but would it be possible to add a configuration option to exclude systems that have this requirement, or even have a list of permit systems which are able to be added to routes?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.