Debug menu improvements + Teleport to maps #1817
guess this doesn't work in emscripten? In the web player I only get a blackscreen while testing. ( https://easyrpg.org/play/pr1817/?test-play )
Trying it again locally later.
Also not tested yet, need to prepare this: What happens when the maptree has gaps? Are the gaps filles with "ID: (Map unavailable)" lines or will the listing on the left desynchronize with the numbers on the right?
Regarding this black screen on emscripten, I see this too.
Maybe it's an async bug related to enabling teleports from scenes other than the map? Do we have any test game setup with quick access to an Escape or Teleport spell?
I suspect this might be a more general issue and if so, they would exhibit the same problem.
EDIT: The error is that async loading doesn't happen.
If you look at the web console, you'll see errors about unable to load MapXXXX.lmu. If you use the feature to teleport to the same map you're on, it works.
In chat @fdelapena commented that this PR doesn't handle map bounds. Unfortunately I don't think that can be done easily as we actually have to load the lmu file to know the bounds, which would incredibly slow on normal platforms and basically impossible on emscripten.
It's a debug feature, so I guess not a huge problem for now.