Orange Time System

Discussion in 'JS Plugin Releases (RMMV)' started by Hudell, Oct 24, 2015.

  1. Hatake-hime

    Hatake-hime Squishy Cat Summoner Veteran

    Messages:
    48
    Likes Received:
    16
    Location:
    Scotland
    First Language:
    English
    ^ Hey, thanks but the common event I have now works fine with the varible hours = 6, its just I want a script to change time when my player goes to bed.


    I want them to wake up at like 5.59 so the event resets as soon as they wake basically.


    However if I use the code mentioned before to change the time to 6am, it doesn't register it as a new day, it still considers it day 1.


    I would like it to register that its a new day.


    Heres my code: (super simple) (go to sleep, +1 day, go to six next day.)


    but once it skips time, it reverts the day back to day 1.

    feafe.png
     
  2. Soulnet

    Soulnet Veteran Veteran

    Messages:
    198
    Likes Received:
    97
    First Language:
    English
    Go back one page. I asked Hudell the same thing. The code is there in their answer! :)  
     
    Last edited by a moderator: Jun 29, 2016
  3. Hatake-hime

    Hatake-hime Squishy Cat Summoner Veteran

    Messages:
    48
    Likes Received:
    16
    Location:
    Scotland
    First Language:
    English


    You saved me an hour of frustration, thanks so much! :D   <3


    This may be a harder question but, do you know how to have the time change time to like, 5:30 instead of just 6? Its okay if not!
     
    Last edited by a moderator: Jun 29, 2016
  4. milk

    milk Veteran Veteran

    Messages:
    44
    Likes Received:
    45
    First Language:
    english
    can someone explain in noob terms how I change the clock to 12 hours? i downloaded the demo but i dont see where it explains how to do that....
     
  5. dyaskur

    dyaskur Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    Java
    this time system is very lag if use mobile android, any solutions?


    i hope this system have lite version, which update every secon not microsec, i think that will make fast.
     
  6. highlord90

    highlord90 Aspiring Creator Veteran

    Messages:
    32
    Likes Received:
    10
    Location:
    Scotland
    First Language:
    English
    I've downloaded the plugins reccomended to run a day and night cycle but I can't get it to work, I set it to real time and put my own clock forward but night never came :/ Any chance at a helping hand?
     
  7. highlord90

    highlord90 Aspiring Creator Veteran

    Messages:
    32
    Likes Received:
    10
    Location:
    Scotland
    First Language:
    English


    I used a clock hud to make sure time was passing and it is but night still doesn't happen :(
     
  8. CyndaBytes

    CyndaBytes Creator and Destroyer of Worlds Veteran

    Messages:
    89
    Likes Received:
    41
    Location:
    Ade, Hell
    First Language:
    Italian
    Is it possible to stop this command?
     
  9. BigToastie

    BigToastie Veteran Veteran

    Messages:
    312
    Likes Received:
    162
    Location:
    The Kingdom of Britania
    and how do I edit the clock / clock window etc? to look more like a GUI clock rather than floating text in the left corner?
     
    Last edited by a moderator: Jul 27, 2016
  10. DrunkNescafe

    DrunkNescafe Villager Member

    Messages:
    13
    Likes Received:
    0
    First Language:
    norwegian
    I’m currently using this add-on/plugin.


    Yep-engiencore


    Yep-savecore.


    Orange hud


    Orange Time System


    Orange hud clock/date


    Orange timesystem to variable.


    At the start of my game I use the script OrangeTimeSystem.on('changeHour', 1); where once an hour some stat change. (Works perfectly) the problem is when I save a game the script won’t load when I load a game.  The Yep savecore isn’t the problem have turned it off and have the same problem when its off.


    How can this be fixed?
     
  11. Martin

    Martin Veteran Veteran

    Messages:
    123
    Likes Received:
    27
    First Language:
    swe
    Primarily Uses:
    RMMV
    Im getting a error of : Length Undefined. It is taking me to OrangeSystem.js line 1175: if (args.length < 4) return;


    What can be the cause of this? It was working just minutes ago.

    EDIT: I fixed it by putting it at top of my plugin list
     
    Last edited by a moderator: Aug 23, 2016
  12. Maidlyn

    Maidlyn Veteran Veteran

    Messages:
    354
    Likes Received:
    114
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    I feel amazingly stupid right now.  So, newbie question, but, does this actually display the time or no? :unsure:  
     
  13. Martin

    Martin Veteran Veteran

    Messages:
    123
    Likes Received:
    27
    First Language:
    swe
    Primarily Uses:
    RMMV
    If you add the OrangeHud it can display your timevariables :)
     
  14. Cute Fox Productions

    Cute Fox Productions Veteran Veteran

    Messages:
    35
    Likes Received:
    7
    First Language:
    Scottish
    Thank you so much for creating this! I have been hunting for something like this for ages.
     
  15. Cute Fox Productions

    Cute Fox Productions Veteran Veteran

    Messages:
    35
    Likes Received:
    7
    First Language:
    Scottish
    Is there a video one could watch on how to use these amazing plugins? As I'd like a certain character to change dialogue and for a certain event to change with the time of day. For example in the morning he greets his wife with breakfast and at night dinner
     
    Volimance likes this.
  16. Rivingtondown

    Rivingtondown Villager Member

    Messages:
    13
    Likes Received:
    4


    I'd love to take advantage of this script to return the time different to the player, but instead of changing a Switch in X amount of hours I'd like to use it to change a Self Switch.


    Unfortunately I'm having a hard time figuring out what the time.callback in the above script should be set to, after digging through Orange Time System js and Orange Event Manager, I'm guessing something like this:


    Change:


    time.callback =  'S' + switchId + ',FALSE';


    To


    time.callback =  'SS' + mapID + ',' + eventID + ',' + switchLetter + ',TRUE';


    Obviously while also passing eventID, mapID, and switchLetter variable as a parameter into the function. Is that incorrect? Am I missing something else?


    Any guidance would be greatly appreciated.
     
    Last edited by a moderator: Oct 17, 2016
  17. Hudell

    Hudell Dog Lord Veteran

    Messages:
    3,323
    Likes Received:
    2,969
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV


    That's right. Did you get any error when you tried?
     
  18. Rivingtondown

    Rivingtondown Villager Member

    Messages:
    13
    Likes Received:
    4


    Well, I was getting a "timestamp not defined" error but I found you hadn't actually set that variable in the $.getTimeLeft function. I took the liberty to just set that value to the variableID value and it fixed that issue.


    Correct me if I'm wrong but I was under the assumption the $.registerCommand could be run in-place of the plugin command due to your above instructions. However, I'm still required to use the plugin command in addition to that script if I hope of the switch to actually toggle. At least after making the minor change I mentioned above.


    Thanks for your help Hudell :)
     
    Last edited by a moderator: Oct 18, 2016
  19. Hudell

    Hudell Dog Lord Veteran

    Messages:
    3,323
    Likes Received:
    2,969
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    Oh right, it was missing this line:


    var timestamp = $gameVariables.value(variableId);



    Yes, it's supposed to be run in-place of the plugin command. But if it didn't work, you can use the plugin command and remove those two lines instead:

    Code:
        time.callback = 'S' + switchId + ',FALSE';
        OrangeTimeSystem.registerAfterTimeEvent(time);
     
  20. luiscesjr

    luiscesjr Veteran Veteran

    Messages:
    117
    Likes Received:
    11
    First Language:
    Portuguese
    Hudell, could you help another fellow brazilian? Lol


    I simply can't download your demo, could you have it uploaded to another mirror?


    Your server does not support resuming and it always breaks. 


    I've been trying to download it for 5 days now, it's the only reason I'm asking.


    Or maybe someone who has the latest demos, if anybody could upload it...


    Obrigado!
     

Share This Page