Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
TorTorden
Amarr
|
Posted - 2011.01.21 18:19:00 -
[1]
been goofing around with the old portrait, but fetching char id's and typing urls gets boring quick so I tossed this script toghether during my boredom.
The old vs the new just type a char name or more with comma separation it 'should' work but no gaurantees. the result would be the old portrait on the left and the new portrait on the right with character name below.
It's totaly useless but hey, I had time to kill. ------------------------------------------------ There is no such thing as good or evil. Just an egotistic struggle for self empowerment. ------------------------------------------------ |
Snasty
Caldari The Hippies The bohemians
|
Posted - 2011.01.21 19:48:00 -
[2]
Bloody brilliant, time well spent. Cheers.
--------------------------------------- -=Snasty, short for Shagnasty ever since the GM's in SWG made me change it...!=- |
Snasty
Caldari The Hippies The bohemians
|
Posted - 2011.01.21 20:02:00 -
[3]
...on a side note, there doesnt seem to be any word, however rude or offensive, that doesnt return a face, at least an old one.
I hope you aint logging requests, I wouldnt want you to think the last 20 or so gave you an insight into my head..!!
--------------------------------------- -=Snasty, short for Shagnasty ever since the GM's in SWG made me change it...!=- |
Solus Argum
Minmatar Pator Tech School
|
Posted - 2011.01.21 20:21:00 -
[4]
How did you convert the names to IDs? Ive been trying to do that for a while now, but have had no luck :( ---- Solus Argum Lonetrek Web Services
Got Videos? Upload them to New Eden Tv , Eve's Dedicated Video Sharing Site. |
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.21 20:29:00 -
[5]
For a little different take on doing this might check out another site a friend made as well. http://evefaces.eve-corporate.net/index.php/home/index -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Snasty
Caldari The Hippies The bohemians
|
Posted - 2011.01.21 20:58:00 -
[6]
Is there any way to call in the 3 unused pics from the new creator?
--------------------------------------- -=Snasty, short for Shagnasty ever since the GM's in SWG made me change it...!=- |
TorTorden
Amarr
|
Posted - 2011.01.21 22:08:00 -
[7]
Originally by: "Snasty" ...on a side note, there doesnt seem to be any word, however rude or offensive, that doesnt return a face, at least an old one. I hope you aint logging requests, I wouldnt want you to think the last 20 or so gave you an insight into my head..!!
Currently negotiating for the rights with google atm, by the looks of it the insights into your mind will at least pay for my next 3 car payments,,
Naah, im not that clever so no logging.
Originally by: "Solus Argum" How did you convert the names to IDs? Ive been trying to do that for a while now, but have had no luck :(
I take the names and send to the characterId api then concatenate into the image names.
http://wiki.eve-id.net/APIv2_Eve_CharacterID_XML
Originally by: "Snasty" Is there any way to call in the 3 unused pics from the new creator?
As for the extra images in the character creator my best guess is they never get passed to ccp, if stored at all I'd guess they might be found somewhere in the cache or something.
Originally by: "Dragonaire" For a little different take on doing this might check out another site a friend made as well. http://evefaces.eve-corporate.net/index.php/home/index
Hey! great minds think alike ------------------------------------------------ There is no such thing as good or evil. Just an egotistic struggle for self empowerment. ------------------------------------------------ |
kyoukoku
|
Posted - 2011.01.23 04:43:00 -
[8]
Originally by: Snasty Is there any way to call in the 3 unused pics from the new creator?
I was just wondering this myself as I thought that the 4 pics could be swapped around at will once the character was finalised, and I spent a while setting up each of the 4, so was a bit miffed when I found only 1 was used.
So I went looking and found them in (on Windows 7):
"C:\Users\<your windows login>\AppData\Local\CCP\EVE\<your eve install location>\cache\Pictures\Portraits\" |
TorTorden
Amarr
|
Posted - 2011.01.23 14:30:00 -
[9]
Ok some people have asked at the risk of ridicule. (Hey Im self taught..) here is most of the php sans the html form. I'm using Curl for the fetching of the xml then grab the character id's from with simplexml so your webserver needs to have at least those two.
<?php function get_curl_data($xml,$names) { $crl=curl_init();
/* I put the data I send to the api servers in here, was it something else than just characterID * I would have UserID,Apikey,characterId etc in there. * * (I personaly like long format in code helps me, to better keep track on things * (got brain issues in that department)) */
$api=array ( 'names' => $names );
$url="http://api.eve-online.com{$xml}"; CURL_SETOPT($crl, CURLOPT_URL, $url); CURL_SETOPT($crl, CURLOPT_RETURNTRANSFER, true); CURL_SETOPT($crl, CURLOPT_POST, TRUE); CURL_SETOPT($crl, CURLOPT_POSTFIELDS, $api); $crl_data=curl_exec($crl) OR DIE("Error retrieving xml"); curl_close($crl); return $crl_data; }
/*$list gets its values from a text field or could be database, or from whatever you can access *If the server has 'Magic_qoutes on' things like apostrophes will cause all kinds of problems *if it is on run stripslashes() on the variable before sending to */
$data=get_curl_data("/eve/CharacterID.xml.aspx",$list);
$xml=new simplexmlelement($data); // My HTML skills are practicaly nonexistant..
echo"<table><tr><th>Old<th>New</tr>"; foreach($xml->result->rowset->row AS $row) { $values=$row->attributes(); $name=(string)$values['name']; $characterid=(double)$values['characterID'];
/* as an example I grab portraits. Since the xml will return a row result pr name identified you would want to put the values in an array, or concatonate into an sql query or something. In this case if you where to try using the $name or $characterid variables after the loop they would contain only the last set of values in the xml */
echo"<tr><td><img src='http://oldportraits.eveonline.com/Character/{$characterid}_256.jpg'>"; echo"<td><img src='http://image.eveonline.com/Character/{$characterid}_256.jpg'></tr>"; echo"<tr><td align='center' colspan=100%><h1>{$name}</h1></tr>";
} ?> |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |