From f139a6adb6bed3989abd0d3ca36e058b8c620d2d Mon Sep 17 00:00:00 2001 From: ipkpjersi Date: Thu, 26 Dec 2024 12:58:34 -0500 Subject: [PATCH 1/3] Fixed drawing plane higher than 0 --- 2006Scape Client/src/main/java/Game.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/2006Scape Client/src/main/java/Game.java b/2006Scape Client/src/main/java/Game.java index 50458e406..0dd3fd1df 100644 --- a/2006Scape Client/src/main/java/Game.java +++ b/2006Scape Client/src/main/java/Game.java @@ -9107,7 +9107,14 @@ public void method117(Stream stream) { return; } if (k == 3) { + boolean debugPlanes = false; + if (debugPlanes) { + System.out.println("plane is " + plane); + } plane = stream.readBits(2); + if (debugPlanes) { + System.out.println("plane is now " + plane); + } int j1 = stream.readBits(1); int i2 = stream.readBits(1); if (i2 == 1) { @@ -9116,6 +9123,15 @@ public void method117(Stream stream) { int k2 = stream.readBits(7); int l2 = stream.readBits(7); myPlayer.setPos(l2, k2, j1 == 1); + //Handle plane changes, higher planes need the roof drawing checks disabled, and we need to manually update ObjectManager's anInt131 (plane) then manually call method22 to let the ObjectManaegr know we're on a different plane. This makes plane changes draw properly. Coords for testing this: lumb: 3207 3227 and varrock: 3209, 3392 and gnome agil: 2474, 3427 + ObjectManager.hideRoofs = ClientSettings.HIDE_ROOFS; + ObjectManager.hideBuggyVarrockSwordShopSnow = ClientSettings.HIDE_BUGGY_VARROCK_SWORD_SHOP_SNOW; + if (plane > 0) { + ObjectManager.hideRoofs = false; + ObjectManager.hideBuggyVarrockSwordShopSnow = false; + } + ObjectManager.anInt131 = plane; + method22(); } } From 2cf087a22e5c1f82f80814db9ee98ce636dab9c0 Mon Sep 17 00:00:00 2001 From: ipkpjersi Date: Sun, 10 Aug 2025 11:45:50 -0400 Subject: [PATCH 2/3] Fixed typo in comment --- 2006Scape Client/src/main/java/Game.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2006Scape Client/src/main/java/Game.java b/2006Scape Client/src/main/java/Game.java index 0dd3fd1df..2ecfa350c 100644 --- a/2006Scape Client/src/main/java/Game.java +++ b/2006Scape Client/src/main/java/Game.java @@ -9123,7 +9123,7 @@ public void method117(Stream stream) { int k2 = stream.readBits(7); int l2 = stream.readBits(7); myPlayer.setPos(l2, k2, j1 == 1); - //Handle plane changes, higher planes need the roof drawing checks disabled, and we need to manually update ObjectManager's anInt131 (plane) then manually call method22 to let the ObjectManaegr know we're on a different plane. This makes plane changes draw properly. Coords for testing this: lumb: 3207 3227 and varrock: 3209, 3392 and gnome agil: 2474, 3427 + //Handle plane changes, higher planes need the roof drawing checks disabled, and we need to manually update ObjectManager's anInt131 (plane) then manually call method22 to let the ObjectManager know we're on a different plane. This makes plane changes draw properly. Coords for testing this: lumb: 3207 3227 and varrock: 3209, 3392 and gnome agil: 2474, 3427 ObjectManager.hideRoofs = ClientSettings.HIDE_ROOFS; ObjectManager.hideBuggyVarrockSwordShopSnow = ClientSettings.HIDE_BUGGY_VARROCK_SWORD_SHOP_SNOW; if (plane > 0) { From b8f0ec718b647f5c371d3b8772b3425ef60c5852 Mon Sep 17 00:00:00 2001 From: ipkpjersi Date: Sun, 10 Aug 2025 11:45:50 -0400 Subject: [PATCH 3/3] Fixed typo in comment --- 2006Scape Client/src/main/java/Game.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2006Scape Client/src/main/java/Game.java b/2006Scape Client/src/main/java/Game.java index cb0927410..2b1100990 100644 --- a/2006Scape Client/src/main/java/Game.java +++ b/2006Scape Client/src/main/java/Game.java @@ -9123,7 +9123,7 @@ public void method117(Stream stream) { int k2 = stream.readBits(7); int l2 = stream.readBits(7); myPlayer.setPos(l2, k2, j1 == 1); - //Handle plane changes, higher planes need the roof drawing checks disabled, and we need to manually update ObjectManager's anInt131 (plane) then manually call method22 to let the ObjectManaegr know we're on a different plane. This makes plane changes draw properly. Coords for testing this: lumb: 3207 3227 and varrock: 3209, 3392 and gnome agil: 2474, 3427 + //Handle plane changes, higher planes need the roof drawing checks disabled, and we need to manually update ObjectManager's anInt131 (plane) then manually call method22 to let the ObjectManager know we're on a different plane. This makes plane changes draw properly. Coords for testing this: lumb: 3207 3227 and varrock: 3209, 3392 and gnome agil: 2474, 3427 ObjectManager.hideRoofs = ClientSettings.HIDE_ROOFS; ObjectManager.hideBuggyVarrockSwordShopSnow = ClientSettings.HIDE_BUGGY_VARROCK_SWORD_SHOP_SNOW; if (plane > 0) {