Error Plus Emulator [HELP]

Cen0n

New Member
Nov 1, 2015
15
0
Hello. I'm using a modified hboom emulator, sometimes errors happen in the rooms and all users go to the home screen, the room hangs, can someone help me, or explain why this happens?

[LOGS] exceptions.txt:

RoomID [2] is currently having problems with the status of room users.
System.OverflowException: Arithmetic operation resulted in a overflow.
in System.Collections.Generic.List`1..ctor (collection IEnumerable`1)
in System.Linq.Enumerable.ToList [TSource] (source IEnumerable`1)
in the folder C:\Users\Administrator\Desktop\Emulator\Communication\Packages\Output\Rooms\Engine\UserUpdateComposer.cs: Plus.Communication.Packets.Outgoing.Rooms.Engine.UserUpdateComposer..ctor (ICollection`1 RoomUsers) 26
in Plus.HabboHotel.Rooms.RoomUserManager.SerializeStatusUpdates() in C:\Users\Administrator\Desktop\Emulator\HabboHotel\Rooms\RoomUserManager.cs: line 797
in Plus.HabboHotel.Rooms.Room.ProcessRoom() in C:\Users\Administrator\Desktop\Emulator\HabboHotel\Rooms\Room.cs: line 1834
 

CXS7OM

New Member
Aug 12, 2017
23
12
Show the composer structure and the situation where this is sent.
But as it's said on the beginning of the error, there's an overflow somewhere.
 

Cen0n

New Member
Nov 1, 2015
15
0
Show the composer structure and the situation where this is sent.
But as it's said on the beginning of the error, there's an overflow somewhere.

using System.Collections.Generic;
using System.Linq;
using System.Text;
using Plus.HabboHotel.Rooms;

namespace Plus.Communication.Packets.Outgoing.Rooms.Engine
{
internal class UserUpdateComposer : ServerPacket
{
public UserUpdateComposer(ICollection<RoomUser> RoomUsers)
: base(ServerPacketHeader.UserUpdateMessageComposer)
{
WriteInteger(RoomUsers.Count);
foreach (var User in RoomUsers.ToList())
{
WriteInteger(User.VirtualId);
WriteInteger(User.X);
WriteInteger(User.Y);
WriteString(User.Z.ToString("0.00"));
WriteInteger(User.RotHead);
WriteInteger(User.RotBody);

var StatusComposer = new StringBuilder();
StatusComposer.Append("/");

foreach (var Status in User.Statusses.ToList())
{
StatusComposer.Append(Status.Key);

if (!string.IsNullOrEmpty(Status.Value))
{
StatusComposer.Append(" ");
StatusComposer.Append(Status.Value);
}

StatusComposer.Append("/");
}

StatusComposer.Append("/");
WriteString(StatusComposer.ToString());
}
}
}
}
 

Queso

echo 'Web Developer';
Nov 29, 2016
232
72
Never known exceptions.txt errors to be an issue, they are errors, but they are clearly being exceptions and not entirely messing with the game. Looks to me like there is something else causing the issue, not that. If it is, then you must've changed something in the RoomManager.cs
 

Users who are viewing this thread

Top