E-Sh4rk / CodeGenerator

ACE code generator for gen3 Pokemon games.
https://e-sh4rk.github.io/CodeGenerator/
4 stars 2 forks source link

Add Rock Smash to the PRNG seed calculator #2

Closed glu8716 closed 1 month ago

glu8716 commented 2 months ago

I read from the guide here that the Rock Smash case for the "Freeze PRNG" code isn't supported yet in the seed calculator. Would it be possible to add it?

Thanks in advance!

E-Sh4rk commented 2 months ago

I did not make the fishing rod seed calculator script myself, but I can try to do the smash rock one, I guess it should not be too complicated with the decomp :)

glu8716 commented 2 months ago

Thank you! That would be much appreciated :)

glu8716 commented 1 month ago

Hi! Any news on this? I also want to add a little bit of information without having to open a new issue if you want to add these to the script. Both Mew, Lugia, Ho-Oh and Lati@s (Southern Island) are on cycle -3. Stationary Kecleon is -4 and fossils are -3 (got all of these by using the seeds I got from the "other" option).

E-Sh4rk commented 1 month ago

Hello! Thank you for your findings, I have added the data to the seed tool.

About rock smash, after some tests it seems to always be -3 cycles. So it does not need a more complex algorithm like for fishing. I have added the option in the seed tool. I'll close the issue, don't hesitate to open it again if it does not work.

glu8716 commented 1 month ago

@E-Sh4rk Thanks for the prompt reply! I think I don't have the permissions to open the issue again. I've tried but unfortunately it doesn't seem to work for me. As soon as you exit from the Pokédex certificate there is a small window of time where the seed is frozen correctly (aiming for 81863C03), but then there are 2 more advancements, probably because of rocks being considered as NPCs. Here's a video with the lua script in action where you can see the current seed and the advancements.

https://github.com/user-attachments/assets/54902a15-eb69-453a-8623-9f4a7b8aaafb

E-Sh4rk commented 1 month ago

You should follow the instructions for wild pokemons, in particular the thing about nicknaming a Pokemon ␣ ␣ D n ’ J k l ␣ ␣ and putting it after your exit code bootstrap, so that the diploma does not show.

glu8716 commented 1 month ago

Oh, my bad, I haven't thought of it as Sweet Scent wasn't involved in this case. You're right, this works! Thanks a lot again for all of your effort.

(and by the way, there is a typo in the script, as it is "stationary" and not "stationnary")