r/Eve•
nuadi

GCS Version 8a: New market functions and now cost indices

Good evening.

I've prepared version 8a of GCS for general release. You can find the latest version here: https://github.com/nuadi/googlecrestscript which includes a lot of new functions. What I did was the following:

  1. Added functions to count available orders and volume in stations so you can see just how much is available before you jump through 8 gates only to find the market is short...
  2. Added function to get adjusted prices for items for use in industrial calculations.
  3. Added function to get cost indices for industrial activities for use in industrial calculations.
  4. Added functions to get item volume. Note: Only the assembled volume is available through CREST.
  5. Added optional filters to getOrdersAdv, getOrders, getStationMarketPrice, getRegionMarketPrice, and getMarketPriceList so that filters can be set for minimum/maximum volume and minimum/maximum price considerations
  6. The version check is now a menu item that requires manual selection. This is necessary to enable onOpen to run in new sheets or those shared with new users.

So lots of new stuff to help a number of you that I've already written stuff for, and a few more functions just because I was riding a coding high and wanted to add stuff in.

I'm still working on the bulk market data endpoints. Google's CacheService does not like storing JSON objects, so I have to essentially build a toString() for the market data since Google Scripts doesn't appear to have one for JSON objects. I only learned this today, so I have some research to do.

As usual, if you need something doing that this doesn't doing let me know. I can also help in custom implementations in case you are like one user who was using the script but just couldn't quite get it to fit his edge case.

As always, fly safe. o7

Posted Jun 21, 2016, 9:31 PM UTC · edited

76
AakuiceGallente Federation•

Thank you very much!

2
nuadiOPMiner•

o7

1
Beng_Hin_ShakielGoonswarm Federation•

Awesome work bud! I was actually going to request an item station volume count but see that you're on the ball!

2
KsiaNMercenary Coalition•

Might wanna let r/evetech/ know about this as well. There are also CREST changes incoming when Dust phases out very soon that will likely require you to update.

Thank you for your work though :)

2
Beng_Hin_ShakielGoonswarm Federation•

One suggestion for the packaged volume dilemma: could you not throw an exception for the item type (i.e. ship) and ship class? You could then assign the fixed volumes for each class (e.g. frigate 2500m3, destroyer 5000m3).

2
nuadiOPMiner•

I could, and it would require a second data source for the package volume data.

Now, I could place that into the script itself and hard-code the values into an array structure, but then I would have to update the entire script every time a new item was released, removed, or modified in terms of volume. This is a sub-optimal solution.

A better, although still sub-optimal, solution is a web service that is CREST-like in nature and provides a more comprehensive info packet for items. This would ingest the SDE that CCP provides and then augment the JSON return to append additional data, such as packaged volume, so that current applications are not impacted by changes in CREST and could utilize the CREST-like service if they desire.

This is the solution I'm working on.

1