Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Node.JS Web App. (Canvas) ]
I hope this project will not be abandoned as it has already happened to everyone else.
Good luck and good job for all! :)
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Git 1.0.0- Added 1 new client sided server configuration: timeout, it's an integer which amount replicates how many seconds the clients should be allow to attempt a connection before timing out. Recommended value is to be 30 or lower.
- Fixed an issue with the LoadingHandler which may have interupted the canvas handling.
- Also added a simple math eqvuation to allow percentages such as 99.999 to be displayed as 99.
- Added a LoadingHandler.fadeScreen(callback) to fade out the loading screen.
- Added a packet header called ValidateAuthTicket to the client.
- Began work on the UI handling, will be reconstructed however.
- As said, implemented the sockets to the client.
- Implemented footer tool bar & landing view. (To be reconstructed slightly.).
- Reconstructed the MySQL database handling in the server, removing the DatabaseQuery class.
- Implemented the UserFactory to the server.
See all changes on the
GitHub.
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Live-stream coding.
I normally don't announce this, I usually just edit the thread with a direct video tag, however since I'll be streaming for a constant 12 to 24 hours (just a goal, depends on what happens). The stream is just me, developing this project. Feedback are always accepted as long as they're constructive. If you're just gonna be complaining, you will face a stream ban.
Thanks.
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Quote:
Originally Posted by
Luicy
Live-stream coding.
I normally don't announce this, I usually just edit the thread with a direct video tag, however since I'll be streaming for a constant 12 to 24 hours (just a goal, depends on what happens). The stream is just me, developing this project. Feedback are always accepted as long as they're constructive. If you're just gonna be complaining, you will face a stream ban.
Thanks.
Video is blocked because it had content of UMG/WMG.
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Quote:
Originally Posted by
Glaceon
Video is blocked because it had content of UMG/WMG.
I'm aware of that, stream ended couple hours ago, managed to do 9hours before sleeping.
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
@Luicy By now I bet you have thought to yourself that adding all script tags to the index in the correct order is a pain in the ass. A module bundler and taskrunner (and preferably a transpiler) is going to be a lifesaver for this project in the long run and is pretty much used for all modern js projects regardless of size.
The standard in the js community now a days is using webpack with babel.
It's 100% worth investing some time understanding how it works, and once you do, you're never going to not use it!
Good luck on your project :)
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Quote:
Originally Posted by
Konquer
@
Luicy By now I bet you have thought to yourself that adding all script tags to the index in the correct order is a pain in the ass. A module bundler and taskrunner (and preferably a transpiler) is going to be a lifesaver for this project in the long run and is pretty much used for all modern js projects regardless of size.
The standard in the js community now a days is using
webpack with
babel.
It's 100% worth investing some time understanding how it works, and once you do, you're never going to not use it!
Good luck on your project :)
I tried telling her that a few days ago and even attempted to hook her up with a basic setup - where she said that doing it in ES5 with <script> would be better for her project
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Good luck, by the way. I noticed you are using SQL query's. You could use the ORM Entity Framework. Makes live hell of a lot easier.
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
@Taiga stop censoring. The math.floor is an alternative for reinventing the wheel. No need to just delete my posts....
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Quote:
Originally Posted by
The General
@
Taiga stop censoring. The math.floor is an alternative for reinventing the wheel. No need to just delete my posts....
He deleted all three of ours posts, mine, yours, and Chris's, and I see why he did it. So that, this wasn't gonna happen.
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Git 1.0.1
- Created a simple Image2Array console application, converts a bitmap to a pixel array with color & position.
- Implemented a client sided image caching class, this is ran every single time the client loads.
- Moved the loading action messages to a single client_config.json.
- Implemented dynamic landing views, meaning they are defined in the client_config.json
- Implemented text variables: bottom tool bar, generic alerts, catalogue title.
- Changed font from WOFF to default TTF.
- Modified the canvas handler to work asyncronously.
- Added a CanvasHandler.drawImageSprite, works as defined.
- Added a CanvasHandler.setContextShadow, to allow image and object shadows.
- Added a CanvasHandler.calculateImage which both caches and calculates an image's width and heigth.
- Moved almost all configuration to a single class.
- Implemented a few socket handlings.
- Implemented the bottom bar and landing view.
- And more, review the GitHub link below.
See all changes on the
GitHub.
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Quote:
Originally Posted by
Luicy
- Modified the canvas handler to work asyncronously.
You probably want to avoid drawing images async in a renderloop as your images will appear in the wrong order.
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Quote:
Originally Posted by
Konquer
You probably want to avoid drawing images async in a renderloop as your images will appear in the wrong order.
I meant Async between canvas's.
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Quote:
Originally Posted by
Luicy
I meant Async between canvas's.
All your drawImage/drawSprite methods are async when the image has not been loaded yet.
Code:
$(image).on("load", function() {
// draw the image
}
inside a function that will be called 30+ times a second
Re: Habbo Hotel: [ C# Server (.NET Core, Sockets) ] - [ Web App. (Canvas) ]
Quote:
Originally Posted by
Konquer
All your drawImage/drawSprite methods are async when the image has not been loaded yet.
Code:
$(image).on("load", function() {
// draw the image
}
inside a function that will be called 30+ times a second
That am I aware of, what I meant was that, the context unique ID is stored in an local array where it's used, often I may do so that I link this array through functions as it won't hurt the system. However, before I stored the context ID locally, I stored everything in the CanvasHandler class, and that resulted in images overlapping eachother as you just demonstrated, so I added a callback to the CanvasHandler drawImage(sprite), and that's called when as said, the bitmap image loads in, however, as I try to cache all images I can before booting up the landing view, these images are stored in a global GameData(i think) class, and they're active infintitively and that results in just the client using the method of "sure, we've got this image already open, copy it to our context." instead of "aww, we gotta download the image, hold on.......done! let's draw it now!" and that'll result in the overlapping.
- - - Updated - - -
https://i.gyazo.com/1c624f58a4a677f6...39bce9168e.gif
Catalogue works right now ith promos, tabs and headers.