PDA

View Full Version : Habbo Face URL???



redtom
23-08-2008, 10:24 AM
Does anybody know what the url is for getting the face only of a habbo?

Like this;


http://www.habbo.co.uk/habbo-imaging/avatarimage?user=$user&direction=$direction&head_direction=$h_direction&size=$size

but what would only get the face not the whole body

Decode
23-08-2008, 10:40 AM
I dont think there is one :( Unless habbo were going to use it on there website I don't think they would make one.

You could allways use GD to crop the image so its only the head and a bit of body showing.

JackyBoy2906
23-08-2008, 10:52 AM
It Took Me Ages To Do I Took A Screen Shot And Got Rid Of BackGround..


http://i37.tinypic.com/21bqj41.jpg

Leetzgirl
23-08-2008, 10:59 AM
It Took Me Ages To Do I Took A Screen Shot And Got Rid Of BackGround..


http://i37.tinypic.com/21bqj41.jpg


Why is he next to a BBQ :S

redtom
23-08-2008, 11:02 AM
I don't think it would work properly as some habbos have huge hats so if I would crop an image using GD it would work to preset width and height so this would happen;

http://uploadpicz.com/images/BS4J3VS.jpg

And I don't see a way of finding out the size of a habbos face and to crop the image to that size.


It Took Me Ages To Do I Took A Screen Shot And Got Rid Of BackGround..

http://i37.tinypic.com/21bqj41.jpg

I think you've miss understood what I need, thats for trying anyway.

Dentafrice
23-08-2008, 04:37 PM
They are all the same size, the hat just replaces the hair? Although you have the beards.. and bandanas etc hanging off..

JackyBoy2906
23-08-2008, 05:30 PM
Why is he next to a BBQ :S


i like them lol

Meti
23-08-2008, 05:33 PM
Hmm. I don't think so. I think you have to delete pixel, by pixel, to have the head there ;)

redtom
23-08-2008, 06:14 PM
They are all the same size, the hat just replaces the hair? Although you have the beards.. and bandanas etc hanging off..

Oh I thought the hats would add to the height, I haven't played habbo for ages this is for a client. I've just used the mini versions of the habbos instead of there faces now.

Meti
23-08-2008, 06:41 PM
I haven't played habbo for a long time either ;)

Invent
23-08-2008, 10:07 PM
There isn't a great way to do this at the moment. Sadly the best method at the moment is to just put the image in a div and limit the height using css (though, this doesn't look great).

Until we figure out what the md5 hash at the end of the new imager is generated using (what variables, etc), there is no way to do something like this properly :(

Dentafrice
23-08-2008, 10:35 PM
That hash has always been there.

I remember asking Johno when I was first working on the imager (after HabboRemix) what it was for, and he said it is just a unique identifier. Nothing to do with any of the data.

Invent
23-08-2008, 10:37 PM
That hash has always been there.

I remember asking Johno when I was first working on the imager (after HabboRemix) what it was for, and he said it is just a unique identifier. Nothing to do with any of the data.Since when has the hash "always" been there? They only started using the new imager when they changed the way avatars are generated :S.

Dentafrice
23-08-2008, 10:42 PM
There has always been a hash appended to the imager URL (on the homes).

Excellent1
23-08-2008, 10:43 PM
I may be wrong but is there no way of using GD to do this??

Invent
23-08-2008, 10:46 PM
There has always been a hash appended to the imager URL (on the homes).I'm talking about this hash:

hd-185-1.ch-260-64.lg-270-110.sh-290-110.hr-676-31.ha-1012-95.fa-1209-62,s-3.g-0.d-2.h-2.a-0,79fedfba63809d4a9ddeb4fd1cf74a5b.gif

Habbo never used to use that imager for Homes, they've only started using it in the past few months.


I may be wrong but is there no way of using GD to do this??


Sadly not, there isn't a good enough method using php gd at the moment.

Moh
23-08-2008, 11:02 PM
I think the only way you could display just the head is GD layering and lots of image. You wouldn't be able to display a some ones habbo head, but if you found out which each part of the homes hash is.
But if you did, you could layer the hash.
Say the hash was 11-22-33-44-55-66-77-88
That would mean:
Layer 1: Image 1, Colour 1
Layer 2: Image 2, Colour 2
Layer 3: Image 3, Colour 3
Layer 4: Image 4, Colour 4
Layer 5: Image 5, Colour 5
Layer 6: Image 6, Colour 6
Layer 7: Image 7, Colour 7
Layer 8: Image 8, Colour 8

But, if you only wanted to display the head, you could just remove the layers for the clothes etc.. and just keep the layers for the head.

The only person who might understand that is simon though ;p

Also, for this hash hd-185-1.ch-260-64.lg-270-110.sh-290-110.hr-676-31.ha-1012-95.fa-1209-62,s-3.g-0.d-2.h-2.a-0,79fedfba63809d4a9ddeb4fd1cf74a5b.gif

The part in bold is just random characters, as Habbo save the images, and that just stops duplicates.

Excellent1
23-08-2008, 11:05 PM
Sadly not, there isn't a good enough method using php gd at the moment.Ahh damn, hopefully there could be soon.

Invent
23-08-2008, 11:07 PM
I think the only way you could display just the head is GD layering and lots of image. You wouldn't be able to display a some ones habbo head, but if you found out which each part of the homes hash is.
But if you did, you could layer the hash.
Say the hash was 11-22-33-44-55-66-77-88
That would mean:
Layer 1: Image 1, Colour 1
Layer 2: Image 2, Colour 2
Layer 3: Image 3, Colour 3
Layer 4: Image 4, Colour 4
Layer 5: Image 5, Colour 5
Layer 6: Image 6, Colour 6
Layer 7: Image 7, Colour 7
Layer 8: Image 8, Colour 8

But, if you only wanted to display the head, you could just remove the layers for the clothes etc.. and just keep the layers for the head.

The only person who might understand that is simon though ;p

Also, for this hash hd-185-1.ch-260-64.lg-270-110.sh-290-110.hr-676-31.ha-1012-95.fa-1209-62,s-3.g-0.d-2.h-2.a-0,79fedfba63809d4a9ddeb4fd1cf74a5b.gif

The part in bold is just random characters, as Habbo save the images, and that just stops duplicates.

The avatar imager is different to the Habbo badges imager Jack :P

Moh
23-08-2008, 11:14 PM
The avatar imager is different to the Habbo badges imager Jack :P
I'm sure they will use the same method, just a bit different :P

hd-185-1.ch-260-64.lg-270-110.sh-290-110.hr-676-31.ha-1012-95.fa-1209-62,s-3.g-0.d-2.h-2.a-0

hd could mean head?
lg could mean legs?
sh could mean shoes?
fa could but shouldnt mean face

Heres the colour ID's
http://www.habbohotel.com/gamedata/figuredata
http://www.habbohotel.com/gamedata/figurepartconfig/draworder > Interesting :o

Oh, and mess with some things here ;)
http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=hd-185-1.ch-260-64.lg-270-110.sh-290-110.hr-676-31.ha-1012-95.fa-1209-62,s-3.g-0.d-2.h-2.a-0

Invent
24-08-2008, 12:05 AM
I never knew of the figure variable, nice find.

I'll look into making it just show the head now :)

Edit: Sadly, it looks like the figure variable is only used to generate a Habbo avatar using just figure data instead of specifying a Habbo name (using the 'user' variable).

Dentafrice
24-08-2008, 12:14 AM
http://www.habbo.co.uk/habbo-imaging/avatarimage?action=lh-up&figure=hd-185-1.ch-999-99.lg-999-999.sh-999-110.hr-999-31.ha-1012-95.fa-1209-62,s-3.g-0.d-2.h-2.a-0

http://www.habbo.co.uk/habbo-imaging/avatarimage?action=sit&figure=hd-185-1.ch-999-99.lg-999-999.sh-000-110.hr-625-21.ha-12-95.fa-199-62,s-22.g-0.d-2.h-3.a-2

Invent
24-08-2008, 12:27 AM
^_^. Very, very nice find Jack.

Will come in useful for a lot of things.

Moh
24-08-2008, 12:42 AM
I never knew of the figure variable, nice find.

I'll look into making it just show the head now :)

Edit: Sadly, it looks like the figure variable is only used to generate a Habbo avatar using just figure data instead of specifying a Habbo name (using the 'user' variable).
If you do something wrong, you get a java error.
One of the first things is:
at com.sulake.habbo.data.figure.FigureStringConverter .replaceMissingSetWithDefault(FigureStringConverte r.java:192)

So we need to find out which sets there are, im presuming sets are the variables?



http://www.habbo.co.uk/habbo-imaging/avatarimage?action=lh-up&figure=hd-185-1.ch-999-99.lg-999-999.sh-999-110.hr-999-31.ha-1012-95.fa-1209-62,s-3.g-0.d-2.h-2.a-0

http://www.habbo.co.uk/habbo-imaging/avatarimage?action=sit&figure=hd-185-1.ch-999-99.lg-999-999.sh-000-110.hr-625-21.ha-12-95.fa-199-62,s-22.g-0.d-2.h-3.a-2
hehe, me and simon were messing with them when we found out how to remove the clothes :P

Invent
24-08-2008, 12:45 AM
I'll look into the imager properly tomorrow to try and find some interesting things to do with it.

Delatory
24-08-2008, 09:11 AM
http://del.jjr-servers.net/habbohead.php?user=Delused <- Wait for picture to load...
You are able to do that using GD.
http://del.jjr-servers.net/habbohead.php?user=*USERNAME* [UK Hotel Only]


<?
header("Content-type: image/png");
$src_im=imagecreatefrompng("http://www.habbo.co.uk/habbo-imaging/avatarimage?user=".$_GET['user']."&direction=3&head_direction=3&size=l");
$des_im=imagecreate(35, 43);
imagefill($des_im, 0, 0, imagecolorallocate($des_im, 0, 0, 0));
imagecopyresized($des_im, $src_im, 0, 0, 15, 14, "35", "43", "35", "43");
imagepng($des_im);
imagedestroy($src_im);
imagedestroy($des_im);
?>


It doesn't have the best loading time but it only gets there head and shoulders.

And it does work with everyone because habbo did the imager by there feet being in the same location every time.

Dentafrice
24-08-2008, 12:58 PM
But what if they have a beard? It would be cut off.

Delatory
24-08-2008, 01:00 PM
But what if they have a beard? It would be cut off.
Oh yeah never thought of that, I could make the crop bigger so it gets there beard aswell.

today
24-08-2008, 03:11 PM
Can you not use php so if there is a scarf ect, the PHP GD picks up on the data id and makes the image longer in height?

redtom
24-08-2008, 03:13 PM
Can you not use php so if there is a scarf ect, the PHP GD picks up on the data id and makes the image longer in height?

No because theres no way, or one that i can see of telling php if the habbo is wearing a scarf when your using the url Delatory used.

Invent
24-08-2008, 03:14 PM
No because theres no way, or one that i can see of telling php if the habbo is wearing a scarf when your using the url Delatory used.
You'd have to go on their home and get their regular figure data and then use the 'figure' variable on the imager instead of 'user'.


Can you not use php so if there is a scarf ect, the PHP GD picks up on the data id and makes the image longer in height?You'd just have to split the ID to find the accesories variable(s) and see if the id is a beard/scarf/etc.

But this would take a bit of time as you'd have to log EVERY accessory id.

redtom
24-08-2008, 03:18 PM
You'd have to go on their home and get their regular figure data and then use the 'figure' variable on the imager instead of 'user'.

You'd just have to split the ID to find the accesories variable(s) and see if the id is a beard/scarf/etc.

But this would take a bit of time as you'd have to log EVERY accessory id.

Arh I would never of thought of that, but going through all that would make the load time very long.

Invent
24-08-2008, 03:20 PM
Arh I would never of thought of that, but going through all that would make the load time very long.

It wouldn't take ages (depends on the server really), but it would make the loading time longer, yeah.

MrCraig
24-08-2008, 03:22 PM
LOL.
http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=hd-185-1.ch-261-64.lg-271-110.sh-291-110.hr-676-31.ha-1012-95.fa-1209-62,s-3.g-0.d-2.h-2.a-0

Sorry, had to post :P

EDIT; Ew someone bet me to stripping jack :{

Delatory
24-08-2008, 03:49 PM
Well i suggest that we start at where the tallest hat ends so then there hair and hat is not a problem.

hd-180-29.ch-215-62.lg-285-62.sh-290-62.ca-1803-84.hr-679-42.ha-1014-62.he-1605-62,s-0.g-0.d-4.h-4.a-0,0c55fb3e4754fa0655a07d346a3b3a9a.gif
That's my figure data without any Facial Accessories.

hd-180-29.ch-215-62.lg-285-62.sh-290-62.ca-1803-84.hr-679-42.ha-1014-62.he-1605-62.fa-1202-72,s-0.g-0.d-4.h-4.a-0,fdcc0389f080a94ff338c5c21f0f0c8f.gif
That's my figure data with a Button Nose on.

If you look you see there is extra code when i have a Facial Accessory on, we could use this to add the extra height on depending on which facial accessory it is. Also with a button nose you don't have to add anything on. :D

I'm going to start writing the code for it to work now :)

Delatory
24-08-2008, 05:19 PM
Sorry for Double Post but I can't edit my last post so...

Try this:


<?
$height=43;

$page=file_get_contents("http://www.habbo.".$_GET['hotel']."/home/".$_GET['habbo']);
$imagingurl=split("<div class=\"profile-figure\">", $page);
$imagingurl=split("</div>", $imagingurl[1]);
$imagingurl=split("src=\"/habbo-imaging/avatar/", $imagingurl[0]);
$imagingurl=split("\" />", $imagingurl[1]);
$search=stripos($imagingurl[0], ".fa-");
if ($search !== false) {
$fa=split(".fa-", $imagingurl[0]);
$fa=split("-", $fa[1]);
$fa=$fa[0];
if($fa=="1208" || $fa=="1201"){
$height=$height+1;
} else if($fa=="1210"){
$height=$height+4;
} else if($fa=="1204"){
$height=$height+5;
} else if($fa=="1205"){
$height=$height+11;
}
}

header("Content-type: image/png");
$src_im=imagecreatefrompng("http://www.habbo.co.uk/habbo-imaging/avatarimage?user=".$_GET['habbo']."&direction=3&head_direction=3&size=l");
$des_im=imagecreate(35, $height);
imagecopyresized($des_im, $src_im, 0, 0, 15, 14, "35", $height, "35", $height);
imagepng($des_im);
imagedestroy($src_im);
imagedestroy($des_im);
?>

today
24-08-2008, 06:34 PM
You'd have to go on their home and get their regular figure data and then use the 'figure' variable on the imager instead of 'user'.

You'd just have to split the ID to find the accesories variable(s) and see if the id is a beard/scarf/etc.

But this would take a bit of time as you'd have to log EVERY accessory id.
Better then nothing, would make it unique to the site.

Moh
24-08-2008, 06:48 PM
Eeek!
http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=hd-180-1024.ha-1012-1080&gesture=srp&direction=0&head_direction=2

Calon
24-08-2008, 06:49 PM
http://del.jjr-servers.net/habbohead.php?user=Delused <- Wait for picture to load...
You are able to do that using GD.
http://del.jjr-servers.net/habbohead.php?user=*USERNAME* [UK Hotel Only]


<?
header("Content-type: image/png");
$src_im=imagecreatefrompng("http://www.habbo.co.uk/habbo-imaging/avatarimage?user=".$_GET['user']."&direction=3&head_direction=3&size=l");
$des_im=imagecreate(35, 43);
imagefill($des_im, 0, 0, imagecolorallocate($des_im, 0, 0, 0));
imagecopyresized($des_im, $src_im, 0, 0, 15, 14, "35", "43", "35", "43");
imagepng($des_im);
imagedestroy($src_im);
imagedestroy($des_im);
?>
It doesn't have the best loading time but it only gets there head and shoulders.

And it does work with everyone because habbo did the imager by there feet being in the same location every time.



Warning: file_get_contents() [function.file-get-contents (http://del.jjr-servers.net/function.file-get-contents)]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/deljj/public_html/habbohead.php on line 4

Warning: file_get_contents(http://www.habbo./home/) [function.file-get-contents (http://del.jjr-servers.net/function.file-get-contents)]: failed to open stream: Permission denied in /home/deljj/public_html/habbohead.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /home/deljj/public_html/habbohead.php:4) in /home/deljj/public_html/habbohead.php on line 25

Warning: imagecreatefrompng(http://www.habbo.co.uk/habbo-imaging/avatarimage?user=&direction=3&head_direction=3&size=l) [function.imagecreatefrompng (http://del.jjr-servers.net/function.imagecreatefrompng)]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in /home/deljj/public_html/habbohead.php on line 26

Warning: imagecopyresized(): supplied argument is not a valid Image resource in /home/deljj/public_html/habbohead.php on line 28
‰PNG  ��� IHDR���#���+���ÈD£w
Warning: imagepng() [function.imagepng (http://del.jjr-servers.net/function.imagepng)]: gd-png: fatal libpng error: Invalid number of colors in palette in /home/deljj/public_html/habbohead.php on line 29

Warning: imagepng() [function.imagepng (http://del.jjr-servers.net/function.imagepng)]: gd-png error: setjmp returns error condition in /home/deljj/public_html/habbohead.php on line 29

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/deljj/public_html/habbohead.php on line 30


Wonderful.

Invent
24-08-2008, 07:03 PM
Edit: Correct Denta, he's missing the hotel & user on the imager (strange as it was working before).

Dentafrice
24-08-2008, 07:05 PM
He isn't specifying the hotel or user, from what I can see.

Delatory
24-08-2008, 07:12 PM
no that's because i've updated the file with a new script but i can't update my post.

http://del.jjr-servers.net/habbohead.php?hotel=co.uk&habbo=Delused
http://del.jjr-servers.net/habbohead.php?hotel=*HOTEL (eg. co.uk)*&habbo=*HABBONAME*
Try it with a beard on aswell :)

Calon
24-08-2008, 07:25 PM
no that's because i've updated the file with a new script but i can't update my post.

http://del.jjr-servers.net/habbohead.php?hotel=co.uk&habbo=Delused
http://del.jjr-servers.net/habbohead.php?hotel=*HOTEL (eg. co.uk)*&habbo=*HABBONAME* (http://del.jjr-servers.net/habbohead.php?hotel=*HOTEL%20%28eg.%20co.uk%29*&habbo=*HABBONAME*)
Try it with a beard on aswell :)
http://del.jjr-servers.net/habbohead.php?hotel=co.uk&habbo=Xedon

Doesn't work.

Edit: Habbo UK is on maintenance.

Invent
24-08-2008, 07:26 PM
Not sure if your updated script does this, but I'm going to try and code a script which deletes the extra pixels around beards etc so that you can get JUST the head.


Doesn't work.

Habbo's down.

Calon
24-08-2008, 07:27 PM
Not sure if your updated script does this, but I'm going to try and code a script which deletes the extra pixels around beards etc so that you can get JUST the head.



Habbo's down.
Just noticed. :P

Ryzie
25-08-2008, 01:44 PM
<?
$height=43;

$page=file_get_contents("http://www.habbo.".$_GET['hotel']."/home/".$_GET['habbo']);
$imagingurl=split("<div class=\"profile-figure\">", $page);
$imagingurl=split("</div>", $imagingurl[1]);
$imagingurl=split("src=\"/habbo-imaging/avatar/", $imagingurl[0]);
$imagingurl=split("\" />", $imagingurl[1]);
$search=stripos($imagingurl[0], ".fa-");
if ($search !== false) {
$fa=split(".fa-", $imagingurl[0]);
$fa=split("-", $fa[1]);
$fa=$fa[0];
if($fa=="1208" || $fa=="1201"){
$height=$height+1;
} else if($fa=="1210"){
$height=$height+4;
} else if($fa=="1204"){
$height=$height+5;
} else if($fa=="1205"){
$height=$height+11;
}
}

header("Content-type: image/png");
$src_im=imagecreatefrompng("http://www.habbo.".$_GET['hotel']."/habbo-imaging/avatarimage?user=".$_GET['habbo']."&direction=3&head_direction=3&size=l&gesture=sml");
$des_im=imagecreate(35, $height);
imagecopyresized($des_im, $src_im, 0, 0, 15, 14, "35", $height, "35", $height);
imagepng($des_im);
imagedestroy($src_im);
imagedestroy($des_im);
?>

Added Smile and Fixed the Hotel

iJoe
27-08-2008, 03:14 AM
http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=hd-185-1.c

http://del.jjr-servers.net/habbohead.php?hotel=co.uk&habbo=merseymusic seems to work pretty well :)

Calon
27-08-2008, 07:09 AM
So, you just want the head, no sholders etc.

Do something to check the image on the users Habbo home, if their head matches something then a cut image that you've created and saved will load or something.

kreechin
27-08-2008, 11:37 PM
I remember starting work on a habbo imager not long after I completed the group badge script.
I phailed at it though haha all the numbers and stuff well confused me so i gave up.
Did attempt a head script aswell but also failed, if i can dig up my old files i'll post em.

I might give it another shot, it'll gimme something to do before the summer comes to a close and all my freedom is stole by some skank job i'll be doing.

Turbocom
27-08-2008, 11:53 PM
I only know how to get the small heads.

kreechin
28-08-2008, 12:10 AM
fancy linking me to one of them small heads?
I would do it myself but I've been permed till 2020 cause of all that erroring/clone trouble a while back and cba to register on .com

Turbocom
28-08-2008, 01:10 AM
fancy linking me to one of them small heads?
I would do it myself but I've been permed till 2020 cause of all that erroring/clone trouble a while back and cba to register on .com
surrrrrrrrrre http://www.habbo.ca/habbo-imaging/avatar/hr-145-53.hd-190-2.ch-808-81.lg-285-92.sh-295-81.ha-1026-62,s-3.g-0.d-2.h-2.a-0,bcc2990df143daa105e4aa731c9c0bc9.gif

Invent
28-08-2008, 01:28 AM
surrrrrrrrrre http://www.habbo.ca/habbo-imaging/av...731c9c0bc9.gifYou said...
I only know how to get the small heads.Which sounded like you know how to generate them to me :P

Turbocom
28-08-2008, 02:28 AM
You said...Which sounded like you know how to generate them to me :P
sorry for disappointment :P

Want to hide these adverts? Register an account for free!