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!

Plus Emulator Revision RB3.0 [Community Project]

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jul 21, 2012
Messages
95
Reaction score
4
Re: New Structure - PlusR2 [Updated]

Fix for "Cannot see my user in room or room data":
I already gave it to you:

Replace:
Code:
internal static int SerializeWallItems = 0xFFFF;
with:
Code:
internal static int SerializeWallItems = 395;

and it's done!

now...

Fix for User Profile:

Replace your UserProfile()
with this one:



Fix for sending tickets:
Replace SubmitHelpTicket() with this one:


Replace the entire internal void SendNewTicket with this one:



Now, in supportTicket.cs
Find:
Code:
internal double Timestamp;
add below:
Code:
internal List<string> ReportedChats;


Now Find:
Code:
internal SupportTicket(uint Id
and just after this
Code:
double Timestamp,
add:
Code:
List<string> ReportedChats

Now find
Code:
this.Timestamp = Timestamp;
And add after:
Code:
this.ReportedChats = ReportedChats;

Finally, replace the Serialize function in SupportTicket.cs with this one:



Don't forget to give rep++ ;D

error costructor.... in moderationtool
 
Experienced Elementalist
Joined
Dec 17, 2012
Messages
288
Reaction score
27
Re: New Structure - PlusR2 [Updated]

Bugg report:
Dc if you click room chat in userinfo window
 
Joined
Apr 27, 2011
Messages
569
Reaction score
80
Re: New Structure - PlusR2 [Updated]

Error 1 The type or namespace name 'GameClient' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Administrator\Desktop\TempEMU\Collections\Communication\Packets\Outgoing\Handshake\UserPerksComposer.cs 10 34 Silverwave
 
Newbie Spellweaver
Joined
Sep 19, 2013
Messages
38
Reaction score
1
Re: New Structure - PlusR2 [Updated]

Fix for habbo club, you cant buy the bigest rooms cause of this.
And when you buy it, you'll get dc
 
Newbie Spellweaver
Joined
Apr 29, 2014
Messages
89
Reaction score
59
Re: New Structure - PlusR2 [Updated]

Error 1 The type or namespace name 'GameClient' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Administrator\Desktop\TempEMU\Collections\Communication\Packets\Outgoing\Handshake\UserPerksComposer.cs 10 34 Silverwave

Change:
PHP:
public UserPerksComposer(GameClient Habbo)
            : base(ServerPacketHeader.UserPerksMessageComposer)

To:
PHP:
public UserPerksComposer(Habbo Habbo)
            : base(ServerPacketHeader.UserPerksMessageComposer)
 
Newbie Spellweaver
Joined
Jul 21, 2012
Messages
95
Reaction score
4
Re: New Structure - PlusR2 [Updated]

Change:
PHP:
public UserPerksComposer(GameClient Habbo)
            : base(ServerPacketHeader.UserPerksMessageComposer)

To:
PHP:
public UserPerksComposer(Habbo Habbo)
            : base(ServerPacketHeader.UserPerksMessageComposer)

hc club?...... fix pls important fix
 
Banned
Banned
Joined
Aug 25, 2009
Messages
431
Reaction score
190
Re: New Structure - PlusR2 [Updated]

Would some kind soul with AS Sorcerer be able to extract the scripts for this release please so that I can get more headers for the community?
 
Skilled Illusionist
Joined
Dec 20, 2013
Messages
365
Reaction score
64
Re: New Structure - PlusR2 [Updated]

BUG
u cant open Group furuni in catalogue
 
Skilled Illusionist
Joined
Aug 16, 2007
Messages
343
Reaction score
263
Re: New Structure - PlusR2 [Updated]

You guys should really copy the pathfinder from Butterfly Emulator. I was rewriting this one and I didn't finish at all. It means it's not working on some conditions.
 
Newbie Spellweaver
Joined
Mar 9, 2013
Messages
32
Reaction score
0
Re: New Structure - PlusR2 [Updated]

Help, floor it makes me an error, and when I fixed with the blue truck, its done me wrong.


Here is the error screen:



And also why the button does not work backup floor?


screen:
 
Junior Spellweaver
Joined
Nov 5, 2013
Messages
147
Reaction score
57
Re: New Structure - PlusR2 [Updated]

Haii,

Bugs & Known Issues
- User Profile *Fixed*
- Floor Editor (the fix throws error)
- All the other fixed posted by the guy who posted most of the Fixes
- Pets in catalogue dont show up ( idk if u can place em either)
- Hc Disconnects when buying (when u get back on client days are added)
-
-

Cracked Habbo.swf for this release

This will look like this :

First update your emulator to this :
ServerPacketHeader. cs

ClientPacketHeader. cs

Events.cs

Composers.cs
Create Room:

Replace the CreateRoom() void with this one:

internal void CreateRoom()
{
// New structure fixed by Finn

string Name = this.Request.PopFixedString();
string Description = this.Request.PopFixedString();
string RoomModel = this.Request.PopFixedString();
int Category = this.Request.PopWiredInt32();
int MaxVisitors = this.Request.PopWiredInt32();
int TradeState = this.Request.PopWiredInt32();


RoomData Data = SilverwaveEnvironment.GetGame().GetRoomManager().CreateRoom(this.Session, Name, Description, RoomModel, Category, MaxVisitors);
if (Data != null)
{
this.Response.Init(Outgoing.OnCreateRoomInfo);
this.Response.AppendInt32(Data.Id);
this.Response.AppendString(Data.Name);
this.SendResponse();
}
}

Now find internal RoomData CreateRoom(
and replace the whole function with:

internal RoomData CreateRoom(GameClient Session, string Name, string Desc, string Model, int Category, int MaxVisitors)
{
// New structure fixed by Finn

if (!this.roomModels.ContainsKey(Model))
{
Session.SendNotif("Room Model was not found.");
return null;
}
if (Name.Length < 3)
{
Session.SendNotif("The Room name is too short...");
return null;
}


uint RoomId = 0;
using (IQueryAdapter dbClient = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.setQuery("INSERT INTO rooms (roomtype,caption,description,owner,model_name,category,users_max) VALUES ('private', @Caption , @desc , @username , @model , @cat , @usmax)");
dbClient.addParameter("caption", Name);
dbClient.addParameter("desc", Desc);
dbClient.addParameter("username", Session.GetHabbo().Username);
dbClient.addParameter("model", Model);
dbClient.addParameter("cat", Category);
dbClient.addParameter("usmax", MaxVisitors);
RoomId = (uint)dbClient.insertQuery();
}
RoomData Data = this.GenerateRoomData(RoomId);
Session.GetHabbo().UsersRooms.Add(Data);
return Data;
}

Now, how to fix room entering?

Search for:
ServerMessage Message = new ServerMessage(Outgoing.HeightMap);
Message.AppendBoolean(false);


And below that you put:

Message.AppendInt32(-1); // Walls height, new structure fixed by Finn


MAKE SURE
Outgoing.SerializeWallItems IS 395


Fix for chatlogs

Find: internal static ServerMessage SerializeRoomChatlog

Replace the whole function with:

internal static ServerMessage SerializeRoomChatlog(uint roomID)
{
// NEW CHATLOGS [March 2014] Coded by Finn
// Please don't remove credits, this took me some time to do... :(
// Credits to Itachi for the structure's "context" enigma :D




ServerMessage Message = new ServerMessage();
RoomData Room = SilverwaveEnvironment.GetGame().GetRoomManager().GenerateRoomData(roomID);
if (Room == null)
{
throw new NullReferenceException("No room found.");
}




Message.Init(Outgoing.RoomChatlog);
Message.AppendByte(1);
Message.AppendShort(2);
Message.AppendString("roomName");
Message.AppendByte(2);
Message.AppendString(Room.Name);
Message.AppendString("roomId");
Message.AppendByte(1);
Message.AppendInt32(Room.Id);




Message.AppendShort(Room.RoomChat.Count);
Room.RoomChat.Reverse();
foreach (Chatlog Log in Room.RoomChat)
{
Habbo Habbo = SilverwaveEnvironment.getHabboForId(Log.UserId);
DateTime Date = SilverwaveEnvironment.UnixToDateTime(Log.Timestamp);
if (Habbo == null)
{
Message.AppendInt32((DateTime.Now - Date).Seconds);
Message.AppendInt32(Log.UserId);
Message.AppendString("*User not found*");
Message.AppendString(Log.Message);
Message.AppendBoolean(true);
}
else
{
Message.AppendInt32((DateTime.Now - Date).Seconds);
Message.AppendInt32(Habbo.Id);
Message.AppendString(Habbo.Username);
Message.AppendString(Log.Message);
Message.AppendBoolean(false); // Text is bold
}
}
Room.RoomChat.Reverse();
return Message;
}

Add to ServerMessage.cs :

public void AppendByte(int i)
{
this.AppendBytes(new byte[] { (byte)i }, false);
}

Screen :


Fix for User Profile:
Replace your UserProfile()

with this one:

Fix for sending tickets:
Replace SubmitHelpTicket() with this one:



Replace the entire internal void SendNewTicket with this one:



Support Ticket Fix :
Find:
internal double Timestamp;

add below:

internal List<string> ReportedChats;


Now Find:
internal SupportTicket(uint Id
and just after this double Timestamp,

add:

List<string> ReportedChats

Now find :
this.Timestamp = Timestamp;

And add after:

this.ReportedChats = ReportedChats;

Finally, replace the Serialize function in SupportTicket.cs with this one:


Enable the Floor Plan Save button

Replace the whole

public UserPerksComposer(GameClient Client) :base(ServerPacketHeader.UserPerksMessageComposer)

with this one (updated for the new build):

public UserPerksComposer(GameClient Client) : base(ServerPacketHeader.UserPerksMessageComposer)
{
base.WriteInteger(10);
base.WriteString("EXPERIMENTAL_CHAT_BETA");
base.WriteString("");
base.WriteBoolean(true);
base.WriteString("CITIZEN");
base.WriteString("");
base.WriteBoolean(true);
base.WriteString("VOTE_IN_COMPETITIONS");
base.WriteString("requirement.unfulfilled.helper_level_2");
base.WriteBoolean(false);
base.WriteString("NEW_UI");
base.WriteString("");
base.WriteBoolean(true);
base.WriteString("USE_GUIDE_TOOL");
base.WriteString("requirement.unfulfilled.helper_level_4");
base.WriteBoolean(false);
base.WriteString("BUILDER_AT_WORK");
base.WriteString("");
base.WriteBoolean(true);
base.WriteString("JUDGE_CHAT_REVIEWS");
base.WriteString("requirement.unfulfilled.helper_level_6");
base.WriteBoolean(false);
base.WriteString("EXPERIMENTAL_TOOLBAR");
base.WriteString("requirement.unfulfilled.group_membership");
base.WriteBoolean(false);
base.WriteString("CALL_ON_HELPERS");
base.WriteString("");
base.WriteBoolean(true);
base.WriteString("TRADE");
base.WriteString("");
base.WriteBoolean(true);
}

Note : Now if you want to disable the button you just set "BUILDER_AT_WORK" to false.

Credits

- AKIIX
- Twan
- Sledmore
- Spot ify
- MrPudding

error:
 
Newbie Spellweaver
Joined
Apr 22, 2014
Messages
6
Reaction score
0
Re: New Structure - PlusR2 [Updated]

donde encuentro :

interna static int SerializeWallItems = 0xFFFF; ?



where I find :

internal static int SerializeWallItems = 0xFFFF; ?
 
Newbie Spellweaver
Joined
Apr 29, 2014
Messages
89
Reaction score
59
Re: New Structure - PlusR2 [Updated]

donde encuentro :

interna static int SerializeWallItems = 0xFFFF; ?



where I find :

internal static int SerializeWallItems = 0xFFFF; ?

internal static int SerializeWallItems = 395;
 
Last edited:
Newbie Spellweaver
Joined
Aug 18, 2013
Messages
9
Reaction score
0
Re: New Structure - PlusR2 [Updated]

i get disconnected when i try to add a block to the floor editor
 
Junior Spellweaver
Joined
Jul 19, 2013
Messages
171
Reaction score
115
Re: New Structure - PlusR2 [Updated]

Fix for Habbo Club Rights:

Find:
Code:
public UserRightsComposer(uint Rank)
            : base(ServerPacketHeader.UserRightsMessageComposer)
        {
            base.WriteInteger(2);
            base.WriteInteger(Rank);
        }

Replace it with:
Code:
public UserRightsComposer(uint Rank)
            : base(ServerPacketHeader.UserRightsMessageComposer)
        {
            base.WriteInteger(2);
            base.WriteInteger(Rank);
            base.WriteInteger(0); // Unknown ~Finn
        }

Now search for:
Code:
ServerMessage fuserights = new ServerMessage(Outgoing.Fuserights);
            //if (GetSubscriptionManager().HasSubscription("habbo_vip")) // VIP 
                fuserights.AppendInt32(2);
            //else if (GetSubscriptionManager().HasSubscription("habbo_club")) // HC
                //fuserights.AppendInt32(1);
            //else
                //fuserights.AppendInt32(0);
            fuserights.AppendInt32(Rank);

Replace it with:
Code:
ServerMessage fuserights = new ServerMessage(Outgoing.Fuserights);
             fuserights.AppendInt32(2);
             fuserights.AppendInt32(Rank);
	     fuserights.AppendInt32(0);//Unknown. ~Finn

done =)



Hey, if you get constructor errors in my User perks fix, delete "GameClient Session" in UserPerksComposer.cs



Constructor errors are really easy to fix, guys.
Just find the structure of the function

example (main function):
public Something(int a, bool b)

what I need to do is to respect these order of types.
I can't do something like this:
this.Something = new Something(0, false, 7)

The key for fixing this is find the real structure of the "Something" main fuction, which is int, then bool. There is no other int after that, so it's invalid.
So I need to make something like this to fix it:
this.Something = new Something(0, false)

It's pure logic, guys. Let's practice :)
 
Joined
Aug 10, 2011
Messages
7,399
Reaction score
3,308
Re: New Structure - PlusR2 [Updated]

Constructor errors are really easy to fix, guys.
Just find the structure of the function

example (main function):
public Something(int a, bool b)

what I need to do is to respect these order of types.
I can't do something like this:
this.Something = new Something(0, false, 7)

The key for fixing this is find the real structure of the "Something" main fuction, which is int, then bool. There is no other int after that, so it's invalid.
So I need to make something like this to fix it:
this.Something = new Something(0, false)

It's pure logic, guys. Let's practice :)

Or create an overload.
 
R.I.P Millercent
Loyal Member
Joined
Nov 6, 2012
Messages
2,230
Reaction score
314
Re: New Structure - PlusR2 [Updated]

You guys should really copy the pathfinder from Butterfly Emulator. I was rewriting this one and I didn't finish at all. It means it's not working on some conditions.

Already did ;) Works fine as well, and I believe it runs smoother as well.
 
Newbie Spellweaver
Joined
Jul 21, 2012
Messages
95
Reaction score
4
Re: New Structure - PlusR2 [Updated]

Fix for Habbo Club Rights:

Find:
Code:
public UserRightsComposer(uint Rank)
            : base(ServerPacketHeader.UserRightsMessageComposer)
        {
            base.WriteInteger(2);
            base.WriteInteger(Rank);
        }

Replace it with:
Code:
public UserRightsComposer(uint Rank)
            : base(ServerPacketHeader.UserRightsMessageComposer)
        {
            base.WriteInteger(2);
            base.WriteInteger(Rank);
            base.WriteInteger(0); // Unknown ~Finn
        }

Now search for:
Code:
ServerMessage fuserights = new ServerMessage(Outgoing.Fuserights);
            //if (GetSubscriptionManager().HasSubscription("habbo_vip")) // VIP 
                fuserights.AppendInt32(2);
            //else if (GetSubscriptionManager().HasSubscription("habbo_club")) // HC
                //fuserights.AppendInt32(1);
            //else
                //fuserights.AppendInt32(0);
            fuserights.AppendInt32(Rank);

Replace it with:
Code:
ServerMessage fuserights = new ServerMessage(Outgoing.Fuserights);
             fuserights.AppendInt32(2);
             fuserights.AppendInt32(Rank);
	     fuserights.AppendInt32(0);//Unknown. ~Finn

done =)



Hey, if you get constructor errors in my User perks fix, delete "GameClient Session" in UserPerksComposer.cs



Constructor errors are really easy to fix, guys.
Just find the structure of the function

example (main function):
public Something(int a, bool b)

what I need to do is to respect these order of types.
I can't do something like this:
this.Something = new Something(0, false, 7)

The key for fixing this is find the real structure of the "Something" main fuction, which is int, then bool. There is no other int after that, so it's invalid.
So I need to make something like this to fix it:
this.Something = new Something(0, false)

It's pure logic, guys. Let's practice :)

.....
 
Experienced Elementalist
Joined
Dec 17, 2012
Messages
288
Reaction score
27
Re: New Structure - PlusR2 [Updated]

MrPudding can you not please help us noobs to fix that with sendticket thing error? :$
 
Status
Not open for further replies.
Back
Top