Can't walk .. BUG - NEED HELP

uttmmmm5

Member
May 18, 2016
110
5
Hey there,

I have a problem..
I use a plusemu and everything is normal but then, after a few hours, you can't walk anymore.. everything else is working normally.
I didn't get any errors. so idk whats the problem..
And when you can't walk, you can't shutdown the emulator normally.. It freezed after try to save rooms and other data..
Can somebody help me?

Best Regards
 

Queso

echo 'Web Developer';
Nov 29, 2016
232
72
Sounds like a pathfinder issue if you can't walk, maybe check your pathfinding code, it's possible that you could have an issue somewhere in your Room.cs as well, and it can cause you not to be able to type or walk if you mess about with something and the code be obfuscated.
 

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
What version of Plus are you using? There would be errors if there's a problem with the emulator files? Maybe they're under attack or MySQL has stopped responding?

There should be some logs somewhere, make sure you never force the emulator to close as well, make sure you type shutdown on the console.
 

uttmmmm5

Member
May 18, 2016
110
5
Code:
Error in query:
UPDATE `users` SET `online` = '0' WHERE `online` = '1'
MySql.Data.MySqlClient.MySqlException (0x80004005): Deadlock found when trying to get lock; try restarting transaction
   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\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 177


Error in query:
UPDATE `users` SET online = '0', `auth_ticket` = NULL
MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'auth_ticket' cannot be null
   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\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 177


Error in query:
UPDATE `users` SET online = '0', `auth_ticket` = NULL
MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'auth_ticket' cannot be null
   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\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 177


Error in query:
SELECT enabled,current_preset,preset_one,preset_two,preset_three FROM room_items_moodlight WHERE item_id = '160231' LIMIT 1
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'roleplay.room_items_moodlight' doesn't exist
   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 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
   at Plus.Database.Adapter.QueryAdapter.getRow() in C:\Users\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 77


Error in query:
INSERT INTO `room_items_moodlight` (item_id,enabled,current_preset,preset_one,preset_two,preset_three) VALUES (160231,0,1,'#000000,255,0','#000000,255,0','#000000,255,0')
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'roleplay.room_items_moodlight' doesn't exist
   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\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 177


Error in query:
SELECT enabled,current_preset,preset_one,preset_two,preset_three FROM room_items_moodlight WHERE item_id=160231 LIMIT 1
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'roleplay.room_items_moodlight' doesn't exist
   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 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
   at Plus.Database.Adapter.QueryAdapter.getRow() in C:\Users\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 77


Error in query:
SELECT enabled,current_preset,preset_one,preset_two,preset_three FROM room_items_moodlight WHERE item_id = '160231' LIMIT 1
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'roleplay.room_items_moodlight' doesn't exist
   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 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
   at Plus.Database.Adapter.QueryAdapter.getRow() in C:\Users\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 77


Error in query:
INSERT INTO `room_items_moodlight` (item_id,enabled,current_preset,preset_one,preset_two,preset_three) VALUES (160231,0,1,'#000000,255,0','#000000,255,0','#000000,255,0')
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'roleplay.room_items_moodlight' doesn't exist
   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\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 177

These are the MySQL-Errors which i get after i debugged the emulator and tried then to shutdown with the "shutdown"-Command
Have someone an idea?
Is there maybe something which can be the problem why i can't walk after a few hours ?
 

Pinkman

Posting Freak
Jul 27, 2016
818
194
Code:
Error in query:
UPDATE `users` SET `online` = '0' WHERE `online` = '1'
MySql.Data.MySqlClient.MySqlException (0x80004005): Deadlock found when trying to get lock; try restarting transaction
   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\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 177


Error in query:
UPDATE `users` SET online = '0', `auth_ticket` = NULL
MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'auth_ticket' cannot be null
   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\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 177


Error in query:
UPDATE `users` SET online = '0', `auth_ticket` = NULL
MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'auth_ticket' cannot be null
   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\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 177


Error in query:
SELECT enabled,current_preset,preset_one,preset_two,preset_three FROM room_items_moodlight WHERE item_id = '160231' LIMIT 1
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'roleplay.room_items_moodlight' doesn't exist
   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 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
   at Plus.Database.Adapter.QueryAdapter.getRow() in C:\Users\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 77


Error in query:
INSERT INTO `room_items_moodlight` (item_id,enabled,current_preset,preset_one,preset_two,preset_three) VALUES (160231,0,1,'#000000,255,0','#000000,255,0','#000000,255,0')
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'roleplay.room_items_moodlight' doesn't exist
   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\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 177


Error in query:
SELECT enabled,current_preset,preset_one,preset_two,preset_three FROM room_items_moodlight WHERE item_id=160231 LIMIT 1
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'roleplay.room_items_moodlight' doesn't exist
   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 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
   at Plus.Database.Adapter.QueryAdapter.getRow() in C:\Users\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 77


Error in query:
SELECT enabled,current_preset,preset_one,preset_two,preset_three FROM room_items_moodlight WHERE item_id = '160231' LIMIT 1
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'roleplay.room_items_moodlight' doesn't exist
   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 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
   at Plus.Database.Adapter.QueryAdapter.getRow() in C:\Users\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 77


Error in query:
INSERT INTO `room_items_moodlight` (item_id,enabled,current_preset,preset_one,preset_two,preset_three) VALUES (160231,0,1,'#000000,255,0','#000000,255,0','#000000,255,0')
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'roleplay.room_items_moodlight' doesn't exist
   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\soz\Desktop\HoloRP Workspace\PlusRP Emulator\Database\Adapter\QueryAdapter.cs:line 177

These are the MySQL-Errors which i get after i debugged the emulator and tried then to shutdown with the "shutdown"-Command
Have someone an idea?
Is there maybe something which can be the problem why i can't walk after a few hours ?
Turn MySQL Strict mode off buddy.
 

Pinkman

Posting Freak
Jul 27, 2016
818
194
Ok I did it now.
Now I will let the client a few hours on and will test if I can walk in a few hours or not.
If not, I will post every error which I get in my Logs because i cleared it now.
Ok buddy, do let me know if it has worked,
 
Sounds like a pathfinder issue if you can't walk, maybe check your pathfinding code, it's possible that you could have an issue somewhere in your Room.cs as well, and it can cause you not to be able to type or walk if you mess about with something and the code be obfuscated.
Wrong! If it was a pathfinding issue he/she won't have even be able to walk. If anything that causes not to talk it's most likely a figuredata issue. As from the errors you can clearly see it tried to run some queries but failed - Strict mode. Hence you turn off the strict mode :p
 

uttmmmm5

Member
May 18, 2016
110
5
@Pinkman
Ok it doesn't solved it...
And now i got no errors in my logs - really absolutely no errors!
But when I try to shutdown the emulator with the "shutdown"-command after I can't walk then the emulator will freeze when I try to shutdown with command - it looks then like this:


normally it looks like this:


Have someone an idea ?
 

Pinkman

Posting Freak
Jul 27, 2016
818
194
@Pinkman
Ok it doesn't solved it...
And now i got no errors in my logs - really absolutely no errors!
But when I try to shutdown the emulator with the "shutdown"-command after I can't walk then the emulator will freeze when I try to shutdown with command - it looks then like this:


normally it looks like this:


Have someone an idea ?
Ok, enable debugging mode and try that. This should show some unhandled packets I guess and we can work from there.
 

uttmmmm5

Member
May 18, 2016
110
5
No unhandled packets and no errors in the logs...
Does someone have another idea ?
 
Code:
Error in packet [3785] BODY: [0][0][0]?[0][0]????:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Plus.HabboHotel.Rooms.Gamemap.GenerateMaps(Boolean checkLines) in C:\Users\Administrator\Desktop\HubbaRP Emulator\HabboHotel\Rooms\GameMap.cs:line 313
   at Plus.HabboHotel.Rooms.Room..ctor(RoomData Data) in C:\Users\Administrator\Desktop\HubbaRP Emulator\HabboHotel\Rooms\Room.cs:line 183
   at Plus.HabboHotel.Rooms.RoomManager.LoadRoom(Int32 Id, Boolean BotCheck) in C:\Users\Administrator\Desktop\HubbaRP Emulator\HabboHotel\Rooms\RoomManager.cs:line 553
   at Plus.HabboRoleplay.Misc.RoleplayManager.GenerateRoom(Int32 RoomId, Boolean BotCheck) in C:\Users\Administrator\Desktop\HubbaRP Emulator\HabboRoleplay\Misc\RoleplayManager.cs:line 352
   at Plus.HabboHotel.Users.Habbo.PrepareRoom(Int32 Id, String Password) in C:\Users\Administrator\Desktop\HubbaRP Emulator\HabboHotel\Users\Habbo.cs:line 1314
   at Plus.Communication.Packets.Incoming.Rooms.Connection.OpenFlatConnectionEvent.Parse(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\HubbaRP Emulator\Communication\Packets\Incoming\Rooms\Connection\OpenFlatConnectionEvent.cs:line 18
   at Plus.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\HubbaRP Emulator\Communication\Packets\PacketManager.cs:line 157
   at Plus.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message) in C:\Users\Administrator\Desktop\HubbaRP Emulator\HabboHotel\GameClients\GameClient.cs:line 84

Now I get one more Package-Error-Log.
Can this be the problem why I can't walk after a few hours ?
And if so, how I can fix it ?
 

Chefao

Member
Apr 30, 2017
47
29
Change line 313 to this:

mUserItemEffect = new byte[Model.MapSizeX, Model.MapSizeY];
mGameMap = new byte[Model.MapSizeX, Model.MapSizeY];
mItemHeightMap = new double[Model.MapSizeX, Model.MapSizeY];
 

uttmmmm5

Member
May 18, 2016
110
5
Change line 313 to this:

mUserItemEffect = new byte[Model.MapSizeX, Model.MapSizeY];
mGameMap = new byte[Model.MapSizeX, Model.MapSizeY];
mItemHeightMap = new double[Model.MapSizeX, Model.MapSizeY];
Line 313 is a Region:
Code:
#region Dynamic game map handling

            if (MaxY > (Model.MapSizeY - 1) || MaxX > (Model.MapSizeX - 1))
            {
                if (MaxX < Model.MapSizeX)
                    MaxX = Model.MapSizeX;
                if (MaxY < Model.MapSizeY)
                    MaxY = Model.MapSizeY;

                Model.SetMapsize(MaxX + 7, MaxY + 7);
                GenerateMaps(false);
                return;
            }

            if (MaxX != StaticModel.MapSizeX || MaxY != StaticModel.MapSizeY)
            {
                mUserItemEffect = new byte[Model.MapSizeX, Model.MapSizeY];
                mGameMap = new byte[Model.MapSizeX, Model.MapSizeY];


                mItemHeightMap = new double[Model.MapSizeX, Model.MapSizeY];
                //if (modelRemap)
                //    Model.Generate(); //Clears model

                for (int line = 0; line < Model.MapSizeY; line++)
                {
                    for (int chr = 0; chr < Model.MapSizeX; chr++)
                    {
                        mGameMap[chr, line] = 0;
                        mUserItemEffect[chr, line] = 0;

                        if (chr == Model.DoorX && line == Model.DoorY)
                        {
                            mGameMap[chr, line] = 1/*3*/;
                        }
                        else if (Model.SqState[chr, line] == SquareState.OPEN)
                        {
                            mGameMap[chr, line] = 1;
                        }
                        else if (Model.SqState[chr, line] == SquareState.SEAT)
                        {
                            mGameMap[chr, line] = 2;
                        }
                        else if (Model.SqState[chr, line] == SquareState.POOL)
                        {
                            mUserItemEffect[chr, line] = 6;
                        }
                    }
                }

                if (gotPublicPool)
                {
                    for (int y = 0; y < StaticModel.MapSizeY; y++)
                    {
                        for (int x = 0; x < StaticModel.MapSizeX; x++)
                        {
                            if (StaticModel.mRoomModelfx[x, y] != 0)
                            {
                                mUserItemEffect[x, y] = StaticModel.mRoomModelfx[x, y];
                            }
                        }
                    }
                }

                /** COMENTADO YA QUE SALAS PUBLICAS NUEVA CRYPTO NO NECESARIO
                if (!string.IsNullOrEmpty(StaticModel.StaticFurniMap))
                {
                     * foreach (PublicRoomSquare square in StaticModel.Furnis)
                    {
                        if (square.Content.Contains("chair") || square.Content.Contains("sofa"))
                        {
                            mGameMap[square.X, square.Y] = 1;
                        } else {
                            mGameMap[square.X, square.Y] = 0;
                        }
                    }
                }*/
            }
            #endregion

Can you change this region how it is correct and send it to me that i can copy and replace it ?
 
Doesn't have anybody an idea ?
It is the HoloRP-Emulator.
After a few hours I can't walk, idk why.
No Errors in the Console.
 

Users who are viewing this thread

Top