You are not logged in.
So basically, your house in my hack is now on Route 22, but I noticed a slight glitch, it sends me to Red's House in pallet town if i havent visited any pokemon centres. Is there a way to fix this?
These are the 4 lines responsible, from SetDefaultNames: in engine/oak_speech.asm:
ld hl, wPlayerName ld bc, wBoxDataEnd - wPlayerName xor a call FillMemory
SetDefaultNames: is called when the player selects "NEW GAME" from the main menu.
When the player blacks out, you get sent to the map ID located in wLastBlackoutMap ($D719)
Those 4 lines fill from wPlayerName ($D158) to wBoxDataEnd ($DEE2) with $00.
$00 is also the ID for Pallet Town.
To fix this, simply change those 4 lines to:
ld hl, wPlayerName ld bc, wBoxDataEnd - wPlayerName xor a call FillMemory ld a, ROUTE_22 ld [wLastBlackoutMap], a
However, you will also have to define a special warp for Route 22 in data/special_warps.asm by adding an entry for Route 22 to FlyWarpDataPtr: