Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
[Alaska] Help & Support Thread
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Logic" data-source="post: 423234" data-attributes="member: 12691"><p>I was experiencing an issue with an emulator error which was the room editor causing accounts to corrupt when you login and log out. Also, it caused the emulator to stick at 76%.</p><p></p><p>[code]</p><p>201 ERROR - Exception >> Exception:</p><p>System.FormatException: Input string was not in a correct format.</p><p>at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)</p><p>at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)</p><p>at System.Convert.ToInt32(String value)</p><p>at Plus.HabboHotel.Rooms.RoomData.Fill(DataRow Row) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\RoomData.cs:line 87</p><p>at Plus.HabboHotel.Rooms.RoomManager.FetchRoomData(Int32 RoomId, DataRow dRow) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\RoomManager.cs:line 400</p><p>at Plus.HabboHotel.Users.UserData.UserDataFactory.GetUserData(String SessionTicket, Byte& errorCode) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Users\UserData\UserDataFactory.cs:line 158</p><p>at Plus.HabboHotel.GameClients.GameClient.TryAuthenticate(String AuthTicket) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\GameClients\GameClient.cs:line 100[/code]</p><p>I was able to use the fix by [USER=36373]@JayCustom[/USER] below:</p><p>1. Backup your database and shutdown your emulator.</p><p>2. In RoomData.cs at line 87, find:</p><p>[code]</p><p>if (!string.IsNullOrEmpty(Row["users_now"].ToString()))</p><p> UsersNow = Convert.ToInt32(Row["users_now"]);</p><p> else</p><p> UsersNow = 0;[/code]</p><p>Change to:</p><p>[code]</p><p>int intUsers; if(!string.IsNullOrEmpty(Row["users_now"].ToString()) && Int32.TryParse(Row["users_now"].ToString(), out intUsers))</p><p> UsersNow = intUsers;</p><p> else</p><p> UsersNow = 0;[/code]</p><p>3. Finally, run the following query:</p><p>[code]</p><p>ALTER TABLE `rooms` CHANGE `allow_pets` `allow_pets` INT(1) NOT NULL DEFAULT '0', CHANGE `allow_pets_eat` `allow_pets_eat` INT(1) NOT NULL DEFAULT '0', CHANGE `room_blocking_disabled` `room_blocking_disabled` INT(1) NOT NULL DEFAULT '0', CHANGE `allow_hidewall` `allow_hidewall` INT(1) NOT NULL DEFAULT '0', CHANGE `mute_settings` `mute_settings` INT(1) NOT NULL DEFAULT '1', CHANGE `ban_settings` `ban_settings` INT(1) NOT NULL DEFAULT '1', CHANGE `kick_settings` `kick_settings` INT(1) NOT NULL DEFAULT '1';[/code]</p><p>4. Reboot your emulator.</p><p></p><p></p><p>Another issue I came across was wired behavior placing wired down and it corrupting your account throwing an error in the emulator:</p><p>[code] Exception:</p><p>System.NullReferenceException: Object reference not set to an instance of an object.</p><p>at Plus.HabboHotel.Rooms.Instance.WiredComponent.LoadWiredBox(Item Item) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\Instance\WiredComponent.cs:line 77</p><p>at Plus.HabboHotel.Rooms.RoomItemHandling.LoadFurniture() in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\RoomItemHandling.cs:line 233</p><p>at Plus.HabboHotel.Rooms.Room..ctor(RoomData Data) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\Room.cs:line 161</p><p>at Plus.HabboHotel.Rooms.RoomManager.LoadRoom(Int32 Id) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\RoomManager.cs:line 419</p><p>at Plus.HabboHotel.Users.Habbo.PrepareRoom(Int32 Id, String Password) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Users\Habbo.cs:line 1175</p><p>at Plus.Communication.Packets.Incoming.Rooms.Connection.OpenFlatConnectionEvent.Parse(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\prjAlaska\Communication\Packets\Incoming\Rooms\Connection\OpenFlatConnectionEvent.cs:line 18</p><p>at Plus.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\prjAlaska\Communication\Packets\PacketManager.cs:line 154</p><p>at Plus.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\GameClients\GameClient.cs:line 65[/code]</p><p>I fixed this with the following fix:</p><p>1. Backup your database.</p><p>2. Run the following queries:</p><p>[code] UPDATE `furniture` SET `behaviour_data` = `furniture`.`clothing_id` WHERE `furniture`.`clothing_id` > 0 AND `furniture`.`behaviour_data` = 0;</p><p>UPDATE `furniture` SET `behaviour_data` = `furniture`.`wired_id` WHERE `furniture`.`wired_id` > 0 AND (`furniture`.`interaction_type` = 'wired_effect' OR `furniture`.`interaction_type` = 'wired_trigger' OR `furniture`.`interaction_type` = 'wired_condition');[/code]</p><p>3. Reboot your emulator.</p><p></p><p>NOTE: This is if you're using the database by [USER=21952]@Platinum[/USER]. Not everyone will experience it but if you do, the above and below are fixes.</p><p></p><p>If you run into the issue with 'sanbdox' missing from `catalog_items`, add it with the following:</p><p></p><p><img src="https://scrncp.com/TlqUg.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Do the same for `furniture`. Reboot your emulator if needed.</p></blockquote><p></p>
[QUOTE="Logic, post: 423234, member: 12691"] I was experiencing an issue with an emulator error which was the room editor causing accounts to corrupt when you login and log out. Also, it caused the emulator to stick at 76%. [code] 201 ERROR - Exception >> Exception: System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt32(String value) at Plus.HabboHotel.Rooms.RoomData.Fill(DataRow Row) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\RoomData.cs:line 87 at Plus.HabboHotel.Rooms.RoomManager.FetchRoomData(Int32 RoomId, DataRow dRow) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\RoomManager.cs:line 400 at Plus.HabboHotel.Users.UserData.UserDataFactory.GetUserData(String SessionTicket, Byte& errorCode) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Users\UserData\UserDataFactory.cs:line 158 at Plus.HabboHotel.GameClients.GameClient.TryAuthenticate(String AuthTicket) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\GameClients\GameClient.cs:line 100[/code] I was able to use the fix by [USER=36373]@JayCustom[/USER] below: 1. Backup your database and shutdown your emulator. 2. In RoomData.cs at line 87, find: [code] if (!string.IsNullOrEmpty(Row["users_now"].ToString())) UsersNow = Convert.ToInt32(Row["users_now"]); else UsersNow = 0;[/code] Change to: [code] int intUsers; if(!string.IsNullOrEmpty(Row["users_now"].ToString()) && Int32.TryParse(Row["users_now"].ToString(), out intUsers)) UsersNow = intUsers; else UsersNow = 0;[/code] 3. Finally, run the following query: [code] ALTER TABLE `rooms` CHANGE `allow_pets` `allow_pets` INT(1) NOT NULL DEFAULT '0', CHANGE `allow_pets_eat` `allow_pets_eat` INT(1) NOT NULL DEFAULT '0', CHANGE `room_blocking_disabled` `room_blocking_disabled` INT(1) NOT NULL DEFAULT '0', CHANGE `allow_hidewall` `allow_hidewall` INT(1) NOT NULL DEFAULT '0', CHANGE `mute_settings` `mute_settings` INT(1) NOT NULL DEFAULT '1', CHANGE `ban_settings` `ban_settings` INT(1) NOT NULL DEFAULT '1', CHANGE `kick_settings` `kick_settings` INT(1) NOT NULL DEFAULT '1';[/code] 4. Reboot your emulator. Another issue I came across was wired behavior placing wired down and it corrupting your account throwing an error in the emulator: [code] Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Plus.HabboHotel.Rooms.Instance.WiredComponent.LoadWiredBox(Item Item) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\Instance\WiredComponent.cs:line 77 at Plus.HabboHotel.Rooms.RoomItemHandling.LoadFurniture() in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\RoomItemHandling.cs:line 233 at Plus.HabboHotel.Rooms.Room..ctor(RoomData Data) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\Room.cs:line 161 at Plus.HabboHotel.Rooms.RoomManager.LoadRoom(Int32 Id) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Rooms\RoomManager.cs:line 419 at Plus.HabboHotel.Users.Habbo.PrepareRoom(Int32 Id, String Password) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\Users\Habbo.cs:line 1175 at Plus.Communication.Packets.Incoming.Rooms.Connection.OpenFlatConnectionEvent.Parse(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\prjAlaska\Communication\Packets\Incoming\Rooms\Connection\OpenFlatConnectionEvent.cs:line 18 at Plus.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\prjAlaska\Communication\Packets\PacketManager.cs:line 154 at Plus.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message) in C:\Users\Administrator\Desktop\prjAlaska\HabboHotel\GameClients\GameClient.cs:line 65[/code] I fixed this with the following fix: 1. Backup your database. 2. Run the following queries: [code] UPDATE `furniture` SET `behaviour_data` = `furniture`.`clothing_id` WHERE `furniture`.`clothing_id` > 0 AND `furniture`.`behaviour_data` = 0; UPDATE `furniture` SET `behaviour_data` = `furniture`.`wired_id` WHERE `furniture`.`wired_id` > 0 AND (`furniture`.`interaction_type` = 'wired_effect' OR `furniture`.`interaction_type` = 'wired_trigger' OR `furniture`.`interaction_type` = 'wired_condition');[/code] 3. Reboot your emulator. NOTE: This is if you're using the database by [USER=21952]@Platinum[/USER]. Not everyone will experience it but if you do, the above and below are fixes. If you run into the issue with 'sanbdox' missing from `catalog_items`, add it with the following: [img]https://scrncp.com/TlqUg.png[/img] Do the same for `furniture`. Reboot your emulator if needed. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[Alaska] Help & Support Thread
Top