Page 1 of 1

Avatar Using Problem in Version 4

Posted: Tue Sep 24, 2013 3:11 am
by spoker
Dear Kent,
i cant use my custom avatars in version 4 ,
i cant find avatar folder and i donw know how to use Avatar Graphic !
please give me an example code with image
thanks!
regards

Re: Avatar Using Problem in Version 4

Posted: Tue Sep 24, 2013 9:12 am
by Kent Briggs
spoker wrote:i cant use my custom avatars in version 4 ,
i cant find avatar folder and i donw know how to use Avatar Graphic !
Avatars must be in a single horizontal image in version 4. See the bottom of this page:

http://www.briggsoft.com/docs/pmavens/Templates.htm

Re: Avatar Using Problem in Version 4

Posted: Wed Sep 25, 2013 2:21 am
by spoker
Thanks , its ok now,
but about Player Avatar ..
in Version 3 we using this code for Get Player Avatar :
http://12.34.56.789:8087/avatar?Player=Aces123
but what in Version 4 ?!
ty

Re: Avatar Using Problem in Version 4

Posted: Wed Sep 25, 2013 9:18 am
by Kent Briggs
spoker wrote: in Version 3 we using this code for Get Player Avatar :
http://12.34.56.789:8087/avatar?Player=Aces123
but what in Version 4 ?!
http://12.34.56.789:8087/Image?Name=Avatars

See the second example under "Create New Account" on the API Examples page:

http://www.briggsoft.com/docs/pmavens/API_Examples.htm

There is NewAcct4.php example that shows how to isolate a single image in the horizontal strip using the background style in CSS with an offset.

Re: Avatar Using Problem in Version 4

Posted: Wed Sep 25, 2013 11:02 am
by spoker
Yes i See , But i want to get (( ONE PLAYER AVATAR )) no All Avatars !
for example : Player id= John
how can i get just John's Avatar ?!

Re: Avatar Using Problem in Version 4

Posted: Wed Sep 25, 2013 12:09 pm
by Kent Briggs
spoker wrote:Yes i See , But i want to get (( ONE PLAYER AVATAR )) no All Avatars !
The version 4 client now uses them as one big image instead of 64 smaller images so that's how they are stored now. The example code I linked to will show them as individual avatars. If you really need separate image files then you'll have to create your own and store them on your own web site.

Re: Avatar Using Problem in Version 4

Posted: Wed Sep 25, 2013 12:26 pm
by spoker
i fix it with API and some codes,
anyway thanks ! :)