polishedcrystal icon indicating copy to clipboard operation
polishedcrystal copied to clipboard

Double forfeit in link causes issues, and exchanged pokemons are corrupted

Open Cl0v1s opened this issue 2 years ago • 8 comments

Exchanging pokemons always result on adding a corrupted pkmn to both players parties.

image

The code responsible of that seems to be around the .done_animation label, from engine/link.asm image

Restoring the original Pokecrystal code fix that behavior. I have reasons to believe that the new CopyBetweenPartyAndTemp is causing that.

Tested with BGB link emulation.

(Leaving a fight in VS mode results in a weird behavior too, maybe it's linked ?)

Cl0v1s avatar Jun 05 '22 17:06 Cl0v1s

Master or 9-bit?

vulcandth avatar Jun 05 '22 18:06 vulcandth

On master ! :)

Cl0v1s avatar Jun 05 '22 19:06 Cl0v1s

I believe this got fixed in 9-bit. Have you tested it on 9-bit?

vulcandth avatar Jun 05 '22 20:06 vulcandth

Nope ! I'll try as soon as I can :) It's shipped on the nightly build tho.

Cl0v1s avatar Jun 05 '22 21:06 Cl0v1s

It seems that it's fixed on 9bit: https://github.com/Rangi42/polishedcrystal/commit/a78a59b29b15f66c03418b5160ba044cf68a5df4

EDIT: cherry-picking that commit on master fixes the problem. There is also an issue with fleeing from battle, I'll check if it's fixed on 9bit too, and see if its possible de cherry-pick that fix too.

Cl0v1s avatar Jun 11 '22 18:06 Cl0v1s

There is also an issue with fleeing from battle

Can you elaborate? This is the first time I hear of it.

FredrIQ avatar Jul 19 '22 12:07 FredrIQ

I believe they are referring to Fleeing from the link battles.. I remember encountering that problem; but I don't remember if that was master or 9-bit. IIRC, if one of the player's chose to leave the battle.. they would leave normally.. but the other player would be stuck in battle.

@Cl0v1s Can you confirm? Or did you have a different issue.

vulcandth avatar Jul 19 '22 14:07 vulcandth

Sorry if I was unclear.

Indeed I'm speaking about fleeing from Link Battle.

Sometimes (it happens really often but I achieved to flee safely a few times, I believe it's related to master/slave link status), when player 1 flees the fight, he can leave it without problem.

However player 2 will stay in fight and (at least in my case) a Nidoran will be sent by the "ghost" player 1.

Then the game while wait forever, since player 1 wont send any battle command because for them, the fight is over.

Indeed those problemes appear to have been resolved in 9-bit, but still not on master / releases available to the public.

Cl0v1s avatar Jul 20 '22 07:07 Cl0v1s

Backported to master, already fixed in 9bit.

FredrIQ avatar Aug 20 '22 02:08 FredrIQ