[XP] Complete Climate and Time System (CCTS)

Started by ForeverZer0, May 12, 2010, 06:08:20 pm

Previous topic - Next topic

Blizzard

That means that you either have an event command that tries to play a BGS without having specified a filename or you have a map BGS without having specified a filename.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

astheroth

I checked my map and the events and i have neither event with BGS nor in the properties...


I've made a test map, add the id in the config, and without any event, bgm, bgs... The same error happened.
Another test in this map when i put in the properties a bgs and a bgm = same error.

Blizzard

Did you try it without the script? Does the error still happen?
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

astheroth

Yes sorry i should have said that before  :wacko:
If i delete the script i haven't any bug.

ForeverZer0

I think I may know the problem. I was stupid and made the BGS call directly through the Audio module, I should have used the call for $game_system, which will not throw an error when a no filename is passed to it.

Until I update, try replacing this line:
return if @playing_bgs == nil


With this one:
return if @playing_bgs == nil || @playing_bgs.name == ''


Its a temp fix, but should do it.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

astheroth

Thanx a lot! The bug is no more  :)


Edit:
I think i have found another error. I don't know if i must continue to post there or create a topic in the Troubleshooting section?


At any change of weather system seems cumulative tints of color.
The screen becomes increasingly white ...

Here some screenshots:
Spoiler: ShowHide

---

---


I think the problem is on the lines where the tint is update but i'm not a scripter   :uhm:

Thanks in advance  :)

Darkner

Hi, I'm new to this forum. I've started using Zer0's CMS, which requires ATES or CCTS. I ran into trouble with ATES showing an error for the CMS: undefined method 'day' for #<ATES::Time:0x3eb1718 @min=0, @hour=0>. Therefore I started using the CCTS.

But I don't want time in my game, nor do i want weather or tints. How do i disable everything from the ATES or CCTS, but to still allow me to use the CMS?

mroedesigns

i know it's been talked about, but has anyone actually finished an RMX-OS plugin for this? I love the script and how flexible it is, but I can't use it in my game without the plugin, and i'm not script-savvy enough to write it myself.

Magus

The  only thing that is working for me is the clock which shows the date, etc. Nothing else. T_T No tinting. Is this because I touched the change color screen tone event just to use for a cutscene? If that's the case, ... O_O making cutscenes and using this system at the same time for me, will not work.
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

ForeverZer0

Read the instructions, they explain how to override the automatic system.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Magus

I've read them plenty of times, but there is no place addressing the screen tinting problem that I'm having. Like, it just doesn't work.
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

hyakkivn

September 10, 2011, 07:34:05 am #171 Last Edit: September 10, 2011, 07:40:19 am by hyakkivn
I found a problem with this system. Just a small problem...
When there have rain in a map, you go to the next map, the rain gone but the sound is still be there.
And when it is night in this map, you go to the next map and it turn into day.
Does it make sense?

Magus

Speaking of sounds, sometimes out of nowhere, when I make rain effect (for Negative's cutscene in Generation) , after leaving that map, a rain sound effect occurs. Luckily, I simply made sure the next map uses auto bgs to none.
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

Magus

September 22, 2011, 02:40:31 pm #173 Last Edit: September 22, 2011, 02:47:45 pm by Magus
Spoiler: ShowHide
Okay, I thought this script was good, but man... I've never had so many problems, so I'm just going to stop and also don't recommend this to anyone.  
Your call scripts were working at first, then suddenly, time got screwed up and it went night at 3:00 PM.  So I tried to add a parallel process which would enable me to secret adjust it in the background. Now keep note, this call script works perfectly on any other map, except one. (time.advance_hour(9))After it hits that one, it stops working for others. Now I've checked the script, I checked the game, and here is the error message I keep getting:
[spoiler]


Spoiler: ShowHide
Now, I managed to solve error after error that this thing gave me.... but this is the one mystery that CANNOT be solved without additional help. If anyone can help me out, please, please and many thanks in advanced.


Weird.... AND AWESOME: it just started working on its on. YES! YES. I don't have to terminate my game.
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

ForeverZer0

So is the problem fixed, or do you still need help?  I can take a look at your project if you'd like.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Magus

Quote from: ForeverZer0 on September 22, 2011, 04:35:09 pm
So is the problem fixed, or do you still need help?  I can take a look at your project if you'd like.

I'll see what happens later because it does appear to be working for now thanks to: time.set(11, 7, 6, 4, 1812)
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

goth1sniper

i need help with 1 or 2 things.
I understand your script but im having a dumb moment .
the good/BAD_WEATHER_SWITCH i dont know how to use. how do i get npc to know?
same for time day/NIGHT_SWITCH like fire on at night off on day.
Thats all

thanks for the grate script

ForeverZer0

You configure it to the switch ID you want to use with it.  Say you want switch number 17 to control it, set it to 17.  Now you can control it by switching the game switch on/off with events, etc., or use that switch as a condition for events.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

goth1sniper

im sorry i dont get it. :facepalm:
i tried
Conditional branch: Script: Bad_weather_switch = true
go inside
else
outside

not just like that but you get it.

can you show me a small code how please and thank you

ForeverZer0

You don't access it by script, its the ID of the normal game switch:

Spoiler: ShowHide
Set the ID of the switches in the script...


...give the respective switches names to reflect what they are...


...and use them as conditions for events.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.