Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Emulation & ROM Hacking

Pokemon ROM Hacks - WTW On Demand - Page 1

Pokemon ROM Hacks - WTW On Demand

Posted by: Parzival
Date: 2019-08-16 14:56:45
Finally figured out why my attempts to add WTW on demand to Yellow weren't working and fixed it, so here it is:

Walk Through Walls On Demand!

Hold SELECT to enable WTW. Simple as that.

These shouldn't change anything data-wise (so no glitch Pokemon/items should behave differently) but timing-wise things may have changed, so these may be incompatible with other hacks that hijack VBlank.
Included are IPS patches for Red, Blue, and Yellow, all US versions (for now :D ). These should ONLY be applied to "known-good" ROMs (eventually i'll make some utility or something to apply multiple VBlank hacks to one ROM with timing measurements and such automatically taken into account, but that's probably quite a ways away) so make sure you check DAT-o-Matic and match your ROMs to the listed "good" dumps before applying.

(Patches are attached to the post, if you're still looking for them…)

If anyone has any info on any international equivalent of the RAM address used (CD38), i'll see if I can make a similar patch for said language. Also, request patch ideas if you have them, maybe I can pull them off (a better RAM Corruption On Demand set is in the works at the moment, so it may be a bit.)

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Sherkel
Date: 2019-08-17 17:41:11
Nifty! I'm not sure what I would use this for yet, but it seems like it took quite a bit of problem solving.

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Parzival
Date: 2019-08-17 21:32:08

Nifty! I'm not sure what I would use this for yet, but it seems like it took quite a bit of problem solving.
Especially in Yellow, yeah. Slotting code between RST vectors in ~8 byte chunks is a bit of a pain…

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Torchickens
Date: 2019-08-18 01:27:40
Nice hack! ^^ Useful if you can't use cheats.

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Torchickens
Date: 2019-08-18 08:57:23

If anyone has any info on any international equivalent of the RAM address used (CD38), i'll see if I can make a similar patch for said language. Also, request patch ideas if you have them, maybe I can pull them off (a better RAM Corruption On Demand set is in the works at the moment, so it may be a bit.)


In addition to CD38 (as 'non-00 is wtw' address) being the same regardless of Red/Green/Blue/Yellow, it is the same internationally (JP, EN, FR, DE, IT, ES).

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Parzival
Date: 2019-08-18 16:05:13


If anyone has any info on any international equivalent of the RAM address used (CD38), i'll see if I can make a similar patch for said language. Also, request patch ideas if you have them, maybe I can pull them off (a better RAM Corruption On Demand set is in the works at the moment, so it may be a bit.)


In addition to CD38 (as 'non-00 is wtw' address) being the same regardless of Red/Green/Blue/Yellow, it is the same internationally (JP, EN, FR, DE, IT, ES).
Sweet, i'll churn some out for those soon.

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Parzival
Date: 2019-08-20 10:19:34
The Japanese ROMs are quite a bit different from the rest, but these are the main points as relevant to what i'm doing:
1. There's no free space AT ALL in Bank 0 except between RST vectors (lovely)
2. RST 38 junps to F080 or some such??? Why?????
3. All other versions have their VBlank handler at around 2024 or somewhere in the 1000-1FFF range. Japanese versions have it in the 0A00-0B00 range.

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: metalmario32
Date: 2019-08-24 18:02:40
Confused as to how you would go about doing something like this.

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Parzival
Date: 2019-08-25 01:19:49

Confused as to how you would go about doing something like this.

Step 1: Write routine. (Check if SELECT isn't held (using game's registers, not hard registers.) If SELECT isn't held, check if CD38 is FD. If not, do nothing. If FD, write 00 to CD38. If SELECT is held, write FD to CD38. In all cases, don't RET, JP to 0043. This'll make sense later.)

Step 2: Find enough empty space in ROM Bank 0 to hold routine and paste it in (0000 to 3FFF range, usually at the end of the bank, to the tune of 3FBA or so. Japanese R/G/B and all Yellow ROMs require you JR over RST vectors at the beginning of the ROM, running bits of code in between… ugh.)

Step 3: Replace JP instruction at 0040 with a JP to new routine, then immediately after your pointer, insert the old JP command.

Step 4: Test by attempting boot. If you see normal things on screen, your code didn't immediately fuck everything up.

Step 5: Get in game, hold SELECT, and try to WTW. On SELECT down (give or take a frame or SIX) walls should be no obstacle, and after SELECT is let up, after another frame or 6, walls should be impenetrable again.

Step 6: Repeat for, like, 20 more ROMs.

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: metalmario32
Date: 2019-08-25 08:06:40
Ah. This'll be useful for hacks that I plan to do in the future.

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Parzival
Date: 2019-08-25 18:39:01
unpopular opinion: steamroll the POPs in the end of the VBlank handler, use a JP to go elsewhere, then re-push, then after, pop twice and use your own RET.

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Parzival
Date: 2019-08-28 11:39:14
Can someone post the US SYMs for the first 2 gens please? I'd rather not build from source atm…

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Sherkel
Date: 2019-08-29 19:12:46

Can someone post the US SYMs for the first 2 gens please? I'd rather not build from source atm…
Still nobody? That's a bit surprising. May as well drop them off here since I'm popping in. Sorry for the wait.

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Parzival
Date: 2019-08-29 21:33:43


Can someone post the US SYMs for the first 2 gens please? I'd rather not build from source atm…
Still nobody? That's a bit surprising. May as well drop them off here since I'm popping in. Sorry for the wait.
Thanks, i've got a few ideas rolling around in my head and needed SYMs, is all… i didn't mind the wait.

Re: Pokemon ROM Hacks - WTW On Demand

Posted by: Parzival
Date: 2019-10-20 21:26:13
OH.
OH GOD.

so uh… some unforeseen consequenses that may or may not be in base game.

Video soon.

(i know i'm a month late on the IPS drop but everything's been hell recently so just be patient please)