Habbo Camera

Damien

Don't need glasses if you can C#
Feb 26, 2012
425
638
Recently I've been working on improving and finishing my Habbo Camera ( ). Whilst still buggy I've decided to release it for beta testing. The camera itself is coded in c# and utilising the Magick.NET library. I will be continuing the development and will be updating this constantly behind the scenes (without the need for you to update each time).

How it works?
It works by sending data (packets) over a TCP socket to my server where I generate the image and send back the image path, consisting of some basic information inducing the time-stamp it was created. Using the response you can then link your camera to my sever to render the images on your client or download them onto your localhost.

Download:
Code:
https://mega.nz/#!EAZj1BCC!FEHMkWNnpJ333sYQMQtWy1_yzvqfCaOC0gZ8sQmU3R0

Code Example:
Code:
// Creates a connection to the CameraAPI server
CameraAPI.CameraAPI api = new CameraAPI.CameraAPI();

// Checks for a valid connection
if (api.Connected())
{
    string path;
    string hotelKey = "Testing-xGIaLvorphIqTjyFByjlexARbza7PpvK";

    // Sends json data to the server for rendering and responds with the path
    if (api.SendData(hotelKey, data, out path))
    {
        // Image successfully generated
    }
    else
    {
        // Unable to generate image
    }
}
else
{
    // Unable to connect to the CameraAPI
}

// Dispose of the connection cleanly
api.Dispose();

Images:
cA_IsUZ_QzKfLvTPVLm1Lw.png

I've found a bug!
Find a bug? Then feel free to post it bellow and I'll look into the issue.

Know Bugs:
-Pets are ****ed
-Window backgrounds/masks including doorways
-Most Filters don't work
-Room Thumbnails

Hotels using API:


P.s I will not code the camera for you, this is just the API for rendering the images.


Update 1.1:

-Added rendering the small image, I forgot to add it in (oopsie)
-Fixed a rare issue that caused the API to crash
-Fixed coloured furniture not loading into the API
-First live hotel to be using the API added

Update 1.2: !!IMPORTANT!!
You must download and update the new .dll file.
-Updated the .dll to receive the path from the server.
-Updated the .dll with better error handling.
-Started work on hotelKeys (this will be used in the future for customs, use the default test one for now).
-Improved socket listener on the server.
-Removed a lot of crap code used for debugging.
 
Last edited:

EmMeX

New Member
Sep 26, 2012
19
1
Any news on this project Damien? Seems like a really solid API based on your changelog what you have accomplished, would be a really great addition for the PlusEMU community.
 

Damien

Don't need glasses if you can C#
Feb 26, 2012
425
638
Not sure if the sockets on plus are able to sustain the api as it doesn't seem to handle huge amounts of data being sent to the server. (Which I'm pretty sure is the main reason floorplan doesn't work sometimes when creating huge rooms). I need to test this further.

As far as updates go, the rendering of the images hasn't changed. I've completely recorded the sockets as they were a bit hacky before hand and I'm currently working on a website for users to be able to upload customs furniture/clothing and manage the images. Once I've cleaned everything up and the sites up and running and I'll go back and finish the missing features the camera is missing.
 

Rain

c
Mar 13, 2015
558
243
Not sure if the sockets on plus are able to sustain the api as it doesn't seem to handle huge amounts of data being sent to the server. (Which I'm pretty sure is the main reason floorplan doesn't work sometimes when creating huge rooms). I need to test this further.

As far as updates go, the rendering of the images hasn't changed. I've completely recorded the sockets as they were a bit hacky before hand and I'm currently working on a website for users to be able to upload customs furniture/clothing and manage the images. Once I've cleaned everything up and the sites up and running and I'll go back and finish the missing features the camera is missing.
Ill shout you vps to keep this running if you need it, this is a cool feature and not something that should die out after a few weeks
 

EmMeX

New Member
Sep 26, 2012
19
1
Not sure if the sockets on plus are able to sustain the api as it doesn't seem to handle huge amounts of data being sent to the server. (Which I'm pretty sure is the main reason floorplan doesn't work sometimes when creating huge rooms). I need to test this further.
As far as updates go, the rendering of the images hasn't changed. I've completely recorded the sockets as they were a bit hacky before hand and I'm currently working on a website for users to be able to upload customs furniture/clothing and manage the images. Once I've cleaned everything up and the sites up and running and I'll go back and finish the missing features the camera is missing.

Thank you for the update - and thanks for continuing with the project.
A lot of people will make great use of this.
 

Damien

Don't need glasses if you can C#
Feb 26, 2012
425
638
Hey just to clear some things up about this. Due to limitations using butterfly based emulators (PlusEmu, ext.) and sending large amounts of data at once, this has become obsolete. Due to this it became pointless keeping the service available, as most if not all users using this would of had to do alot of core work to get it working.

If this is still something people want to mess around with and test despite the freezing when taking populated photos, send me a pm and I'll get back to you about using this on a test environment.

Thanks to everyone who used this and reported bugs, it was a fun project for me and I learnt alot from it in the process.
 

Users who are viewing this thread

Top