Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2013-09-08 11:10:30

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 87/411
Website

Bug with person events after entering a warp. Need help!

My hack has a bug that when entering any new map from a warp, person events that are near the warp (that should be seen immediately when entering the map) aren't loaded, they are only loaded when I move around the map and then I go back. I don't know very well what could've caused the bug, but it all started when I was editing the cianwood gym map and edited the person events so that there could be around 20 strength boulders. It didn't work well and now I think there must be a limit of person events per map of 15 or 16 or something like that because my theory was that it was occupying parts of the ram memory that it shouldn't because it broke the data of my party pokemon. The thing is that I went back to 15 events thinking I was fixing the problem by doing that, but now I know I was wrong. I then edited the second map header to go back to the original map and events but the bug remained. I have another thought that maybe the fact that I used nearly the end of a bank to define the new events was what could be causing the bug, but I really have no clue. The thing is that the backup rom I have just before I started working on the cianwood gym works completely right. But I have done other stuff after that backup, so it would be annoying to start over from that backup.

I was hoping that maybe someone could have better ideas than me about where the issue comes from. Any help is greatly appreciated.

Last edited by Crystal_ (2013-09-08 11:29:04)

Offline

#2 2013-09-08 11:48:51

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 88/411
Website

Re: Bug with person events after entering a warp. Need help!

False alarm. I know the changes on the cianwood gym have nothing to do with the bug, since the bug comes from a backup done later. The bug have been caused by a tool, now I'm sure. I should be able to find what's causing the bug by comparing the two backups with an hex comparer. Though if someone can answer, I'm still curious if the person event limit is 15 or 16 if there is actually one. What a stupid thread lol.

Offline

#3 2013-09-08 12:12:29

Miksy91
Member
Registered: 2010-10-16
Post 1,880/2,306

Re: Bug with person events after entering a warp. Need help!

Yeah, there is a limit in how many persons events you can have in each map.

Each time you take a step, some routine checks (inside the rom!) whether you step on a warp/trigger event, so those don't have to be loaded into ram. Same goes with signposts - they don't have to be loaded into ram either.
(For example; player is located in map bank 3 and map number 22 in position (x = 30, y = 17), and he faces right. Now when you press A button, some routine checks the event data of map 3.22, the signpost part of it and thus, if a signpost is located in (x = 31, y = 17). If there is, execute the script data of this signpost event.)

However, people event data has to be loaded into ram because they can move, change facings and such, so their data is not permanent. And because their data is stored in ram, there is also a limit in how many people events there can be in each map. If I'm right, you can have at max. 14 people events in each map. And like I mentioned just now as well, there shouldn't be any limit in the amount of warps/trigger events/signposts you can have.

Last edited by Miksy91 (2013-09-08 12:14:53)

Offline

#4 2013-09-08 12:44:11

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 89/411
Website

Re: Bug with person events after entering a warp. Need help!

I suppose the maximum number of person events should be 15 then, because that's the number of events goldenrod city has, but thanks for the info!

P.S. Fixed the bug It was somewhere at around offsets 0x8000 - 0x8200, I dont remember exactly. Itemed caused it (it seems like editing anything with it in Pokemon Crystal causes a bug, and not just a few items like I thought). Advice for hackers starting out: Do save backups often!

Last edited by Crystal_ (2013-09-08 12:47:00)

Offline

#5 2013-09-08 20:23:00

comet
Member
Registered: 2012-04-09
Post 295/672

Re: Bug with person events after entering a warp. Need help!

note that the limit is 15 in crystal, but 14 in gold, since it still has the pikachu slot from yellow

Offline

#6 2013-09-28 20:09:00

Skurbert
Member
Registered: 2012-12-16
Post 56/95

Re: Bug with person events after entering a warp. Need help!

Yepp, 14 is the limit in G/S. More than that and the rest won't show up.

Which editor are you using for Crystal? These I have tried are very bugged and doesn't show scripts properly.

Offline

#7 2013-09-29 09:27:38

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 105/411
Website

Re: Bug with person events after entering a warp. Need help!

Which editor are you using for Crystal?

Goldfinger

Offline

Board footer

Powered by FluxBB