• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

[Scripting Question] Question re: Gender Selection Screen (Sun/Moon) Script

6
Posts
7
Years
    • Seen Sep 7, 2019
    When trying to utilise bo4p5687's character select screen i continue getting this error no matter what try.
    Using essentials 17.2 and have all the necessary image files.

    Code:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pok?mon Essentials version 17.2]
    
    Exception: RuntimeError
    
    Message: Script error within event 1 (coords 0,0), map 1 (Intro):
    
    Exception: RuntimeError
    
    Message: BitmapCache:394:in `load_bitmap'Failed to load the bitmap located at: Graphics/Pictures/GenderSelection/Background
    
    ***Full script:
    
    pbCallGenderSelect
    
    
    Interpreter:243:in `pbExecuteScript'
    
    GenderSelect:66:in `pbSprite'
    
    GenderSelect:44:in `pbStartScene'
    
    GenderSelect:601:in `pbStartScreen'
    
    GenderSelect:611:in `pbCallGenderSelect'
    
    (eval):1:in `pbExecuteScript'
    
    Interpreter:1606:in `eval'
    
    Interpreter:243:in `pbExecuteScript'
    
    Interpreter:1606:in `command_355'
    
    Interpreter:494:in `execute_command'
    
    
    
    Interpreter:276:in `pbExecuteScript'
    
    Interpreter:1606:in `command_355'
    
    Interpreter:494:in `execute_command'
    
    Interpreter:193:in `update'
    
    Interpreter:106:in `loop'
    
    Interpreter:198:in `update'
    
    Scene_Map:163:in `update'
    
    Scene_Map:161:in `loop'
    
    Scene_Map:170:in `update'
    
    Scene_Map:234:in `main'
    
    
    
    This exception was logged in 
    
    C:\Users\PC\Saved Games\Pokemon Essentials\errorlog.txt.
    
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK   
    ---------------------------
    Code:
    #===============================================================================
    # * Gender Selection Screen like Sun/Moon (8 characters) by bo4p5687
    # * based on Nickalooose's script
    #===============================================================================
    #
    # How to use:
    #  To use, remove event "Show choices: Boy, Girl" and add script:
    #        pbCallGenderSelect
    #
    # Graphic:
    #  You should use images 512x384 for background and background for selecting, 90x106 for Avatar
    #  Put the images in folder: Graphics\Pictures\GenderSelection  
    #
    #===============================================================================
    #
    # To this script works, put it above main.
    #
    #===============================================================================
    class GenderPickScene
      
      AVATAR_A = "boya" # Name of first Avatar: Player A
      AVATAR_B = "boyb" # Name of second Avatar: Player B
      AVATAR_C = "boyc" # Name of third Avatar: Player C
      AVATAR_D = "boyd" # Name of fourth Avatar: Player D
      AVATAR_E = "girla" # Name of fifth Avatar: Player E
      AVATAR_F = "girlb" # Name of sixth Avatar: Player F
      AVATAR_G = "girlc" # Name of seventh Avatar: Player G
      AVATAR_H = "girld" # Name of eighth Avatar: Player H
      
      BACKGROUND = "Background" # Name of background
      BACKGROUND_SELECTION = "BackgroundSelect" # Name of background for selecting 
      
      def update
        pbUpdateSpriteHash(@sprites)
      end
    
      def pbStartScene
        
        @sprites={}
        @viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
        @viewport.z=99999
        @select=0
        
        pbSprite("bg",BACKGROUND,0,0)
        pbSprite("bgslt",BACKGROUND_SELECTION,0,0)
        
        pbSprite("boya",AVATAR_A,68,65,155)
        pbSprite("boyb",AVATAR_B,182,65,155)
        pbSprite("boyc",AVATAR_C,296,65,155)
        pbSprite("boyd",AVATAR_D,410,65,155)
        
        pbSprite("girla",AVATAR_E,68,230,155)
        pbSprite("girlb",AVATAR_F,182,230,155)
        pbSprite("girlc",AVATAR_G,296,230,155)
        pbSprite("girld",AVATAR_H,410,230,155)
    	
      end
      
      def pbEndScene
        pbDisposeSpriteHash(@sprites)
        @viewport.dispose
      end
      
      def pbSprite(name,bitmap,x,y,opacity=255)
        @sprites["#{name}"]=Sprite.new(@viewport)
        @sprites["#{name}"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/GenderSelection/#{bitmap}")
        @sprites["#{name}"].x=x
        @sprites["#{name}"].y=y
        @sprites["#{name}"].opacity = opacity
      end
          
      def pbGenderSelect
      
      loop do
          Graphics.update
          Input.update
          self.update 
          if @select == 0 
            @sprites["boya"].opacity = 255
            @sprites["boyb"].opacity = 155
            @sprites["boyc"].opacity = 155
            @sprites["boyd"].opacity = 155
            @sprites["girla"].opacity = 155
            @sprites["girlb"].opacity = 155
            @sprites["girlc"].opacity = 155
            @sprites["girld"].opacity = 155
          end
          if Input.trigger?(Input::LEFT)
            pbSEPlay("Choose")
            pbSEPlay("Anim/Choose") # if you use v17, this will check SE
            if @select == 0
              @select = 7
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 255
            elsif @select == 7
              @select = 6
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 255
              @sprites["girld"].opacity = 155
            elsif @select == 6
              @select = 5
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 255
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 5
              @select = 4
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 255
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 4
              @select = 3
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 255
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 3
              @select = 2
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 255
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 2
              @select = 1
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 255
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 1
              @select = 0
              @sprites["boya"].opacity = 255
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            end
          elsif Input.trigger?(Input::RIGHT)
            pbSEPlay("Choose")
            pbSEPlay("Anim/Choose") # if you use v17, this will check SE
            if @select == 0
              @select = 1
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 255
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 1
              @select = 2
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 255
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 2
              @select = 3
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 255
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 3
              @select = 4
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 255
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 4
              @select = 5
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 255
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 5
              @select = 6
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 255
              @sprites["girld"].opacity = 155
            elsif @select == 6
              @select = 7
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 255
            elsif @select == 7
              @select = 0
              @sprites["boya"].opacity = 255
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            end
          elsif Input.trigger?(Input::DOWN) || Input.trigger?(Input::UP)
            pbSEPlay("Choose")
            pbSEPlay("Anim/Choose") # if you use v17, this will check SE
            if @select == 0
              @select = 4
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 255
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 4
              @select = 0
              @sprites["boya"].opacity = 255
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 1
              @select = 5
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 255
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 5
              @select = 1
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 255
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 2
              @select = 6
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 255
              @sprites["girld"].opacity = 155
            elsif @select == 6
              @select = 2
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 255
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            elsif @select == 3
              @select = 7
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 155
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 255
            elsif @select == 7
              @select = 3
              @sprites["boya"].opacity = 155
              @sprites["boyb"].opacity = 155
              @sprites["boyc"].opacity = 155
              @sprites["boyd"].opacity = 255
              @sprites["girla"].opacity = 155
              @sprites["girlb"].opacity = 155
              @sprites["girlc"].opacity = 155
              @sprites["girld"].opacity = 155
            end
          end
    #===============================================================================
    # After selecting
    #===============================================================================
          if Input.trigger?(Input::C)
            pbSEPlay("Choose")
            pbSEPlay("Anim/Choose") # if you use v17, this will check SE
            if @select == 0
              @sprites["bgslt"].opacity = 0
              @sprites["boyb"].opacity = 0
              @sprites["boyc"].opacity = 0
              @sprites["boyd"].opacity = 0
              @sprites["girla"].opacity = 0
              @sprites["girlb"].opacity = 0
              @sprites["girlc"].opacity = 0
              @sprites["girld"].opacity = 0
              @sprites["boya"].x = 211
              @sprites["boya"].y = 100
              Graphics.update
              Input.update
              self.update
              if Kernel.pbConfirmMessage("You OK with the one you chose,yeah?")
                pbChangePlayer(0)  # Player A
                pbEndScene
                return true
              else
                @sprites["bgslt"].opacity = 255
                @sprites["boyb"].opacity = 155
                @sprites["boyc"].opacity = 155
                @sprites["boyd"].opacity = 155
                @sprites["girla"].opacity = 155
                @sprites["girlb"].opacity = 155
                @sprites["girlc"].opacity = 155
                @sprites["girld"].opacity = 155
                @sprites["boya"].x = 68
                @sprites["boya"].y = 65
              end
            elsif @select == 1
              @sprites["bgslt"].opacity = 0
              @sprites["boya"].opacity = 0
              @sprites["boyc"].opacity = 0
              @sprites["boyd"].opacity = 0
              @sprites["girla"].opacity = 0
              @sprites["girlb"].opacity = 0
              @sprites["girlc"].opacity = 0
              @sprites["girld"].opacity = 0		  
              @sprites["boyb"].x = 211
              @sprites["boyb"].y = 100
              Graphics.update
              Input.update
              self.update
              if Kernel.pbConfirmMessage("You OK with the one you chose,yeah?")
                pbChangePlayer(2) # Player C
                pbEndScene
                return true
              else
                @sprites["bgslt"].opacity = 255
                @sprites["boya"].opacity = 155
                @sprites["boyc"].opacity = 155
                @sprites["boyd"].opacity = 155
                @sprites["girla"].opacity = 155
                @sprites["girlb"].opacity = 155
                @sprites["girlc"].opacity = 155
                @sprites["girld"].opacity = 155
                @sprites["boyb"].x = 182
                @sprites["boyb"].y = 65
              end
            elsif @select == 2
              @sprites["bgslt"].opacity = 0
              @sprites["boya"].opacity = 0
              @sprites["boyb"].opacity = 0
              @sprites["boyd"].opacity = 0
              @sprites["girla"].opacity = 0
              @sprites["girlb"].opacity = 0
              @sprites["girlc"].opacity = 0
              @sprites["girld"].opacity = 0
              @sprites["boyc"].x = 211
              @sprites["boyc"].y = 100
              Graphics.update
              Input.update
              self.update
              if Kernel.pbConfirmMessage("You OK with the one you chose,yeah?")
                pbChangePlayer(4) # Player E
                pbEndScene
                return true
              else
                @sprites["bgslt"].opacity = 255
                @sprites["boya"].opacity = 155
                @sprites["boyb"].opacity = 155
                @sprites["boyd"].opacity = 155
                @sprites["girla"].opacity = 155
                @sprites["girlb"].opacity = 155
                @sprites["girlc"].opacity = 155
                @sprites["girld"].opacity = 155
                @sprites["boyc"].x = 296
                @sprites["boyc"].y = 65
              end
            elsif @select == 3
              @sprites["bgslt"].opacity = 0
              @sprites["boya"].opacity = 0
              @sprites["boyc"].opacity = 0
              @sprites["boyb"].opacity = 0
              @sprites["girla"].opacity = 0
              @sprites["girlb"].opacity = 0
              @sprites["girlc"].opacity = 0
              @sprites["girld"].opacity = 0
              @sprites["boyd"].x = 211
              @sprites["boyd"].y = 100
              Graphics.update
              Input.update
              self.update
              if Kernel.pbConfirmMessage("You OK with the one you chose,yeah?")
                pbChangePlayer(6) # Player G
                pbEndScene
                return true
              else
                @sprites["bgslt"].opacity = 255
                @sprites["boya"].opacity = 155
                @sprites["boyc"].opacity = 155
                @sprites["boyb"].opacity = 155
                @sprites["girla"].opacity = 155
                @sprites["girlb"].opacity = 155
                @sprites["girlc"].opacity = 155
                @sprites["girld"].opacity = 155
                @sprites["boyd"].x = 410
                @sprites["boyd"].y = 65
              end
            elsif @select == 4
              @sprites["bgslt"].opacity = 0
              @sprites["boya"].opacity = 0
              @sprites["boyb"].opacity = 0
              @sprites["boyc"].opacity = 0
              @sprites["boyd"].opacity = 0
              @sprites["girlb"].opacity = 0
              @sprites["girlc"].opacity = 0
              @sprites["girld"].opacity = 0
              @sprites["girla"].x = 211
              @sprites["girla"].y = 100
              Graphics.update
              Input.update
              self.update
              if Kernel.pbConfirmMessage("You OK with the one you chose,yeah?")
                pbChangePlayer(1) # Player B
                pbEndScene
                return true
              else
                @sprites["bgslt"].opacity = 255
                @sprites["boya"].opacity = 155
                @sprites["boyb"].opacity = 155
                @sprites["boyc"].opacity = 155
                @sprites["boyd"].opacity = 155
                @sprites["girlb"].opacity = 155
                @sprites["girlc"].opacity = 155
                @sprites["girld"].opacity = 155
                @sprites["girla"].x = 68
                @sprites["girla"].y = 230
              end
            elsif @select == 5
              @sprites["bgslt"].opacity = 0
              @sprites["boya"].opacity = 0
              @sprites["boyb"].opacity = 0
              @sprites["boyc"].opacity = 0
              @sprites["boyd"].opacity = 0
              @sprites["girla"].opacity = 0
              @sprites["girlc"].opacity = 0
              @sprites["girld"].opacity = 0
              @sprites["girlb"].x = 211
              @sprites["girlb"].y = 100
              Graphics.update
              Input.update
              self.update
              if Kernel.pbConfirmMessage("You OK with the one you chose,yeah?")
                pbChangePlayer(3) # Player D
                pbEndScene
                return true
              else
                @sprites["bgslt"].opacity = 255
                @sprites["boya"].opacity = 155
                @sprites["boyb"].opacity = 155
                @sprites["boyc"].opacity = 155
                @sprites["boyd"].opacity = 155
                @sprites["girla"].opacity = 155
                @sprites["girlc"].opacity = 155
                @sprites["girld"].opacity = 155
                @sprites["girlb"].x = 182
                @sprites["girlb"].y = 230
              end
            elsif @select == 6
              @sprites["bgslt"].opacity = 0
              @sprites["boya"].opacity = 0
              @sprites["boyb"].opacity = 0
              @sprites["boyc"].opacity = 0
              @sprites["boyd"].opacity = 0
              @sprites["girlb"].opacity = 0
              @sprites["girla"].opacity = 0
              @sprites["girld"].opacity = 0
              @sprites["girlc"].x = 211
              @sprites["girlc"].y = 100
              Graphics.update
              Input.update
              self.update
              if Kernel.pbConfirmMessage("You OK with the one you chose,yeah?")
                pbChangePlayer(5) # Player F
                pbEndScene
                return true
              else
                @sprites["bgslt"].opacity = 255
                @sprites["boya"].opacity = 155
                @sprites["boyb"].opacity = 155
                @sprites["boyc"].opacity = 155
                @sprites["boyd"].opacity = 155
                @sprites["girlb"].opacity = 155
                @sprites["girla"].opacity = 155
                @sprites["girld"].opacity = 155
                @sprites["girlc"].x = 296
                @sprites["girlc"].y = 230
              end
            elsif @select == 7
              @sprites["bgslt"].opacity = 0
              @sprites["boya"].opacity = 0
              @sprites["boyb"].opacity = 0
              @sprites["boyc"].opacity = 0
              @sprites["boyd"].opacity = 0
              @sprites["girlb"].opacity = 0
              @sprites["girlc"].opacity = 0
              @sprites["girla"].opacity = 0
              @sprites["girld"].x = 211
              @sprites["girld"].y = 100
              Graphics.update
              Input.update
              self.update
              if Kernel.pbConfirmMessage("You OK with the one you chose,yeah?")
                pbChangePlayer(7) # Player H
                pbEndScene
                return true
              else
                @sprites["bgslt"].opacity = 255
                @sprites["boya"].opacity = 155
                @sprites["boyb"].opacity = 155
                @sprites["boyc"].opacity = 155
                @sprites["boyd"].opacity = 155
                @sprites["girlb"].opacity = 155
                @sprites["girlc"].opacity = 155
                @sprites["girla"].opacity = 155
                @sprites["girld"].x = 410
                @sprites["girld"].y = 230
              end
            end
          end	  	
        end
      end    
    end
    
    
    class GenderPick
    
      def initialize(scene)
        @scene=scene
      end
      
      def pbStartScreen
        @scene.pbStartScene
        @scene.pbGenderSelect
        @scene.pbEndScene
      end
    
    end
    
    def pbCallGenderSelect
      scene=GenderPickScene.new
      screen=GenderPick.new(scene)
      screen.pbStartScreen
    end
    Please help, i'm new to essentials and am struggling to get this to work.
    Thank you for any help you guys can provide.
     
    Last edited by a moderator:
    1,748
    Posts
    14
    Years
  • Okay, if you look at this section of the error message:

    Code:
    Exception: RuntimeError
    
    Message: BitmapCache:394:in `load_bitmap'Failed to load the bitmap located at: Graphics/Pictures/GenderSelection/Background

    You'll see that it cannot find a bitmap image located in the Graphics/Pictures/GenderSelection folder.

    Now, I think your issue may be that inside the Pictures folder you either misnamed the GenderSelection folder or you dumped the contents that are supposed to be in that folder in the Pictures folder instead.

    Solution? Ensure you copy/paste the images you got with the script in Graphics/Pictures/GenderSelection

    If that still doesn't work, look in the regular pictures folder and select the Background image there and copy it into the GenderSelection folder.
     
    6
    Posts
    7
    Years
    • Seen Sep 7, 2019
    Okay, if you look at this section of the error message:

    Code:
    Exception: RuntimeError
    
    Message: BitmapCache:394:in `load_bitmap'Failed to load the bitmap located at: Graphics/Pictures/GenderSelection/Background

    You'll see that it cannot find a bitmap image located in the Graphics/Pictures/GenderSelection folder.
    Now, I think your issue may be that inside the Pictures folder you either misnamed the GenderSelection folder or you dumped the contents that are supposed to be in that folder in the Pictures folder instead.

    Solution? Ensure you copy/paste the images you got with the script in Graphics/Pictures/GenderSelection

    If that still doesn't work, look in the regular pictures folder and select the Background image there and copy it into the GenderSelection folder.

    ive got copies of all the images in both folders to be sure. the issue still occurs.
    EDIT. the person who made it used png files, but even when i used bmp files it still didnt work
     
    Last edited:
    220
    Posts
    9
    Years
  • ive got copies of all the images in both folders to be sure. the issue still occurs.
    EDIT. the person who made it used png files, but even when i used bmp files it still didnt work

    I didn't use the script right now, because i don't have all the graphics i needed for this system. But, i've tested and its very simple and it works fine for v17, follow this instructions:

    1- Copy and paste the script above MAIN script,
    2- Create a folder for these graphics in -> Graphics\Pictures\GenderSelection ,
    3- Paste the background PNG pictures and create 1 PNG image file per character with 90x106.
    4- Name each file with this names: AvatarA, AvatarB, AvatarC, D and so on.
    5- In PBS folder, open the Metadata file and add the characters, like: PlayerA=, PlayerB=, PlayerC=, and so on.
    You can simply copy and paste the existing ones and edit them.

    Note: In the script page, in this forum, the creator don't give you all the pictures for the script. You must create them by yourself. If you read the script itself, you will see what you need to do, its very simple, even for you.
     
    Last edited:
    6
    Posts
    7
    Years
    • Seen Sep 7, 2019
    I didn't use the script right now, because i don't have all the graphics i needed for this system. But, i've tested and its very simple and it works fine for v17, follow this instructions:

    1- Copy and paste the script above MAIN script,
    2- Create a folder for these graphics in -> Graphics\Pictures\GenderSelection ,
    3- Paste the background PNG pictures and create 1 PNG image file per character with 90x106.
    4- Name each file with this names: AvatarA, AvatarB, AvatarC, D and so on.
    5- In PBS folder, open the Metadata file and add the characters, like: PlayerA=, PlayerB=, PlayerC=, and so on.
    You can simply copy and paste the existing ones and edit them.

    Note: In the script page, in this forum, the creator don't give you all the pictures for the script. You must create them by yourself. If you read the script itself, you will see what you need to do, its very simple, even for you.

    Don't be so condescending. I have already done all of these things as i said. its still not working which is why i created a help thread. seriously i dont need the sass.
     
    220
    Posts
    9
    Years
  • Don't be so condescending. I have already done all of these things as i said. its still not working which is why i created a help thread. seriously i dont need the sass.

    I only tried to help you. -_-'
    But, if you still don't get it to work, its because of something that you are doing the wrong way.

    Its a simple script and it works fine by doing all that i said before.

    Also, you said that you are new in using essentials, so i said all the steps needed, so you can see if you missed something at some point.

    The error you posted, is related to the missing images for the script to work.

    So, if you want people to help you, you must tell us more info, other way, the problem don't came from the script or you don't paste or create the PNG images that the script requires.

    Another thing, the guy who created that script, its my project partner for a few months. And he is good at scripting.
     
    6
    Posts
    7
    Years
    • Seen Sep 7, 2019
    I only tried to help you. -_-'
    But, if you still don't get it to work, its because of something that you are doing the wrong way.

    Its a simple script and it works fine by doing all that i said before.

    Also, you said that you are new in using essentials, so i said all the steps needed, so you can see if you missed something at some point.

    The error you posted, is related to the missing images for the script to work.

    So, if you want people to help you, you must tell us more info, other way, the problem don't came from the script or you don't paste or create the PNG images that the script requires.

    Another thing, the guy who created that script, its my project partner for a few months. And he is good at scripting.

    Im sorry im a little snappy ive been trying to get this to work all day.
    KTYmGwy.png

    I've got all the PNG images i dont think i missed anything attached is the thing
    Also i changed it from being called Avatar to the appropriate png names in the script. just so it calls upon the right images
     
    Last edited:
    6
    Posts
    7
    Years
    • Seen Sep 7, 2019
    Uh so clearing a bunch of the conflicting png/bmp clone images seems to have done the trick. the problem was that there was multiple images and it didnt know which to choose. thanks its sorted now. (Sorry about that) Thank you for you help all.
     
    Back
    Top