Skip to content

fix: map blackscreen after teleport from differing height levels - #1096

Open
DesecratedTree wants to merge 1 commit into
GregHib:mainfrom
DesecratedTree:map
Open

fix: map blackscreen after teleport from differing height levels#1096
DesecratedTree wants to merge 1 commit into
GregHib:mainfrom
DesecratedTree:map

Conversation

@DesecratedTree

Copy link
Copy Markdown
Contributor

Root cause identified: Client's method3157 has a guard condition that states if zoneX == storedZoneX && zoneY == storedZoneY && !forceRefresh, the body is skipped, leaving scene data cleared by method3120 but never repopulated → black map.

Fix applied: Added Z-level check to inViewOfZone in RegionLoading.kt:99 which previously only checked X/Y, so teleports to the same zone coordinates but different plane (e.g., surface↔dungeon) would NOT trigger a region reload, causing the player to have a black map.
image

@skalfate

Copy link
Copy Markdown
Contributor

This is lovely. I am amazed.

@GregHib

GregHib commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Hmm I've never encountered this before, would it trigger using ladders to change levels?

@DesecratedTree

Copy link
Copy Markdown
Contributor Author

Hmm I've never encountered this before, would it trigger using ladders to change levels?

Good question, I've never tested ladders. I'm assuming its just teleports since the same map square is already loaded on level changes (ladders). Test on live by going up to lumbridge castle and teleporting to camelot or another area. You will see the bug.

@GregHib

GregHib commented Jul 30, 2026

Copy link
Copy Markdown
Owner

I'm unable to replicate this issue, can you test with the normal client rather than the runelite one? Need to rule that out.

Also it doesn't make sense to me how this fix helps. If you're teleporting from lumbridge castle to camelot the region coordinates will change and Distance.within will return false triggering a region load. This change won't effect that scenario.

The only time a player changes level but not region is when going up/down stairs

@skalfate

skalfate commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

I can't replicate it either on the latest client in standalone form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants