Skeetendo

’Cause all games were better on the GBC

You are not logged in.

  • Index
  • → Generation II
  • → Other Safari leftovers, the START MENU and the RAM addresses

#1 2019-03-01 21:14:55

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 297/337

Other Safari leftovers, the START MENU and the RAM addresses

Hello to everyone.

Today searching on the repository I found something else useful (perhaps):

pokecrystal/engine/menus/menu_2.asm

Unreferenced_Function24b8f:
; related to safari?
ld hl, wOptions
ld a, [hl]
push af
set NO_TEXT_SCROLL, [hl]
hlcoord 0, 0
ld b, 3
ld c, 7
call TextBox
hlcoord 1, 1
ld de, wSafariTimeRemaining
lb bc, 2, 3
call PrintNum
hlcoord 4, 1
ld de, .slash_500
call PlaceString
hlcoord 1, 3
ld de, .booru_ko
call PlaceString
hlcoord 5, 3
ld de, wSafariBallsRemaining
lb bc, 1, 2
call PrintNum
pop af
ld [wOptions], a
ret

.slash_500 ($24BCF)
db "/500" (translated by me)
.booru_ko ($24BD4)
db "BALLS:" (translated by me)

There is a way to load this menu only in specific maps?

And I found also these useful ram addresses, that could be useful to restore the safari menu and the steps function:
wRepelEffect = $DCA0
wBugContestMinsRemaining = $D46C
wBugContestSecsRemaining = $D46D
wParkBallsRemaining = $D9C3*
wSafariBallsRemaining = $DC79
wSafariTimeRemaining = $DC7A
wSafariMonAngerCount = $C6EF
wSafariMonEating = $C6F0

wMapGroup = $dcb5 ; map group of current map
wMapNumber = $dcb6 ; map number of current map

*In Gold and Silver the Park ball amount RAM is shared with the Safari balls in the same unreferenced routine that I found today. Isn't a problem, also in my safari battle type I use the same ram address, when you enter in the bug catching contest the ram address is fixed with the 20 amount.

Is odd that for Crystal they reserved a RAM address for the Safari balls, without restore the Safari zone.
Nope, the repository is wrong, refers to 2 different ram addresses and in the WRAM file says that park ball and Safari ball have 2 different RAM addresses, the old G/S for the park ball, but is wrong, also in Crystal the ram address is shared.


I collected also other RAM addresses, 'cause I have some ideas about restoring the steps and the recall at the gate when finished.

If were possible create new collision type tiles to force the game to battle pokémons with the new battle type will not necessary a flag or something else to switch on/off the battle types. But Will be necessary something to recall the player at the end of the steps or the balls. But checking the map where you are to recall the player only if you are always into the zone (then not if you flee away trough Fly or via teleport or poisoned).

Last edited by Halfshadow (2019-03-01 23:20:48)


The italian Pokémon Green creator.

Offline

#2 2019-03-02 18:02:28

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 298/337

Re: Other Safari leftovers, the START MENU and the RAM addresses

There a re few errors in the repo, says that change location (trough Fly or Teleport as example) clear the Contest timer (and then the battle type and the different start menu) bit/flag and the safari unused bit/flag. And is true.

But the repo says that the Safari bit is 0x10 and instead is 0x12, another unused flag according to the repo, but is another. I tried with a test script, If I fly I can reset contest and also 0x12 unused bit.

Now I'm reading about the way the game trough the bit call a different battle type, there is something related also with Sweet scent, have to be fixed at the same way, that is already afflicted by the contest bit/flag to call the contest battle type if the bit is turned on.


The italian Pokémon Green creator.

Offline

#3 2019-03-02 20:55:57

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 299/337

Re: Other Safari leftovers, the START MENU and the RAM addresses

Ok, I'm making progress. Now if I set the 0x12 flag I switch to the battle type for grass and water (not fishing yet, is another wild battle routine) and if I leave trough fly or teleport the battle type back normal, I have also a function to be recalled when I finish the balls, but for now is linked to the end of the contest, is a work in progress. XD


The italian Pokémon Green creator.

Offline

#4 2019-03-03 03:00:33

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 300/337

Re: Other Safari leftovers, the START MENU and the RAM addresses

Sweet scent updated, was a script that checked the contest bit2, I added the bit2 for the safari and point to the same battletype script.

I miss only the fishing and understand how use the steps, (otherwise I could recycle the time from the contest, is possible using the special 0x18 I think) and at the last... The different start menu. But I'm near to the end of the Crystal 2.0 hack.


The italian Pokémon Green creator.

Offline

#5 2019-03-03 03:40:33

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 301/337

Re: Other Safari leftovers, the START MENU and the RAM addresses

Fixed also the fishing, was a script too.


The italian Pokémon Green creator.

Offline

  • Index
  • → Generation II
  • → Other Safari leftovers, the START MENU and the RAM addresses

Board footer

Powered by FluxBB