Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #1    
Old September 22nd, 2010 (6:52 PM). Edited September 23rd, 2010 by help-14.
help-14's Avatar
help-14 help-14 is offline
     
    Join Date: Jul 2007
    Location: Viet Nam
    Age: 24
    Gender: Male
    Nature: Adamant
    Posts: 282
    It is a easy script so i make it public. Remember to give credit :D

    How to use ?
    - If your tileset picture's name is Johto.png, you can make season tileset with name Spring_Johto.png, Summer_Johto.png, Autumn_Johto.png and Winter_Johto.png.
    - If you don't make those season tileset file, the script will use your default tileset: Johto.png.
    - Do the same things with the autotiles.


    Script
    For Pokemon Starter Kit version near 7th May :D
    Spoiler:
    Code:
    #==============================================================================
    # ● Pokemon Season Script by Help-14. Remember to give Credit.
    #
    #   - If your tileset picture's name is Johto.png, you can make season tileset
    #       with name Spring_Johto.png, Summer_Johto.png, Autumn_Johto.png 
    #       and Winter_Johto.png.
    #
    #   - If you don't make those season tileset file, the script will use your
    #       default tileset: Johto.png.
    #==============================================================================
    
      #----------------------------------------------------------------------------
      #   Tileset
      #----------------------------------------------------------------------------
      
    def pbGetTileset(name,hue=0)
        if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
          if File.exists?("Graphics/Tilesets/Spring_"+name)
            return AnimatedBitmap.new("Graphics/Tilesets/Spring_"+name,hue).deanimate
          else
            return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
          end
        elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
          if File.exists?("Graphics/Tilesets/Summer_"+name)
            return AnimatedBitmap.new("Graphics/Tilesets/Summer_"+name,hue).deanimate
          else
            return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
          end
        elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
          if File.exists?("Graphics/Tilesets/Autumn_"+name)
            return AnimatedBitmap.new("Graphics/Tilesets/Autumn_"+name,hue).deanimate
          else
            return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
          end
        elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
          if File.exists?("Graphics/Tilesets/Winter_"+name)
            return AnimatedBitmap.new("Graphics/Tilesets/Winter_"+name,hue).deanimate
          else
            return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
          end
        else
          return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
        end
    end
    
      #----------------------------------------------------------------------------
      #   Autotiles
      #----------------------------------------------------------------------------
    
    def pbGetAutotile(name,hue=0)
        if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
          if File.exists?("Graphics/Autotiles/Spring_"+name)
            return AnimatedBitmap.new("Graphics/Autotiles/Spring_"+name,hue).deanimate
          else
            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
          end
        elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
          if File.exists?("Graphics/Autotiles/Summer_"+name)
            return AnimatedBitmap.new("Graphics/Autotiles/Summer_"+name,hue).deanimate
          else
            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
          end
        elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
          if File.exists?("Graphics/Autotiles/Autumn_"+name)
            return AnimatedBitmap.new("Graphics/Autotiles/Autumn_"+name,hue).deanimate
          else
            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
          end
        elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
          if File.exists?("Graphics/Autotiles/Winter_"+name)
            return AnimatedBitmap.new("Graphics/Autotiles/Winter_"+name,hue).deanimate
          else
            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
          end
        else
          return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
        end 
    end


    For Pokemon Starter Kit older version :D
    Spoiler:
    Code:
    #==============================================================================
    # ● Pokemon Season Script by Help-14. Remember to give Credit.
    #
    #   - If your tileset picture's name is Johto.png, you can make season tileset
    #       with name Spring_Johto.png, Summer_Johto.png, Autumn_Johto.png 
    #       and Winter_Johto.png.
    #
    #   - If you don't make those season tileset file, the script will use your
    #       default tileset: Johto.png.
    #==============================================================================
    
    module RPG
      module Cache
        
      #----------------------------------------------------------------------------
      #   Tileset
      #----------------------------------------------------------------------------
      
        def self.tileset(filename)
          if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
            if File.exists?("Graphics/Tilesets/Spring_"+ filename +".png")
              self.load_bitmap("Graphics/Tilesets/Spring_", filename)
            else
              self.load_bitmap("Graphics/Tilesets/", filename)
            end
          elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
            if File.exists?("Graphics/Tilesets/Summer_"+ filename +".png")
              self.load_bitmap("Graphics/Tilesets/Summer_", filename)
            else
              self.load_bitmap("Graphics/Tilesets/", filename)
            end
          elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
            if File.exists?("Graphics/Tilesets/Autumn_"+ filename +".png")
              self.load_bitmap("Graphics/Tilesets/Autumn_", filename)
            else
              self.load_bitmap("Graphics/Tilesets/", filename)
            end
          elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
            if File.exists?("Graphics/Tilesets/Winter_"+ filename +".png")
              self.load_bitmap("Graphics/Tilesets/Winter_", filename)
            else
              self.load_bitmap("Graphics/Tilesets/", filename)
            end
          else
            self.load_bitmap("Graphics/Tilesets/", filename)
          end
        end
        
      #----------------------------------------------------------------------------
      #   Autotiles
      #----------------------------------------------------------------------------
    
      def self.autotile(filename)
          if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
            if File.exists?("Graphics/Autotiles/Spring_"+ filename +".png")
              self.load_bitmap("Graphics/Autotiles/Spring_", filename)
            else
              self.load_bitmap("Graphics/Autotiles/", filename)
            end
          elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
            if File.exists?("Graphics/Autotiles/Summer_"+ filename +".png")
              self.load_bitmap("Graphics/Autotiles/Summer_", filename)
            else
              self.load_bitmap("Graphics/Autotiles/", filename)
            end
          elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
            if File.exists?("Graphics/Autotiles/Autumn_"+ filename +".png")
              self.load_bitmap("Graphics/Autotiles/Autumn_", filename)
            else
              self.load_bitmap("Graphics/Autotiles/", filename)
            end
          elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
            if File.exists?("Graphics/Autotiles/Winter_"+ filename +".png")
              self.load_bitmap("Graphics/Autotiles/Winter_", filename)
            else
              self.load_bitmap("Graphics/Autotiles/", filename)
            end
          else
            self.load_bitmap("Graphics/Autotiles/", filename)
          end
        end
        
      end
    end


    If you have an error, try the other script :D

    Screenshot example:
    Spoiler:




    Update: Autotile supported


    .
    Reply With Quote

    Relevant Advertising!

      #2    
    Old September 22nd, 2010 (7:36 PM).
    incognito322's Avatar
    incognito322 incognito322 is offline
    let's look towards the future!
       
      Join Date: Dec 2007
      Location: Switzerland, France
      Gender: Male
      Nature: Naive
      Posts: 264
      Wow, thanks. I'll be sure to try that out! =D
      __________________


      A new journey awaits!
      Reply With Quote
        #3    
      Old September 22nd, 2010 (7:40 PM).
      help-14's Avatar
      help-14 help-14 is offline
         
        Join Date: Jul 2007
        Location: Viet Nam
        Age: 24
        Gender: Male
        Nature: Adamant
        Posts: 282
        Quote:
        Originally Posted by incognito322 View Post
        Wow, thanks. I'll be sure to try that out! =D
        You are welcome :D .
        Reply With Quote
          #4    
        Old September 23rd, 2010 (2:06 AM).
        Jefelin's Avatar
        Jefelin Jefelin is offline
           
          Join Date: Sep 2009
          Gender: Male
          Posts: 38
          Thanks, especially to put it also for older versions, I think that all scripters should do so, now a doubt, this script only affect the color of the tiles or you could change things (to snow blocking a road, etc.. ) I do not know very well that things could do with it.
          Reply With Quote
            #5    
          Old September 23rd, 2010 (2:39 AM).
          help-14's Avatar
          help-14 help-14 is offline
             
            Join Date: Jul 2007
            Location: Viet Nam
            Age: 24
            Gender: Male
            Nature: Adamant
            Posts: 282
            Quote:
            Originally Posted by Jefelin View Post
            Thanks, especially to put it also for older versions, I think that all scripters should do so, now a doubt, this script only affect the color of the tiles or you could change things (to snow blocking a road, etc.. ) I do not know very well that things could do with it.
            I have wrote how to use XD You can do what ever you want with Summer, Winter, Autumn and Spring file.
            Reply With Quote
              #6    
            Old September 23rd, 2010 (4:00 AM).
            koby1's Avatar
            koby1 koby1 is offline
            The M4's Best Freind
               
              Join Date: Jun 2010
              Location: Dallas, Tx
              Age: 22
              Gender: Male
              Nature: Hasty
              Posts: 81
              God bless you help 14... This will really help some of us that had no clue on how to do this .. *cough*me*cough*
              __________________
              Games I support:

              Currently beta testing:
              Pokemon Uranium ( And Loving it! )
              Reply With Quote
                #7    
              Old September 23rd, 2010 (4:23 AM).
              Luka S.J.'s Avatar
              Luka S.J. Luka S.J. is offline
              Jealous Croatian
                 
                Join Date: Dec 2008
                Location: Croatia
                Age: 24
                Gender: Male
                Nature: Adamant
                Posts: 1,099
                Now that you got the tileset to change, you need to do the same with autotiles, plus you're overcomplicating the script it took me only about 4 lines of code placed within Spriteset_Map...so yeah, autotiles need to change too.
                __________________

                Reply With Quote
                  #8    
                Old September 23rd, 2010 (5:17 AM). Edited September 23rd, 2010 by help-14.
                help-14's Avatar
                help-14 help-14 is offline
                   
                  Join Date: Jul 2007
                  Location: Viet Nam
                  Age: 24
                  Gender: Male
                  Nature: Adamant
                  Posts: 282
                  Quote:
                  Originally Posted by Luka S.J. View Post
                  Now that you got the tileset to change, you need to do the same with autotiles, plus you're overcomplicating the script it took me only about 4 lines of code placed within Spriteset_Map...so yeah, autotiles need to change too.
                  Oh forgot I want it to be easy to install so it is long Thank :D
                  Updated :D
                  Reply With Quote
                    #9    
                  Old September 23rd, 2010 (11:00 AM).
                  Cilerba Cilerba is offline
                  the hearts of lonely people
                  • Silver Tier
                   
                  Join Date: Feb 2010
                  Location: Massachusetts
                  Age: 20
                  Gender: Male
                  Nature: Quiet
                  Posts: 1,171
                  Amazing work, help-14.
                  I'm sure this script will be helpful to many game developers. :3
                  __________________
                  Reply With Quote
                    #10    
                  Old September 24th, 2010 (1:01 PM).
                  nmorr's Avatar
                  nmorr nmorr is offline
                  Takin a brake. -_-
                     
                    Join Date: May 2009
                    Location: Poke City
                    Age: 21
                    Gender: Male
                    Nature: Jolly
                    Posts: 215
                    Another amazing resource from Help-14. I can't wait to try it out!
                    __________________
                    This signature has been disabled.
                    Spoiler tags in Signatures are not allowed
                    Please review and fix the issues by reading the signature rules.

                    You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

                    Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
                    Reply With Quote
                      #11    
                    Old October 2nd, 2010 (8:13 AM).
                    tImE's Avatar
                    tImE tImE is offline
                    It's still me, 44tim44 ;)
                       
                      Join Date: Mar 2007
                      Location: Somewhere in Scandinavia...
                      Nature: Relaxed
                      Posts: 685
                      Hey, help-14, I'm trying to implent your obviously awsome script,
                      but when I try my game, the tileset won't change.

                      My tileset and "tileset.png" are both named Cyan, and the season tileset
                      Summer_Cyan, Winter_Cyan, etc.

                      But the tileset simply won't change.
                      I've tried both versions, I am sure I am using a version of Pokemon Essentials from
                      this years April or May.

                      Thanks in advance~
                      __________________
                      Reply With Quote
                        #12    
                      Old October 2nd, 2010 (1:29 PM).
                      pokehackster's Avatar
                      pokehackster pokehackster is offline
                         
                        Join Date: Jan 2009
                        Gender:
                        Posts: 89
                        good script if i get the time i may end up making the different tilesets and posting them at some point
                        __________________
                        Sometimes you just have to ask your self "would I rather be crazy or stupid?"
                        Reply With Quote
                          #13    
                        Old October 2nd, 2010 (3:57 PM).
                        help-14's Avatar
                        help-14 help-14 is offline
                           
                          Join Date: Jul 2007
                          Location: Viet Nam
                          Age: 24
                          Gender: Male
                          Nature: Adamant
                          Posts: 282
                          Quote:
                          Originally Posted by tImE View Post
                          Hey, help-14, I'm trying to implent your obviously awsome script,
                          but when I try my game, the tileset won't change.

                          My tileset and "tileset.png" are both named Cyan, and the season tileset
                          Summer_Cyan, Winter_Cyan, etc.

                          But the tileset simply won't change.
                          I've tried both versions, I am sure I am using a version of Pokemon Essentials from
                          this years April or May.

                          Thanks in advance~
                          No no, you need to make Summer_tileset.png and Winter_tileset.png
                          Reply With Quote
                            #14    
                          Old October 2nd, 2010 (11:58 PM).
                          tImE's Avatar
                          tImE tImE is offline
                          It's still me, 44tim44 ;)
                             
                            Join Date: Mar 2007
                            Location: Somewhere in Scandinavia...
                            Nature: Relaxed
                            Posts: 685
                            Quote:
                            Originally Posted by help-14 View Post
                            No no, you need to make Summer_tileset.png and Winter_tileset.png
                            That is what I'm doing.

                            In my "Graphics/Tilesets" I have "Cyan.png", "Winter_Cyan.png" and "Summer_Cyan.png"

                            And "Cyan.png" is my main tileset that's being used.

                            But it ain't working.
                            __________________
                            Reply With Quote
                              #15    
                            Old October 3rd, 2010 (12:17 AM).
                            help-14's Avatar
                            help-14 help-14 is offline
                               
                              Join Date: Jul 2007
                              Location: Viet Nam
                              Age: 24
                              Gender: Male
                              Nature: Adamant
                              Posts: 282
                              Have you try the other script, if it still not work, send it to me.
                              Reply With Quote
                                #16    
                              Old October 3rd, 2010 (5:31 AM). Edited October 3rd, 2010 by tImE.
                              tImE's Avatar
                              tImE tImE is offline
                              It's still me, 44tim44 ;)
                                 
                                Join Date: Mar 2007
                                Location: Somewhere in Scandinavia...
                                Nature: Relaxed
                                Posts: 685
                                Quote:
                                Originally Posted by help-14 View Post
                                Have you try the other script, if it still not work, send it to me.
                                Yes, I've tried both.

                                I've even tried to use both at the same time.

                                I'm not getting any errors or anything. It's just not working.

                                EDIT: Thanks to me not being script-wise incompetent, I managed to change so that the script works for one tileset, by using
                                it's real names "Winter_Cyan.png" instead of the script-name "Winter_"+name, and then it worked.

                                Still, thanks for an awesome script! :D
                                __________________
                                Reply With Quote
                                  #17    
                                Old December 10th, 2012 (4:56 AM).
                                ppooookkkkkkk ppooookkkkkkk is offline
                                Banned
                                   
                                  Join Date: May 2012
                                  Location: Newbud town (Pokemon Morning/Night)
                                  Age: 16
                                  Gender: Male
                                  Nature: Gentle
                                  Posts: 229
                                  If you hve used this without any error then you can defianatly help me. When i activate this script all maps tiles change to the one set for the script and now Everything went black even the tiles set for the script. Heres the code


                                  Code:
                                  #==============================================================================
                                  # ● Pokemon Season Script by Help-14. Remember to give Credit.
                                  #
                                  #   - If your tileset picture's name is Johto.png, you can make season tileset
                                  #       with name Spring_Johto.png, Summer_Johto.png, Autumn_Johto.png 
                                  #       and Winter_Johto.png.
                                  #
                                  #   - If you don't make those season tileset file, the script will use your
                                  #       default tileset: Johto.png.
                                  #==============================================================================
                                    #----------------------------------------------------------------------------
                                    #   Tileset
                                    #----------------------------------------------------------------------------
                                    
                                  def pbGetTileset(name,hue=0)
                                      if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
                                        if File.exists?("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name)
                                          return AnimatedBitmap.new("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name,hue).deanimate
                                        else
                                          return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
                                        end
                                      elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
                                        if File.exists?("Graphics/Tilesets/Summer_PkmnBlackWhiteSet.png"+name)
                                          return AnimatedBitmap.new("Graphics/Tilesets/Summer_PkmnBlackWhiteSet.png"+name,hue).deanimate
                                        else
                                          return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
                                        end
                                      elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
                                        if File.exists?("Graphics/Tilesets/Autumn_PkmnBlackWhiteSet"+name)
                                          return AnimatedBitmap.new("Graphics/Tilesets/Autumn_PkmnBlackWhiteSet.png"+name,hue).deanimate
                                        else
                                          return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
                                        end
                                      elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
                                        if File.exists?("Graphics/Tilesets/Winter_PkmnBlackWhiteSet.png"+name)
                                          return AnimatedBitmap.new("Graphics/Tilesets/Winter_PkmnBlackWhiteSet.png"+name,hue).deanimate
                                        else
                                          return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
                                        end
                                      else
                                        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
                                      end
                                  end
                                    #----------------------------------------------------------------------------
                                    #   Autotiles
                                    #----------------------------------------------------------------------------
                                  def pbGetAutotile(name,hue=0)
                                      if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
                                        if File.exists?("Graphics/Autotiles/Spring_"+name)
                                          return AnimatedBitmap.new("Graphics/Autotiles/Spring_"+name,hue).deanimate
                                        else
                                          return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                        end
                                      elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
                                        if File.exists?("Graphics/Autotiles/Summer_"+name)
                                          return AnimatedBitmap.new("Graphics/Autotiles/Summer_"+name,hue).deanimate
                                        else
                                          return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                        end
                                      elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
                                        if File.exists?("Graphics/Autotiles/Autumn_"+name)
                                          return AnimatedBitmap.new("Graphics/Autotiles/Autumn_"+name,hue).deanimate
                                        else
                                          return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                        end
                                      elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
                                        if File.exists?("Graphics/Autotiles/Winter_"+name)
                                          return AnimatedBitmap.new("Graphics/Autotiles/Winter_"+name,hue).deanimate
                                        else
                                          return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                        end
                                      else
                                        return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                      end 
                                  end
                                  Reply With Quote
                                    #18    
                                  Old December 11th, 2012 (9:17 AM). Edited December 11th, 2012 by Dying Light.
                                  Dying Light's Avatar
                                  Dying Light Dying Light is offline
                                  Pegasus Knight
                                     
                                    Join Date: Jun 2011
                                    Location: Exiled
                                    Gender: Male
                                    Nature: Hardy
                                    Posts: 368
                                    Quote:
                                    Originally Posted by ppooookkkkkkk View Post
                                    If you hve used this without any error then you can defianatly help me. When i activate this script all maps tiles change to the one set for the script and now Everything went black even the tiles set for the script. Heres the code


                                    Code:
                                    #==============================================================================
                                    # ● Pokemon Season Script by Help-14. Remember to give Credit.
                                    #
                                    #   - If your tileset picture's name is Johto.png, you can make season tileset
                                    #       with name Spring_Johto.png, Summer_Johto.png, Autumn_Johto.png 
                                    #       and Winter_Johto.png.
                                    #
                                    #   - If you don't make those season tileset file, the script will use your
                                    #       default tileset: Johto.png.
                                    #==============================================================================
                                      #----------------------------------------------------------------------------
                                      #   Tileset
                                      #----------------------------------------------------------------------------
                                      
                                    def pbGetTileset(name,hue=0)
                                        if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
                                          if File.exists?("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name)
                                            return AnimatedBitmap.new("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
                                          if File.exists?("Graphics/Tilesets/Summer_PkmnBlackWhiteSet.png"+name)
                                            return AnimatedBitmap.new("Graphics/Tilesets/Summer_PkmnBlackWhiteSet.png"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
                                          if File.exists?("Graphics/Tilesets/Autumn_PkmnBlackWhiteSet"+name)
                                            return AnimatedBitmap.new("Graphics/Tilesets/Autumn_PkmnBlackWhiteSet.png"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
                                          if File.exists?("Graphics/Tilesets/Winter_PkmnBlackWhiteSet.png"+name)
                                            return AnimatedBitmap.new("Graphics/Tilesets/Winter_PkmnBlackWhiteSet.png"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
                                          end
                                        else
                                          return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
                                        end
                                    end
                                      #----------------------------------------------------------------------------
                                      #   Autotiles
                                      #----------------------------------------------------------------------------
                                    def pbGetAutotile(name,hue=0)
                                        if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
                                          if File.exists?("Graphics/Autotiles/Spring_"+name)
                                            return AnimatedBitmap.new("Graphics/Autotiles/Spring_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
                                          if File.exists?("Graphics/Autotiles/Summer_"+name)
                                            return AnimatedBitmap.new("Graphics/Autotiles/Summer_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
                                          if File.exists?("Graphics/Autotiles/Autumn_"+name)
                                            return AnimatedBitmap.new("Graphics/Autotiles/Autumn_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
                                          if File.exists?("Graphics/Autotiles/Winter_"+name)
                                            return AnimatedBitmap.new("Graphics/Autotiles/Winter_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                          end
                                        else
                                          return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                        end 
                                    end
                                    Perhaps you didn't even read the instructions inside the code itself. I swear people, read the directions!

                                    Did you rename ALL your autotiles to "Spring_[insert name here]", "Summer_[insert name here]", "Winter_[insert name here]", or "Autumn_[insert name here]"?

                                    Or for normal tilesets, you have to go through the code and change things like:
                                    if File.exists?("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name)
                                    to whatever your tilesets' names are.

                                    For example, if your tileset's name is Spring_Johto.png, then you need to change it to:
                                    if File.exists?("Graphics/Tilesets/Spring_Johto.png"+name)

                                    And you do this for every line of code referencing the default sets.

                                    Try everything I told you. If it doesn't work, try my experimental script I worked on a few months ago. I've never used it myself, so you'll have to tell me if it works or not. Remember that you still have to rename all of your autotiles and tilesets to "Spring_[insert name here]", "Summer_[insert name here]", "Winter_[insert name here]", or "Autumn_[insert name here]".

                                    Code:
                                    #==============================================================================
                                    # ● Pokemon Season Script by Help-14. Experimental editing by Musketeer.
                                    # ● Give credit to Help-14 and Musketeer if you use this script.
                                    #
                                    #   - If your tileset picture's name is Johto.png, you can make season tileset
                                    #       with name Spring_Johto.png, Summer_Johto.png, Autumn_Johto.png 
                                    #       and Winter_Johto.png.
                                    #
                                    #   - If you don't make those season tileset file, the script will use your
                                    #       default tileset: Johto.png.
                                    #==============================================================================
                                      #----------------------------------------------------------------------------
                                      #   Tileset
                                      #----------------------------------------------------------------------------
                                      
                                    def pbGetTileset(name,hue=0)
                                        if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
                                          if File.exists?("Graphics/Tilesets/Spring_"+name)
                                            return AnimatedBitmap.new("Graphics/Tilesets/Spring_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
                                          if File.exists?("Graphics/Tilesets/Summer_"+name)
                                            return AnimatedBitmap.new("Graphics/Tilesets/Summer_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
                                          if File.exists?("Graphics/Tilesets/Autumn_"+name)
                                            return AnimatedBitmap.new("Graphics/Tilesets/Autumn_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
                                          if File.exists?("Graphics/Tilesets/Winter_"+name)
                                            return AnimatedBitmap.new("Graphics/Tilesets/Winter_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                          end
                                        else
                                          return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                        end
                                    end
                                      #----------------------------------------------------------------------------
                                      #   Autotiles
                                      #----------------------------------------------------------------------------
                                    def pbGetAutotile(name,hue=0)
                                        if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
                                          if File.exists?("Graphics/Autotiles/Spring_"+name)
                                            return AnimatedBitmap.new("Graphics/Autotiles/Spring_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
                                          if File.exists?("Graphics/Autotiles/Summer_"+name)
                                            return AnimatedBitmap.new("Graphics/Autotiles/Summer_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
                                          if File.exists?("Graphics/Autotiles/Autumn_"+name)
                                            return AnimatedBitmap.new("Graphics/Autotiles/Autumn_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                          end
                                        elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
                                          if File.exists?("Graphics/Autotiles/Winter_"+name)
                                            return AnimatedBitmap.new("Graphics/Autotiles/Winter_"+name,hue).deanimate
                                          else
                                            return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                          end
                                        else
                                          return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                        end 
                                    end
                                    __________________
                                    None

                                    “Our only limits are the ones we place on ourselves.”
                                    Reply With Quote
                                      #19    
                                    Old December 11th, 2012 (10:05 AM).
                                    Umbra's Avatar
                                    Umbra Umbra is offline
                                    • Platinum Tier
                                     
                                    Join Date: Aug 2009
                                    Location: Nearby my feet.
                                    Age: 20
                                    Gender: Female
                                    Nature: Calm
                                    Posts: 1,745
                                    Alright, here's what went wrong:

                                    "AnimatedBitmap.new("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name,hue).deanimate"

                                    You are pre-defining your tileset, don't do that... And to topple some more errors on it, you added the +name, this will end up like this: "Spring_PkmnBlackWhiteSet.pngPkmnBlackWhiteSet.png" this is why it doesn't work.

                                    you should have left the script completely clean and just added the images, this would have worked.

                                    @Musketeer:

                                    Your script won't work:

                                    "return AnimatedBitmap.new("Graphics/Tilesets/Summer_.png"+name,hue).deanimate"

                                    you are adding the .png where it is not needed...

                                    Anyways, to fix the problem do this:

                                    1. Insert a CLEAN UNMODIFIED VERSION OF THE SEASONS SCRIPT

                                    2. Don't modify it

                                    3. Make sure you have proper image tilesets for your seasons (Summer_blah, ...)

                                    4. Test and report bugs. (if any)
                                    Reply With Quote
                                      #20    
                                    Old December 11th, 2012 (10:28 AM).
                                    Dying Light's Avatar
                                    Dying Light Dying Light is offline
                                    Pegasus Knight
                                       
                                      Join Date: Jun 2011
                                      Location: Exiled
                                      Gender: Male
                                      Nature: Hardy
                                      Posts: 368
                                      Quote:
                                      Originally Posted by hansiec View Post
                                      Alright, here's what went wrong:

                                      "AnimatedBitmap.new("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name,hue).deanimate"

                                      You are pre-defining your tileset, don't do that... And to topple some more errors on it, you added the +name, this will end up like this: "Spring_PkmnBlackWhiteSet.pngPkmnBlackWhiteSet.png" this is why it doesn't work.

                                      you should have left the script completely clean and just added the images, this would have worked.

                                      @Musketeer:

                                      Your script won't work:

                                      "return AnimatedBitmap.new("Graphics/Tilesets/Summer_.png"+name,hue).deanimate"

                                      you are adding the .png where it is not needed...

                                      Anyways, to fix the problem do this:

                                      1. Insert a CLEAN UNMODIFIED VERSION OF THE SEASONS SCRIPT

                                      2. Don't modify it

                                      3. Make sure you have proper image tilesets for your seasons (Summer_blah, ...)

                                      4. Test and report bugs. (if any)
                                      I'd have to agree with you on installing a clean, unmodified script. That should help.

                                      However, my script doesn't include an unnecessary .png in it. That's not to say it doesn't work, but I'm just letting you know that my script has absolutely no unnecessary .png file extension references.

                                      But if it doesn't work, it doesn't work. I didn't intend for it to be a solve-all problem fixer. It's just an old script I had on hand that I modified some time ago.
                                      __________________
                                      None

                                      “Our only limits are the ones we place on ourselves.”
                                      Reply With Quote
                                        #21    
                                      Old December 12th, 2012 (3:27 AM). Edited December 12th, 2012 by ppooookkkkkkk.
                                      ppooookkkkkkk ppooookkkkkkk is offline
                                      Banned
                                         
                                        Join Date: May 2012
                                        Location: Newbud town (Pokemon Morning/Night)
                                        Age: 16
                                        Gender: Male
                                        Nature: Gentle
                                        Posts: 229
                                        Actually if i add the clean code the script would'nt work and also i have not modified it just added the filenames

                                        Actually if i add the clean code the script wont work and also i did'nt modified the script i just added the filenames
                                        Reply With Quote
                                          #22    
                                        Old December 12th, 2012 (9:19 AM).
                                        Umbra's Avatar
                                        Umbra Umbra is offline
                                        • Platinum Tier
                                         
                                        Join Date: Aug 2009
                                        Location: Nearby my feet.
                                        Age: 20
                                        Gender: Female
                                        Nature: Calm
                                        Posts: 1,745
                                        Yes, that's what you must avoid doing, it is considered modifying the script. I did try the script, and it works.
                                        Reply With Quote
                                          #23    
                                        Old December 12th, 2012 (10:55 AM).
                                        Theik's Avatar
                                        Theik Theik is offline
                                        Fancy Cape Knight
                                           
                                          Join Date: Dec 2008
                                          Age: 29
                                          Gender:
                                          Posts: 73
                                          Quote:
                                          Originally Posted by ppooookkkkkkk View Post
                                          Actually if i add the clean code the script would'nt work and also i have not modified it just added the filenames

                                          Actually if i add the clean code the script wont work and also i did'nt modified the script i just added the filenames
                                          You misunderstood the instructions, you are not supposed to add your file names into the code.

                                          Code:
                                          def pbGetTileset(name,hue=0)     
                                          if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4       
                                          if File.exists?("Graphics/Tilesets/Spring_"+name)         
                                          return AnimatedBitmap.new("Graphics/Tilesets/Spring_"+name,hue).deanimate       
                                          else         
                                          return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                          end
                                          When you call that function, the name you give to the function is automatically placed behind spring_.

                                          For example,call the function with name 'hello.png' and you'd get Graphics/Tilesets/Spring_hello.png

                                          You're not supposed to manually go in and add your file names where it says name, that happens automatically when the function is called.
                                          Reply With Quote
                                            #24    
                                          Old December 13th, 2012 (11:10 AM).
                                          ppooookkkkkkk ppooookkkkkkk is offline
                                          Banned
                                             
                                            Join Date: May 2012
                                            Location: Newbud town (Pokemon Morning/Night)
                                            Age: 16
                                            Gender: Male
                                            Nature: Gentle
                                            Posts: 229
                                            I dont know what is wrong since i'm not much of a scripter im learning c++ though, so heres the code

                                            Code:
                                            #==============================================================================
                                            # ● Pokemon Season Script by Help-14. Remember to give Credit.
                                            #
                                            #   - If your tileset picture's name is Johto.png, you can make season tileset
                                            #       with name Spring_Johto.png, Summer_Johto.png, Autumn_Johto.png 
                                            #       and Winter_Johto.png.
                                            #
                                            #   - If you don't make those season tileset file, the script will use your
                                            #       default tileset: Johto.png.
                                            #==============================================================================
                                              #----------------------------------------------------------------------------
                                              #   Tileset
                                              #----------------------------------------------------------------------------
                                              
                                            def pbGetTileset('PkmnBlackWhiteSet.png',hue=0)
                                                if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
                                                  if File.exists?("Graphics/Tilesets/Spring_"+name)
                                                    return AnimatedBitmap.new("Graphics/Tilesets/Spring_"+name,hue).deanimate
                                                  else
                                                    return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                                  end
                                                elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
                                                  if File.exists?("Graphics/Tilesets/Summer_"+name)
                                                    return AnimatedBitmap.new("Graphics/Tilesets/Summer_"+name,hue).deanimate
                                                  else
                                                    return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                                  end
                                                elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
                                                  if File.exists?("Graphics/Tilesets/Autumn_"+name)
                                                    return AnimatedBitmap.new("Graphics/Tilesets/Autumn_"+name,hue).deanimate
                                                  else
                                                    return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                                  end
                                                elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
                                                  if File.exists?("Graphics/Tilesets/Winter_"+name)
                                                    return AnimatedBitmap.new("Graphics/Tilesets/Winter_"+name,hue).deanimate
                                                  else
                                                    return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                                  end
                                                else
                                                  return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
                                                end
                                            end
                                              #----------------------------------------------------------------------------
                                              #   Autotiles
                                              #----------------------------------------------------------------------------
                                            def pbGetAutotile(name,hue=0)
                                                if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
                                                  if File.exists?("Graphics/Autotiles/Spring_"+name)
                                                    return AnimatedBitmap.new("Graphics/Autotiles/Spring_"+name,hue).deanimate
                                                  else
                                                    return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                                  end
                                                elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
                                                  if File.exists?("Graphics/Autotiles/Summer_"+name)
                                                    return AnimatedBitmap.new("Graphics/Autotiles/Summer_"+name,hue).deanimate
                                                  else
                                                    return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                                  end
                                                elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
                                                  if File.exists?("Graphics/Autotiles/Autumn_"+name)
                                                    return AnimatedBitmap.new("Graphics/Autotiles/Autumn_"+name,hue).deanimate
                                                  else
                                                    return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                                  end
                                                elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
                                                  if File.exists?("Graphics/Autotiles/Winter_"+name)
                                                    return AnimatedBitmap.new("Graphics/Autotiles/Winter_"+name,hue).deanimate
                                                  else
                                                    return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                                  end
                                                else
                                                  return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
                                                end 
                                            end
                                            Reply With Quote
                                              #25    
                                            Old December 13th, 2012 (11:19 AM).
                                            Luka S.J.'s Avatar
                                            Luka S.J. Luka S.J. is offline
                                            Jealous Croatian
                                               
                                              Join Date: Dec 2008
                                              Location: Croatia
                                              Age: 24
                                              Gender: Male
                                              Nature: Adamant
                                              Posts: 1,099
                                              Quote:
                                              Originally Posted by ppooookkkkkkk View Post
                                              Code:
                                              def pbGetTileset('PkmnBlackWhiteSet.png',hue=0)
                                              This is your problem. It should be
                                              Code:
                                              def pbGetTileset(name,hue=0)
                                              __________________

                                              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:05 AM.