Advertiser Content

Map Black Screen

Started by hobbes33 June 13th, 2019 8:39 PM
  • 880 views
  • 4 replies
Seen 3 Weeks Ago
Posted June 14th, 2019
4 posts
38 Days
It's probably as generic a problem as one can have.

When entering one of my maps, it gets a black screen and the game presumably freezes. This occurred after adding a script with a type of "on entering map / not on menu close." It's the only script on the map. Removing the script "solves" the issue, but I would very much like to be able to have entering a map trigger an event.

I saw a fix to a similar problem, but the map's footer offset already ends in an 8.

Any ideas?

Update: Messing around with the script type of the map header script partially solves the problem. Seems like I'm trying to manipulate things that don't exist yet by the game's reckoning, (ie "on enter" is literally as the player enters, which might mean that a lot of stuff isn't available for access).

DrFuji

Heiki Hecchara‌‌

Age 26
Male
Aussie
Seen 8 Hours Ago
Posted 2 Days Ago
1,594 posts
9.9 Years
Are you able to post the script here?
Online now
Posted 11 Hours Ago
253 posts
11.1 Years
#org 0x800026
msgbox 0x8800033 MSG_NORMAL '"WHOA"
end

#org 0x800033
= WHOA

As you can tell, I got to the point where I was just trying to make any part of it work.

Attachment 88367
The msgbox command is not something to put in a type 03 level script (also not in 01, 04 and 05). The type 03 level script is typically used to set a certain weather, play a certain song or set a worldmapflag.

If you want to display that message the first time you enter the map, you should make it a type 02 script. It needs a variable to trigger it and you also need to set that variable to something else in the script or else it will keep repeating itself (which doesn't work).

Check this tutorial if you want to know how to work with type 02 level scripts: https://www.pokecommunity.com/showthread.php?t=191500
Seen 3 Weeks Ago
Posted June 14th, 2019
4 posts
38 Days
The msgbox command is not something to put in a type 03 level script (also not in 01, 04 and 05). The type 03 level script is typically used to set a certain weather, play a certain song or set a worldmapflag.

If you want to display that message the first time you enter the map, you should make it a type 02 script. It needs a variable to trigger it and you also need to set that variable to something else in the script or else it will keep repeating itself (which doesn't work).

Check this tutorial if you want to know how to work with type 02 level scripts:
Thanks, that's exactly what I was looking for.
Advertiser Content