Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Tutorials
[Guide] How to add images to your habbo.swf [Phoenix]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Galago" data-source="post: 166972" data-attributes="member: 7798"><p>Hi there,</p><p> </p><p>This is my first post ever on DevBest. Also I am Dutch, so my English isn't the best.</p><p>I found this out a couple of months ago. A way to add images to the habbo.swf</p><p>First I decided to keep this as a secret, but I think that isn't fair.</p><p></p><p><strong>What you need:</strong></p><p></p><p>Your habbo.swf</p><p>Leensters HabboUI Editor</p><p>A Flash Decompiler</p><p></p><p><strong>Part 1:</strong></p><p></p><p>Open your habbo.swf with the flash decompiler and extract this image:</p><p><a href="http://i46.tinypic.com/9rtwjk.png" target="_blank">http://i46.tinypic.com/9rtwjk.png</a></p><p>(image 1047 ofso)</p><p></p><p>Open it with paint.net/photoshop or whatever. (You have to make it transparent, so don't use paint)</p><p></p><p>Put an image you want in it, so like this:</p><p></p><p>You have to remember a few things:</p><p></p><p>1: The size from the image you pasted. (Mine is 65x20)</p><p>2: The space between your pasted image and image 1047, like this:</p><p><a href="http://i48.tinypic.com/34eydr8.png" target="_blank">http://i48.tinypic.com/34eydr8.png</a> (Mine is 57px)</p><p>3: The space between the top from your pasted image and image 1047, like this:</p><p><a href="http://i49.tinypic.com/246vr4z.png" target="_blank">http://i49.tinypic.com/246vr4z.png</a> (Mine is 17px)</p><p></p><p>Save image 1047, and edit your habbo.swf in the Flash decompiler. That part is done, now.</p><p></p><p><strong>Part 2:</strong></p><p></p><p>Open HabboUI Editor with your habbo.swf</p><p>At the left you will find a search box. Typ there [php]icon_19[/php]</p><p></p><p>The result is 3 files:</p><p>[php]habbo-198</p><p>habbo-312</p><p>habbo-809[/php]</p><p></p><p>First open habbo-312.</p><p></p><p>Search in current file for icon_19, you will find this:</p><p></p><p>[php]<!-- Pixel icon --></p><p> <template name="icon_19" asset="$asset"></p><p> <entities></p><p> <entity name="icon" type="bitmap"><region><Rectangle x="34" y="16" width="23" height="26" /></region></entity></p><p> </entities></p><p> </template></p><p>[/php]</p><p></p><p>Copy that and paste it under it, and edit it like this:</p><p></p><p>[php] <!-- Pixel icon --></p><p> <template name="icon_19" asset="$asset"></p><p> <entities></p><p> <entity name="icon" type="bitmap"><region><Rectangle x="34" y="16" width="23" height="26" /></region></entity></p><p> </entities></p><p> </template></p><p></p><p> <!-- IMAGE NAME (YOU CAN CHOOSE ONE) --></p><p> <template name="icon_{A}" asset="$asset"></p><p> <entities></p><p> <entity name="icon" type="bitmap"><region><Rectangle x="{B}" y="{C}" width="{D}" height="{E}" /></region></entity></p><p> </entities></p><p> </template></p><p>[/php]</p><p></p><p>{A} = A Random number. Make sure it doesn't excist allready.</p><p>{B} = The space between the left from your image and image 1047. (I explained that allready)</p><p>{C} = The space between the top fromyuor image and image 1047.</p><p>{D} = The width from your image.</p><p>{E} = The height from your image.</p><p></p><p></p><p>Click the green save button, and that part is done.</p><p></p><p>Now open habbo-198.</p><p>Search again in the current file for icon_19, you will find this:</p><p>[php]<asset mimeType="image/png" name="fx_icon_19_png" /></p><p>[/php]</p><p></p><p>Add under:</p><p>[php]<asset mimeType="image/png" name="fx_icon_{A}_png" /></p><p>[/php]</p><p></p><p>Click the green save button and that part is done.</p><p></p><p>Now open habbo-809</p><p></p><p>And again, search in the current file for icon_19</p><p></p><p>You will find this:</p><p></p><p>[php]<component type="icon" style="19" renderer="skin" asset="habbo_skin_icon_set_xml" layout="icon16"></p><p> <states><state name="default" layout="icon16" template="icon_19" /></states></p><p> </component></p><p>[/php]</p><p>Add under it, before /skin:</p><p>[php]<component type="icon" style="{A}" renderer="skin" asset="habbo_skin_icon_set_xml" layout="icon16"></p><p> <states><state name="default" layout="icon16" template="icon_{A}" /></states></p><p> </component>[/php]</p><p></p><p>Click the geen save button, and that part is done.</p><p></p><p>Now you have accualy added the image in the habbo.swf. Now you must show it somewhere. Use this code:</p><p></p><p>[php]<icon x="0" y="0" width="{D}" height="{E}" params="16" style="{A}" name="THE NAME YOU GAVE THE IMAGE"/></p><p>[/php]</p><p></p><p>Now it shows the image. You can add as much images as you want. I don't know if this works on r63B too, because I don't have a R63B hotel, so feel free to test it. I know that the codes are a littlebit different in r63B, but it bassicaly works the same, I think.</p><p></p><p>I hope I have helped a lot of people to make an unique habbo.swf.</p><p>Click like if you like this tutorial. Feel free to ask questions, in PM or as a comment.</p><p></p><p>Cheers,</p><p>Galago</p></blockquote><p></p>
[QUOTE="Galago, post: 166972, member: 7798"] Hi there, This is my first post ever on DevBest. Also I am Dutch, so my English isn't the best. I found this out a couple of months ago. A way to add images to the habbo.swf First I decided to keep this as a secret, but I think that isn't fair. [B]What you need:[/b] Your habbo.swf Leensters HabboUI Editor A Flash Decompiler [b]Part 1:[/b] Open your habbo.swf with the flash decompiler and extract this image: [url]http://i46.tinypic.com/9rtwjk.png[/url] (image 1047 ofso) Open it with paint.net/photoshop or whatever. (You have to make it transparent, so don't use paint) Put an image you want in it, so like this: You have to remember a few things: 1: The size from the image you pasted. (Mine is 65x20) 2: The space between your pasted image and image 1047, like this: [url]http://i48.tinypic.com/34eydr8.png[/url] (Mine is 57px) 3: The space between the top from your pasted image and image 1047, like this: [url]http://i49.tinypic.com/246vr4z.png[/url] (Mine is 17px) Save image 1047, and edit your habbo.swf in the Flash decompiler. That part is done, now. [b]Part 2:[/b] Open HabboUI Editor with your habbo.swf At the left you will find a search box. Typ there [php]icon_19[/php] The result is 3 files: [php]habbo-198 habbo-312 habbo-809[/php] First open habbo-312. Search in current file for icon_19, you will find this: [php]<!-- Pixel icon --> <template name="icon_19" asset="$asset"> <entities> <entity name="icon" type="bitmap"><region><Rectangle x="34" y="16" width="23" height="26" /></region></entity> </entities> </template> [/php] Copy that and paste it under it, and edit it like this: [php] <!-- Pixel icon --> <template name="icon_19" asset="$asset"> <entities> <entity name="icon" type="bitmap"><region><Rectangle x="34" y="16" width="23" height="26" /></region></entity> </entities> </template> <!-- IMAGE NAME (YOU CAN CHOOSE ONE) --> <template name="icon_{A}" asset="$asset"> <entities> <entity name="icon" type="bitmap"><region><Rectangle x="{B}" y="{C}" width="{D}" height="{E}" /></region></entity> </entities> </template> [/php] {A} = A Random number. Make sure it doesn't excist allready. {B} = The space between the left from your image and image 1047. (I explained that allready) {C} = The space between the top fromyuor image and image 1047. {D} = The width from your image. {E} = The height from your image. Click the green save button, and that part is done. Now open habbo-198. Search again in the current file for icon_19, you will find this: [php]<asset mimeType="image/png" name="fx_icon_19_png" /> [/php] Add under: [php]<asset mimeType="image/png" name="fx_icon_{A}_png" /> [/php] Click the green save button and that part is done. Now open habbo-809 And again, search in the current file for icon_19 You will find this: [php]<component type="icon" style="19" renderer="skin" asset="habbo_skin_icon_set_xml" layout="icon16"> <states><state name="default" layout="icon16" template="icon_19" /></states> </component> [/php] Add under it, before /skin: [php]<component type="icon" style="{A}" renderer="skin" asset="habbo_skin_icon_set_xml" layout="icon16"> <states><state name="default" layout="icon16" template="icon_{A}" /></states> </component>[/php] Click the geen save button, and that part is done. Now you have accualy added the image in the habbo.swf. Now you must show it somewhere. Use this code: [php]<icon x="0" y="0" width="{D}" height="{E}" params="16" style="{A}" name="THE NAME YOU GAVE THE IMAGE"/> [/php] Now it shows the image. You can add as much images as you want. I don't know if this works on r63B too, because I don't have a R63B hotel, so feel free to test it. I know that the codes are a littlebit different in r63B, but it bassicaly works the same, I think. I hope I have helped a lot of people to make an unique habbo.swf. Click like if you like this tutorial. Feel free to ask questions, in PM or as a comment. Cheers, Galago [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[Guide] How to add images to your habbo.swf [Phoenix]
Top