Playtime Window

Discussion in 'JS Plugin Releases (RMMV)' started by JGreene, May 10, 2017.

  1. JGreene

    JGreene Veteran Veteran

    Messages:
    375
    Likes Received:
    283
    First Language:
    English
    Primarily Uses:
    RMMV
    Introduction:

    This is a simple plugin which allows you to have a playtime window in your menu, as indicated by the screenshot below:

    [​IMG]
    It will work with any resolution. Mine is 912x720, just for reference. This plugin is fully compatible with my Menu Location plugin. If you need to change the location/size of the window, I would recommend using the Super Tools Engine by SumRndmDde.

    This plugin also works with Yanfly Engine Plugins, which can be found @ http://yanfly.moe

    Enjoy!

    Script:

    Dropbox

    Credit:

    Not required, but much appreciated!

    Terms of use:

    Free to use in any project, even commercial ones.
     
    #1
  2. kovak

    kovak Silverguard Veteran

    Messages:
    1,245
    Likes Received:
    1,549
    Location:
    I'm from the Hu3
    First Language:
    PT - EN
    Primarily Uses:
    RMMV
    this is so good that i'm in tears now.
     
    #2
    JGreene likes this.
  3. Kai1994

    Kai1994 Warper Member

    Messages:
    3
    Likes Received:
    1
    First Language:
    Dutch
    Primarily Uses:
    RMMV
    Hello. I have the following issue with the plugin.

    [​IMG]

    It's supposed to be abit more to the left right? I'm not sure what's causing this but otherwise really cool plugin and thanks for uploading!
     
    #3
  4. JGreene

    JGreene Veteran Veteran

    Messages:
    375
    Likes Received:
    283
    First Language:
    English
    Primarily Uses:
    RMMV
    Sorry about that. I was testing something on my game and didn't notice the change I had made as it was overwritten by another plugin.

    You can download the new version, or simply replace line 35 with this:

    this._playtimeWindow.x = 0;

    :D
     
    #4
  5. Kai1994

    Kai1994 Warper Member

    Messages:
    3
    Likes Received:
    1
    First Language:
    Dutch
    Primarily Uses:
    RMMV
    Cheers! Works perfect now thank you! Love it :)
     
    #5
    JGreene likes this.
  6. ydoolb

    ydoolb Veteran Veteran

    Messages:
    37
    Likes Received:
    17
    Well, thank you for this script)
     
    #6
    JGreene likes this.
  7. Kisai

    Kisai Veteran Veteran

    Messages:
    35
    Likes Received:
    17
    First Language:
    English
    Primarily Uses:
    N/A
    This, and the Menu Location plugin don't really work with Yanfly's scripts if you have his menu alignment set to "right". As in, the menu commands are on the right side of the screen. It works perfectly fine if it's left to the default "left" side, but if you switch it to the right side, these plugins don't really work...

    Well, editing the script in notepad, I managed to rearrange the windows so that the command, gold, playtime, and location windows are on the right side, with the status window on the left. ^^;
     
    Last edited: May 20, 2017
    #7
    JGreene likes this.
  8. JGreene

    JGreene Veteran Veteran

    Messages:
    375
    Likes Received:
    283
    First Language:
    English
    Primarily Uses:
    RMMV
    Oh, I know. I just meant that, in terms of compatibility, they work together. I just threw both of those plugins together real quick and didn't setup parameters. It's also why I mentioned using the Super Tools Engine by SRD. It's a great plugin that allows you to move and resize your windows, among other things. You should check it out! :wink:
     
    #8
    Kisai likes this.
  9. Kisai

    Kisai Veteran Veteran

    Messages:
    35
    Likes Received:
    17
    First Language:
    English
    Primarily Uses:
    N/A
    It probably would've been more efficient than repositioning the windows through trial and error, so I will. ^^ And yeah, as far as compatibility, it seems to work okay, no crashing or anything. And it's possible to make the windows visible anyway, so that's good. Anyway, as someone who desperately wanted these two staples of an RPG menu, thanks. ^_^
     
    #9
    JGreene likes this.
  10. Cinnamon

    Cinnamon Veteran Veteran

    Messages:
    605
    Likes Received:
    209
    First Language:
    English
    I love those icons in front of the Main Menu options, where can I find that?
     
    #10
    JGreene likes this.
  11. JGreene

    JGreene Veteran Veteran

    Messages:
    375
    Likes Received:
    283
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm using a plugin called Command Icons by Atreyo Ray. You can find it here.
     
    #11
    Cinnamon likes this.
  12. Animebryan

    Animebryan Feels like I'm slowly dying! Veteran

    Messages:
    337
    Likes Received:
    154
    Location:
    Marysville, CA
    First Language:
    English
    Primarily Uses:
    RMMV
    Sorry to necropost but I'm having a problem with this plugin. I did a LP of my demo & couldn't help but notice that the playtimer was way behind the actual playtime. After completing my LP in just under 3 1/2 hours the playtime said it was just over an hour. Either the playtimer is too slow or it wasn't counting when its supposed to. Here's my video of it. Just skip to 3:18:40 the end when you can see the menu & compare the playtime to the time on the video itself.
     
    Last edited: Feb 18, 2019
    #12
  13. JGreene

    JGreene Veteran Veteran

    Messages:
    375
    Likes Received:
    283
    First Language:
    English
    Primarily Uses:
    RMMV
    Sorry you're having issues with it @Animebryan . The timer counts when it's supposed to, every second. It's running at 1/3 speed on your game for whatever reason. There might be a plugin you're using that conflicts with it. Any external lag etc wouldn't slow it down.
     
    #13
  14. Animebryan

    Animebryan Feels like I'm slowly dying! Veteran

    Messages:
    337
    Likes Received:
    154
    Location:
    Marysville, CA
    First Language:
    English
    Primarily Uses:
    RMMV
    So, its internal lag? I can't imagine any plugin interfering with it.
     
    #14
  15. JGreene

    JGreene Veteran Veteran

    Messages:
    375
    Likes Received:
    283
    First Language:
    English
    Primarily Uses:
    RMMV
    The refresh function is supposed to be on a 1 second timer. I know that can be changed elsewhere, but I wouldn't recommend that. Sometimes browsers can slow down JS functions like the timer. But since you're using the MV executable, I'm inclined to say it's either another plugin or too many plugins.
     
    #15
  16. Animebryan

    Animebryan Feels like I'm slowly dying! Veteran

    Messages:
    337
    Likes Received:
    154
    Location:
    Marysville, CA
    First Language:
    English
    Primarily Uses:
    RMMV
    Is there a way to speed it up to compensate?
     
    #16
  17. JGreene

    JGreene Veteran Veteran

    Messages:
    375
    Likes Received:
    283
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm not sure. I've never tried that.
     
    #17
  18. Animebryan

    Animebryan Feels like I'm slowly dying! Veteran

    Messages:
    337
    Likes Received:
    154
    Location:
    Marysville, CA
    First Language:
    English
    Primarily Uses:
    RMMV
    Is it at least possible?
     
    #18
  19. JGreene

    JGreene Veteran Veteran

    Messages:
    375
    Likes Received:
    283
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm sure it is, but I wouldn't know where to begin. Try looking at the coding of some other timer plugins and see if you can tinker with anything to achieve the desired effect.
     
    #19
  20. Animebryan

    Animebryan Feels like I'm slowly dying! Veteran

    Messages:
    337
    Likes Received:
    154
    Location:
    Marysville, CA
    First Language:
    English
    Primarily Uses:
    RMMV
    I don't have any experience in coding either so I wouldn't know what to look for. I do know that the games made with RPG Maker naturally have a in-game timer that's referenced deep in conditional branches, yet ironically, there's no way to display it by default. So I imagine most playtime plugins are simply taking that built-in timer & finding a way to display it in a window.
     
    #20

Share This Page