PDA

View Full Version : [Essentials script] Different Tileset for each season (Season Script)


help-14
September 22nd, 2010, 06:52 PM
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

#==============================================================================
# ● 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

#==============================================================================
# ● 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:

http://i177.photobucket.com/albums/w222/pokemonfan14/capture000-2.pnghttp://i177.photobucket.com/albums/w222/pokemonfan14/capture001-2.png


Update: Autotile supported


.

incognito322
September 22nd, 2010, 07:36 PM
Wow, thanks. I'll be sure to try that out! =D

help-14
September 22nd, 2010, 07:40 PM
Wow, thanks. I'll be sure to try that out! =D

You are welcome :D .

Jefelin
September 23rd, 2010, 02:06 AM
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.

help-14
September 23rd, 2010, 02:39 AM
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.

koby1
September 23rd, 2010, 04:00 AM
God bless you help 14... This will really help some of us that had no clue on how to do this .. *cough*me*cough*

Luka S.J.
September 23rd, 2010, 04:23 AM
Now that you got the tileset to change, you need to do the same with autotiles, plus you're overcomplicating the script :P it took me only about 4 lines of code placed within Spriteset_Map...so yeah, autotiles need to change too.

help-14
September 23rd, 2010, 05:17 AM
Now that you got the tileset to change, you need to do the same with autotiles, plus you're overcomplicating the script :P it took me only about 4 lines of code placed within Spriteset_Map...so yeah, autotiles need to change too.

Oh forgot :P I want it to be easy to install so it is long :P Thank :D
Updated :D

Cilerba
September 23rd, 2010, 11:00 AM
Amazing work, help-14.
I'm sure this script will be helpful to many game developers. :3

nmorr
September 24th, 2010, 01:01 PM
Another amazing resource from Help-14. I can't wait to try it out!

tImE
October 2nd, 2010, 08:13 AM
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~

pokehackster
October 2nd, 2010, 01:29 PM
good script if i get the time i may end up making the different tilesets and posting them at some point

help-14
October 2nd, 2010, 03:57 PM
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

tImE
October 2nd, 2010, 11:58 PM
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.

help-14
October 3rd, 2010, 12:17 AM
Have you try the other script, if it still not work, send it to me.

tImE
October 3rd, 2010, 05:31 AM
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

ppooookkkkkkk
December 10th, 2012, 04:56 AM
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


#==============================================================================
# ● 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

Dying Light
December 11th, 2012, 09:17 AM
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


#==============================================================================
# ● 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_", "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 [I]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]".

#==============================================================================
# ● 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

Umbreon
December 11th, 2012, 10:05 AM
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)

Dying Light
December 11th, 2012, 10:28 AM
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.

ppooookkkkkkk
December 12th, 2012, 03:27 AM
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

Umbreon
December 12th, 2012, 09:19 AM
Yes, that's what you must avoid doing, it is considered modifying the script. I did try the script, and it works.

Theik
December 12th, 2012, 10:55 AM
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.

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.

ppooookkkkkkk
December 13th, 2012, 11:10 AM
I dont know what is wrong since i'm not much of a scripter im learning c++ though, so heres the 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

Luka S.J.
December 13th, 2012, 11:19 AM
def pbGetTileset('PkmnBlackWhiteSet.png',hue=0)


This is your problem. It should be def pbGetTileset(name,hue=0)

ppooookkkkkkk
December 13th, 2012, 12:26 PM
This is your problem. It should be def pbGetTileset(name,hue=0)

But when i add it. it stops working my tiles dont change what do i do

Luka S.J.
December 13th, 2012, 12:33 PM
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.

ppooookkkkkkk
December 14th, 2012, 05:32 AM
Ive made the files but the changes dont appear i even have put them in the right folder Graphics/Tilesets

Luka S.J.
December 15th, 2012, 07:15 AM
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.

ppooookkkkkkk
December 15th, 2012, 07:36 AM
Heres the image of my folder http://imageshack.us/a/img853/3354/mytilesscreen.png
see if anything is wrong

Luka S.J.
December 15th, 2012, 08:23 AM
http://img607.imageshack.us/img607/7102/38779954.png
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 :/

ppooookkkkkkk
December 15th, 2012, 11:15 AM
yes i am mapping with it just check the thread pokemon morning night thread i'm using it

Kaito123
May 8th, 2013, 03:51 AM
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.

http://abload.de/img/bildschirmfoto2013-05pzu9e.png

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

Kaito123
May 15th, 2013, 06:00 AM
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.

http://abload.de/img/bildschirmfoto2013-05pzu9e.png

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.....

Kaito123
May 27th, 2013, 02:43 AM
No one can help me? I don't understand why it doesn't work....

Worldslayer608
May 27th, 2013, 06:32 AM
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.

Kaito123
May 27th, 2013, 07:43 AM
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?

Maruno
May 27th, 2013, 10:42 AM
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.

Kaito123
May 27th, 2013, 11:17 AM
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

tylerab01
May 27th, 2013, 06:55 PM
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.

Kaito123
May 28th, 2013, 02:35 AM
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.

Maruno
May 28th, 2013, 08:16 AM
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.

Kaito123
May 28th, 2013, 08:40 AM
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 :$

Ookiiushidesu
April 11th, 2014, 04:09 PM
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!