FuelRats / RatTracker

The Fuel Rats RatTracker - Getting more fuel on target faster since 3302
http://www.fuelrats.com/
BSD 3-Clause "New" or "Revised" License
10 stars 12 forks source link

Parse Coriolis.io / EDShipyard fittings to determine jump range #10

Open kenneaal opened 8 years ago

kenneaal commented 8 years ago

This is a maybe-feature.

Allow rats to paste their Coriolis.io / ED Shipyard links into RatTracker and use that data to compute a definite jump range. This might be more effort than it is worth just for jump range, but we could THEORETICALLY use that to calculate LY endurance as well, and in cases where we know coords for both source and target systems, we could give a fairly accurate jumps to target, INCLUDING how often the rat would have to scoop to get there with at least 50% in their tanks.

Marenthyu commented 8 years ago

Coriolis.io has the range noted in their export JSON, under stats, it lists "unladenRange": 33.72, "fullTankRange": 31.4,

where, for example, my export is

{ "$schema": "http://cdn.coriolis.io/schemas/ship-loadout/3.json#", "name": "ASP Allrounder", "ship": "Asp Explorer", "references": [ { "name": "Coriolis.io", "url": "http://coriolis.io/outfit/asp/05D5D5A4D4D5D5C0t0t17172525----05380240v600F4.Iw18WQ%3D%3D.Aw18WQ%3D%3D?bn=ASP%20Allrounder", "code": "05D5D5A4D4D5D5C0t0t17172525----05380240v600F4.Iw18WQ==.Aw18WQ==", "shipId": "asp" } ], "components": { "standard": { "bulkheads": "Lightweight Alloy", "cargoHatch": { "enabled": true, "priority": 1 }, "powerPlant": { "class": 5, "rating": "D", "enabled": true, "priority": 1 }, "thrusters": { "class": 5, "rating": "D", "enabled": true, "priority": 1 }, "frameShiftDrive": { "class": 5, "rating": "A", "enabled": true, "priority": 1 }, "lifeSupport": { "class": 4, "rating": "D", "enabled": true, "priority": 1 }, "powerDistributor": { "class": 4, "rating": "D", "enabled": true, "priority": 1 }, "sensors": { "class": 5, "rating": "D", "enabled": true, "priority": 1 }, "fuelTank": { "class": 5, "rating": "C", "enabled": true, "priority": 1 } }, "hardpoints": [ { "class": 2, "rating": "E", "enabled": true, "priority": 1, "group": "Beam Laser", "mount": "Turret" }, { "class": 2, "rating": "E", "enabled": true, "priority": 1, "group": "Beam Laser", "mount": "Turret" }, { "class": 1, "rating": "F", "enabled": true, "priority": 1, "group": "Pulse Laser", "mount": "Fixed" }, { "class": 1, "rating": "F", "enabled": true, "priority": 1, "group": "Pulse Laser", "mount": "Fixed" }, { "class": 1, "rating": "G", "enabled": true, "priority": 1, "group": "Multi-cannon", "mount": "Turret" }, { "class": 1, "rating": "G", "enabled": true, "priority": 1, "group": "Multi-cannon", "mount": "Turret" } ], "utility": [ null, null, null, null ], "internal": [ { "class": 6, "rating": "E", "enabled": true, "priority": 1, "group": "Cargo Rack" }, { "class": 5, "rating": "B", "enabled": true, "priority": 1, "group": "Fuel Scoop" }, { "class": 3, "rating": "E", "enabled": true, "priority": 1, "group": "Cargo Rack" }, { "class": 3, "rating": "A", "enabled": true, "priority": 1, "group": "Shield Generator" }, { "class": 2, "rating": "G", "enabled": true, "priority": 1, "group": "Planetary Vehicle Hangar" }, { "class": 1, "rating": "E", "enabled": true, "priority": 1, "group": "Cargo Rack" }, { "class": 1, "rating": "A", "enabled": true, "priority": 1, "group": "Fuel Transfer Limpet Controller" } ] }, "stats": { "class": 2, "hullCost": 6135660, "speed": 250, "boost": 340, "boostEnergy": 14, "agility": 6, "baseShieldStrength": 140, "baseArmour": 378, "hullMass": 280, "masslock": 11, "pipSpeed": 0.13, "shipCostMultiplier": 1, "componentCostMultiplier": 1, "fuelCapacity": 32, "cargoCapacity": 74, "ladenMass": 466.3, "armourAdded": 0, "armourMultiplier": 1, "shieldMultiplier": 1, "totalCost": 19400700, "unladenMass": 360.3, "totalDps": 16, "armour": 378, "powerAvailable": 15.3, "powerRetracted": 11.37, "powerDeployed": 14.73, "unladenRange": 33.72, "fullTankRange": 31.4, "ladenRange": 26.41, "unladenTotalRange": 218.06, "ladenTotalRange": 182.33, "maxJumpCount": 7, "shieldStrength": 113.45, "topSpeed": 261.74, "topBoost": 355.97 } }

Same goes for edshipyard when you click the (with stats) button

Shield: 52,00 MJ Power : 4,46 MW retracted (70 %) 5,24 MW deployed (82 %) 6,40 MW available Cargo : 4 T Fuel : 2 T Mass : 44,9 T empty 50,9 T full Range : 7,56 LY unladen 6,96 LY laden Price : 32.000 CR Re-Buy: 1.600 CR @ 95% insurance

Should be easy to parse and implement.