- 4
- Posts
- 8
- Years
- Seen Jun 3, 2023
Hi there! New user here. I'm trying to make a hack of Emerald version. So far I've made and inserted some new maps with Amap (1.92?), new scripts with XSE, and edited some item and Pokemon data. But while I was testing one of my new maps shortly after insertion, I encountered an extremely weird bug.
When I go near a certain person event in my new map and then open and close a menu, I suddenly take control of that person. My original player sprite remains motionless where it is, and my inputs start affecting the new person event. He remains fixed in position relative to the camera. Getting into a battle, changing maps, and opening the menu don't help, but flying and taking a warp seem to fix it.
Has anyone ever heard of an issue like this, or know how to fix it? If anyone could help, I'd really appreciate it; I'm frankly stumped and I want to know how to keep this from happening before I move ahead with making more new maps.
I'm including some screenshots below to illustrate the issue.
This is me having stood next to the offending event (the game kid), opened/closed the menu, then pressed up. He has moved up one tile, while the player character is stationary.
I move a tile to the left, and a trainer spots me; but the faceplayer command has her face towards the original player?
It was hard to screencap, but when I trigger this bug, the player's sprite is facing downwards as the world fades back in before facing back to where he should be. That seems significant to me.
Interestingly, my new sprite is still confined by his movement byte; I set it to 22 and this is as far as I can move. The same thing happens with 11; I can only move 1 tile in either direction.
I moved him to confirm that it was indeed him causing the issue; and when I put him in the grass, his sprite changed to look like this while I was controlling him.
Well, once. It didn't happen the second time somehow.
When his movement byte is 00, I'm unrestricted; here's me seeing how far I can go. Note that the camera is in the wrong place.
And when I enter the Pokemon Center, I'm back to normal.
Here is the offending sprite's entry in Amap, if it helps. I messed around with his bytes a little bit in an effort to fix it, but I didn't find anything useful.
And here's what the map itself looks like. EVERYTHING works fine except for that one person event, and there's no map scripts or anything.
When I go near a certain person event in my new map and then open and close a menu, I suddenly take control of that person. My original player sprite remains motionless where it is, and my inputs start affecting the new person event. He remains fixed in position relative to the camera. Getting into a battle, changing maps, and opening the menu don't help, but flying and taking a warp seem to fix it.
Has anyone ever heard of an issue like this, or know how to fix it? If anyone could help, I'd really appreciate it; I'm frankly stumped and I want to know how to keep this from happening before I move ahead with making more new maps.
I'm including some screenshots below to illustrate the issue.
Spoiler:
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/gIWIQWy.png)
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/r6fBPrm.png)
This is me having stood next to the offending event (the game kid), opened/closed the menu, then pressed up. He has moved up one tile, while the player character is stationary.
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/UyHMxrF.png)
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/ERvlQBz.png)
I move a tile to the left, and a trainer spots me; but the faceplayer command has her face towards the original player?
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/wGqN4Ge.png)
It was hard to screencap, but when I trigger this bug, the player's sprite is facing downwards as the world fades back in before facing back to where he should be. That seems significant to me.
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/H0byMrI.png)
Interestingly, my new sprite is still confined by his movement byte; I set it to 22 and this is as far as I can move. The same thing happens with 11; I can only move 1 tile in either direction.
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/8bEvgsR.png)
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/Ddu1Hcf.png)
I moved him to confirm that it was indeed him causing the issue; and when I put him in the grass, his sprite changed to look like this while I was controlling him.
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/2IC6Oqp.png)
Well, once. It didn't happen the second time somehow.
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/MghH1pZ.png)
When his movement byte is 00, I'm unrestricted; here's me seeing how far I can go. Note that the camera is in the wrong place.
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/UOKnQ4r.png)
And when I enter the Pokemon Center, I'm back to normal.
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/6ug8OaK.png)
Here is the offending sprite's entry in Amap, if it helps. I messed around with his bytes a little bit in an effort to fix it, but I didn't find anything useful.
![[PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control? [PokeCommunity.com] [Emerald] New map bug: Opening a menu changes which person I control?](https://i.imgur.com/lsfDy3q.png)
And here's what the map itself looks like. EVERYTHING works fine except for that one person event, and there's no map scripts or anything.
Last edited: