Plus Emulation [Revision 2] FIXES!

Page 19 of 29 FirstFirst ... 91112131415161718192021222324252627 ... LastLast
Results 271 to 285 of 432
  1. #271
    Freak Mextur is offline
    MemberRank
    Mar 2012 Join Date
    216Posts

    Re: Plus Emulation [Revision 2] FIXES!

    Quote Originally Posted by Noman View Post
    I have no clue :S Not sure it maybe something you're running or memory leak in your emulator.
    Pathfinding and the room cycle causes the most of memory occupied. Null objects or register them to the GC.

  2. #272
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    Re: Plus Emulation [Revision 2] FIXES!

    For those having MySQL memory usage issues, using MariaDB would help a lot, in my experience it's much less of a resource hog than MySQL.

    If you are a noob you don't even have to configure it to squeeze the best performance, it's configured for a production environment from the start.

    https://downloads.mariadb.org/
    https://downloads.mariadb.org/
    https://downloads.mariadb.org/
    https://downloads.mariadb.org/
    https://downloads.mariadb.org/
    https://downloads.mariadb.org/
    https://downloads.mariadb.org/
    https://downloads.mariadb.org/

    P.S MariaDB is a fork of MySQL developed when MySQL was acquired by Oracle. Many of the original developers forked it to develop it as an open source, community driven project. It's as easy to setup as MySQL, simply take a database backup, uninstall MySQL, install MariaDB, configure and shizzle, restore backup... profit.

  3. #273
    Valued Member Noman is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    137Posts

    Re: Plus Emulation [Revision 2] FIXES!

    Bug:

    Roll both dices really fast at the same time and the first dice will be the same as the 2nd dice.



    Best to try it on a mouse instead of laptop mouse pad.

  4. #274
    Freak Mextur is offline
    MemberRank
    Mar 2012 Join Date
    216Posts

    Re: Plus Emulation [Revision 2] FIXES!

    Quote Originally Posted by Noman View Post
    Bug:

    Roll both dices really fast at the same time and the first dice will be the same as the 2nd dice.



    Best to try it on a mouse instead of laptop mouse pad.
    Probably a new random was created. And using the same seed.

    Use an seed if you create a new random. Like the atom timestamp :)

  5. #275
    Freak Mextur is offline
    MemberRank
    Mar 2012 Join Date
    216Posts

    Re: Plus Emulation [Revision 2] FIXES!

    I changed the alert command somewhat:

    Code:
    case "alert":
        {
    	if (!Session.GetHabbo().HasCmd("alert"))
    	{
    	    return false;
    	}
    		
    	if (Params[1] == null || Params[2] == null) 
    	{
    	    Session.SendNotif("Invalid Parameters!");
    	    return true;
    	}
    		
    	string targetUsername = Params[1], message = Params[2];
    		
    	if (string.IsNullOrEmpty(message))
    	{
    	    Session.SendNotif("Please give an valid message!");
    	    return true;
    	}
    
            GameClient targetClient = TargetClient = SilverwaveEnvironment.GetGame().GetClientManager().GetClientByUsername(targetUsername);
    
            if (targetClient == null)
            {
                Session.SendNotif(string.Format("User '{0}' is not found/online.", targetUsername));
                return true;
            }
    		
            targetClient.SendNotif(string.Format("{0}{1}-{2}", message, Environment.NewLine, Session.GetHabbo().Username));
            return true;
        }

  6. #276
    R.I.P Millercent FatalLulz is offline
    MemberRank
    Nov 2012 Join Date
    AustraliaLocation
    2,248Posts

    Re: Plus Emulation [Revision 2] FIXES!

    Quote Originally Posted by HotelMaker View Post
    @tdid can you please fix a 32bit version?? :)

    thanks
    Open the source, go to properties, change target machine to x86, debug, done.

  7. #277
    I (L) Willem Spot Ify is offline
    MemberRank
    Jun 2012 Join Date
    The NetherlandsLocation
    294Posts

    Re: Plus Emulation [Revision 2] FIXES!

    @Meik2010
    If you are trying to enable :floor..
    Edit this line.in userPerksComposer.cs
    PHP Code:
        base.WriteString("HEIGHTMAP_EDITOR_BETA");
                
    base.WriteString("");
                
    base.WriteBoolean(true);//change from false to true trolol :floor 

  8. #278
    Account Upgraded | Title Enabled! YoWesty is offline
    MemberRank
    Oct 2012 Join Date
    285Posts

    Re: Plus Emulation [Revision 2] FIXES!

    Here some fixes
    Fly command
    PHP Code:
     #region Fly (:fly)
                    
    case "fly":
                        {
                            if (
    Session.GetHabbo().HasCmd("fly"))
                            {
                                
    Room currentRoom Session.GetHabbo().CurrentRoom;
                                
    RoomUser roomUserByHabbo null;
                                
    currentRoom HabboEmulatorEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                if (
    currentRoom != null)
                                {
                                    
    roomUserByHabbo currentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                                    if (
    roomUserByHabbo != null)
                                    {
                                        
    roomUserByHabbo.isFlying true;

                                    }
                                }
                            }
                            return 
    true;
                        }
                    
    #endregion 

    And welcome message
    Search
    if (userData.user.HasFuse("fuse_mod")) in Gameclient.cs

    replace with
    PHP Code:
    if (userData.user.HasFuse("fuse_mod"))
                    {
                        
    response.appendResponse(HabboEmulatorEnvironment.GetGame().GetModerationTool().SerializeTool());
                        
    HabboEmulatorEnvironment.GetGame().GetModerationTool().SerializeOpenTickets(ref responseuserData.userID);
                    }
                    
    response.sendResponse();
                    
    SendBroadcastMessage((HabboEmulatorEnvironment.GetConfig().data["welcome_message"] + "\n\n "));

                    return 
    true;

                } 

    Add this to your Emu config

    PHP Code:
    ## Welcome Message
    welcome_message=Welcome to HebboWe will be adding new furniture everyday

  9. #279
    dont judge me Wuzix is offline
    MemberRank
    Sep 2013 Join Date
    C:\inetpub\wwwLocation
    403Posts

    Re: Plus Emulation [Revision 2] FIXES!

    ADD THIS!

    Search

    if (userData.user.HasFuse("fuse_mod")) in Gameclient.cs

    Code:
    if (userData.user.HasFuse("fuse_mod")) 
    {
    response.appendResponse(SilverwaveEnvironment.GetGame().GetModerationTool().SerializeTool());
    SilverwaveEnvironment.GetGame().GetModerationTool().SerializeOpenTickets(ref response, userData.userID); 
    } 
    response.sendResponse(); 
    SendBroadcastMessage((SilverwaveEnvironment.GetConfig().data["welcome_message"] + "\n\n ")); 
    
    
    
    
    return true; 
    
    
    
    
    }

    Credits to @Rush Retros

  10. #280
    No need of reading this Rush Retros is offline
    MemberRank
    Dec 2013 Join Date
    DenmarkLocation
    365Posts

    Re: Plus Emulation [Revision 2] FIXES!

    Bugs:
    1) FIXED - idk what ill did but its fixed lmao
    2) FIXED - idk what ill did but its fixed lmao
    3) avatar is dragged after horse when riding - Added Spot Ify's fix didnt fix it
    4) :hal command dont show the more info part so you can go to the link
    5) use command :deletegroup - Deletegroup yes, will bug the room and make room name and owner to " ... " only three dots
    Also it would be totally awesome if some 1 could code freeze :) ^^
    same with horse jumps ^^
    Last edited by Rush Retros; 22-04-14 at 10:20 PM.

  11. #281
    R.I.P Millercent FatalLulz is offline
    MemberRank
    Nov 2012 Join Date
    AustraliaLocation
    2,248Posts

    Re: Plus Emulation [Revision 2] FIXES!

    New bug;

    Floors in the spaces do not work. http://prntscr.com/3cltth They simply show like that. Interaction = roomeffect Anyone any ideas?

  12. #282
    I (L) Willem Spot Ify is offline
    MemberRank
    Jun 2012 Join Date
    The NetherlandsLocation
    294Posts

    Re: Plus Emulation [Revision 2] FIXES!

    OK i give the wired unload fix :)
    PS 1 time asking is enough ;p ( this is also not fixed in tdits version)
    ok search in RoomItemHandling.cs at line 308
    PHP Code:
     if (item.IsWired)
                                    {
                                        
    room.GetWiredHandler().LoadWired(room.GetWiredHandler().GenerateNewItem(item));
                                    } 
    and remove it because its loading before all items are loaded and wired needs the other items to work ;p

    ok and search in RoomItemHandling.cs at line 352
    PHP Code:

                    
    foreach (RoomItem Item in mFloorItems.Values)
                    {
                     
                        if (
    Item.IsRoller)
                            
    mGotRollers true
    and replace it with:
    PHP Code:
        foreach (RoomItem Item in mFloorItems.Values)
                    {
                        if (
    Item.IsWired)
                        {
                            
    room.GetWiredHandler().LoadWired(room.GetWiredHandler().GenerateNewItem(Item));
                        }
                        if (
    Item.IsRoller)
                            
    mGotRollers true
    So here it is :) and check this screen omfg :OOO

    the longest stairs ever :)
    Last edited by Spot Ify; 28-04-14 at 04:04 PM.

  13. #283
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    Re: Plus Emulation [Revision 2] FIXES!

    I found no exploit, if there is one then it isn't obvious, I've been over every change with CodeCompare. I'm 80% certain there is none. the other 20% of uncertainty is because I haven't read every change thoroughly. (I'm not going to)

  14. #284
    Member Thewicard is offline
    MemberRank
    Nov 2011 Join Date
    NorwayLocation
    92Posts

    Re: Plus Emulation [Revision 2] FIXES!

    Makesay command,
    thanks to Yadz for sayall command.

    #region Makesay (:makesay)
    case "makesay":
    if (Session.GetHabbo().Rank > 12)
    {
    Room currentRoom2 = Session.GetHabbo().CurrentRoom;
    if (currentRoom2 != null)
    {
    string Message3 = ChatCommandHandler.MergeParams(Params, 1);

    if (Params.Length > 2)
    {
    GameClient Target = SilverwaveEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
    RoomUser TargetUser = currentRoom2.GetRoomUserManager().GetRoomUserByHabbo(Target.GetHabbo().Id);
    TargetUser.Chat(TargetUser.GetClient(), MergeParams(Params, 2), false, 0);
    }

    }
    }
    return true;
    #endregion
    "if (Session.GetHabbo().Rank > 12)" determines what rank is allowed to use the command, currently it's set to be allowed to use for all ranks above 12. 13 and up.

    Change the condition to whatever you please.

    Code should be added to "chatcommandhandler.cs"
    Last edited by Thewicard; 25-04-14 at 11:49 AM.

  15. #285
    Apprentice xGamer1337 is offline
    MemberRank
    Apr 2014 Join Date
    14Posts

    Re: Plus Emulation [Revision 2] FIXES!

    I made 2 new commands.


    1. Habnam (latest Habbo effects required)

    Add this in ChatCommandHandler.cs in the VIP area:
    PHP Code:
                    #region Habnam (:habnam)
                    
    case "habnam":
                        {
                            if (
    Session.GetHabbo().HasCmd("habnam"))
                            {
                                
    Room Room PlusEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                
    RoomUser User Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                                
    User.ApplyEffect(140);
                            }
                            return 
    true;
                        }
                    
    #endregion 
    2. Kiss command (:kissed)

    PHP Code:
    #region Kissed (:kissed)                case "kissed":                    {                        if (Session.GetHabbo().HasFuse("fuse_cmd_kiss"))                        {                            Room roomKiss = Session.GetHabbo().CurrentRoom;                            RoomUser roomUser = roomKiss.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);                            GameClient clientByUsername = null;                            clientByUsername = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
                                
    if (clientByUsername == null)                            {                                SendChatMessage(Session"User doesn't exist");                            }                            else                            {                                if (clientByUsername.GetHabbo().Username == Session.GetHabbo().Username)                                {                                    SendChatMessage(Session"You can not kiss yourself!");                                }                                else                                {                                    roomKiss.SendMessage(new ChatComposer(roomUser.VirtualId"*" Session.GetHabbo().Username " has kissed " clientByUsername.GetHabbo().Username "*"0roomUser.LastBubble, -1));                                }                            }                        }                        return true;                    }                #endregion 
    Last edited by xGamer1337; 26-04-14 at 12:05 AM.



Advertisement