• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Sprites Repositioning

Pharetra

zzzz
  • 451
    Posts
    13
    Years
    • Seen Apr 22, 2024
    Got a few problems with the Sprite Repositioner in Editor.exe.
    I want to reposition a few backsprites, but the Repositioner is messed up:
    [PokeCommunity.com] Sprites Repositioning
    [PokeCommunity.com] Sprites Repositioning

    I figured out how to change the battle background myself, so if anyone is still having a black screen, add battlebg1, enemybase1 and playerbase1 to your Battlebacks folder. Alternatively, you can also edit EditorScripts.rxdata > PokemonSpritePos > Lines 246 to 250.

    So yeah, I'm wondering how to fix this as I don't feel like changing the positions of about 2400 animated sprites in Notepad.
     
    The Essentials version 6 (at least) "Reposition All" won't reposition well sprite with size other that 160. To fix this open the editor scripts (to do this, in Data folder change the EditorScripts to Scripts and open RPG Maker XP), in PokemonSpritePos, after line 'metrics[1]=2+(bitmap2.height-(findBottom(bitmap2.bitmap)+1))/2' add line 'metrics[1]+=(160-bitmap2.height)/4 if bitmap2.height!=160'.
     
    The Essentials version 6 (at least) "Reposition All" won't reposition well sprite with size other that 160. To fix this open the editor scripts (to do this, in Data folder change the EditorScripts to Scripts and open RPG Maker XP), in PokemonSpritePos, after line 'metrics[1]=2+(bitmap2.height-(findBottom(bitmap2.bitmap)+1))/2' add line 'metrics[1]+=(160-bitmap2.height)/4 if bitmap2.height!=160'.

    I can't seem to find it, can you provide the line number? I use Essentials 7 by the way, should've included that in the first post.
     
    You need ti change it in editor scripts.
     
    This method:
    Code:
    def pbAutoPositionAll()
      metrics=load_data("Data/metrics.dat")
      for i in 1..PBSpecies.maxValue
        Graphics.update if i%50==0
        bitmap1=AnimatedBitmap.new(sprintf("Graphics/Battlers/%03db",i))
        bitmap2=AnimatedBitmap.new(sprintf("Graphics/Battlers/%03d",i))
        if bitmap1 && bitmap1.bitmap
          metrics[0][i]=(bitmap1.height-(findBottom(bitmap1.bitmap)+1))/2
        end
        if bitmap2 && bitmap2.bitmap
          metrics[1][i]=2+(bitmap2.height-(findBottom(bitmap2.bitmap)+1))/2
          # Add here P-Sign
        end
        bitmap1.dispose if bitmap1
        bitmap2.dispose if bitmap2
      end
      save_data(metrics,"Data/metrics.dat")
      pbSavePokemonData()
    end
     
    Back
    Top