PlusEMU weird error

chiefqueef

gooby pls
Jan 8, 2012
404
104
Code:
2017-08-08 16:37:01,672 ERROR - Exception >> Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Plus.HabboHotel.Rooms.Gamemap.ValidTile(Int32 X, Int32 Y) in C:\Users\Administrator\Desktop\Emulator Source\HabboHotel\Rooms\GameMap.cs:line 1262
   at Plus.HabboHotel.Rooms.RoomItemHandling.LoadFurniture() in C:\Users\Administrator\Desktop\Emulator Source\HabboHotel\Rooms\RoomItemHandling.cs:line 155
   at Plus.HabboHotel.Rooms.Room..ctor(RoomData Data) in C:\Users\Administrator\Desktop\Emulator Source\HabboHotel\Rooms\Room.cs:line 161
   at Plus.HabboHotel.Rooms.RoomManager.LoadRoom(Int32 Id) in C:\Users\Administrator\Desktop\Emulator Source\HabboHotel\Rooms\RoomManager.cs:line 419
   at Plus.HabboHotel.Users.Habbo.PrepareRoom(Int32 Id, String Password) in C:\Users\Administrator\Desktop\Emulator Source\HabboHotel\Users\Habbo.cs:line 1175
   at Plus.Communication.Packets.Incoming.Rooms.Connection.OpenFlatConnectionEvent.Parse(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\Emulator Source\Communication\Packets\Incoming\Rooms\Connection\OpenFlatConnectionEvent.cs:line 18
   at Plus.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\Emulator Source\Communication\Packets\PacketManager.cs:line 154
   at Plus.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message) in C:\Users\Administrator\Desktop\Emulator Source\HabboHotel\GameClients\GameClient.cs:line 65
 

chiefqueef

gooby pls
Jan 8, 2012
404
104
Your room model is likely to be null. Please verify the model is in the room_models table
all models are correct and none are at null does it have something to do with this i cant set default its greyed out in naicat for this table
Code:
INSERT INTO `room_models` (`id`,`door_x`,`door_y`, `door_z`, `door_dir`,`heightmap`,`custom`,`wall_height`) VALUES (@ModelName, @DoorX, @DoorY, @DoorZ, @DoorDirection, @Map,'1',@WallHeight)
MySql.Data.MySqlClient.MySqlException (0x80004005): Field 'public_items' doesn't have a default value
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at Plus.Database.Adapter.QueryAdapter.RunQuery() in C:\Users\Administrator\Desktop\Emulator Source\Database\Adapter\QueryAdapter.cs:line 167
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
Code:
CREATE TABLE `room_models` (
  `id` varchar(100) NOT NULL,
  `door_x` int(11) NOT NULL,
  `door_y` int(11) NOT NULL,
  `door_z` double NOT NULL,
  `door_dir` int(4) NOT NULL DEFAULT '2',
  `heightmap` text NOT NULL,
  `public_items` text,
  `club_only` enum('0','1') NOT NULL DEFAULT '0',
  `poolmap` varchar(100) NOT NULL DEFAULT '',
  `custom` enum('0','1') NOT NULL DEFAULT '0',
  `wall_height` int(11) NOT NULL DEFAULT '-1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 

chiefqueef

gooby pls
Jan 8, 2012
404
104
Code:
CREATE TABLE `room_models` (
  `id` varchar(100) NOT NULL,
  `door_x` int(11) NOT NULL,
  `door_y` int(11) NOT NULL,
  `door_z` double NOT NULL,
  `door_dir` int(4) NOT NULL DEFAULT '2',
  `heightmap` text NOT NULL,
  `public_items` text,
  `club_only` enum('0','1') NOT NULL DEFAULT '0',
  `poolmap` varchar(100) NOT NULL DEFAULT '',
  `custom` enum('0','1') NOT NULL DEFAULT '0',
  `wall_height` int(11) NOT NULL DEFAULT '-1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
what about the data?
 

Users who are viewing this thread

Top