Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Time Engine

Time Engine 1.3.1

No permission to download

Boy Who Codes

Praised Adventurer
Xy$
0.00
But LTN, if I go back in time and kill my character from the past, it would create a paradox :P kidding, I actually love this plugin because it can be used to simulate many stuff. Great work!
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
But LTN, if I go back in time and kill my character from the past, it would create a paradox
A paradox may cause a game breaking bug!! Oh No! lol Thanks for the nice words, I'm actually quite excited for this plugin because of how many things can be done with it. I plan on making quite a bit of add-ons for it, I have lots of ideas.
 

hbn

Towns Guard
Xy$
0.00
So I've had an idea on how to use this early game but I'm wondering what plugin commands for it are, if they've been implemented yet? Can't find them in the help section.

For two maps I need to hide the clock from showing. On a couple maps, early game at least since it's sorta timeline critical, I need to set the time manually and pause it. For certain parts, such as showing a flashback I need the 'current' time to be stored in a variable, and time changed for the duration of the flashbacks before I can then tell it to flow normally once the story gets out of the way a bit. The year is set at 2016, which would be fine if my game was set in 2016 in it's calendar, but it's set in the year 5458 in the game calendar. :P
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
Hey, thanks for chiming in, currently I have no command to hide the clock, I'm surprised I never thought of that, I will update the plugin tomorrow and include that. As for changing time and pausing time, they're there in the help file, but since I'm here I'll help you out now.

TE is the keyword for the TimeEngine, it's case sensitive so ensure it all caps. The next arguments are the time and date in order by hour, minute, day, week month and year. If you don't want to set the hour or minute you can just replace them with an x.
Code:
TE SetTime hour minute day week month year
So in the example below, I will set the time to 18, unfortunately, it has to be 24 hour time for the plugin command to work correctly, so the time I set here is 6:30, then I set the date to Thursday, December 14, 2000.
Code:
TE SetTime 18 30 14 Thursday December 2000
If you don't want to set the time, then you can simply replace them with an x instead, this will skip it if you don't want to set the date and only the time then you can input the time and skip the date altogether, no need for and x for the date.

If you want to setup in-game variables for the current time then you can use the plugin command:
Code:
TE Variables Hour Minute Day Week Month Year
TE once again is the keyword, variables is the second keyword, variables isnot case sensitive so you can set it to
VaRIables if you want lol. Anyways the arguments after that should be the variable number you want to input the time into.
Code:
TE Variables 1 2 3 4 5 6
The example above will set variable 1 2 3 4 5 and 6 to (in order) hour, minute, day, week, month and year.
So variable 1 will be the current hour, variable 2 will be the minute and so on. You only need to do this once(at least I hope I never did extensive testing lol) and those variables should always have the current time and date.

If you want to pause the time altogether then simply use the plugin command

Code:
TE pause true
If you want to unpause simply use this command
Code:
TE pause false
You can also use 'yes' instead of true and 'no' instead of false but it's no big deal lol.

Anyways, I'll have an update tomorrow for the Time Engine to be able to hide and unhide the clock with a plugin command, I'll also be adding a few extra things I thought of, like note tags for maps where you don't want the time to be active, etc.
I also plan on making a demo project for everyone to see how things are done because as of right now you can do a ton of things with the little bit of plugin commands I have available and I plan on showcasing as many things as I can think of.
 

Dad3353

Praised Adventurer
@LTN Games ...

Thanks for the informative update; that's very useful. Just a comment in passing..? These instructions are not in the Help file; they are, however, in the js code of the plug-in itself. No big deal, but not so easy to consult as in the Help file.
Could I also clarify, whilst I'm here, the TE variable part..? I've tried several permutations, but have not struck upon the right one..! Could you give an example, preferably with a screen shot, of affecting the 'Hour' to a Game Variable, such as Variable ID012, please..? I've not managed to get it to work, so must be doing something wrong.
Thanks in advance; this is a very useful system, opening many possibilities.
 

hbn

Towns Guard
Xy$
0.00
My help file descriptions cuts short. It ends at the first part of the email address. Doesn't show anything further. Checking the file the information is there, just my MV isn't displaying it. Probably why it had me so confused. Thanks for the help though.
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
These instructions are not in the Help file; they are, however, in the js code of the plug-in itself. No big deal, but not so easy to consult as in the Help file.
Oh wow! I never realized the instructions never shows up in the actual help section, it seems my email address for donations cut the rest of the help file off because it has an @ symbol in it and this symbol is what tells MV where to look. Well, that is all fixed, I still never uploaded the update I have a couple more things I would like to do before uploading but should be uploaded shortly.
Could I also clarify, whilst I'm here, the TE variable part..? I've tried several permutations, but have not struck upon the right one..! Could you give an example, preferably with a screen shot, of affecting the 'Hour' to a Game Variable, such as Variable ID012, please..? I've not managed to get it to work, so must be doing something wrong
Is it not working for you at all? This is how I do it, and it seems to be working for me. The dialogue window will show the variables after I set them up. Always ensure there is a space in between each argument in the plugin command otherwise my plugin will assume it's all one argument. If you still have issues I would recommend waiting for the update to see if that will work for you.
Screenshot_1.png
Screenshot_2.png
 

Dad3353

Praised Adventurer
...This is how I do it, and it seems to be working for me...
View attachment 4515
View attachment 4517
Yes, that's what I did at first, and collected nothing (just '0' in the \v[1]...). I also tried using my own variables (we should be able to, I assume..?) and collected only '0' in my Variable \v[12].
I'll await update and try again.
(Oh, it's getting close. It's all going to come together soon. Ooh the excitement..! Almost like Christmas..! Sounds of hopping from one foot to another...)
 

hbn

Towns Guard
Xy$
0.00
Does it store it with each update or can I store it, change the time for one scene and then restore it from a variable at a later date? Just need to hide it on this map now, since it is technically a title screen (and have to work out how to 'quit to map' instead of quit to a now redundant title screen. For now though that can wait.



... oh and devise a way of allowing the character to wait for a later time when I allow time to flow naturally. Should be able to do that using a common event, but I'll only be able to change the time, not add one to a day if the time goes past midnight... sorry... I keep adding requests XD
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
Does it store it with each update or can I store it, change the time for one scene and then restore it from a variable at a later date?
The updated version will give you both the static time(or the time it was when you set them) and active time which will always give you the current time. I also implemented a show clock and hide clock which will hide the clock everywhere until you decide to show it again.
The update should be done by end of day.
[doublepost=1473090175,1473017733][/doublepost]Hey everyone, I'm sure you're wondering where this new update is, well, I started making a demo for my Time Engine and Add-ons and I started implementing a few extra features I thought were required, so please be patient while I work out these new mechanics and make sure everything is in working order.
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
Haha, that would be awesome! It should not take too much longer to finish the plugins new features, I expect it to be done early today. The demo, on the other hand, will take a little while as I don't plan on uploading it until I have most features presented within it.
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
LTN Games updated Time Engine with a new update entry:

Major Update

Added active and static time variables. You can setup variables to be updated during gameplay(active) or you can set a one which is static and this will record the current time it is when you set that variable.

Added message codes to retrieve the current time and or date and input into your dialogue.
\STIME - Retrieves standard time
\24TIME - Retrieves army time (Still a bug I'm working out for this one)
\FDATE - Retrieves full date
\SDATE Retrieves abbreviated date.

Parameters are...
Read the rest of this update entry...
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
Do you plan on having an add-on for things like shop hours or harvesting crops once a day?
You betcha, I'm aiming to be finished this weekend, along with my layers plugin. The harvesting crops plugin or "Time Control" is my time travel plugin but in general it allows for more manipulation over the Time Engine, so far I have it set up so you can spawn or activate a self or global switch every hour on a specific minute, every day on a specific hour and every month on a specific day etc etc. I am currently working on adding in the ability to spawn an event every half hour, every hour, every day, every month etc. I also have a few other features in mind that will be a surprise on release day. I'm not 100% sure I'll finish this weekend but it's looking promising, I just want to make sure I work on the kinks and bugs and make sure everything is running smoothly.
You can check out the development thread here: https://rpgmakermv.co/posts/35489/unread
[doublepost=1474682752,1474682572][/doublepost]Also shop hours as it stands is totally doable with the Time Engine alone, simply setup the active variables and do a conditional branch in the event running parallel mode so that if it's 8am and greater then open up shop. So when it reaches 8AM it will activate a switch and the shop will be open. You could also have another event which controls when the shop closes by setting the hour to activate a switch on nd off etc. I plan on releasing a demo soon which has all of this included inside of it.
 

Jodis

Adventurer
Xy$
0.44
Oh thank god for you. I was about ready to pull my hair out. I tried all the others and ether I downloaded an old version or they have not updated to 1.3.1 yet. But I got to the point were you were my last hope. Oh I do understand how long it can take my hubby is a programmer as well. He is working on my quest system.
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
Haha, I'm glad someone is looking forward to it and I'm surprised to hear that other plugin attempts were a fail. Anyway, if you have any suggestions on how you would like my plugin to be setup, drop a message on my development thread.
 
Top