OcRam - Time System plugin (for MV)

That error message can't be from empty project. Empty project doesn't have YEP_CoreEngine.

Though if it has worked and suddenly stopped working, have updated Yanfly plugins for example that may cause the problem?
My mistake, the error from the empty project is:
2023-03-09 02_21_08-Window.png

I have not updated any of the Yanfly plugins at all.
HI! Please where can i find the folder with the bird and rest of sounds?
I dont have them and at down give me bgm errors 🙂
Thanks
Hello, I get an error when I use both of the Time System plugins (for MV) and the OcRam - Weather_EX plugin (for MV) at the same time. The error happens when I go to the menu.
Sorry for super late answers had some irl stuff, but I try to activate myself more in RPG Maker now.

My mistake, the error from the empty project is: View attachment 255480
I have not updated any of the Yanfly plugins at all.
If it stopped wroking suddenly and appears in empty project. Maybe it's pixi/nodeJS (game.exe) version conflict?

HI! Please where can i find the folder with the bird and rest of sounds?
I dont have them and at down give me bgm errors 🙂
Thanks
In my demo these should be in \audio\bgs folder.

Hello, I get an error when I use both of the Time System plugins (for MV) and the OcRam - Weather_EX plugin (for MV) at the same time. The error happens when I go to the menu.
I saw your error pic in my inbox.

Have setup weather variable id? This error comes if you show weather in menu, but Weather system has no correct weather variable id. Or weather variable contains invalid value (tampered outside weather system).
Hey there! Glad to see you back!
I've been using your plugins for a while, but often I run into some issues due to the fact I know very little about javascript. The latest one being...

With map notetags, how do I make it so no BGM is playing at a given time? I couldn't find that anywhere in the help section of the plugin.

In my specific case I want a BGM playing only at daytime, but not at nighttime.
I tried a few like <bgm🙁none),Town5> or <bgm:,Town5>, but obviously the first one looks for "(none).bgm", which yknow, doesn't exist, and the second one just plays Town5 at nighttime as well

Thanks for your work either way!
Thank you for the report!

Indeed <bgm:,Town5> should stop BGM at night time (unless some other bgm is played by other ways), else time system should play "Town5".

There was a bug and it will be fixed in next release of OcRam_Time_System.

EDIT: This will be made only for Time System (RETRO'able MZ -plugin version)
There was a bug and it will be fixed in next release of OcRam_Time_System.
Oh nice! Glad to help!

EDIT: This will be made only for Time System (RETRO'able MZ -plugin version)
Oh uh, I just realized this is the MV thread. I'm actually using MZ, I assume that's the version that will be patched?

Also another issue I found: Time stops during dialogue and event processing, but it does not stop if the dialogue comes from an item using a common event.
Thank you for the message,

And sorry for the late answer (have been away from my dev machine again). I was thinking exactly same date comparison routine my self 😀

I was thinking to add OcRam.Time_System.getJSDate() -function in this plugin.
Would love if you added this function even though it was a long time ago you said this
Would love if you added this function even though it was a long time ago you said this
Thank you for the message!

I will add this to my MZ version, and here is script which returns JS styled date from OcRam_Time_System.

Please check your variable id's if script is not in OcRam.Time_System scope.

If you want, and know how to, you can add it directly to OcRam_Time_System -plugin in "Public plugin functions" section just replace "const[space]" with "this.". Then you can call it any time like: OcRam.Time_System.getJSDate();

Code:
const getJSDate = () => {
    return new Date(
        $gameVariables.value(_yearVarId),
        $gameVariables.value(_monthVarId) - 1,
        $gameVariables.value(_dayVarId),
        $gameVariables.value(_hourVarId),
        $gameVariables.value(_minuteVarId)
    );
};

This function returns in my project:
Code:
>> OcRam.Time_System.getJSDate()
<< Sun Sep 30 1010 01:00:00 GMT+0139 (Eastern European Summer Time)
Good night.
What do I do to make the time go slower?
Good night.
What do I do to make the time go slower?
There's "Time interval variable id" plugin parameter. Change the value of that variable to what ever you like and one minute game time will equal that many milliseconds.

ie1. 1000 = 1 second (irl) = 1 minute in game

ie2. 10000 = 10 seconds (irl) = 1 minute in game
Hi, love the plugin! I noticed when using the 12h time setting, the time goes from 11:59 AM to 00:00 AM, when it should go from 11:59 AM -> 12:00 PM. Is there a setting I'm missing to change this? Time runs normally otherwise. Thanks!
Hi, love the plugin! I noticed when using the 12h time setting, the time goes from 11:59 AM to 00:00 AM, when it should go from 11:59 AM -> 12:00 PM. Is there a setting I'm missing to change this? Time runs normally otherwise. Thanks!
Thank you for the report!

I will fix this to next version.

Edit: @darthKitty I have found the issue. If you wish to quick fix it now (so you don't need to wait official fix for it) replace getTimeString function inside OcRam_Time_System.js with following snippet
JavaScript:
    this.getTimeString = () => {
        if (_timeFormat == 0) { // 24h
            return ($gameVariables.value(_hourVarId) % _hoursPerDay).padZero(2) + ":" + ($gameVariables.value(_minuteVarId) % _minutesPerHour).padZero(2);
        } else { // 12h
            const h = $gameVariables.value(_hourVarId);
            const ampm = (h > _noonHour) ? " PM" : (h == _noonHour) ? " PM" : " AM";
            return ((h % _noonHour) || _noonHour).padZero(2) + ":" + $gameVariables.value(_minuteVarId).padZero(2) + ampm;
        }
    };
Is there a way to time events via common events using the time plugin and to add to that, what is the ideal setup for maps that are indoors for hues ? Like I fixed it up with a

light_bg #dddddddd plugin command map size is 43x54 and also updated the plugins, but it just broke everything..constant error messages for heaps of things..

1767242424760.png
Is there a way to time events via common events using the time plugin and to add to that, what is the ideal setup for maps that are indoors for hues ? Like I fixed it up with a

light_bg #dddddddd plugin command map size is 43x54 and also updated the plugins, but it just broke everything..constant error messages for heaps of things..

View attachment 356572
Thank you for the message,

Can you show the event where command is used?
Error message, load order, event command.
I have copied the js files from the latest project into the js file section, then copied the js files from plugin manager into my project folder then the error message opens up. My previous project dosen't have said issue and has the load order also attached in this message. Though the time system dosen't get displayed despite copying and pasting i.e images and audio and still unsure how to get diffrent colours for everything tbh lol, I even looked into the lights plugin via Visual studio and try to look for anything...

And anytime just trying to fully fix up the lights for the project at present alongside balacing it.
1767576310352.png
1767576521140.png

1767576763684.png


1767576900858.png
Error message, load order, event command.
I have copied the js files from the latest project into the js file section, then copied the js files from plugin manager into my project folder then the error message opens up. My previous project dosen't have said issue and has the load order also attached in this message. Though the time system dosen't get displayed despite copying and pasting i.e images and audio and still unsure how to get diffrent colours for everything tbh lol, I even looked into the lights plugin via Visual studio and try to look for anything...

And anytime just trying to fully fix up the lights for the project at present alongside balacing it.
View attachment 356868View attachment 356869
View attachment 356870

View attachment 356871
Odd I turned off messages then the project loaded but upon pressing esc on the keyboard this error message jumps up

Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at Object.Yanfly.SetupParameters (YEP_AutoPassiveStates.js:233)
at YEP_AutoPassiveStates.js:272
pixi.js:29132

1767577322898.png
Error message, load order, event command.
I have copied the js files from the latest project into the js file section, then copied the js files from plugin manager into my project folder then the error message opens up. My previous project dosen't have said issue and has the load order also attached in this message. Though the time system dosen't get displayed despite copying and pasting i.e images and audio and still unsure how to get diffrent colours for everything tbh lol, I even looked into the lights plugin via Visual studio and try to look for anything...

And anytime just trying to fully fix up the lights for the project at present alongside balacing it.
View attachment 356868View attachment 356869
View attachment 356870

View attachment 356871

Odd I turned off messages then the project loaded but upon pressing esc on the keyboard this error message jumps up

Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at Object.Yanfly.SetupParameters (YEP_AutoPassiveStates.js:233)
at YEP_AutoPassiveStates.js:272
pixi.js:29132

View attachment 356872
Try to pin point (turning them off/on) plugin which causes said behavior. Or can you repeat this in empty project?
Try to pin point (turning them off/on) plugin which causes said behavior. Or can you repeat this in empty project?
It is kinda strange, a new project shows up like this without anything setup just a copy and paste plugins directly

IT WAS CHARACTER EFFECTS...yay so what are the diffrences between the following as I used the old stuff for ages

OC messages don't work still and bring up the following issue but disabling it allows the project to run and save the game.

1767845882885.png



Time system 2.11 vs 1.06 (previously used) and how do I get a slower tick count for the clock ? and customize it

Plz and thanks in advance

Just got this issue after a battle... removing audio layers does fix said issue naturally.


1767846548647.png


1767846717110.png

1767845559471.png

Original thread: https://forums.rpgmakerweb.com/threads/ocram-time-system-plugin-for-mv.107735/