Revolution Emulator [C#, R63B, Encryption Cracked, DAO, Fluent NHibernate, Lua Plugin, Mono]

Status
Not open for further replies.

Zak

Posting Freak
Mar 12, 2011
848
453
-Updates
Coded Mysql Commands like Insert,Update,Execute etc.
Will post class tomo.

-Big Update
Coded a backup system that creates daily backups of your database optional [You could enable or disable it via Config file]
Database connection cached.
Interfaces for Handshake finished.
Handshake is fully coded.
Handshake now supports the new protocol (Thanks to LittleJ's packet scout i can finish it more off]
Added some updates to the protocol crack may have it working!!
Sockets will now support the new protocol.
HabboRC4 Cracking - I will start working on this so you can crack the new swfs
New Encoding done (Fully protocol Supportable)
New ServerMessage done (Fully protocol Supportable)
New ClientMessage done (Fully protocol Supportable)
Logged Packets are being worked on.
Multiple Database system may be completed [Just gotta configure the changes]

Examples:
Multiple Database Support System:

// Gets string for type of database for example phoenixs rank column may be called ranks so it replaces it with the phoenix one if it chosen etc.
var Query = new UpdateQuery("UPDATE " + GetDatabaseType.Rank() + " WHERE " + GetDatabaseType.ID() + " ='" + CurrentSession.MyCharacterInformation.ID + "'");

Give me your views on this system ^_^
 

Zak

Posting Freak
Mar 12, 2011
848
453
I did promise loads of updates since it's 4am it's next week from my last post!
Fuck exams.
Love Habbo.
Love Kryptos
Finish RevEmu
 

Zak

Posting Freak
Mar 12, 2011
848
453
Are one way gates even in Habbo R63?
Never really checked....
If they then yeah i could do possible functions that can be disabled or enabled.
The config will be auto set or if you want manually set.
Set = installed.
 

TesoMayn

Boredom, it vexes me.
Oct 30, 2011
1,482
1,482
I think I seen them in a R63 before.
I really can't be to sure.

But if you could add that, I'd like it.

Also, is this gonna be an open source EMU or no?
 

Zak

Posting Freak
Mar 12, 2011
848
453
Duh, open to the friendly community.

Mace, the more time you spent. The better it is.
That's why Xbox is much better then PS3 (don't know why i said that)
 

Ari

Member
Sep 29, 2010
320
48
I think I seen them in a R63 before.
I really can't be to sure.

But if you could add that, I'd like it.

Also, is this gonna be an open source EMU or no?
I've seen one ways in phoenix only error with them is when you put them next to a wall you can go out of the array
 
  • Like
Reactions: Zak

Zak

Posting Freak
Mar 12, 2011
848
453
Updates:
Added all the Socket plugins.

Socket Engine:


Socket Service:


Socket Base 1:


Socket Base 2:


Socket Facility:


Socket Common:


Mysql Commands:

Insert Query:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace RevEmu.MySql.MySqlCommands
{
    public static class Insert
    {
        /// <summary>
        /// Insert Type Of Query.
        /// </summary>
        /// <param name="query">Query that will be used for the command.</param>
        public static void Invoke(String query)
        {
            //open connection
            if (OpenSqlSession.IsSessionOpen())
            {
                // Define connection
                var connection = new MySqlConnection();

                //invoke command
                MySqlCommand cmd = new MySqlCommand(query, connection);

                //Execute command
                cmd.ExecuteNonQuery();

                //close connection
                CloseSqlSession.CloseSession();
            }
        }

    }
}

Update Query:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace RevEmu.MySql.MySqlCommands
{
    public static class Update
    {
        public static void Invoke(string query)
        {
            if (OpenSqlSession.IsSessionOpen())
            {
                var connection = new MySqlConnection();
                // Create Command
                MySqlCommand cmd = new MySqlCommand();
                //Assign the query using CommandText
                cmd.CommandText = query;
                //Assign the connection using Connection
                cmd.Connection = connection;

                //Execute query
                cmd.ExecuteNonQuery();

                //close connection
                CloseSqlSession.CloseSession();
            }
        }
    }
}

OpenSqlSession:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace RevEmu.MySql
{
    public static class OpenSqlSession
    {
        public static bool IsSessionOpen()
        {
            try
            {
                var connection = new MySqlConnection();
                connection.Open();
                return true;
            }
            catch (MySqlException ex)
            {
                //Log common Mysql errors down.
                switch (ex.Number)
                {
                    // Can't connect.
                    case 0:

                        Console.ForegroundColor = ConsoleColor.Red;
                        Console.WriteLine("Cannot connect to provided Mysql details.");
                        break;
                    // Invalid Username or Password
                    case 1045:
                        Console.ForegroundColor = ConsoleColor.Red;
                        Console.WriteLine("Invalid Mysql User or Password, please check your config and try again");
                        break;

                    // Unknown Error.
                    default:
                        Console.ForegroundColor = ConsoleColor.Red;
                        Console.WriteLine("Unknown RevSQL Error.");
                        Console.WriteLine("Error: " + ex);
                        break;
                }
                return false;
            }
        }

    }
}

CloseSqlSession
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace RevEmu.MySql
{
    public static class CloseSqlSession
    {
        public static bool CloseSession()
        {
            try
            {
                var connection = new MySqlConnection();
                connection.Close();
                return true;
            }
            catch (MySqlException ex)
            {
                Console.WriteLine("Closing MySqlSession Failed Error: " + ex.Message);
                return false;
            }
        }
    }
}

DatabaseConnection:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace RevEmu.MySql
{
    public class DatabaseConnection
    {
        //Constructor
        public DatabaseConnection()
        {
            Initialize();
        }

        //Load up Mysql settings using RevEmu.RevConfig
        private void Initialize()
        {
            var connectionBuilder = new MySqlConnectionStringBuilder();
        }
    }
}

That's pretty much it for just today. Lot's more to come!
 

Zak

Posting Freak
Mar 12, 2011
848
453
The sockets will be properly the best ever released in a Habbo server.

Not strong as Netty or Mina but way better in using it supports more OS's it even supports the new Windows Azure and also Mono which is unix/linux.
 

Quackster

a devbest user says what
Aug 22, 2010
1,765
1,245
Good luck Zak :)
Can we see any game play?

Also great to see you using Hibernate :)

The sockets will be properly the best ever released in a Habbo server.

Not strong as Netty or Mina but way better in using it supports more OS's it even supports the new Windows Azure and also Mono which is unix/linux.

Matty tested Netty and it holds 512, 000 connections simultaneously
 
  • Like
Reactions: Zak

Zak

Posting Freak
Mar 12, 2011
848
453
Good luck Zak :)
Can we see any game play?

Also great to see you using Hibernate :)

Matty tested Netty and it holds 512, 000 connections simultaneously

It may hold a ton of fuckers.
But the main thing that counts is it's usage in different type of OS's a lot of people are getting into linux these days. But hopefully should see some in-game at the end of week. Also i am not using Hibernate no more too complicated with the mapping. I have made my own simple SQL which is just as good in high usage. These sockets are properly the best to use in C# but of course netty and mina is better at handling connections
 

Quackster

a devbest user says what
Aug 22, 2010
1,765
1,245
It may hold a ton of fuckers.
But the main thing that counts is it's usage in different type of OS's a lot of people are getting into linux these days. But hopefully should see some in-game at the end of week. Also i am not using Hibernate no more too complicated with the mapping. I have made my own simple SQL which is just as good in high usage. These sockets are properly the best to use in C# but of course netty and mina is better at handling connections

I was just saying a fact about Netty :p
Anyway, when can we see ingame shots?
 

Zak

Posting Freak
Mar 12, 2011
848
453
Prox Saturday.

I need to get the sockets installed up and ready to use.
 

Zak

Posting Freak
Mar 12, 2011
848
453
Sorry guys i won't be online for long.

I opened one of my house doors fast since i was in a rush and did not notice my mum was on the other side.

Yeah the door hit her full on in the head i'm kinda scared now because she feels faint and has big lump in her head.
 

Zak

Posting Freak
Mar 12, 2011
848
453
-Ignore last post. They did something called a cat scan on her. Seems like there no blood leak in the brain. She'll be fine just a huge lump.
 
Status
Not open for further replies.

Users who are viewing this thread

Top