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 Releases
Server Releases
[PLUS] FloorPlanEditorRoomProperties fix with the 2x2 tiles
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="Jerry" data-source="post: 432988" data-attributes="member: 35321"><p>Hi,</p><p></p><p>I'm not sure if anyone has really bothered to fix this, but on retros using Plus Emulator (including Habboon) when you open the floorplan editor, the floorplan model doesn't prevent you from removing tiles/making tiles higher when 2x2 furniture are placed.</p><p></p><p>Here's an example of a messy floorplan map with 2x2 furniture placed in a room:</p><p>[ATTACH=full]7061[/ATTACH]</p><p></p><p>To fix this, go to the <strong>FloorPlanEditorRoomPropertiesEvent.cs</strong> file and replace everything with:</p><p>[CODE]using System.Linq;</p><p>using System.Collections.Generic;</p><p></p><p>using Plus.HabboHotel.Rooms;</p><p>using Plus.HabboHotel.Items;</p><p>using Plus.Communication.Packets.Outgoing.Rooms.FloorPlan;</p><p>using Plus.Communication.Packets.Outgoing.Rooms.Engine;</p><p>using System.Drawing;</p><p></p><p>namespace Plus.Communication.Packets.Incoming.Rooms.FloorPlan</p><p>{</p><p> class FloorPlanEditorRoomPropertiesEvent : IPacketEvent</p><p> {</p><p> public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet)</p><p> {</p><p> if (!Session.GetHabbo().InRoom)</p><p> return;</p><p></p><p> Room Room = Session.GetHabbo().CurrentRoom;</p><p> if (Room == null)</p><p> return;</p><p> </p><p> if (Room.GetGameMap().Model == null)</p><p> return;</p><p></p><p> List<Point> Squares = new List<Point>();</p><p> Room.GetRoomItemManager().GetFloor.ToList().ForEach(Item =></p><p> {</p><p> Item.GetCoords.ForEach(Point =></p><p> {</p><p> if (!Squares.Contains(Point))</p><p> Squares.Add(Point);</p><p> });</p><p> });</p><p></p><p> Session.SendPacket(new FloorPlanFloorMapComposer(Squares));</p><p> Session.SendPacket(new FloorPlanSendDoorComposer(Room.GetGameMap().Model.DoorX, Room.GetGameMap().Model.DoorY, Room.GetGameMap().Model.DoorOrientation));</p><p> Session.SendPacket(new RoomVisualizationSettingsComposer(Room.WallThickness, Room.FloorThickness, PlusEnvironment.EnumToBool(Room.Hidewall.ToString())));</p><p></p><p> Squares.Clear();</p><p> Squares = null;</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p><p></p><p>After that, compile changes and your floorplan editor should look like this with 2x2 furniture placed in the room:</p><p>[ATTACH=full]7062[/ATTACH]</p><p></p><p>That's it!</p></blockquote><p></p>
[QUOTE="Jerry, post: 432988, member: 35321"] Hi, I'm not sure if anyone has really bothered to fix this, but on retros using Plus Emulator (including Habboon) when you open the floorplan editor, the floorplan model doesn't prevent you from removing tiles/making tiles higher when 2x2 furniture are placed. Here's an example of a messy floorplan map with 2x2 furniture placed in a room: [ATTACH=full]7061[/ATTACH] To fix this, go to the [B]FloorPlanEditorRoomPropertiesEvent.cs[/B] file and replace everything with: [CODE]using System.Linq; using System.Collections.Generic; using Plus.HabboHotel.Rooms; using Plus.HabboHotel.Items; using Plus.Communication.Packets.Outgoing.Rooms.FloorPlan; using Plus.Communication.Packets.Outgoing.Rooms.Engine; using System.Drawing; namespace Plus.Communication.Packets.Incoming.Rooms.FloorPlan { class FloorPlanEditorRoomPropertiesEvent : IPacketEvent { public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (!Session.GetHabbo().InRoom) return; Room Room = Session.GetHabbo().CurrentRoom; if (Room == null) return; if (Room.GetGameMap().Model == null) return; List<Point> Squares = new List<Point>(); Room.GetRoomItemManager().GetFloor.ToList().ForEach(Item => { Item.GetCoords.ForEach(Point => { if (!Squares.Contains(Point)) Squares.Add(Point); }); }); Session.SendPacket(new FloorPlanFloorMapComposer(Squares)); Session.SendPacket(new FloorPlanSendDoorComposer(Room.GetGameMap().Model.DoorX, Room.GetGameMap().Model.DoorY, Room.GetGameMap().Model.DoorOrientation)); Session.SendPacket(new RoomVisualizationSettingsComposer(Room.WallThickness, Room.FloorThickness, PlusEnvironment.EnumToBool(Room.Hidewall.ToString()))); Squares.Clear(); Squares = null; } } } [/CODE] After that, compile changes and your floorplan editor should look like this with 2x2 furniture placed in the room: [ATTACH=full]7062[/ATTACH] That's it! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[PLUS] FloorPlanEditorRoomProperties fix with the 2x2 tiles
Top