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 Releases
[Release / Fix] Working and flawless catalog search on older PRODUCTION revisions
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="Jerry" data-source="post: 414907" data-attributes="member: 35321"><p>Hi,</p><p></p><p>Today, I will be releasing a fix on search functionality for catalogs.</p><p></p><p>I know for a fact that <strong>the majority</strong> of you retro owners haven't noticed this issue because all you care about is updating the catalog with new furniture additions and new furnilines from Habbo instead of completely fixing the catalog to be more efficient (searching for furniture, etc). I haven't noticed this too because I thought it was normal until my developer pointed this out like a week ago.</p><p></p><p>I have noticed that most hotels (e.g., <a href="https://habboon.pw" target="_blank">https://habboon.pw</a> and <a href="https://playrise.me" target="_blank">https://playrise.me</a>) have a catalog with broken search because they're on a SWF revision with broken search. I'm not sure how long the search functionality for the catalog has been broken for, but it seemed to be broken when Habbo rolled out the new catalog UI with the tabs and was recently fixed in PRODUCTION-201707041014-428081343 (or earlier.. not bothered checking).</p><p></p><p><em>You can either upgrade your revision to the latest build or apply my fix. Up to you!</em></p><p></p><p>Here's a GIF demonstrating a catalog with broken search:</p><p><img src="http://i.imgur.com/bDgVGyN.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>See that? Instead of getting the red furniture, it's showing me wired, all brick block colors and different color rares? I can't also search for individual furniture like the "Porch" from the Halloween 2010 furniline.</p><p></p><p>To fix this, you'll need to use <strong>JPEXS Free Flash Decomplier</strong>. You can download it by going to <a href="https://www.free-decompiler.com/flash/download/" target="_blank">https://www.free-decompiler.com/flash/download/</a> if you do not have the program. You may use other decompliers to apply the fix (if they work).</p><p></p><p>Let's go ahead with <strong>ActionScripts</strong> once you've opened your Habbo.swf with JPEXS. In the script <strong>HabboCatalog</strong>, search for:</p><p></p><p></p><p>And finding that code should show you a private function like this (yes, function name is obfuscated):</p><p>[CODE]</p><p>private function _-3sq(_arg1:String):void</p><p> {</p><p> var k:_-61k;</p><p> var k:String;</p><p> var _local7:Vector.<_-0Qi>;</p><p> var _local8:Vector.<_-0Qi>;</p><p> if (this._-1zq){</p><p> this._-1zq.stop();</p><p> };</p><p> if ((((((this._-g0 == null)) || ((_arg1 == null)))) || ((_arg1.length == 0)))){</p><p> return;</p><p> };</p><p> var k:Array = [];</p><p> var k:Vector.<_-61k> = new <_-61k>[];</p><p> var k:String = _arg1.toLowerCase().replace(" ", "");</p><p> for each (k in this._-g0) {</p><p> if ((((this._-6fK == _-6eh.BUILDER)) && (!(k._-4wY)))){</p><p> } else {</p><p> if ((((this._-6fK == _-6eh.NORMAL)) && (k._-3vw))){</p><p> } else {</p><p> k = [k._-1cw, k.description, k._-2u5].join(" ");</p><p> k = k.replace(/ /gi, "");</p><p> if ((((((this._-6fK == _-6eh.BUILDER)) && ((k._-3Bt == _-4kY)))) && ((k._-6fb == _-4kY)))){</p><p> if (((!((k._-b4 == ""))) && ((k.indexOf(k._-b4) < 0)))){</p><p> if (k.indexOf(k) >= 0){</p><p> k.push(k._-b4);</p><p> };</p><p> };</p><p> } else {</p><p> _local7 = this._-2PA._-2GU(k._-3Bt, true);</p><p> _local8 = this._-2PA._-2GU(k._-6fb, true);</p><p> if (((!((_local7 == null))) || ((((this._-6fK == _-6eh.NORMAL)) && (!((_local8 == null))))))){</p><p> if (k.indexOf(k) >= 0){</p><p> k.push(k);</p><p> if (k.length >= _-5AR){</p><p> break;</p><p> };</p><p> };</p><p> };</p><p> };</p><p> };</p><p> };</p><p> };</p><p> this.localization.registerParameter("catalog.search.results", "count", k.length.toString());</p><p> this.localization.registerParameter("catalog.search.results", "needle", _arg1);</p><p> this._-49L.findChildByName(PageLocalization._-sW).caption = "${catalog.search.header}";</p><p> this._-2PA._-6ka();</p><p> this._-54A._-64x(k);</p><p> this._-2PA.filter(k, k);</p><p> }</p><p>[/CODE]</p><p></p><p>In the function I pasted above, search for:</p><p></p><p></p><p>Replace it with:</p><p></p><p></p><p>Then search for:</p><p></p><p>There are two of them.</p><p></p><p>Replace with:</p><p></p><p></p><p>And that's it. Save changes when done.</p><p></p><p>Here's a functional catalog search when you've applied the fixes to the Habbo.swf:</p><p><img src="http://i.imgur.com/50qsoXg.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p></blockquote><p></p>
[QUOTE="Jerry, post: 414907, member: 35321"] Hi, Today, I will be releasing a fix on search functionality for catalogs. I know for a fact that [B]the majority[/B] of you retro owners haven't noticed this issue because all you care about is updating the catalog with new furniture additions and new furnilines from Habbo instead of completely fixing the catalog to be more efficient (searching for furniture, etc). I haven't noticed this too because I thought it was normal until my developer pointed this out like a week ago. I have noticed that most hotels (e.g., [URL]https://habboon.pw[/URL] and [URL]https://playrise.me[/URL]) have a catalog with broken search because they're on a SWF revision with broken search. I'm not sure how long the search functionality for the catalog has been broken for, but it seemed to be broken when Habbo rolled out the new catalog UI with the tabs and was recently fixed in PRODUCTION-201707041014-428081343 (or earlier.. not bothered checking). [I]You can either upgrade your revision to the latest build or apply my fix. Up to you![/I] Here's a GIF demonstrating a catalog with broken search: [IMG]http://i.imgur.com/bDgVGyN.gif[/IMG] See that? Instead of getting the red furniture, it's showing me wired, all brick block colors and different color rares? I can't also search for individual furniture like the "Porch" from the Halloween 2010 furniline. To fix this, you'll need to use [B]JPEXS Free Flash Decomplier[/B]. You can download it by going to [URL]https://www.free-decompiler.com/flash/download/[/URL] if you do not have the program. You may use other decompliers to apply the fix (if they work). Let's go ahead with [B]ActionScripts[/B] once you've opened your Habbo.swf with JPEXS. In the script [B]HabboCatalog[/B], search for: And finding that code should show you a private function like this (yes, function name is obfuscated): [CODE] private function _-3sq(_arg1:String):void { var k:_-61k; var k:String; var _local7:Vector.<_-0Qi>; var _local8:Vector.<_-0Qi>; if (this._-1zq){ this._-1zq.stop(); }; if ((((((this._-g0 == null)) || ((_arg1 == null)))) || ((_arg1.length == 0)))){ return; }; var k:Array = []; var k:Vector.<_-61k> = new <_-61k>[]; var k:String = _arg1.toLowerCase().replace(" ", ""); for each (k in this._-g0) { if ((((this._-6fK == _-6eh.BUILDER)) && (!(k._-4wY)))){ } else { if ((((this._-6fK == _-6eh.NORMAL)) && (k._-3vw))){ } else { k = [k._-1cw, k.description, k._-2u5].join(" "); k = k.replace(/ /gi, ""); if ((((((this._-6fK == _-6eh.BUILDER)) && ((k._-3Bt == _-4kY)))) && ((k._-6fb == _-4kY)))){ if (((!((k._-b4 == ""))) && ((k.indexOf(k._-b4) < 0)))){ if (k.indexOf(k) >= 0){ k.push(k._-b4); }; }; } else { _local7 = this._-2PA._-2GU(k._-3Bt, true); _local8 = this._-2PA._-2GU(k._-6fb, true); if (((!((_local7 == null))) || ((((this._-6fK == _-6eh.NORMAL)) && (!((_local8 == null))))))){ if (k.indexOf(k) >= 0){ k.push(k); if (k.length >= _-5AR){ break; }; }; }; }; }; }; }; this.localization.registerParameter("catalog.search.results", "count", k.length.toString()); this.localization.registerParameter("catalog.search.results", "needle", _arg1); this._-49L.findChildByName(PageLocalization._-sW).caption = "${catalog.search.header}"; this._-2PA._-6ka(); this._-54A._-64x(k); this._-2PA.filter(k, k); } [/CODE] In the function I pasted above, search for: Replace it with: Then search for: There are two of them. Replace with: And that's it. Save changes when done. Here's a functional catalog search when you've applied the fixes to the Habbo.swf: [IMG]http://i.imgur.com/50qsoXg.gif[/IMG] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
[Release / Fix] Working and flawless catalog search on older PRODUCTION revisions
Top