pokerogue icon indicating copy to clipboard operation
pokerogue copied to clipboard

All Pokemon become invisible when capturing then switching with your only pokemon that was not fainted.

Open vividiumhd opened this issue 9 months ago • 2 comments

Was against castform Boss, with my Patrat who was the only one alive. I captured the castform and switch it for my patrat and now all Pokemon are invisible in future challenges. image

vividiumhd avatar May 12 '24 01:05 vividiumhd

Note that I was healed just after this occured since it was on wave 30.

vividiumhd avatar May 12 '24 01:05 vividiumhd

Reloading fixed the issue.

vividiumhd avatar May 12 '24 01:05 vividiumhd

https://discord.com/channels/1125469663833370665/1125894949020381285/1276416529629712438 This is still in the game as of Early August update 2024

Link to the videos on Discord https://discord.com/channels/1125469663833370665/1279327827916886079 -Must be done the wave before a trainer battle or the wave before biome swap -Sprites disappear when entering a trainer battle -Sprites disappear on biome change

Snailman11 avatar Aug 30 '24 06:08 Snailman11

@Snailman11 Hello, I have checked the issues, Discord, etc. Unfortunately, my PR(#2371) does not fix this issue. it solves the game freezing issue that can occur when after the lead Pokémon is released by fixing UI cursor during the release action.

ysh4296 avatar Aug 31 '24 08:08 ysh4296

Uploading the discord videos here so they don't get lost when they get automatically deleted by discord servers

https://github.com/user-attachments/assets/dadf9fd8-9042-4e54-85db-b0982e64d2e3

https://github.com/user-attachments/assets/68cc33e3-dfe4-49af-a83a-079d2df71e14

flx-sta avatar Sep 04 '24 15:09 flx-sta

762-testing-session.txt Replace file-extension with .prsv to import

flx-sta avatar Sep 04 '24 16:09 flx-sta

I found the cause: The new Pokemon is always push()ed into the party thus ending up at the last slot. Now the game itself can handle that BUT it seems to screw up the sprites rendering etc.

pokemon.ts#L4416-L4432

  addToParty(pokeballType: PokeballType) {
    const party = this.scene.getParty();
    let ret: PlayerPokemon | null = null;

    if (party.length < 6) {
      this.pokeball = pokeballType;
      this.metLevel = this.level;
      this.metBiome = this.scene.arena.biomeType;
      this.metSpecies = this.species.speciesId;
      const newPokemon = this.scene.addPlayerPokemon(this.species, this.level, this.abilityIndex, this.formIndex, this.gender, this.shiny, this.variant, this.ivs, this.nature, this);
      party.push(newPokemon); // <----------- ⚠️⚠️⚠️
      ret = newPokemon;
      this.scene.triggerPokemonFormChange(newPokemon, SpeciesFormChangeActiveTrigger, true);
    }

    return ret;
  }

flx-sta avatar Sep 04 '24 19:09 flx-sta

Still seems too occur after n%10 waves

see https://discord.com/channels/1125469663833370665/1284581658649169950

flx-sta avatar Sep 15 '24 01:09 flx-sta

Error: Supplied items must be elements of the same array
    at Object.MoveBelow (/pokerogue/node_modules/phaser/dist/phaser.js:242354:15)
    at Container2.moveBelow (/pokerogue/node_modules/phaser/dist/phaser.js:48330:20)
    at Tween2.onComplete (/pokerogue/src/phases/summon-phase.ts:144:34)
    at Tween2.dispatchEvent (/pokerogue/node_modules/phaser/dist/phaser.js:239603:30)
    at Tween2.onCompleteHandler (/pokerogue/node_modules/phaser/dist/phaser.js:237521:14)
    at Tween2.onCompleteHandler (/pokerogue/node_modules/phaser/dist/phaser.js:239230:47)
    at Tween2.nextState (/pokerogue/node_modules/phaser/dist/phaser.js:239210:18)
    at Tween2.update (/pokerogue/node_modules/phaser/dist/phaser.js:239522:18)
    at TweenManager2.step (/pokerogue/node_modules/phaser/dist/phaser.js:234764:23)
    at TweenManager2.update (http://localhost:8000/node_modules/.vite/deps/phaser.js?v=668d5b6d:132294:28) {stack: 'Error: Supplied items must be elements of the…es/.vite/deps/phaser.js?v=668d5b6d:132294:28)', message: 'Supplied items must be elements of the same array'}

flx-sta avatar Sep 25 '24 15:09 flx-sta