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.
 

Ship DNA and Subsystems problem

Author
Max Kolonko
Caldari Provisions
Caldari State
#1 - 2011-11-29 23:03:32 UTC
Ok, maybe I'm missing something totally basic in here, but...

I'm making aplication that shows in browser all ships in our SMA, and add a link to its fit.

It all works great for all NON T3 SHIPS.

But when I get to T3 subsystems everything is getting crazy.

I'm following this info from EVE WIKI:
Quote:
DNA -> SHIP ':' HIGHS ':' MEDS ':' LOWS ':' RIGS ':' CHARGES
SHIP -> SHIP_TYPE_ID ( ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID )
HIGHS -> EMPTY | MODULE ( ':' MODULE )
MEDS -> EMPTY | MODULE ( ':' MODULE )
LOWS -> EMPTY | MODULE ( ':' MODULE )
RIGS -> EMPTY | MODULE ( ':' MODULE )
CHARGES -> EMPTY | CHARGE ( ':' CHARGE )
MODULE -> MODULE_ID ';' QUANTITY
CHARGE -> CHARGE_ID ';' QUANTITY


So, for a given T3 (a tengu for example) it will be like this:

'29984:29969:30050:30088:30122:30141:2410;6:14248;1:19266;1:2281;1:3841;1:5975;1:15681;3:5839;1:31366;1:31796;2:'

Translating into:

  • 29984 - Tengu
  • :29969:30050:30088:30122:30141 - 5x Subs
  • 2410;6:14248;1:19266;1:2281;1:3841;1:5975;1:15681;3:5839;1:31366;1:31796;2 - modules (hi,mid,low,rigs) and quantity of each
  • : - drones (this tengu dont have drones)


It should be correct. But when i run jscript in IGB for fit like this i get... a weird fiting window

instead of opening Tengu fitting window it opens Fitting for one of subsystems (yeah, as if Subs was ship itself) and does not show Subs at all.

Have anyone run into this problem before?


Also, does anyone know how exactly do you get ship DNa from game? It used to be simple copying link from chat, but it dont wont to work anymore for me.
Max Kolonko
Caldari Provisions
Caldari State
#2 - 2011-11-29 23:13:10 UTC
Ok ,problem solved.


I managed to get T3 DNA from game (you have to copy already posted link in chat and paste it into browser url field)

and it appears that this:

SHIP -> SHIP_TYPE_ID ( ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID ':' SUBSYSTEM_ID )

is wrong

each ':' SUBSYSTEM_ID should be ':' SUBSYSTEM_ID ; 1