Snow In Your Client

Results 1 to 19 of 19
  1. #1
    Account Upgraded | Title Enabled! Joe Richardson is offline
    MemberRank
    Feb 2013 Join Date
    485Posts

    Snow In Your Client

    I was recently looking on a foreign habbo forum and found this. It allows snow to fall on your client. This would be a cool little script for any hotel during Christmas time.

    All you need to do is enter this script inside your client.php file.


    <script src="http://sd-1.archive-host.com/membres/up/37821634957680146/neige/snowstorm.js"></script>
    If you're wondering where to place it inside the file, look for these two at the bottom of the php file, and place the script between them.

    </body>
    Script would go here.
    </html>

    Credits to http://schillmania.com/projects/snowstorm/

    Screenie:
    The snow is animated.

    Last edited by Joe Richardson; 22-10-13 at 07:10 PM.


  2. #2
    The Omega Superfun is offline
    MemberRank
    Dec 2006 Join Date
    The NetherlandsLocation
    5,223Posts

    Re: Snow In Your Client

    Credits would go to
    JavaScript Snow: DHTML Snowstorm

  3. #3
    Account Upgraded | Title Enabled! Joe Richardson is offline
    MemberRank
    Feb 2013 Join Date
    485Posts

    Re: Snow In Your Client

    Quote Originally Posted by Superfun View Post
    Thanks for that, i will add it to the thread.

  4. #4
    Member BeatScript is offline
    MemberRank
    Aug 2011 Join Date
    FranceLocation
    64Posts

    Re: Snow In Your Client

    It's funny when it's winter but I don't think it's very useful.

    Btw, fix this:
    Spoiler:

    Code:
    <script src=http://sd-1.archive-host.com/membres/up/37821634957680146/neige/snowstorm.js</script>
    Become:

    Code:
    <script src="http://sd-1.archive-host.com/membres/up/37821634957680146/neige/snowstorm.js"></script>

  5. #5
    Account Upgraded | Title Enabled! Joe Richardson is offline
    MemberRank
    Feb 2013 Join Date
    485Posts

    Re: Snow In Your Client

    Quote Originally Posted by BeatScript View Post
    It's funny when it's winter but I don't think it's very useful.

    Btw, fix this:
    Spoiler:

    Code:
    <script src=http://sd-1.archive-host.com/membres/up/37821634957680146/neige/snowstorm.js</script>
    Become:

    Code:
    <script src="http://sd-1.archive-host.com/membres/up/37821634957680146/neige/snowstorm.js"></script>
    Yeah, i saw that. Thanks, also, yeah. It's more a winter thing, but i suppose atleast people can find it here for when that time comes.

  6. #6

    me ridez bykes

    Sean is offline

    LegendRank
    Jun 2007 Join Date
    JerseyLocation
    4,098Posts

    Re: Snow In Your Client

    It's best to host the file locally so you can speed up the loading times, rather than using someone else's host. Still, it'll slow down your client. But, good release I suppose. I still prefer the in-game snow furniture. Although, it makes you lag.

  7. #7
    ☮TAKU???? seanrom is offline
    MemberRank
    Nov 2009 Join Date
    1,004Posts

    Re: Snow In Your Client

    Adding this will definitely heat up the visitors pc dramatic causing an slow experience, not recommended to add.

    If you really want it tho, the script looks fine :)

  8. #8
    Account Upgraded | Title Enabled! Bow is offline
    MemberRank
    Jan 2012 Join Date
    407Posts

    Re: Snow In Your Client

    Wouldn't bother implementing this, as sated above. It looks too distracting as well.

  9. #9
    Developer Eronisch is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    1,328Posts

    Re: Snow In Your Client

    Quote Originally Posted by Zensai View Post
    Adding this will definitely heat up the visitors pc dramatic causing an slow experience, not recommended to add.

    If you really want it tho, the script looks fine :)
    You seriously think a bit of javascript is going to cause a slow experience?

    What year is it, 1980?

  10. #10
    Account Upgraded | Title Enabled! Joe Richardson is offline
    MemberRank
    Feb 2013 Join Date
    485Posts

    Re: Snow In Your Client

    Quote Originally Posted by Eronisch View Post
    You seriously think a bit of javascript is going to cause a slow experience?

    What year is it, 1980?
    I had around 10 users when i tested this. It was lag free. Bigger hotels may face a problem, but i doubt it. They'd have to try it i suppose.

  11. #11
    ☮TAKU???? seanrom is offline
    MemberRank
    Nov 2009 Join Date
    1,004Posts

    Re: Snow In Your Client

    Quote Originally Posted by Eronisch View Post
    You seriously think a bit of javascript is going to cause a slow experience?

    What year is it, 1980?
    Yes.

    It depends on how many objects that are on the screen moving at the same time (in this case it's snowflakes). Let me guess it's 40-50 snowflakes by default. Some users may find it laggy playing a retro, running some other applications maybe listening to music and running this script at the same time.

    I didn't say all, but some. It's definitely a cpu waste.

    @Joe Richardson
    This doesn't have anything to do with how big the hotel is or how many users it has, it's about the clients computer. It's a local JS script, not a server sided. :)

  12. #12
    Account Upgraded | Title Enabled! Joe Richardson is offline
    MemberRank
    Feb 2013 Join Date
    485Posts

    Re: Snow In Your Client

    Quote Originally Posted by Zensai View Post
    Yes.

    It depends on how many objects that are on the screen moving at the same time (in this case it's snowflakes). Let me guess it's 40-50 snowflakes by default. Some users may find it laggy playing a retro, running some other applications maybe listening to music and running this script at t

    I didn't say all, but some. It's definitely a cpu waste.

    @Joe Richardson
    This doesn't have anything to do with how big the hotel is or how many users it has, it's about the clients computer. It's a local JS script, not a server sided. :)
    Yeah, i didn't think when i posted my message. You're right :)

  13. #13
    Account Upgraded | Title Enabled! TheOleg is offline
    MemberRank
    Apr 2008 Join Date
    EstoniaLocation
    570Posts

    Re: Snow In Your Client

    Quote Originally Posted by Sean View Post
    It's best to host the file locally so you can speed up the loading times, rather than using someone else's host. Still, it'll slow down your client. But, good release I suppose. I still prefer the in-game snow furniture. Although, it makes you lag.
    How?
    mysite.com/script.js load faster than notmysite.com/script.js ?

  14. #14
    ☮TAKU???? seanrom is offline
    MemberRank
    Nov 2009 Join Date
    1,004Posts

    Re: Snow In Your Client

    Quote Originally Posted by Rav4eG View Post
    How?
    mysite.com/script.js load faster than notmysite.com/script.js ?
    Yes, in most cases it acctully does. It has todo with ping, serverload and what http server software you are using. nginx is better for hosting static files than an apache server, for instance. In most cases using your own mirror is faster than a public mirror because of the reasons mentioned above. Also, when you host at your own webserver you have better cache control.

  15. #15
    Account Upgraded | Title Enabled! TheOleg is offline
    MemberRank
    Apr 2008 Join Date
    EstoniaLocation
    570Posts

    Re: Snow In Your Client

    Quote Originally Posted by Zensai View Post
    Yes, in most cases it acctully does. It has todo with ping, serverload and what http server software you are using. nginx is better for hosting static files than an apache server, for instance. In most cases using your own mirror is faster than a public mirror because of the reasons mentioned above. Also, when you host at your own webserver you have better cache control.
    In Habbo Retro reality it's 47ms vs 47.1ms.
    There will be no difference or local hosting will be even slower.

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

    Re: Snow In Your Client

    Quote Originally Posted by Rav4eG View Post
    In Habbo Retro reality it's 47ms vs 47.1ms.
    There will be no difference or local hosting will be even slower.
    In your country maybe...

    Put that script tag in the body tag and the load time will be the same as before but only the snowstorm file will load in the background and may put the snowflakes later on.


    Also, 40/50 snowflakes on a screen makes your pc lagg? well, did you know a normal game with fancy 3d graphics makes even more calculations to render the graphichs then chrome/w.e. does to render the snowflakes?

    In general, flash sucks as we all know. A bussy room in Habbo makes your client lagg even worse then 1000 snowflakes.

  17. #17
    Apprentice Chazero is offline
    MemberRank
    May 2013 Join Date
    YouLocation
    6Posts

    Re: Snow In Your Client

    Still... Thanks for the release.

  18. #18
    Member Aruthra is offline
    MemberRank
    Sep 2013 Join Date
    IndiaLocation
    55Posts

    Re: Snow In Your Client

    Thanks for this!

  19. #19
    Account Upgraded | Title Enabled! Joe Richardson is offline
    MemberRank
    Feb 2013 Join Date
    485Posts

    Re: Snow In Your Client

    Quote Originally Posted by Aruthra View Post
    Thanks for this!
    You're very welcome.



Advertisement