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
  #26    
Old December 13th, 2012 (12:26 PM).
ppooookkkkkkk ppooookkkkkkk is offline
Banned
     
    Join Date: May 2012
    Location: Newbud town (Pokemon Morning/Night)
    Age: 16
    Gender: Male
    Nature: Gentle
    Posts: 229
    Quote:
    Originally Posted by Luka S.J. View Post
    This is your problem. It should be
    Code:
    def pbGetTileset(name,hue=0)
    But when i add it. it stops working my tiles dont change what do i do
    Reply With Quote

    Relevant Advertising!

      #27    
    Old December 13th, 2012 (12:33 PM).
    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,100
      Quote:
      Originally Posted by ppooookkkkkkk View Post
      But when i add it. it stops working my tiles dont change what do i do
      Your tiles don't change because the correct graphics don't exist. For instance, if you're mapping with the tileset PkmnBlackWhiteSet.png you need another .png within the /Tilesets/ folder called Winter_PkmnBlackWhiteSet.png. Then your tilesets will change if the season is Winter.
      __________________

      Reply With Quote
        #28    
      Old December 14th, 2012 (5:32 AM).
      ppooookkkkkkk ppooookkkkkkk is offline
      Banned
         
        Join Date: May 2012
        Location: Newbud town (Pokemon Morning/Night)
        Age: 16
        Gender: Male
        Nature: Gentle
        Posts: 229
        Ive made the files but the changes dont appear i even have put them in the right folder Graphics/Tilesets
        Reply With Quote
          #29    
        Old December 15th, 2012 (7:15 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,100
          Quote:
          Originally Posted by ppooookkkkkkk View Post
          Ive made the files but the changes dont appear i even have put them in the right folder Graphics/Tilesets
          There is nothing that I can see wrong with the code. The Tileset you're using to map should not have any prefixes in it, otherwise your seasonal Tilesets will have double prefixes. Check if you've made a mistake when naming/using your Tilesets.
          __________________

          Reply With Quote
            #30    
          Old December 15th, 2012 (7:36 AM).
          ppooookkkkkkk ppooookkkkkkk is offline
          Banned
             
            Join Date: May 2012
            Location: Newbud town (Pokemon Morning/Night)
            Age: 16
            Gender: Male
            Nature: Gentle
            Posts: 229
            Heres the image of my folder
            see if anything is wrong
            Reply With Quote
              #31    
            Old December 15th, 2012 (8: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,100

              Just make sure the Tileset you're using to map with is PkmnBlackWhiteSet.png. Other than that. I see nothing wrong with either the code or your setup :/
              __________________

              Reply With Quote
                #32    
              Old December 15th, 2012 (11:15 AM).
              ppooookkkkkkk ppooookkkkkkk is offline
              Banned
                 
                Join Date: May 2012
                Location: Newbud town (Pokemon Morning/Night)
                Age: 16
                Gender: Male
                Nature: Gentle
                Posts: 229
                yes i am mapping with it just check the thread pokemon morning night thread i'm using it
                Reply With Quote
                  #33    
                Old May 8th, 2013 (3:51 AM). Edited May 8th, 2013 by Kaito123.
                Kaito123 Kaito123 is offline
                   
                  Join Date: Jul 2012
                  Gender: Male
                  Posts: 61
                  hello!

                  Is this script still actual for Pokemon Essentials 11 on RMXP?

                  Because this script doesn't change the Tilesets....

                  I named my Tilesets: Outdoor.png Spring_Outdoor.png etc.



                  I have "modified" the script (I just modified the months, like bw, that every month is a new season).
                  so Spring is 1 5 9, Summer 2 6 10, Autumn 3 7 11 and Winter 4 8 12 :D
                  Reply With Quote
                    #34    
                  Old May 15th, 2013 (6:00 AM). Edited May 27th, 2013 by Kaito123.
                  Kaito123 Kaito123 is offline
                     
                    Join Date: Jul 2012
                    Gender: Male
                    Posts: 61
                    Quote:
                    Originally Posted by Kaito123 View Post
                    hello!

                    Is this script still actual for Pokemon Essentials 11 on RMXP?

                    Because this script doesn't change the Tilesets....

                    I named my Tilesets: Outdoor.png Spring_Outdoor.png etc.



                    I have "modified" the script (I just modified the months, like bw, that every month is a new season).
                    so Spring is 1 5 9, Summer 2 6 10, Autumn 3 7 11 and Winter 4 8 12 :D
                    sry for double post, but no one had write....



                    No one can help me.....
                    Reply With Quote
                      #35    
                    Old May 27th, 2013 (2:43 AM).
                    Kaito123 Kaito123 is offline
                       
                      Join Date: Jul 2012
                      Gender: Male
                      Posts: 61
                      No one can help me? I don't understand why it doesn't work....
                      Reply With Quote
                        #36    
                      Old May 27th, 2013 (6:32 AM).
                      Worldslayer608's Avatar
                      Worldslayer608 Worldslayer608 is offline
                      ಥдಥ
                      • Silver Tier
                       
                      Join Date: Mar 2008
                      Location: San Diego
                      Age: 28
                      Gender: Male
                      Nature: Calm
                      Posts: 892
                      This original script was last updated in 2010. If you are looking for more help you should read the thread in it's entirety to see if the problem has been previously addressed and if and when you do post, give as much detail as possible, such as the version of PE you are on, and last but not least, don't string multiple posts together.
                      __________________



                      SMEARGLE SOLO CHALLENGE
                      HARDCORE EDITION
                      To vanquish without peril is to triumph without glory...
                      Voted Best Game Designer 2011 on PC
                      Reply With Quote
                        #37    
                      Old May 27th, 2013 (7:43 AM).
                      Kaito123 Kaito123 is offline
                         
                        Join Date: Jul 2012
                        Gender: Male
                        Posts: 61
                        Quote:
                        Originally Posted by ЩѻƦḽᶑʂḽдƴƹƦ™ View Post
                        This original script was last updated in 2010. If you are looking for more help you should read the thread in it's entirety to see if the problem has been previously addressed and if and when you do post, give as much detail as possible, such as the version of PE you are on, and last but not least, don't string multiple posts together.
                        I've wrote Essentials 11, I've read the post, but it still doesn't work fpr me, look over a few post, there is a pic, how i named my tilesets...

                        And this multiple posts are not in a few days

                        can someone help me?
                        Reply With Quote
                          #38    
                        Old May 27th, 2013 (10:42 AM).
                        Maruno's Avatar
                        Maruno Maruno is offline
                        Lead Dev of Pokémon Essentials
                           
                          Join Date: Jan 2008
                          Location: England
                          Posts: 5,171
                          1. Double posting is against the rules (except for certain circumstances which don't apply here). Triple posting, more so. It doesn't matter how long you've left between them.
                          2. Are your tilesets actually different?
                          3. Have you been testing it by changing your computer's date?
                          4. Have you put the script in a new script section just above Main?
                          5. Maybe you broke something when you tampered with the script. Check it again.
                          __________________
                          Go to the Pokémon Essentials Wiki

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

                          Follow me on Twitter: @maruno42


                          Reply With Quote
                            #39    
                          Old May 27th, 2013 (11:17 AM).
                          Kaito123 Kaito123 is offline
                             
                            Join Date: Jul 2012
                            Gender: Male
                            Posts: 61
                            Quote:
                            Originally Posted by Maruno View Post
                            1. Double posting is against the rules (except for certain circumstances which don't apply here). Triple posting, more so. It doesn't matter how long you've left between them.
                            2. Are your tilesets actually different?
                            3. Have you been testing it by changing your computer's date?
                            4. Have you put the script in a new script section just above Main?
                            5. Maybe you broke something when you tampered with the script. Check it again.
                            1. sorry :$
                            2. yes
                            3. no, i do it tomorrow.. i write it than
                            4. yes
                            5. no, i checked it a lot of times, on unused Essentials 11
                            Reply With Quote
                              #40    
                            Old May 27th, 2013 (6:55 PM).
                            tylerab01's Avatar
                            tylerab01 tylerab01 is offline
                            Pokemon AquaHarmony
                               
                              Join Date: Apr 2009
                              Location: France
                              Gender: Male
                              Nature: Bold
                              Posts: 165
                              I wrote my own little add in for this system. I will find it from my old copy of AquaHarmony, but as I recall it is about 5-ish lines of code and it also features seasonal music.
                              __________________

                              Reply With Quote
                                #41    
                              Old May 28th, 2013 (2:35 AM).
                              Kaito123 Kaito123 is offline
                                 
                                Join Date: Jul 2012
                                Gender: Male
                                Posts: 61
                                So...
                                I have now tested it very often. The recognition of the month is not the debt, because this:
                                if Time.now.mon == 2 or Time.now.mon == 3 == 4 or Time.now.mon
                                I use in another Script...

                                It must either be on recognizing the tilesets are so Winter_, Spring_ etc. are, or at the call of the respective Tilsets.
                                Reply With Quote
                                  #42    
                                Old May 28th, 2013 (8:16 AM).
                                Maruno's Avatar
                                Maruno Maruno is offline
                                Lead Dev of Pokémon Essentials
                                   
                                  Join Date: Jan 2008
                                  Location: England
                                  Posts: 5,171
                                  Quote:
                                  Originally Posted by Kaito123 View Post
                                  if Time.now.mon == 2 or Time.now.mon == 3 == 4 or Time.now.mon
                                  If that is literally what you have, then you've mucked it up. It's really not difficult to see how this line is wrong, and I can confirm that this line as it is would cause your problem. I really can't say anything else about the matter without sounding patronising, sorry.
                                  __________________
                                  Go to the Pokémon Essentials Wiki

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

                                  Follow me on Twitter: @maruno42


                                  Reply With Quote
                                    #43    
                                  Old May 28th, 2013 (8:40 AM).
                                  Kaito123 Kaito123 is offline
                                     
                                    Join Date: Jul 2012
                                    Gender: Male
                                    Posts: 61
                                    Quote:
                                    Originally Posted by Maruno View Post
                                    If that is literally what you have, then you've mucked it up. It's really not difficult to see how this line is wrong, and I can confirm that this line as it is would cause your problem. I really can't say anything else about the matter without sounding patronising, sorry.
                                    sry, this line isn't correct... I'm german and use the "google translator". I copy that line right, but the translator changed it.... I had use this line how it is in the orginal script of this seasonal tileset script :$
                                    Reply With Quote
                                      #44    
                                    Old April 11th, 2014 (4:09 PM).
                                    Ookiiushidesu's Avatar
                                    Ookiiushidesu Ookiiushidesu is offline
                                    Lead Mapper/Eventer at Gen0
                                       
                                      Join Date: Jan 2012
                                      Age: 26
                                      Gender: Male
                                      Posts: 56
                                      Great Script!!!! I was wondering, though. Would it be possible to have this set up for times of the day? Using the "Morning" "afternoon" and stuff as the catalyst for map-changing? I want to make it where the tileset changes throughout the day so shadows on buildings will appear differently.

                                      I know there is that dark hue that happens, that is fine. But I want to make building shadows different so it actually seems like the sun is moving and shadows are cast differently.

                                      Thanks!
                                      __________________
                                      ~TBC
                                      Reply With Quote
                                        #45    
                                      Old December 15th, 2014 (3:04 AM). Edited December 15th, 2014 by Evilrake.
                                      Evilrake's Avatar
                                      Evilrake Evilrake is offline
                                         
                                        Join Date: Dec 2013
                                        Gender: Male
                                        Posts: 84
                                        Okay, so I've tracked this thread start to finish and I think I understand where the problems have come about. The script as is, with the instructions properly followed, doesn't work anymore (it probably did for previous essentials versions though). How to fix them though I'm less sure about.

                                        The problem is in this part of the code which recurs throughout (Keep in mind 'Spring' can also be 'Winter' et al too):
                                        Code:
                                        ("Graphics/Autotiles/Spring_"+name)
                                        Specifically the +name bit. It seems that this part isn't adding the .png file name on to the end of the string as intended, making almost every line ineffectual. I've tested this in a few different ways I don't think anyone would care to read about, but the point is they've all led me to this hypothesis.

                                        As the above people have discovered by changing the code themselves, removing the +name part of the script and expanding the string that precedes it to refer to a specific tileset actually does cause the code to take some effect, if one that doesn't work quite as intended. So for example,
                                        Code:
                                        ("Graphics/Autotiles/Spring_"+name)
                                        doesn't work, but changing all instances of it to
                                        Code:
                                        ("Graphics/Autotiles/Spring_Johto.png")
                                        does.

                                        The problem with this then is it only works for that one tileset and also screws over all the others you have. So what I'm wondering is if there's been some change in essentials in the past few versions that would make this '+name' bit not work, perhaps replacing it with something else just
                                        Code:
                                        ("Graphics/Autotiles/Spring_"+name)
                                        replaced
                                        Code:
                                        ("Graphics/Tilesets/Spring_"+ filename +".png")
                                        .

                                        EDIT: I THINK I FIXED IT.

                                        I think the problem is that in the new versions of windows, files aren't named 'file.png', they're just named 'file'. I have no idea if this is correct or not but the point is I fixed the code by adding
                                        Code:
                                        +".png"
                                        after every instance of +name. The easiest way to do this is ctrl + h. So far it's working totally as it's supposed to.

                                        This is a really big moment for me you guys.
                                        __________________
                                        Creator of Pokemon Sekai

                                        Reply With Quote
                                          #46    
                                        Old July 19th, 2016 (3:51 AM).
                                        max93 max93 is offline
                                           
                                          Join Date: Jan 2016
                                          Posts: 23
                                          evilrake have fixed the code (tested on essential 16.2)
                                          if anyone want the correct code is
                                          Spoiler:
                                          #==============================================================================
                                          # ● 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+".png")
                                          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+".png")
                                          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+".png")
                                          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+".png")
                                          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+".png")
                                          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+".png")
                                          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+".png")
                                          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+".png")
                                          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
                                          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 10:01 AM.