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

Status
Not open for further replies.

MubarikHZH

Join The Revolution
Mar 11, 2012
237
40
Can you tell us a preview of some the features in game wise like will all the new games work like snowstorm , snowboarding , horses fully implemented , freeze and will all wired furniture be working. Or will this all be a secret. :OO:rasta:
 

Deion

Posting Freak
Jul 3, 2010
1,273
300
Can you tell us a preview of some the features in game wise like will all the new games work like snowstorm , snowboarding , horses fully implemented , freeze and will all wired furniture be working. Or will this all be a secret. :OO:rasta:
He just stated that he's just started with in-game stuff so this isn't even made yet..
Best of the luck..
 

Zak

Posting Freak
Mar 12, 2011
847
453
Done FluentNHibernate for mapping. No need for bunch of .XML files.
Emulator now debugs.

Latest source pushed to Git.
 

Zak

Posting Freak
Mar 12, 2011
847
453
Got NHibernate configured up with FluentNHibernate.

(MySql)

Code:
public static Configuration NHibernateConfiguration()
        {          
            var config = Fluently.Configure()
                .Database(MySQLConfiguration
                              .Standard
                              .ConnectionString(cs => cs
                                                          .Server(GetConfig().data["db.hostname"])
                                                          .Database(GetConfig().data["db.name"])
                                                          .Username(GetConfig().data["db.username"])
                                                          .Password(GetConfig().data["db.passwword"])))
                .Mappings(
                    x =>
                    x.FluentMappings.AddFromAssembly(Assembly.Load("NHibernate_MySQL.Domain")));

            return config.BuildConfiguration();
        }

Session Factory

Code:
   public static ISessionFactory GetSessionFactory()
        {
            return NHibernateConfiguration().BuildSessionFactory();
        }
 

Zak

Posting Freak
Mar 12, 2011
847
453
It's 8:43am and i've completed on my research on NHibernate for storage handling.
(See how dedicated i am haha)

Here's what i've come up with

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using NHibernate.Criterion;
using RevEmu.Database.NHibernate.Mapping.Phoenix;

namespace RevEmu.Database.NHibernate.Sql.User
{
    internal class HabboSqlData
    {
        #region Fields

        /// <summary>
        /// Id of the Habbo.
        /// </summary>
        private readonly int _id;

        /// <summary>
        /// Username of the Habbo.
        /// </summary>
        private readonly string _username;

        /// <summary>
        /// Motto of the Habbo.
        /// </summary>
        private readonly string _motto;

        #endregion

        /// <summary>
        /// Gets a Habbo user by using a ID [Note] Use IHI's HabboDistributor instead of this method!
        /// </summary>
        /// <param name="id">Id of the Habbo</param>
        internal HabboSqlData (int id)
        {
            Phoenixuser phoenixuser;

            using (var session = (ISession) RevEnvironment.GetSessionFactory())
            {
                phoenixuser = session.Get<Phoenixuser>(id);
            }

            _id = phoenixuser.id;

            _username = phoenixuser.username;

            _motto = phoenixuser.motto;

        }

        internal HabboSqlData(string username)
        {
            var user = new Phoenixuser {username = username};

            using (var session = (ISession) RevEnvironment.GetSessionFactory())
            {
                user = session.CreateCriteria<Phoenixuser>()
                    .Add(Example.Create(user))
                    .UniqueResult<Phoenixuser>();
            }
        }

        public HabboSqlData(Phoenixuser phoenixuser)
        {
            _id = phoenixuser.id;

            _username = phoenixuser.username;

            _motto = phoenixuser.motto;
        }

        public int GetID()
        {
            return _id;
        }


        public string GetUsername()
        {
            return _username;
        }
    }
}

Phoenixuser = Mapped file.

This is done with Fluent NHibernate.

Also using IHI's HabboDistributor, since it supports NHibernate very nicely! [Full credits given to Chris]

That's all for now, i need my sleep bitches.

You can check the update out on Git, it's been pushed.

-Zak out
 

Zak

Posting Freak
Mar 12, 2011
847
453
10icw8n.jpg


New Logo from my friend Jayden.

Still waiting for headers from itachi.
 

Zak

Posting Freak
Mar 12, 2011
847
453
First.

This is because it is A* Algorithm.
Algorithm is best for pathfinders for gaming.

Second.

No, it will use Mono in the future.
 

Zak

Posting Freak
Mar 12, 2011
847
453
Well, Itachi said it's going good so far extracting the headers.

So i'm just gonna work on the V26 Protocol handling for a day or two. Until itachi is done.
 

emonemo1234

Member
Feb 9, 2012
221
26
A short question Zak, When you release this right, will it be 100% ready for use or kind of like neutrino and others?
Becuase im thinking of buying a phoenix licence, but i dont want to waste shit if revemu is coming.
______________________________________________________________________________________________________________________________________________
And, thought id give some brainstorm ideas...
Ok so first, pets, wired, and bots lol
second, fully featured with shit from R63B build.
Basicly everything on habbo........
But heres an idea, for commands, maybe a ":buyroom" and ":sellroom" command. This could actually be quite cool because if someone is a crazy good designer, they can make rooms, and sell them.
And basicly all the shit on phoenix consistining of ":convertcredits" and um ":follow x" and crap in that nature.
And one realy cool thing i hope you add, room polls. :D
Other than that, yeh, luck!
 

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,801
669
And, thought id give some brainstorm ideas...
  1. Ok so first, pets, wired, and bots lol
  2. second, fully featured with shit from R63B build.
  3. Basicly everything on habbo........
  4. But heres an idea, for commands, maybe a ":buyroom" and ":sellroom" command. This could actually be quite cool because if someone is a crazy good designer, they can make rooms, and sell them.
  5. And basicly all the shit on phoenix consistining of ":convertcredits" and um ":follow x" and crap in that nature.
  6. And one realy cool thing i hope you add, room polls. :D
Other than that, yeh, luck!
  1. I think so, good idea
  2. YES. EXCELLENT
  3. I wouldnt say everything on Habbo. That would ruin the entire purpose of making retros. they are ment to make a better version that users will enjoy
  4. That doesnt seem that great. I dont recommend it.
  5. Yes, Those are good commands, i like those.
  6. Room pools. Can be added, but are not really a big priority.
 

emonemo1234

Member
Feb 9, 2012
221
26
  1. I think so, good idea
  2. YES. EXCELLENT
  3. I wouldnt say everything on Habbo. That would ruin the entire purpose of making retros. they are ment to make a better version that users will enjoy
  4. That doesnt seem that great. I dont recommend it.
  5. Yes, Those are good commands, i like those.
  6. Room pools. Can be added, but are not really a big priority.

Thanks for teh reply :D
 

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,801
669
One idea that would be cool, would be something like you have to make an account at a site(aka Revemu.com or whatever). Once they make an account, they can enter their log-in info in config and then it works. so something like Phoenix but for free.
 
Status
Not open for further replies.

Users who are viewing this thread

🌙  Switch to Dark Theme

Latest posts

Top