Bringing back the descriptions (furni and badges)
Hi!
For those who, like us at Dreuzel Hotel, love to keep the Habbo.swf up-to-date but miss the descriptions I'll explain how to re-add furni and badge descriptions back to the new Habbo.swf's. Some (basic) knowledge about Habbo UI Editor and ActionScript is required.
Let's start in the ActionScripts:
In the script HabboLocalizationManager search for the function getBadgeDesc(), you'll see it's returning an empty string. Replace the entire function with:
Code:
public function getBadgeDesc(param1:String) : String
{
var local1:Class_3194 = new Class_3194(param1);
var local2:String = this.§_-5Th§(this.§_-1K8§(["badge_desc_" + param1,"badge_desc_" + local1.base]));
this.registerParameter(local2,"limit","" + this.§_-sK§(param1));
this.registerParameter(local2,"roman",this.§_-6ej§(local1.level));
return this.getLocalization(local2);
}
In the script FurnitureDataParser, search for param1.name,"" , you'll find it twice. Replace it twice with:
Code:
param1.name,param1.description
That's it for returning the descriptions, on to the layout! For the layout, we used Leensters Habbo UI Editor.
Replace the content of the layout file badge_details (habbo-1037.bin) with:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layout name="badge_details" width="20" height="20" version="0.0">
<window>
<border x="87" y="53" width="263" height="99" params="0" style="0" name="test">
<children>
<text x="8" y="6" width="250" height="28" params="16" style="0" name="name" caption="">
<variables>
<var key="font_face" value="Volter Bold" type="String"/>
<var key="font_size" value="9" type="uint"/>
<var key="text_color" value="0x0" type="hex"/>
<var key="embed_fonts" value="true" type="Boolean"/>
<var key="word_wrap" value="true" type="Boolean"/>
</variables>
</text>
<text x="8" y="33" width="250" height="60" params="16" style="0" name="description" caption="" clipping="false">
<variables>
<var key="font_face" value="Volter" type="String"/>
<var key="font_size" value="9" type="uint"/>
<var key="text_color" value="0x0" type="hex"/>
<var key="embed_fonts" value="true" type="Boolean"/>
<var key="word_wrap" value="true" type="Boolean"/>
</variables>
</text>
</children>
</border>
</window>
</layout>
In the layout file furni_view (habbo-2345.bin) search for:
Code:
<container x="0" y="209" width="170" height="1" params="16" style="0" name="owner_spacer" color="0xffff333333" background="true"/>
Above it, place:
Code:
<container x="0" y="158" width="170" height="1" params="16" style="0" name="description_spacer" color="0xffff333333" background="true"/>
<text x="0" y="164" width="170" height="40" params="16" style="0" name="description_text" caption="Furni%20description">
<variables>
<var key="text_color" value="0xffffff" type="hex"/>
<var key="mouse_wheel_enabled" value="false" type="Boolean"/>
<var key="sharpness" value="0" type="Number"/>
<var key="thickness" value="0" type="Number"/>
<var key="word_wrap" value="true" type="Boolean"/>
<var key="kerning" value="false" type="Boolean"/>
<var key="spacing" value="0" type="Number"/>
<var key="leading" value="0" type="Number"/>
</variables>
</text>
That's it, your descriptions are back.
Keep in mind that the first ActionScript part may not be the same for the swf version you're using. This is written for PRODUCTION-201705161239-133590383, class names may be different: be aware of it!
For editing the ActionScripts we used JPEXS Free Flash Decompiler, this function is experimental but works.
It's not something huge, but hey, they removed something we all liked :*: .
Re: Bringing back the descriptions (furni and badges)
What editor you use to edit the actionscript? I've never managed to re-compile the Habbo.swf from its actionscript source...
Re: Bringing back the descriptions (furni and badges)
Quote:
Originally Posted by
The General
What editor you use to edit the actionscript? I've never managed to re-compile the Habbo.swf from its actionscript source...
JPEXS Free Flash Decompiler, the Edit ActionScript function is experimental but works for me. Should have mentioned that, added to main post.
Re: Bringing back the descriptions (furni and badges)
Quote:
Originally Posted by
The General
What editor you use to edit the actionscript? I've never managed to re-compile the Habbo.swf from its actionscript source...
Use FFDEC for decompiling swf, and recompiling debug , sorry for my bad english i'm french developer
- - - Updated - - -
Quote:
Originally Posted by
Superbomm
JPEXS Free Flash Decompiler, the Edit ActionScript function is experimental but works for me.
At the same time I think so! Sorry mdr!
Re: Bringing back the descriptions (furni and badges)
Quote:
Originally Posted by
Superbomm
JPEXS Free Flash Decompiler, the Edit ActionScript function is experimental but works for me. Should have mentioned that, added to main post.
Aye shit. Does it allow you to add new resources? Like add new images? You know. Something something snowstorm.
Re: Bringing back the descriptions (furni and badges)
Quote:
Originally Posted by
The General
Aye shit. Does it allow you to add new resources? Like add new images? You know. Something something snowstorm.
I really don't know, never tried. You would also have to re-add the packets and related classes (if I'm right)... Nevertheless, it's something interesting to look into.
Re: Bringing back the descriptions (furni and badges)
Quote:
Originally Posted by
The General
Aye shit. Does it allow you to add new resources? Like add new images? You know. Something something snowstorm.
Don't get your hopes up too much, it throws errors when trying to edit most classes. :ott1:
Re: Bringing back the descriptions (furni and badges)
Quote:
Originally Posted by
Gaby
Don't get your hopes up too much, it throws errors when trying to edit most classes. :ott1:
Yeah I figured it would just be an ASM interpreter and modify the frames on the fly.
I've been trying to recompile the client from scratch (That is AS3 source + FlexSDK) but never got past a black screen.
Imagine the possibilities of being able to recompile it from scratch. Pretty endless.
Re: Bringing back the descriptions (furni and badges)
Maybe u can put that in your changer ? @Arachis
Re: Bringing back the descriptions (furni and badges)
Quote:
Originally Posted by
vista4life
Maybe u can put that in your changer ? @
Arachis
As you wish my lord: HabBit v4.3.163
Command: /desc
Why would they even stop it from showing up, like just don't update any new furni/badges with descriptions if you can't, but at least let the ones that already have descriptions still appear.
Thank you for the tutorial Superbomm, 11/10
Re: Bringing back the descriptions (furni and badges)
Quote:
Originally Posted by
Gaby
Don't get your hopes up too much, it throws errors when trying to edit most classes. :ott1:
True, but you are just doing it wrong then ;)
Re: Bringing back the descriptions (furni and badges)
Quote:
Originally Posted by
Arachis
As you wish my lord:
HabBit v4.3.163
Command:
/desc
Why would they even stop it from showing up, like just don't update any new furni/badges with descriptions if you can't, but at least let the ones that already have descriptions still appear.
Thank you for the tutorial Superbomm, 11/10
Thanks, this is useful! @Superbomm
True, it was a cut cost measure I guess. Or they would give staff which were responsible for translations less work pressure since they also must handle call for help issues etc. They better let descriptions appear for furniture which need more information about it's usage like wired furniture.
Re: Bringing back the descriptions (furni and badges)
Quote:
Originally Posted by
Arachis
As you wish my lord:
HabBit v4.3.163
Command:
/desc
Why would they even stop it from showing up, like just don't update any new furni/badges with descriptions if you can't, but at least let the ones that already have descriptions still appear.
Thank you for the tutorial Superbomm, 11/10
Thank you very much for that fast edit :) i appreciate it very much
Re: Bringing back the descriptions (furni and badges)
Nice tutorial, I never would have figured this out myself :P:
Has there been any decent updates since after they removed the descriptions?
What I'm saying is, it looks like there's not been anything added that is worth updating to, and now since they have removed descriptions I can hardly understand why it's worth updating at all, so that's why I'm asking.
Quote:
Originally Posted by
Arachis
As you wish my lord:
HabBit v4.3.163
Command:
/desc
Why would they even stop it from showing up, like just don't update any new furni/badges with descriptions if you can't, but at least let the ones that already have descriptions still appear.
Thank you for the tutorial Superbomm, 11/10
Holy shit you're quick!
Re: Bringing back the descriptions (furni and badges)
Thank you! I guess what's missing now is the badge descriptions on Inventory:
http://i.imgur.com/LRFNgMX.png