HabboScript | Jquery, php, css, javascript client | No packets

Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    HabboScript | Jquery, php, css, javascript client | No packets

    Hi!

    I've just recently started working on this project, which I plan to release as soon as I've come to a level where it's somewhat usable and can be added new furniture, clothes etc. to without too much issues.

    Features:
    No VPS/Dedicated server required. Just a webhost. Even though that might be a bit slow.
    Fully custmizable. If you know how.
    No browser plugins required. Just an updated web browser. Even my version of iexplorer seems to work fine.

    More to come ~

    Demo:

    URL: http://cathrine.host.wolk.space/

    The demo is currently not too developed, but it should give you a basic understanding on how the client etc will be built. You can teleport around, send chat messages and drag the screen.

    Features:

    1) If you send a message using the demo everyone that's currently doing so will also receive it.
    2) Use command ":floor 1-5" to change room type.

    Images:





    If you want to look at how the roommaps the floor generator uses, check this out.
    http://nutcracker.xyz/v4/resources/i...generator.html

    Work in progress, animation
    http://nutcracker.xyz/v4/resources/i...?dir=7&act=wlk
    dir= 0, 1, 2, 3, 7 | act = wlk, std

    UPDATE 20.07.2015: Webhost compatibility issue fixed.



    NB: If you are interested in helping development, please send me a private message!
    Last edited by Cathrine; 20-07-15 at 05:47 PM.


  2. #2
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Without packets how will multiple users work? You always send packets if you send something to a socket which is needed for multiple users (server).

  3. #3
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Quote Originally Posted by Glaceon View Post
    Without packets how will multiple users work? You always send packets if you send something to a socket which is needed for multiple users (server).
    All actions you do gets saved in a queue server-side which the site automatically loads (the actions relevant for the current user) every 100ms (by default).
    Last edited by Cathrine; 13-07-15 at 08:53 PM.

  4. #4
    Put Community First fallenfate is offline
    MemberRank
    Oct 2014 Join Date
    Arad DomanLocation
    1,108Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Interesting project! Being a PHP game dev myself it'll be interesting to watch how you develop this over time, :). Do you plan on adding cross-browser keyboard movement using arrows (or other keys), or are you keeping it bound to mouse click to give it your own unique spin? If you do keep it mouse-bound but move the avatar gracefully, do you know how you'll adjust avatar facing? ;)

    Anyway, good luck with your project! I'll subscribe and watch as it grows.

  5. #5
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Update:

    Floor generator is updated, generates walls. Uses roommaps.

    5 room types added to demo. Switch between them by using command
    (:floor 1-5)

    Movements gets added to action queue.

    Appearance of floortiles improved


    Look here: http://nutcracker.xyz/v4/resources/i...generator.html
    to see how the floor generator reads roommaps.
    Last edited by Cathrine; 16-07-15 at 01:56 PM.

  6. #6
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Looks good, but not safe 2 use :P

  7. #7
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Quote Originally Posted by Ryan View Post
    Looks good, but not safe 2 use :P
    No, it probably isn't yet. I just noticed how people played around there and I've fixed that now.

  8. #8
    Evil Italian Overlowrd Droppy is offline
    [Internal Coder]Rank
    Feb 2012 Join Date
    /home/droppyLocation
    2,047Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Could you post some snippet from server side? I'm starting to get excited by this project

    Good luck.

  9. #9
    Account Upgraded | Title Enabled! Jamal7 is offline
    MemberRank
    Dec 2013 Join Date
    547Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Good luck with your project

  10. #10
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    PHP Code:
    <?php


    include "general.php";
    $result $mysqli->query("SELECT * FROM action_queue WHERE time > ".time()." - 30 ORDER BY id DESC");
    $count 0;






    while (
    $row mysqli_fetch_array($resultMYSQLI_ASSOC))
    {
    switch(
    $row["type"]){
    case 
    '0'//Chatmessage
    $count $count 1;
    $timebonus = (time() - $row["time"]) * 30;
    $coord 550 + (50 $count) + $timebonus;
    $coord2 $coord 5;
    $chatmessage["msgdata"] = $chatmessage["msgdata"] . "<div style='bottom:".$coord."px' id='chatmessage'><div id='chatmessageborderleft'></div><div id='chatmessageborderrigth'></div><div  id='chatmessagecontent'><b>".$row["username"].": </b>".$row["message"]."</div></div>";
    break;


    case 
    '1'//Url
     
    $mysqli->query("DELETE FROM action_queue WHERE id = ".$row["id"]."");
    ?>
    <script>
    window.location.replace("<?php echo strip_tags(mysql_real_escape_string($row["message"])); ?>");
    </script>
    <?php
    break;


    case 
    '2'//Move
    include "pathfinder.php";
    break;
    }
    }




    ?>
    <script>
    $("#chatmessages").html("<?php echo $chatmessage["msgdata"]; ?>");
    $("#chatmessages").css("left", lastleftmessage);
    </script>
    Snippet of handling data queue. @Droppy
    Last edited by Cathrine; 16-07-15 at 02:01 AM.

  11. #11
    Evil Italian Overlowrd Droppy is offline
    [Internal Coder]Rank
    Feb 2012 Join Date
    /home/droppyLocation
    2,047Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    It's good to see the backend in development too , since you are interested, may this project give you some ideas of what to implement: https://forum.ragezone.com/f353/jabb...-habbo-912294/

    It also have some resources (such images (furni images, UI images, etc), avatar rendering script (renders all sides of char, and avatar holding camera), pathfinder, camera), which you can get for further use in your project, or as an idea! I'm up for opening a Jabbo server for demonstration.

    The best thing is habbo without client limitation! Thank you for caring for the community

  12. #12
    Put Community First fallenfate is offline
    MemberRank
    Oct 2014 Join Date
    Arad DomanLocation
    1,108Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    From the room creation description and the picture, I noticed before the door creation are four floor squares, whereas the data is '0WWW+D' and 0 is meant to be a black space. Should the door not then only have three floor squares before its created rather than reading the 0 as a wall? Or am I misinterpreting?

  13. #13
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Quote Originally Posted by fallenfate View Post
    From the room creation description and the picture, I noticed before the door creation are four floor squares, whereas the data is '0WWW+D' and 0 is meant to be a black space. Should the door not then only have three floor squares before its created rather than reading the 0 as a wall? Or am I misinterpreting?
    W = Wall
    0 = Blank space



    This is what would have happened if it was a wall there @fallenfate

    - - - Updated - - -

    Quote Originally Posted by Droppy View Post
    It's good to see the backend in development too , since you are interested, may this project give you some ideas of what to implement: https://forum.ragezone.com/f353/jabb...-habbo-912294/

    It also have some resources (such images (furni images, UI images, etc), avatar rendering script (renders all sides of char, and avatar holding camera), pathfinder, camera), which you can get for further use in your project, or as an idea! I'm up for opening a Jabbo server for demonstration.

    The best thing is habbo without client limitation! Thank you for caring for the community
    Thank you =). I'll look into the resources.
    Last edited by Cathrine; 16-07-15 at 02:38 AM.

  14. #14
    Put Community First fallenfate is offline
    MemberRank
    Oct 2014 Join Date
    Arad DomanLocation
    1,108Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Ah, thanks for the image. The description in your link says it's a 'black' space, not a 'blank' space, so I thought 0 might have been the generator for the black areas outside the walking area and maybe miscounted in the wall total, lol.

  15. #15
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    Re: HabboScript | Jquery, php, css, javascript client | No packets

    Quote Originally Posted by fallenfate View Post
    Ah, thanks for the image. The description in your link says it's a 'black' space, not a 'blank' space, so I thought 0 might have been the generator for the black areas outside the walking area and maybe miscounted in the wall total, lol.
    0 just means there's nothing there. Same as outside walking area.



Page 1 of 2 12 LastLast

Advertisement