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.
 

How to determine a NPC's faction?

Author
mxzf
Shovel Bros
#1 - 2012-02-27 19:42:16 UTC
Right now I'm working on taking the old QR datadump and parsing out certain NPC information from it. However, I'm having difficulty figuring out a way to cleanly determine a NPC's faction. I want to be able to differentiate all the different factions' NPCs from each other, but so far the best I've managed to figure out is the sensor type of the different entities (attribute IDs 208-211), but that doesn't cleanly differentiate the different factions, it's only a rough guideline.

Does anyone know of a clean way to differentiate the faction that the NPC is from?
Fortune Taker
#2 - 2012-02-27 21:06:40 UTC  |  Edited by: Fortune Taker
IIRC the faction was bitmasked

though i have no idea where the table with the values are anymore
mxzf
Shovel Bros
#3 - 2012-02-27 22:25:10 UTC
I can handle bitmasking just fine, as long as I know what biskmasks mean what, lol. Right now I've been working with the QR datadump, specifically the dgmTypeAttributes table and looking up the values via this page (I used a bit of parsing magic to turn that page into a lookup table to refer to). Is there a nice little field that I'm just overlooking or is it something more complex?
Fortune Taker
#4 - 2012-02-28 01:30:44 UTC
attributeID = '195' from table dgmAttributeTypes

cross reference with chrRaces


this is from one of the Crucible DB's can't find my QR at the moment