Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old January 8th, 2013 (8:36 PM).
FHJoker's Avatar
FHJoker FHJoker is offline
Re-thinking Osmium
     
    Join Date: Dec 2007
    Location: Somwhere alone in peace
    Age: 26
    Gender: Male
    Nature: Relaxed
    Posts: 88
    Anybody get an error when trying to reposition individual sprites? I tried an unedited version of Essentials (11) and still get it.

    Quote:
    Exception: NoMethodError
    Message: undefined method `[]' for nil:NilClass
    PokeBattle_Pokemon:729:in `initialize'
    PokemonSpritePos #####:141:in `new'
    PokemonSpritePos #####:141:in `pbChangeSpecies'
    PokemonSpritePos #####:176:in `pbSpecies'
    PokemonSpritePos #####:170:in `loop'
    PokemonSpritePos #####:190:in `pbSpecies'
    PokemonSpritePos #####:278:in `pbStart'
    PokemonSpritePos #####:277:in `loop'
    PokemonSpritePos #####:285:in `pbStart'
    EditorMain #####:252:in `pbEditorMenu'
    __________________

    Reply With Quote

    Relevant Advertising!

      #2    
    Old January 9th, 2013 (5:32 AM).
    Skystrike's Avatar
    Skystrike Skystrike is offline
    Dark Shadow
    • Silver Tier
     
    Join Date: Sep 2008
    Location: internet
    Gender: Male
    Nature: Quiet
    Posts: 1,533
    Quote:
    Originally Posted by FHJoker View Post
    Anybody get an error when trying to reposition individual sprites? I tried an unedited version of Essentials (11) and still get it.
    I also got the same exact error as you yesterday.
    __________________

    I lack toast and am tolerant
    Reply With Quote
      #3    
    Old January 9th, 2013 (6:46 AM).
    Maruno's Avatar
    Maruno Maruno is offline
    Lead Dev of Pokémon Essentials
       
      Join Date: Jan 2008
      Location: England
      Posts: 5,171
      That's a known bug. Delete the problem line in the Editor's scripts (PokeBattle_Pokemon 729).
      __________________
      Go to the Pokémon Essentials Wiki

      | Downloads | Tutorials | Fangames |
      | All Animations Project |

      Follow me on Twitter: @maruno42


      Reply With Quote
        #4    
      Old January 9th, 2013 (9:10 AM).
      TACHAN TACHAN is offline
         
        Join Date: Jan 2010
        Gender: Female
        Posts: 198
        Quote:
        Originally Posted by Maruno View Post
        That's a known bug. Delete the problem line in the Editor's scripts (PokeBattle_Pokemon 729).
        This line?

        @obtainMode=4 if $game_switches[32] # Fateful encounter

        Really?
        Reply With Quote
          #5    
        Old January 9th, 2013 (9:41 AM).
        Maruno's Avatar
        Maruno Maruno is offline
        Lead Dev of Pokémon Essentials
           
          Join Date: Jan 2008
          Location: England
          Posts: 5,171
          Really really. The Editor crashes because $game_switches hasn't been defined, yet that code is behaving as if does.

          The actual fix is to use if $game_switches && $game_switches[32] there instead, but I went for brevity. It can be deleted in the Editor's scripts without worry, although this "actual" fix allows that script section to be identical in both the game and the Editor, which is convenient.
          __________________
          Go to the Pokémon Essentials Wiki

          | Downloads | Tutorials | Fangames |
          | All Animations Project |

          Follow me on Twitter: @maruno42


          Reply With Quote
            #6    
          Old January 9th, 2013 (10:30 AM).
          TACHAN TACHAN is offline
             
            Join Date: Jan 2010
            Gender: Female
            Posts: 198
            Quote:
            Originally Posted by Maruno View Post
            Really really. The Editor crashes because $game_switches hasn't been defined, yet that code is behaving as if does.

            The actual fix is to use if $game_switches && $game_switches[32] there instead, but I went for brevity. It can be deleted in the Editor's scripts without worry, although this "actual" fix allows that script section to be identical in both the game and the Editor, which is convenient.
            It continues without working

            Code:
            ---------------------------
            Pokemon Essentials
            ---------------------------
            Exception: NoMethodError
            
            Message: undefined method `[]' for nil:NilClass
            
            PokeBattle_Pokemon:729:in `initialize'
            
            PokemonSpritePos #####:141:in `new'
            
            PokemonSpritePos #####:141:in `pbChangeSpecies'
            
            PokemonSpritePos #####:176:in `pbSpecies'
            
            PokemonSpritePos #####:170:in `loop'
            
            PokemonSpritePos #####:190:in `pbSpecies'
            
            PokemonSpritePos #####:278:in `pbStart'
            
            PokemonSpritePos #####:277:in `loop'
            
            PokemonSpritePos #####:285:in `pbStart'
            
            EditorMain #####:252:in `pbEditorMenu'
            
            This exception was logged in ./errorlog.txt.
            Reply With Quote
              #7    
            Old January 9th, 2013 (10:46 AM).
            Maruno's Avatar
            Maruno Maruno is offline
            Lead Dev of Pokémon Essentials
               
              Join Date: Jan 2008
              Location: England
              Posts: 5,171
              Which scripts did you edit? The one called Scripts.rxdata, or the one called EditorScripts.rxdata (which you temporarily renamed to Scripts.rxdata so you could open them in RMXP)? Because you should do the latter.
              __________________
              Go to the Pokémon Essentials Wiki

              | Downloads | Tutorials | Fangames |
              | All Animations Project |

              Follow me on Twitter: @maruno42


              Reply With Quote
                #8    
              Old January 13th, 2013 (10:55 AM).
              TACHAN TACHAN is offline
                 
                Join Date: Jan 2010
                Gender: Female
                Posts: 198
                Quote:
                Originally Posted by Maruno View Post
                Which scripts did you edit? The one called Scripts.rxdata, or the one called EditorScripts.rxdata (which you temporarily renamed to Scripts.rxdata so you could open them in RMXP)? Because you should do the latter.
                ????
                I opened the "Clean" Essential v11 ( RPG Maker XP), then Script Editor and modified the (PokeBattle_Pokemon 729).
                Reply With Quote
                  #9    
                Old January 13th, 2013 (12:12 PM).
                Maruno's Avatar
                Maruno Maruno is offline
                Lead Dev of Pokémon Essentials
                   
                  Join Date: Jan 2008
                  Location: England
                  Posts: 5,171
                  The External Editor (that Editor.exe you run) uses a different set of scripts to the game you're making. The scripts it uses are called EditorScripts.rxdata in the Data folder.

                  If you want to edit them, you'll need to rename the file to Scripts.rxdata (moving the existing file of that name out of the way temporarily) and then open your game in RMXP. It'll look like your game, but the scripts you see will be the Editor's scripts. Those are the ones you need to change if you want to change how the External Editor works.

                  After you made the change, save the project and close RMXP. Rename the file back to its original name, and move your actual game's script file back.

                  Makes sense, I suppose.
                  __________________
                  Go to the Pokémon Essentials Wiki

                  | Downloads | Tutorials | Fangames |
                  | All Animations Project |

                  Follow me on Twitter: @maruno42


                  Reply With Quote
                    #10    
                  Old January 13th, 2013 (12:43 PM).
                  TACHAN TACHAN is offline
                     
                    Join Date: Jan 2010
                    Gender: Female
                    Posts: 198
                    I did not know that the file EditorScript.data was another Script.

                    Now I understand everything.
                    Thank you for the explanation! :D
                    Reply With Quote
                    Reply
                    Quick Reply

                    Sponsored Links
                    Thread Tools

                    Posting Rules
                    You may not post new threads
                    You may not post replies
                    You may not post attachments
                    You may not edit your posts

                    BB code is On
                    Smilies are On
                    [IMG] code is On
                    HTML code is Off

                    Forum Jump


                    All times are GMT -8. The time now is 11:13 AM.