Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve RetrieveBreedmon reading garbage data for wCurForm #783

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

vulcandth
Copy link
Collaborator

@vulcandth vulcandth commented Jan 26, 2023

RetrieveBreedmon reads in old/garbage data for wCurForm. This is caused by reading the "LastPartyMon"'s Form byte BEFORE we had a chance to copy the BREEDMON_STRUCT to the "LastPartyMon" slot.

Having garbage data in wCurForm causes GetBaseData to produce garbage data, thus causing the occasional breedmon Div by 0 error in CalcExpAtLevel:. I predict it is also highly likely that his problem causes the other bug reports where occasionally a mon instantly jumps to level 100 from the daycare.

Please see below for bug reports.

https://discord.com/channels/332698009060114434/933019563535253534/1061069088123793499

https://discord.com/channels/332698009060114434/332698384987193354/1067665669753151518

https://discord.com/channels/332698009060114434/332698384987193354/1067802347851485215

If you would like to do some testing with this yourself. I have a save file I can send with steps to reproduce the div by 0 error. Just send me a message and i'll give you relevant file/info.

Resolves #784, Resolves #657

@vulcandth
Copy link
Collaborator Author

vulcandth commented Jan 26, 2023

Related to #784,  #780, #657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants