Bringing back the descriptions (furni and badges)

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Valued Member Superbomm is offline
    MemberRank
    Feb 2011 Join Date
    BelgiumLocation
    129Posts

    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 .
    Last edited by Superbomm; 22-05-17 at 01:43 PM.


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,609Posts

    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...

  3. #3
    Valued Member Superbomm is offline
    MemberRank
    Feb 2011 Join Date
    BelgiumLocation
    129Posts

    Re: Bringing back the descriptions (furni and badges)

    Quote Originally Posted by The General View Post
    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.

  4. #4
    Apprentice volodia is offline
    MemberRank
    Feb 2017 Join Date
    FranceLocation
    18Posts

    Re: Bringing back the descriptions (furni and badges)

    Quote Originally Posted by The General View Post
    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 View Post
    JPEXS Free Flash Decompiler, the Edit ActionScript function is experimental but works for me.
    At the same time I think so! Sorry mdr!

  5. #5
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,609Posts

    Re: Bringing back the descriptions (furni and badges)

    Quote Originally Posted by Superbomm View Post
    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.

  6. #6
    Valued Member Superbomm is offline
    MemberRank
    Feb 2011 Join Date
    BelgiumLocation
    129Posts

    Re: Bringing back the descriptions (furni and badges)

    Quote Originally Posted by The General View Post
    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.

  7. #7
    Gaby is offline
    MemberRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Bringing back the descriptions (furni and badges)

    Quote Originally Posted by The General View Post
    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.

  8. #8
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,609Posts

    Re: Bringing back the descriptions (furni and badges)

    Quote Originally Posted by Gaby View Post
    Don't get your hopes up too much, it throws errors when trying to edit most classes.
    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.

  9. #9
    The Legend Returns vista4life is offline
    MemberRank
    Mar 2007 Join Date
    The NetherlandsLocation
    843Posts

    Re: Bringing back the descriptions (furni and badges)

    Maybe u can put that in your changer ? @Arachis

  10. #10
    Valued Member Arachis is offline
    MemberRank
    Aug 2014 Join Date
    United StatesLocation
    132Posts

    Re: Bringing back the descriptions (furni and badges)

    Quote Originally Posted by vista4life View Post
    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

  11. #11
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: Bringing back the descriptions (furni and badges)

    Quote Originally Posted by Gaby View Post
    Don't get your hopes up too much, it throws errors when trying to edit most classes.
    True, but you are just doing it wrong then ;)

  12. #12
    Account Upgraded | Title Enabled! streamhotel is offline
    MemberRank
    Apr 2012 Join Date
    EarthLocation
    511Posts

    Re: Bringing back the descriptions (furni and badges)

    Quote Originally Posted by Arachis View Post
    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.

  13. #13
    The Legend Returns vista4life is offline
    MemberRank
    Mar 2007 Join Date
    The NetherlandsLocation
    843Posts

    Re: Bringing back the descriptions (furni and badges)

    Quote Originally Posted by Arachis View Post
    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

  14. #14
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

    Re: Bringing back the descriptions (furni and badges)

    Nice tutorial, I never would have figured this out myself

    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 View Post
    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!

  15. #15
    Valued Member jomp16 is offline
    MemberRank
    Jan 2012 Join Date
    BrazilLocation
    115Posts

    Re: Bringing back the descriptions (furni and badges)

    Thank you! I guess what's missing now is the badge descriptions on Inventory:




Page 1 of 2 12 LastLast

Advertisement