Aleeda Emulator [C#, Deltar] R63+

Page 17 of 29 FirstFirst ... 791011121314151617181920212223242527 ... LastLast
Results 241 to 255 of 425
  1. #241
    C# / Java Programmer scottstamp851 is offline
    MemberRank
    Jan 2007 Join Date
    EverywhereLocation
    504Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    ^ I'm sorry, and ima let you finish, but USA111's flatfile server was THE BEST EMULATOR OF ALL TIMEZ.

    In all honestly a database such as MySQL is quite simply a flatfile with an efficient backend management server. MySQL is all comprised of static files that get read and written to, high-load servers often can't handle it on normal platter drives, thus the invention of higher RPM drives. While I'll agree POORLY WRITTEN flatfile handling is much less efficient, if done right a flatfile-based backend can be faster and more powerful than ref'ing MySQL for queries constantly. It's essentially a local cache, that doesn't need any caching.

    Woodpecker was better off as a MySQL server though, and it is clearly superior. Even the simple release of Ion with a v13 environment was better suited for it's purpose than anything ever written and released in Visual Basic 6.

    As for "How nillus would have wanted it" with Ion, all queries were blocked originally, and they were assigned to their own individual class. Shit broke when Roy started throwing query structure into random files. There was no handling for if rows didn't exist or were corrupt (when reading or in the db themselves) and it started throwing "deadlocks" - the corruption of improper null handling.

    I suppose any true blocking is better than the uberEnvironment though. Best'aluck. If you ever need any help, I'm well versed w/ Ion as a framework - I worked a lot on it back when it was simply Ion, no Deltar, no uberEnvironment, no silly rewrites.

  2. #242
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Thread has been updated, with latest features (Check the thread here)

    - Public rooms now can enter
    - I cache room ids per user instead of raping the mysql server
    - 18 rooms have been added
    - Alot of recoding has made things faster IMHO

    TO DO?
    - Load figure in public rooms
    - Start proper walking and talking :)

    Infobus Park



    Chinese Place



    Lido - beware of AIDS



    Newbie Lobby



    Pizzeria

    Last edited by Quackster; 29-05-11 at 09:51 PM.

  3. #243
    Thanks for the memories! Mithex is offline
    MemberRank
    May 2010 Join Date
    HeavenLocation
    2,014Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Its pretty fucking intense.

  4. #244
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Well, now you need to code public room furni & public room user entering ;)
    Anyways, goodjob, mind sharing some code snippets? And do you cache the heightmaps etc?

  5. #245
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Quote Originally Posted by PEjump2 View Post
    Well, now you need to code public room furni & public room user entering ;)
    Anyways, goodjob, mind sharing some code snippets? And do you cache the heightmaps etc?
    Your 9th lifetime saying Good Job? :P

    The room user entering works very much indeed, all that needs done is public items and making that user visible.

    I don't see the need to cache the height map or model since I only need to load it once for each user who enters a room.

    Here is the snippet you requested, for entering a public room
    PHP Code:
            private void OpenConnectionMessageCompose()
            {
                
    //Remove garbage
                
    Request.PopWiredInt32();

                
    //Public room ID
                
    int id Request.PopWiredInt32();

                
    using (DatabaseClient dbClient AleedaEnvironment.GetDatabase().GetClient())
                {
                    
    dbClient.AddParamWithValue("id"id);
                    
    DataRow dRow dbClient.ReadDataRow("SELECT * FROM public_rooms WHERE id = @id");

                    
    Response.Initialize(ResponseOpcodes.RoomReady); // AE
                    
    Response.AppendString((string)dRow["model"]);
                    
    Response.AppendInt32(0);
                    
    SendResponse();

                    
    //Checks if user is already in there, if so, deletes him!
                    
    ContainsRoomID(Session.GetHabbo().Username);

                    
    //Add user to Dictionary, Username being the key and the room id being the value
                    
    Room.Add(Session.GetHabbo().UsernameConvert.ToUInt32(id));

                    
    //If it contains the type (private, public) get rid of it
                    
    ContainsType(Session.GetHabbo().Username);

                    
    //Add the room if the room is public (it is)
                    
    Type.Add(Session.GetHabbo().Username"public");

                    
    Response.Initialize(ResponseOpcodes.Bf); // Bf
                    
    Response.AppendString("/client/public/" Convert.ToString(dRow["model"]) + "/0");
                    
    SendResponse();
                }
            } 
    Last edited by Quackster; 29-05-11 at 10:27 PM.

  6. #246
    Account Upgraded | Title Enabled! DJAlexxstyle is offline
    MemberRank
    Feb 2008 Join Date
    341Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Quote Originally Posted by Quackster View Post
    Your 9th lifetime saying Good Job? :P

    The room user entering works very much indeed, all that needs done is public items and making that user visible.

    I don't see the need to cache the height map or model since I only need to load it once for each user who enters a room.

    Here is the snippet you requested, for entering a public room
    PHP Code:
            private void OpenConnectionMessageCompose()
            {
                
    //Remove garbage
                
    Request.PopWiredInt32();

                
    //Public room ID
                
    int id Request.PopWiredInt32();

                
    using (DatabaseClient dbClient AleedaEnvironment.GetDatabase().GetClient())
                {
                    
    dbClient.AddParamWithValue("id"id);
                    
    DataRow dRow dbClient.ReadDataRow("SELECT * FROM public_rooms WHERE id = @id");

                    
    Response.Initialize(ResponseOpcodes.RoomReady); // AE
                    
    Response.AppendString((string)dRow["model"]);
                    
    Response.AppendInt32(0);
                    
    SendResponse();

                    
    //Checks if user is already in there, if so, deletes him!
                    
    ContainsRoomID(Session.GetHabbo().Username);

                    
    //Add user to Dictionary, Username being the key and the room id being the value
                    
    Room.Add(Session.GetHabbo().UsernameConvert.ToUInt32(id));

                    
    //If it contains the type (private, public) get rid of it
                    
    ContainsType(Session.GetHabbo().Username);

                    
    //Add the room if the room is public (it is)
                    
    Type.Add(Session.GetHabbo().Username"public");

                    
    Response.Initialize(ResponseOpcodes.Bf); // Bf
                    
    Response.AppendString("/client/public/" Convert.ToString(dRow["model"]) + "/0");
                    
    SendResponse();
                }
            } 
    Public rooms are limited (also if you have 50-60 etc), so I really don't understand why don't you want to cache them: if you use a MYSQL connection every time an user enters a room, then you'll have lots of memory usage more than caching data!
    But then, if you think yours is still the better choice, I really suggest you to change that query, because, in this case, there is no need to get ALL the row (using *): in fact you only use the "model" column, so, you should just get it. I know these suggestions may seem stupid etc (and in fact they are, if you think to a limited-number-of-users server), but if you want to build an high-scalable one, even the most stupid thing may cause you problems :D

    - Alex

  7. #247
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Quote Originally Posted by DJAlexxstyle View Post
    Public rooms are limited (also if you have 50-60 etc), so I really don't understand why don't you want to cache them: if you use a MYSQL connection every time an user enters a room, then you'll have lots of memory usage more than caching data!
    But then, if you think yours is still the better choice, I really suggest you to change that query, because, in this case, there is no need to get ALL the row (using *): in fact you only use the "model" column, so, you should just get it. I know these suggestions may seem stupid etc (and in fact they are, if you think to a limited-number-of-users server), but if you want to build an high-scalable one, even the most stupid thing may cause you problems :D

    - Alex
    Oh another mistake there. :P

    Should really be
    Code:
    string Model = dbClient.ReadString("SELECT model FROM public_rooms WHERE id = @id");
    It won't be released until it's absolutely perfect (As I don't want any harsh crticisim, but you have done it in a nice way) :D

    Public room items :D



    ---------- Post added at 10:03 AM ---------- Previous post was at 10:00 AM ----------

    I need the ones for the infobus park since Habbo doesn't have it in there navigator :P
    Last edited by Quackster; 30-05-11 at 02:02 AM.

  8. #248
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Quote Originally Posted by Quackster View Post
    Oh another mistake there. :P

    Should really be
    Code:
    string Model = dbClient.ReadString("SELECT model FROM public_rooms WHERE id = @id");
    It won't be released until it's absolutely perfect (As I don't want any harsh crticisim, but you have done it in a nice way) :D

    Public room items :D



    ---------- Post added at 10:03 AM ---------- Previous post was at 10:00 AM ----------

    I need the ones for the infobus park since Habbo doesn't have it in there navigator :P

    infobus items:
    Code:
    cubicb_chairQDPCIRAHc1219cubico_chairSDPCIJHd1315cubicb_chairSCQCIJHL1319lightpoleSDQCIHHd1320cubicb_chairPEQCIRAHL149lightpoleQBRCKHHA152loungey_chairJSCKPAHd1514cubicb_chairRCSCIPAHc1519cubico_chairSDSCIPAHB162loungey_tableJPDKHHA167loungey_chairSAPDKJHB168loungey_tablePBPDKJHA169loungey_chairQBPDKRAHd1613cubicb_chairQCPDIJHd1614cubicb_chairRCPDIRAHC1619orangeSDPDIHHA172loungey_chairJQDKHHA177loungey_chairSAQDKJHB178loungey_tablePBQDKJHA179loungey_chairQBQDKRAHd1719cubicb_chairSDQDIJHC182orangeJRDKHHd1814cubicb_chairRCRDIPAHK192bardesqueJSDKHHK202bardesqueJPEKIHb203bar_chairKPEKRAHL209lightpoleQBPEKHHd2014cubicb_chairRCPEIHHd2019cubicb_chairSDPEIJHc2020cubico_chairPEPEIRAHK212bardesqueJQEKIHb213bar_chairKQEKRAHd2119cubicb_chairSDQEIHHK222bardesqueJREKIHb223bar_chairKREKRAHL2216lightpolePDREIHHc2218cubico_chairRDREIHHK232bardesqueJSEKIHb233bar_chairKSEKRAHK242bardesqueJPFKIHb243bar_chairKPFKRAHK252bardesqueJQFKJ

  9. #249
    Live Ocottish Sverlord Joopie is online now
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Quote Originally Posted by Quackster View Post
    I need the ones for the infobus park since Habbo doesn't have it in there navigator :P
    Here you are, From my uberdb :p

    Code:
    QDHC00cornerchair2HHHPAHB01cornerchair1IHHPAHA02chair1JHHPAHA03chair1KHHPAHH05table1QAHHPAHE06chair1lineRAHHPAHA07chair1SAHHPAHF08chair1frontendPBHHPAHJ010hububarRBHHPAHB10cornerchair1HIHJHA20chair1HJHJHA30chair1HKHJHA40chair1HPAHJHF50chair1frontendHQAHJHI53table2KQAHPAHD55modchairQAQAHHHI58table2PBQAHPA


    ---------- Post added at 02:26 AM ---------- Previous post was at 02:25 AM ----------

    Uhm, Davidaap Grrrr

  10. #250
    Thanks for the memories! Mithex is offline
    MemberRank
    May 2010 Join Date
    HeavenLocation
    2,014Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Whoa, who just let out a can of joopieass!


    Always wanted to say that
    Posted via Mobile Device

  11. #251
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Quote Originally Posted by davidaap View Post
    infobus items:
    Code:
    cubicb_chairQDPCIRAHc1219cubico_chairSDPCIJHd1315cubicb_chairSCQCIJHL1319lightpoleSDQCIHHd1320cubicb_chairPEQCIRAHL149lightpoleQBRCKHHA152loungey_chairJSCKPAHd1514cubicb_chairRCSCIPAHc1519cubico_chairSDSCIPAHB162loungey_tableJPDKHHA167loungey_chairSAPDKJHB168loungey_tablePBPDKJHA169loungey_chairQBPDKRAHd1613cubicb_chairQCPDIJHd1614cubicb_chairRCPDIRAHC1619orangeSDPDIHHA172loungey_chairJQDKHHA177loungey_chairSAQDKJHB178loungey_tablePBQDKJHA179loungey_chairQBQDKRAHd1719cubicb_chairSDQDIJHC182orangeJRDKHHd1814cubicb_chairRCRDIPAHK192bardesqueJSDKHHK202bardesqueJPEKIHb203bar_chairKPEKRAHL209lightpoleQBPEKHHd2014cubicb_chairRCPEIHHd2019cubicb_chairSDPEIJHc2020cubico_chairPEPEIRAHK212bardesqueJQEKIHb213bar_chairKQEKRAHd2119cubicb_chairSDQEIHHK222bardesqueJREKIHb223bar_chairKREKRAHL2216lightpolePDREIHHc2218cubico_chairRDREIHHK232bardesqueJSEKIHb233bar_chairKSEKRAHK242bardesqueJPFKIHb243bar_chairKPFKRAHK252bardesqueJQFKJ
    Quote Originally Posted by joopie View Post
    Here you are, From my uberdb :p

    Code:
    QDHC00cornerchair2HHHPAHB01cornerchair1IHHPAHA02chair1JHHPAHA03chair1KHHPAHH05table1QAHHPAHE06chair1lineRAHHPAHA07chair1SAHHPAHF08chair1frontendPBHHPAHJ010hububarRBHHPAHB10cornerchair1HIHJHA20chair1HJHJHA30chair1HKHJHA40chair1HPAHJHF50chair1frontendHQAHJHI53table2KQAHPAHD55modchairQAQAHHHI58table2PBQAHPA
    ---------- Post added at 02:26 AM ---------- Previous post was at 02:25 AM ----------

    Uhm, Davidaap Grrrr

    Those are the actual infobus items, I meant the park

    (http://imagefruity.com/images/12366420325971261887.png)

    Thanks for the help anyway :D
    Last edited by Quackster; 30-05-11 at 02:40 AM.

  12. #252
    Account Upgraded | Title Enabled! MikeDavies is offline
    MemberRank
    Aug 2010 Join Date
    WalesLocation
    629Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Quote Originally Posted by Quackster View Post
    Oh another mistake there. :P

    Should really be
    Code:
    string Model = dbClient.ReadString("SELECT model FROM public_rooms WHERE id = @id");
    It won't be released until it's absolutely perfect (As I don't want any harsh crticisim, but you have done it in a nice way) :D

    Public room items :D



    ---------- Post added at 10:03 AM ---------- Previous post was at 10:00 AM ----------

    I need the ones for the infobus park since Habbo doesn't have it in there navigator :P
    I looked over your code, you seem to use alot of dictionarys, is that best?

  13. #253
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Quote Originally Posted by MikeDavies View Post
    I looked over your code, you seem to use alot of dictionarys, is that best?
    From the features I have, I've only used two. How much lists and dictionarys does Uber use.

    So can you do some research before you ask such a stupid question, kthnxbai
    Last edited by Quackster; 30-05-11 at 03:25 AM.

  14. #254
    Account Upgraded | Title Enabled! MikeDavies is offline
    MemberRank
    Aug 2010 Join Date
    WalesLocation
    629Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Quote Originally Posted by Quackster View Post
    From the features I have, I've only used two. How much lists and dictionarys does Uber use.

    So can you do some research before you ask such a stupid question, kthnxbai
    Sorry, i was only asking :)

  15. #255
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: Aleeda Emulator - Habbo Flash Environment [C#, ION/Deltar]

    Quote Originally Posted by MikeDavies View Post
    Sorry, i was only asking :)
    Oh I overreacted, sorry! :P

    I still need the items packet for this room..

    http://imagefruity.com/images/12366420325971261887.png

    - I know Nabbo has it, but they are offline :P



Advertisement