Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

xHabbo V

Status
Not open for further replies.
Joined
Sep 10, 2011
Messages
778
Reaction score
138
PUk1vPh - xHabbo V - RaGEZONE Forums
Brief Introduction
xHabbo is an administration panel that is ideally going to cover everything one could ever possibly imagine within the retro business. The system is coded with Javascript built on Google's V8 Engine, (Node).

Some Code Snippets
Dynamic Class Loading
Code:
[COLOR=#474B51]import File from 'glob'[/COLOR]
import Async from 'async'
import Express from 'express'
import Messages from '../messages'

export default class System
{

  static launch (cb)
  {
    const http = Express()
    http.use(Express.static(`${homeDirectory}/public/assets`))


    Async.series([

      // Configure It
      function (cb)
      {
        http.set('views', `${homeDirectory}/public/views`)
        http.set('view engine', 'ejs')
        cb()
      },

      // Load Middleware
      function (cb)
      {
        File(`${__dirname}/middleware/**/*.js`, ((e, f) => {
          if (!e)
          {
            f.forEach((fi) => {
              const c = require(fi).default
              new c (http)
            })
            cb()
          }
          else
          {
            cb(e)
          }

        }))
      },

      // Load Controllers
      function (cb)
      {
        File(`${__dirname}/controllers/**/*.js`, ((e, f) => {
          if (!e)
          {
            f.forEach(fi => {
              const c = require(fi).default
              new c (http)
            })
            cb()
          }
          else
          {
            cb(e)
          }

        }))
      }

    ], ((e, r) => {
      if (e) errorMode = true

      http.listen(80, (() => {
        cb(null, `HTTP server started in ${Date.now()-timeLaunched}ms`)
      }))
    }))

  }

[COLOR=#474B51]}[/COLOR]
Dynamic Background Task Manager
Code:
[COLOR=#474B51]import File from 'glob'[/COLOR]
import Async from 'async'
import Express from 'express'
import Messages from '../messages'

export default class System
{

  static launch (cb)
  {
    const http = Express()
    http.use(Express.static(`${homeDirectory}/public/assets`))


    Async.series([

      // Configure It
      function (cb)
      {
        http.set('views', `${homeDirectory}/public/views`)
        http.set('view engine', 'ejs')
        cb()
      },

      // Load Middleware
      function (cb)
      {
        File(`${__dirname}/middleware/**/*.js`, ((e, f) => {
          if (!e)
          {
            f.forEach((fi) => {
              const c = require(fi).default
              new c (http)
            })
            cb()
          }
          else
          {
            cb(e)
          }

        }))
      },

      // Load Controllers
      function (cb)
      {
        File(`${__dirname}/controllers/**/*.js`, ((e, f) => {
          if (!e)
          {
            f.forEach(fi => {
              const c = require(fi).default
              new c (http)
            })
            cb()
          }
          else
          {
            cb(e)
          }

        }))
      }

    ], ((e, r) => {
      if (e) errorMode = true

      http.listen(80, (() => {
        cb(null, `HTTP server started in ${Date.now()-timeLaunched}ms`)
      }))
    }))

  }

[COLOR=#474B51]}[/COLOR]

The core is being developed initially to cover anything that could possibly be needed for feature development. This project is going to be built within my free time, which isn't very much due to numerous jobs, school and the military - however I will try my hardest to release a base build for this sometime within the next month.

Installation System
 

Attachments

You must be registered for see attachments list
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,688
Sigh, another dead development.

Thread closed, contact me if you want it reopened again.

UPDATE:

Thread reopened.

UPDATE #2:

Thread closed again by Future
 
Last edited by a moderator:
Joined
Sep 10, 2011
Messages
778
Reaction score
138
Updates
-Email system has been put in place to automatically send system emails for triggering actions, ie: creating a new staff account
-Features are being built based around the Plus Emulator database
-Most of the core functionality is present with a base build set for November 10, with additional support builds persisting.
-Due to nature of constant updates, an update page that checks for updates has also been developed, may add a background process to check as well.

 
Status
Not open for further replies.
Back
Top