[XP] Complete Climate and Time System (CCTS)

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

Previous topic - Next topic

goth1sniper

wow that was fast thanks i get it.
lol duh
sorry about that
thank you so much

Magus

I thought about searching for a way to fix the tinting, but I'll just stick to common event use instead.
LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

ForeverZer0

Quote from: Magus on September 26, 2011, 04:00:11 pm
I thought about searching for a way to fix the tinting, but I'll just stick to common event use instead.


Sounds like a plan.
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.

rlm1000

Ok it's been a long time since I've been on here, but I decided to update to 1.2.2, and now switches run over and over lol. It's a little funny to see doors open and shut almost at random, but I'd like to see how to fix it, if it's possible. It seems all switches run automatically or something.

ForeverZer0

The switches are supposed to work automatically. You define the switch ID's. and they turn ON/OFF automatically. If the daytime switch is set to 4, then switch 4 will be on during the hours you define as daylight hours, and off when not.
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.

rlm1000

Thanks for the quick response, it looks like it's actually a variable causing the trouble, so I will have to read down through the script and make sure everything is defined properly and that I didn't accidentally use a variable twice when updating the script.

Fenriswolf

October 18, 2011, 12:01:14 pm #186 Last Edit: October 18, 2011, 12:05:43 pm by Fenriswolf
This script seemed like a great addition to the project i'm working on,
so I decided to use it and just now I finished configuring.
When testing it, there were no errors and my game ran like normal,
except that it may have been a bit laggier than before.

This is how the test went:
After the intro, the clock was turned on as supposed to,
but after about 1 hour (script time) my game froze (permanently, so no lag :P).

I'm wondering what's causing the freeze.
I figured that possible causes are one of my other scripts or my huge database (about 600mb, mostly music, at least 80% will be removed after finishing my project :P).

Any idea as of what's causing it?
I'll post my scripts if that is the most probable cause
(since I have a hunch that my database is the cause, since there are no errors).

I just hope that it is something that can be fixed,
since I've already come up with so many ideas to use the script for. :(

Fenriswolf

*bump*

My guess is that it was kind of a stupid question and that the solution is simple,
but I'd really appreciate it if some one told me what he thinks is the problem.
If nobody has a clue, then I'll continue my project without the script.

ForeverZer0

To be honest, I really don't know by what you're saying. If I had to guess, I would say you have a switch setup that is triggering and starting something it shouldn't be.  Try changing all the switch/variable IDs in the CCTS config to new values, and see if it still freezes.
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.

Fenriswolf

October 20, 2011, 06:37:22 pm #189 Last Edit: October 22, 2011, 11:52:36 am by Fenriswolf
I'll try that, thank you for the response.

EDIT:
Aaa lol, you were right, switches and variables were the problem.
I configured CCTS correctly, but I forgot to configure the switches for Zer0's Advanced Weather as well.  :stupid:

Thank you for the response, without it, it might have been the end of me.

LiTTleDRAgo

can I request a feature?

the hour, minute, seconds, etc can controlled by variable (not a call script)

in the script: ShowHide
  MINUTE_VARIABLE = 1
  HOUR_VARIABLE = 2
  DAY_VARIABLE = 3
  MONTH_VARIABLE = 4
  YEAR_VARIABLE = 5


so if I want to change the year, I just change from the variable

QuoteControl Variables: [0005: Year] = 2011

 
not

QuoteScript: time.set(4, 1, 6, 5, 2011)

Grimm

November 19, 2011, 06:03:39 pm #191 Last Edit: November 19, 2011, 06:27:12 pm by Grimm
QuoteAnd when it is night in this map, you go to the next map and it turn into day.


mhhh, i've got the same problem -.- anybody knows the solution???

Edit, It's only night on the Map n°1

Vexus

There is a mistake in your new demo and script on the time speed freeze.

In the code it's written as speed freeze while in your demo it's called as freeze speed which gives it an error.

Even the help in the code states it should be freeze speed but it crashes the game unless you switch the words in the call script.
Current Project/s:

vincent329

i have a problem with part of the script i was trying to make it so the window of the time is not seen or is not as big useing the nil part of the code where it says
#   Set to nil to not use a skin
  #   Set to 'DEFAULT SKIN' to use whatever the player is using.
  #   Set to 'FILENAME' of the skin. Must be in Windowskins folder of game.
  CLOCK_SKIN = 'nil'
when i did that i kept getting an error saying that nil is not in the window skin folder do i have to get a diffrent window skin?

ForeverZer0

Its nil, not 'nil' without the quotes.

CLOCK_SKIN = nil
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.

vincent329

thx but now i cant get the clock to hide when i hit the button signed to it

ForeverZer0

What are you using as the configuration? Keep in mind that you define the game button (the constant in the Input module), not just a key on the keyboard.
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.

vincent329

for the time being i left it as the input::Z
when i tried to change it the code kept showing error's i dont get an error when i put B insted of Z but anytime i try changeing it to even an example it only gives error

ForeverZer0

As I said, it has to be one of the GAME buttons that are defined. Unless you are using a custom input script, you will be limited to the following:

UP, DOWN, LEFT, RIGHT, F5, F6, F7, F8, F9, CTRL, ALT, SHIFT, L, R, C, Z, B, Y, A, and X

In the config, each of these must be preceded by Input::

Now, keep in mind that C does not mean the C key on your keyboard, but the C button defined by pressing F1 during gameplay, which is by default the space bar and enter key. The same goes with the other single letter keys.
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.

Vexus

Hi was wondering if it's possible to make the night darker or it gets darker the more time pass?

Say in my project night starts at 8:00 pm, will at 2:00 am get darker or remain the same?

Thanks.
Current Project/s: