These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Embeddable Ship Fit Display

Author
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#1 - 2012-04-12 10:39:02 UTC  |  Edited by: Steve Ronuken
I've spent some time looking for a way to add a graphical ship fit to my new blog, and came to the conclusion that it's not been done (at least not in a way I can just lift)

So, a couple of hours later I had this:
https://github.com/fuzzysteve/Ship.js

It's the second iteration of the code, with the ability to have multiple displays per page. Further iterations will happen.

The ship fitting is in a ship DNA form. I'll be putting a eft fitting converter together later, as well as adding in a check for the IGB, so it'll be clickable, to open the ship fitting up in game.

Graphically, it's not wonderful, but someone with more skill with photoshop/paint/a crayon can replace the image easily, just updating the arrays of locations.

There's a test page in the repository, and a live copy here

It depends on a php backend to make the javascript side work (and jquery for communications, as I'm a trifle lazy), as the ship dna layout doesn't specify slot locations, or module names.

I'm not planning on locking down or moving the parser that's in the test page, if people want to use it. Just bear in mind if my server goes boom, you'll need to find an alternate.

Subsystems will be added as soon as I get round to working out the positions of the boxes.

Instructions on how to add it to a wordpress blog are in the wiki.

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#2 - 2012-04-12 15:53:12 UTC  |  Edited by: Steve Ronuken
Updated for subsystems.

DNA generator created http://www.fuzzwork.co.uk/ships/dnagen.php which converts EFT fits into Ship DNA.

The whole fitting should be clickable to open up the fitting in EVE, when you open it in the IGB. Though I've not had a chance to test it in EVE yet.

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#3 - 2012-04-13 18:42:00 UTC  |  Edited by: Steve Ronuken
2 little multi ship display bugs sorted.

Both directly related to how jquery handles anonymous functions passed within function calls. Globals are instantiated at the first execution, then they're seperate copies. If I'm understanding it right.

So the second time it was running, it was using the same data as the first time as its base.

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter