Bug WIRED PLUS R1

Reikenz

Member
Apr 5, 2018
64
3
Hello devbest.
I have a bug when I ask it is wired in a room it arises but if I unload or reboot the room does not work anymore

You must be registered for see images attach


Error log:
Error in packet [3077] BODY: [0][0][0][0][0]????:
System.NullReferenceException: La r?f?rence d'objet n'est pas d?finie ? une instance d'un objet.
? Plus.HabboHotel.Rooms.Instance.WiredComponent.SaveBox(IWiredItem Item) dans C:\Users\Administrateur\Source\Repos\HabbKing\HabboHotel\Rooms\Instance\WiredComponent.cs:ligne 628
? Plus.HabboHotel.Rooms.Instance.WiredComponent.LoadWiredBox(Item Item) dans C:\Users\Administrateur\Source\Repos\HabbKing\HabboHotel\Rooms\Instance\WiredComponent.cs:ligne 125
? Plus.HabboHotel.Rooms.RoomItemHandling.LoadFurniture() dans C:\Users\Administrateur\Source\Repos\HabbKing\HabboHotel\Rooms\RoomItemHandling.cs:ligne 289
? Plus.HabboHotel.Rooms.Room..ctor(RoomData Data) dans C:\Users\Administrateur\Source\Repos\HabbKing\HabboHotel\Rooms\Room.cs:ligne 195
? Plus.HabboHotel.Rooms.RoomManager.LoadRoom(Int32 Id) dans C:\Users\Administrateur\Source\Repos\HabbKing\HabboHotel\Rooms\RoomManager.cs:ligne 418
? Plus.HabboHotel.Users.Habbo.PrepareRoom(Int32 Id, String Password) dans C:\Users\Administrateur\Source\Repos\HabbKing\HabboHotel\Users\Habbo.cs:ligne 1727
? Plus.Communication.Packets.Incoming.Rooms.Connection.OpenFlatConnectionEvent.Parse(GameClient Session, ClientPacket Packet) dans C:\Users\Administrateur\Source\Repos\HabbKing\Communication\Packets\Incoming\Rooms\Connection\OpenFlatConnectionEvent.cs:ligne 24
? Plus.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) dans C:\Users\Administrateur\Source\Repos\HabbKing\Communication\Packets\PacketManager.cs:ligne 169
? Plus.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message) dans C:\Users\Administrateur\Source\Repos\HabbKing\HabboHotel\GameClients\GameClient.cs:ligne 89

While I put the wired in
WiredBoxType, WiredBoxTypeUtilities and WiredComponent

Thanks to the person who will help me
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
C:\Users\Administrateur\Source\Repos\HabbKing\HabboHotel\Rooms\Instance\WiredComponent.cs:ligne 628

Data you have being saved is null at this point. Open the file and look at line 628 to see whats null
 

Reikenz

Member
Apr 5, 2018
64
3
C:\Users\Administrateur\Source\Repos\HabbKing\HabboHotel\Rooms\Instance\WiredComponent.cs:ligne 628

Data you have being saved is null at this point. Open the file and look at line 628 to see whats null

I have this on line 628
foreach (Item I in Item.SetItems.Values)
{
Item SelectedItem = _room.GetRoomItemHandler().GetItem(Convert.ToInt32(I.Id));
if (SelectedItem == null)
continue;

if (Item.Type == WiredBoxType.EffectMatchPosition || Item.Type == WiredBoxType.ConditionMatchStateAndPosition || Item.Type == WiredBoxType.ConditionDontMatchStateAndPosition)
Items += I.Id + ":" + I.GetX + "," + I.GetY + "," + I.GetZ + "," + I.Rotation + "," + I.ExtraData + ";";
else
Items += I.Id + ";";
}
 

Users who are viewing this thread

Top