The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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.


Advertise here

Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old September 22nd, 2010, 06:52 PM
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 21
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14

Advertise here
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


.
__________________
My Deviantart: help-14.deviantart.com

Last edited by help-14; September 23rd, 2010 at 04:43 PM.
Reply With Quote
  #2    
Old September 22nd, 2010, 07:36 PM
incognito322's Avatar
incognito322
let's look towards the future!
 
Join Date: Dec 2007
Location: Switzerland, France
Gender: Male
Nature: Naive
Wow, thanks. I'll be sure to try that out! =D
__________________
[IMG]http://img85.imageshack.us/img85/7132/simage****.png[/IMG]


A new journey awaits!
Reply With Quote
  #3    
Old September 22nd, 2010, 07:40 PM
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 21
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
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, 02:06 AM
Jefelin's Avatar
Jefelin
Beginning Trainer
 
Join Date: Sep 2009
Gender: Male
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, 02:39 AM
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 21
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
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, 04:00 AM
koby1's Avatar
koby1
The M4's Best Freind
 
Join Date: Jun 2010
Location: Dallas, Tx
Age: 19
Gender: Male
Nature: Hasty
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, 04:23 AM
Luka S.J.'s Avatar
Luka S.J.
S.J.Ware HD
 
Join Date: Dec 2008
Age: 21
Gender: Male
Nature: Adamant
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.
__________________
[STOPPED][DEMO] Pokemon Blue Chrome
[DEVELOPING] S.J.Ware
[DEVELOPING] Tykanite
Reply With Quote
  #8    
Old September 23rd, 2010, 05:17 AM
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 21
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
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

Last edited by help-14; September 23rd, 2010 at 05:29 AM.
Reply With Quote
  #9    
Old September 23rd, 2010, 11:00 AM
Cilerba
the hearts of lonely people
Community Supporter
 
Join Date: Feb 2010
Location: Massachusetts
Age: 17
Gender: Male
Nature: Quiet
Amazing work, help-14.
I'm sure this script will be helpful to many game developers. :3
__________________
A MODEST PROPOSAL
http://www.pokecommunity.com/showthread.php?p=7766537
Reply With Quote
  #10    
Old September 24th, 2010, 01:01 PM
nmorr's Avatar
nmorr
Takin a brake. -_-
 
Join Date: May 2009
Location: Poke City
Age: 18
Gender: Male
Nature: Jolly
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, 08:13 AM
tImE's Avatar
tImE
It's still me, 44tim44 ;)
 
Join Date: Mar 2007
Location: Somewhere in Scandinavia...
Age: 19
Nature: Relaxed
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, 01:29 PM
pokehackster's Avatar
pokehackster
 
Join Date: Jan 2009
Gender:
good script if i get the time i may end up making the different tilesets and posting them at some point
__________________
Pokémon Dual Shades

My deviantART

Sometimes you just have to ask your self "would I rather be crazy or stupid?"
Reply With Quote
  #13    
Old October 2nd, 2010, 03:57 PM
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 21
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
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
__________________
My Deviantart: help-14.deviantart.com
Reply With Quote
  #14    
Old October 2nd, 2010, 11:58 PM
tImE's Avatar
tImE
It's still me, 44tim44 ;)
 
Join Date: Mar 2007
Location: Somewhere in Scandinavia...
Age: 19
Nature: Relaxed
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
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 21
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to help-14
Have you try the other script, if it still not work, send it to me.
__________________
My Deviantart: help-14.deviantart.com
Reply With Quote
  #16    
Old October 3rd, 2010, 05:31 AM
tImE's Avatar
tImE
It's still me, 44tim44 ;)
 
Join Date: Mar 2007
Location: Somewhere in Scandinavia...
Age: 19
Nature: Relaxed
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
__________________

Last edited by tImE; October 3rd, 2010 at 06:18 AM.
Reply With Quote
  #17    
Old December 10th, 2012, 04:56 AM
ppooookkkkkkk
Banned
 
Join Date: May 2012
Location: Newbud town (Pokemon Morning/Night)
Age: 13
Gender: Male
Nature: Gentle
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, 09:17 AM
Dying Light's Avatar
Dying Light
Pegasus Knight
 
Join Date: Jun 2011
Location: Somewhere cold...
Gender: Male
Nature: Hardy
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.”

Last edited by Dying Light; December 11th, 2012 at 09:37 AM. Reason: Damn it. Little fix in code that I just realized.
Reply With Quote
  #19    
Old December 11th, 2012, 10:05 AM
Umbreon's Avatar
Umbreon
Community Supporter
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 17
Gender: Male
Nature: Calm
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
Pegasus Knight
 
Join Date: Jun 2011
Location: Somewhere cold...
Gender: Male
Nature: Hardy
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, 03:27 AM
ppooookkkkkkk
Banned
 
Join Date: May 2012
Location: Newbud town (Pokemon Morning/Night)
Age: 13
Gender: Male
Nature: Gentle
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

Last edited by ppooookkkkkkk; December 12th, 2012 at 03:28 AM. Reason: Your double post has been automatically merged.
Reply With Quote
  #22    
Old December 12th, 2012, 09:19 AM
Umbreon's Avatar
Umbreon
Community Supporter
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 17
Gender: Male
Nature: Calm
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
Fancy Cape Knight
 
Join Date: Dec 2008
Age: 26
Gender:
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
Banned
 
Join Date: May 2012
Location: Newbud town (Pokemon Morning/Night)
Age: 13
Gender: Male
Nature: Gentle
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.
S.J.Ware HD
 
Join Date: Dec 2008
Age: 21
Gender: Male
Nature: Adamant
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)
__________________
[STOPPED][DEMO] Pokemon Blue Chrome
[DEVELOPING] S.J.Ware
[DEVELOPING] Tykanite
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 01:00 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.