Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 2 post(s) |
Louis Vitton
Invictus Australis Northern Coalition.
12
|
Posted - 2012.01.24 12:29:00 -
[1] - Quote
Hey guys,
The subject of this thread may be a little miss leading sorry for that.
I am trying to see if there is a notable difference in the Integer for charID, corpID and AllianceID so that i can isolate them.
The idea is taking the contactList then allow a hyperlink with a get request so that if you click on one of the charaters if will take you to a page with a get request up i the url and allow me to pull the details for that chatater i would like this to also work for corp and alliance.
So the theory i have is to isolate them based on there ID numbers, As i mean there is prob a range where they are corpID or CharIDs.
after i isolated them based on this ID then i would use a separate call for there details as character and corps require diff calls for details.
Thanks for the help and sorry if this isnt clear it is a little late at night. |
Desmont McCallock
99
|
Posted - 2012.01.24 13:04:00 -
[2] - Quote
Let me see how we do it in EVEMon....hmmmm... yes...yes....that's it.....now I remember....
Every CharacterID is of DB typeID between 1373 (CharacterAmarr) and 1386 (CharacterVherokior). Every CorporationID is of DB typeID 2 (Corporation). Every AllianceID is of DB typeID 16159 (Alliance).
* DB reference is invTypes table.
So we check the typeID and create the appropriate link.
Hope this helps. |
Pinky Attor
Okel Armaments
0
|
Posted - 2012.01.24 18:08:00 -
[3] - Quote
Louis Vitton wrote: So the theory i have is to isolate them based on there ID numbers, As i mean there is prob a range where they are corpID or CharIDs.
I *think* the ID's are unique between corporation, character, and NPC corps. This is my guess based on the wallet API's where the clientID and ownerIDx values seem to be unique across the three groups. I don't know if there are specific ranges for each type though.
|
Louis Vitton
Invictus Australis Northern Coalition.
13
|
Posted - 2012.01.27 01:24:00 -
[4] - Quote
Thank you for replying. I have submitted a petition to ask the answer to this question. |
Captain Thunk
Sniggerdly Pandemic Legion
0
|
Posted - 2012.01.27 01:50:00 -
[5] - Quote
Originally they were within different ranges and could be isolated, however since they went 64-bit they all draw from the same pool. |
Louis Vitton
Invictus Australis Northern Coalition.
13
|
Posted - 2012.01.27 01:58:00 -
[6] - Quote
Captain Thunk wrote:Originally they were within different ranges and could be isolated, however since they went 64-bit they all draw from the same pool.
Thank you for the info mate. I thought this might be the case :( i will just work around what i want to do another way.
Cheers for the help boys. |
Painkillaz
SYNDAX CORPORATION Yulai Federation
0
|
Posted - 2012.01.27 12:09:00 -
[7] - Quote
I havent looked that deep into ContactList, but itsnt it only the playersid being provided?
To see if they are part of Corp or Alliance is type checking the attributes of the rowset
(dont know what your poison is, but here is a PHP example)
$xml = new SimpleXMLElement(file_get_contents('xmlcache/corp/ContactList.xml.aspx'));
foreach($xml->result->rowset as $rowset) {
if($rowset['corporateContactList'] !="") { echo $rowset['corporateContactList']
foreach($rowset->row as $row) {
echo $xml->xpath("contactID"); echo $xml->xpath("contactName"); echo $xml->xpath("standing");
###insert code for saving the IDs or turning them into whatever you want #### }
###Do another loop here for alliancedata ###
} }
|
Desmont McCallock
114
|
Posted - 2012.01.27 12:13:00 -
[8] - Quote
Painkillaz wrote:I havent looked that deep into ContactList, but itsnt it only the playersid being provided?
To see if they are part of Corp or Alliance is type checking the attributes of the rowset
(dont know what your poison is, but here is a PHP example)
$xml = new SimpleXMLElement(file_get_contents('xmlcache/corp/ContactList.xml.aspx'));
foreach($xml->result->rowset as $rowset) {
if($rowset['corporateContactList'] !="") { echo $rowset['corporateContactList']
foreach($rowset->row as $row) {
echo $xml->xpath("contactID"); echo $xml->xpath("contactName"); echo $xml->xpath("standing");
###insert code for saving the IDs or turning them into whatever you want #### }
###Do another loop here for alliancedata ###
} }
ContactList can contain charIDs, corpIDs and allianceIDs. So, it's no easy task to check what is what. |
Painkillaz
SYNDAX CORPORATION Yulai Federation
0
|
Posted - 2012.01.27 12:25:00 -
[9] - Quote
oh ok! time to abuse the image server for the correct id ! :D |
|
CCP Prism X
C C P C C P Alliance
504
|
Posted - 2012.01.27 13:07:00 -
[10] - Quote
Captain Thunk wrote:Originally they were within different ranges and could be isolated, however since they went 64-bit they all draw from the same pool.
That's actually backwards. Originally the only defining attribute of any ownerID was that it was above 100 million. Now, with the 64bit change, they are fitted on different ID ranges. ~ CCP Prism X EVE Database Developer If anything in this post was informative or could be considered as 'good news' to you - chances are you've misread it. |
|
|
Shirley C
Kumovi The G0dfathers
14
|
Posted - 2012.01.27 13:21:00 -
[11] - Quote
If this is truly the case, can we be told what these ranges are as we can then simply check what range the contact id is within and determin if its a corp alliance or pilot?
This would greatly simplify what im doing to produce our alliance standings page at present using your image server :P |
|
CCP Prism X
C C P C C P Alliance
504
|
Posted - 2012.01.27 13:47:00 -
[12] - Quote
I see little harm in that: Characters: ]90000000, 98000000[ Corporations: ]98000000, 99000000[ Alliances: ]99000000, 100000000[
However, this sadly only applies to owners created after the 64 bit move. Don't worry, that fact also makes me a sad panda. ~ CCP Prism X EVE Database Developer If anything in this post was informative or could be considered as 'good news' to you - chances are you've misread it. |
|
Painkillaz
SYNDAX CORPORATION Yulai Federation
0
|
Posted - 2012.01.27 13:51:00 -
[13] - Quote
CCP Prism X wrote:I see little harm in that: Characters: ]90000000, 98000000[ Corporations: ]98000000, 99000000[ Alliances: ]99000000, 100000000[
However, this sadly only applies to owners created after the 64 bit move. Don't worry, that fact also makes me a sad panda.
Good info! Well a new streamlining project awaits you guys! ;) |
Shirley C
Kumovi The G0dfathers
14
|
Posted - 2012.01.27 14:23:00 -
[14] - Quote
Then can we get a simple identifier in the contacts xml that tells us if it is a pilot / corp or alliance id - a simple integer will do. Being unable to indentify which one a character refers to is extremely annoying. |
Captain Thunk
Sniggerdly Pandemic Legion
0
|
Posted - 2012.01.27 14:54:00 -
[15] - Quote
Shirley C wrote:Then can we get a simple identifier in the contacts xml that tells us if it is a pilot / corp or alliance id - a simple integer will do. Being unable to indentify which one a character refers to is extremely annoying.
if you deal with alliances then you will have the alliance xml somewhere. Test against that to determine if alliance. you can test against corp and player using the public limited info sheets as they both have them. If you have a db, store the IDs and you won't have to call the xml again.
|
Louis Vitton
Invictus Australis Northern Coalition.
13
|
Posted - 2012.01.27 22:51:00 -
[16] - Quote
CCP Prism X wrote:I see little harm in that: Characters: ]90000000, 98000000[ Corporations: ]98000000, 99000000[ Alliances: ]99000000, 100000000[
However, this sadly only applies to owners created after the 64 bit move. Don't worry, that fact also makes me a sad panda.
Thank you ccp Prism X :) You are by far the best CCPer :) |
Callean Drevus
Icosahedron Crafts and Shipping Silent Infinity
75
|
Posted - 2012.01.28 08:40:00 -
[17] - Quote
Louis Vitton wrote:Thank you ccp Prism X :) You are by far the best CCPer :) At least one from whom we generally hear good things Developer/Creator of EVE Marketeer
|
Matalok
Dreddit Test Alliance Please Ignore
13
|
Posted - 2012.01.30 11:44:00 -
[18] - Quote
CCP Prism X wrote:I see little harm in that: Characters: ]90000000, 98000000[ Corporations: ]98000000, 99000000[ Alliances: ]99000000, 100000000[
However, this sadly only applies to owners created after the 64 bit move. Don't worry, that fact also makes me a sad panda.
This man is going to make me very poor with the amount of beer I owe him at Fanfest |
Louis Vitton
Invictus Australis Northern Coalition.
13
|
Posted - 2012.01.31 09:04:00 -
[19] - Quote
Also are string names different for all or can they be shared eg,
alliance name: eveHottie corp name: eveHottie player name: eveHottie
And have the same name across them or is it like the ID and indivdual to that 1 ? |
Squizz Caphinator
Woopatang Happy Endings
29
|
Posted - 2012.02.01 19:09:00 -
[20] - Quote
Louis Vitton wrote:Also are string names different for all or can they be shared eg,
alliance name: eveHottie corp name: eveHottie player name: eveHottie
And have the same name across them or is it like the ID and indivdual to that 1 ?
Names are unique across pilot/corp/alliances. http://evewho.com - Alliance and Corporation Member Listings http://evechatter.com - Free Alliance and Corporation forums for all. |
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |