Jump to content


Photo

Playtime Window


  • Please log in to reply
19 replies to this topic

#1 FlipelyFlip

FlipelyFlip

    The Unown

  • Ace Member
  • 42 posts
  • LocationAustria
  • RM Skill - Jack of All Trades

Posted 07 January 2012 - 05:36 PM

Heyey,

I'm posting this script, after I've found no script which do this (:

What does this script do?
The script adds a playtime window to the menu above the gold window.

How to use?
Simply plug'n'play. nothing to customize or anything else (:

Where is the script?
Here we go:

Spoiler


Little addition to this script, you can do it also with variables and you can also reset them. There is no window for. If wanted, just ask (:
Link

Terms of Use
Feel free to use it.
If you want to use it for a commercial RPG-Maker Game, just send me a message to know, there are no problems, I just want to know it (:

Credits
Took my VX-version script and rewrote some methodes to get work with Ace. Took me 5 minutes so not needed you lucky guys ;D

~Flip

Edited by FlipelyFlip, 10 January 2012 - 05:10 PM.

Please do not ask me to write you any scripts or port from VX to Ace,
or to make scritps compatible with other scripts (except for my own scripts).
I will say 99.9999% yes, 'cause I'm very friendly. But you know, I have also
a RL and an own project and I will also work further on them ._.

Stuff I made on VX Ace:

Flip's Actor Restrict Equipment | Woratanas Sprite Mover | Advanced Item Selection v1.0 | Battle Transition V1.0 | Playtime Window

#2 Tobyej

Tobyej

    Advanced Member

  • Ace Member
  • 181 posts
  • LocationAustralia
  • RM Skill - Designer

Posted 08 January 2012 - 06:07 PM

Thanks for this! An under-stated staple for any game I believe. Any chance of this being tracked as a variable(s)? I have no idea how difficult it would be, but it would be very handy indeed.
Project: Gilt Funk

Just to be clear: All my requests are for commercial projects and compatibility with Yanfly's engines is required. Thanks a lot to everyone who's helped so far :)

#3 FlipelyFlip

FlipelyFlip

    The Unown

  • Ace Member
  • 42 posts
  • LocationAustria
  • RM Skill - Jack of All Trades

Posted 09 January 2012 - 06:07 PM

sure I can do (:
there is no problem (:
Just tell me how do you want it? in one variable or splitted in more than 1 variable? ^^
Please do not ask me to write you any scripts or port from VX to Ace,
or to make scritps compatible with other scripts (except for my own scripts).
I will say 99.9999% yes, 'cause I'm very friendly. But you know, I have also
a RL and an own project and I will also work further on them ._.

Stuff I made on VX Ace:

Flip's Actor Restrict Equipment | Woratanas Sprite Mover | Advanced Item Selection v1.0 | Battle Transition V1.0 | Playtime Window

#4 Tobyej

Tobyej

    Advanced Member

  • Ace Member
  • 181 posts
  • LocationAustralia
  • RM Skill - Designer

Posted 10 January 2012 - 05:26 AM

sure I can do (:
there is no problem (:
Just tell me how do you want it? in one variable or splitted in more than 1 variable? ^^

Thank you! I found there is an entire game time variable, but I would love to have one for hours, minutes and seconds, but best of all would be if you could make them stop-watch like where I can reset the number of seconds (or whatever time base) to zero. I know I can reset the variable to zero, but then when it starts to count again it will just jump straight back to the total which I don't want.

Thanks heaps!

EDIT: But I guess the tricky part is resetting the time measurement for the sake of their own variables without actually resetting it for the overall game time displayed.

Edited by Tobyej, 10 January 2012 - 05:29 AM.

Project: Gilt Funk

Just to be clear: All my requests are for commercial projects and compatibility with Yanfly's engines is required. Thanks a lot to everyone who's helped so far :)

#5 FlipelyFlip

FlipelyFlip

    The Unown

  • Ace Member
  • 42 posts
  • LocationAustria
  • RM Skill - Jack of All Trades

Posted 10 January 2012 - 05:59 AM

I'm trying my best (:

(challenge accepted)
Please do not ask me to write you any scripts or port from VX to Ace,
or to make scritps compatible with other scripts (except for my own scripts).
I will say 99.9999% yes, 'cause I'm very friendly. But you know, I have also
a RL and an own project and I will also work further on them ._.

Stuff I made on VX Ace:

Flip's Actor Restrict Equipment | Woratanas Sprite Mover | Advanced Item Selection v1.0 | Battle Transition V1.0 | Playtime Window

#6 regendo

regendo

    Ruler of Worlds

  • Ace Member
  • 877 posts
  • LocationGermany
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 10 January 2012 - 07:13 AM

This should do.
Use #reset_time(sec) to reset the displayed time only by sec (use "total" to reset to zero).

Oh, and Flipely. Sorry for me providing a solution when it's your script...
Spoiler

Stay up-to-date with all of my scripts and my ToU on github! - /regendo/rgss3-scripts
@bStefann

#7 Tobyej

Tobyej

    Advanced Member

  • Ace Member
  • 181 posts
  • LocationAustralia
  • RM Skill - Designer

Posted 10 January 2012 - 07:20 AM

Thanks, but I got this error:

Script 'Time Variables' line 7: NameError occurred
undefined method 'refresh' for class 'object'
Project: Gilt Funk

Just to be clear: All my requests are for commercial projects and compatibility with Yanfly's engines is required. Thanks a lot to everyone who's helped so far :)

#8 regendo

regendo

    Ruler of Worlds

  • Ace Member
  • 877 posts
  • LocationGermany
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 10 January 2012 - 07:23 AM

Argh, I forgot to add that you have to either put this directly into Flipely's Window_PlayTime script or put it between this code:
class Window_PlayTime
end

Stay up-to-date with all of my scripts and my ToU on github! - /regendo/rgss3-scripts
@bStefann

#9 Tobyej

Tobyej

    Advanced Member

  • Ace Member
  • 181 posts
  • LocationAustralia
  • RM Skill - Designer

Posted 10 January 2012 - 07:31 AM

Ah, perhaps it's best if you merge it for me, it seems I REALLY don't know what I'm doing xD Errors in a different way no matter what I tried.
Project: Gilt Funk

Just to be clear: All my requests are for commercial projects and compatibility with Yanfly's engines is required. Thanks a lot to everyone who's helped so far :)

#10 regendo

regendo

    Ruler of Worlds

  • Ace Member
  • 877 posts
  • LocationGermany
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 10 January 2012 - 07:35 AM

Simply add my edit in one of these two ways:
1) (you'll have to do this after adding Flipely's script)
class Window_PlayTime
<<enter_my_script_here>>
end
2) Add Flipely's script.
Add my script just above the very last
end

Stay up-to-date with all of my scripts and my ToU on github! - /regendo/rgss3-scripts
@bStefann

#11 Tobyej

Tobyej

    Advanced Member

  • Ace Member
  • 181 posts
  • LocationAustralia
  • RM Skill - Designer

Posted 10 January 2012 - 08:29 AM

Hold on, do I have to edit any of the values in your script before it works? I can get the game to start but it breaks when I go to open the menu with a TypeError on line 15: nil can't be coerced into a Fixnum. Sorry for all this, but I just can't get it even when I follow exactly what you say.
Project: Gilt Funk

Just to be clear: All my requests are for commercial projects and compatibility with Yanfly's engines is required. Thanks a lot to everyone who's helped so far :)

#12 regendo

regendo

    Ruler of Worlds

  • Ace Member
  • 877 posts
  • LocationGermany
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 10 January 2012 - 01:05 PM

Your error sounds like you didn't add my script at the right place. Therefore, initialize wasn't changed and @offset wasn't set, thus resulting in an error at method reset_time.
I quickly joined both scripts for you, I hope Flipely doesn't have a problem with that.
€: Actually, it was my fault. I didn't realize that initialize calls refresh method. Anyways, I just moved the @offset = 0 one line higher and it should work now.

Spoiler

Edited by regendo, 10 January 2012 - 01:29 PM.

Stay up-to-date with all of my scripts and my ToU on github! - /regendo/rgss3-scripts
@bStefann

#13 Tobyej

Tobyej

    Advanced Member

  • Ace Member
  • 181 posts
  • LocationAustralia
  • RM Skill - Designer

Posted 10 January 2012 - 01:27 PM

Gah, got this error:

Name Error on line 64,
undefined method 'refresh' for class 'Scene_Menu'

It's the only script on a fresh project :(
Project: Gilt Funk

Just to be clear: All my requests are for commercial projects and compatibility with Yanfly's engines is required. Thanks a lot to everyone who's helped so far :)

#14 regendo

regendo

    Ruler of Worlds

  • Ace Member
  • 877 posts
  • LocationGermany
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 10 January 2012 - 01:29 PM

Oops! Edited above post, should work now.
Stay up-to-date with all of my scripts and my ToU on github! - /regendo/rgss3-scripts
@bStefann

#15 Tobyej

Tobyej

    Advanced Member

  • Ace Member
  • 181 posts
  • LocationAustralia
  • RM Skill - Designer

Posted 10 January 2012 - 02:47 PM

Alright! Got it to start without crashing and display time, but how exactly do I make the variable reset? I have the game_variables set to 28, 29, 30 which are the variables I want to use in my game, I have 28 set to 'game time' but when I activate the #reset_time(sec) code, the variable doesn't chang eand just keeps on counting.

Ah! Am I meant to link the variable to your code via script in the variable options?

Es tut mir leid ueber die kodf schmerz, ich bin neu zu RM. Und ich habe Deutsch gelernt fuer 2-3 jahre, aber nur fuer spass :) Gehe ich da im 2013.
Project: Gilt Funk

Just to be clear: All my requests are for commercial projects and compatibility with Yanfly's engines is required. Thanks a lot to everyone who's helped so far :)

#16 regendo

regendo

    Ruler of Worlds

  • Ace Member
  • 877 posts
  • LocationGermany
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 10 January 2012 - 02:58 PM

Kein Problem :) Ehrlich gesagt ist dein Anfänger-Deutsch besser als das Englisch von vielen Leuten hier...
Aber wir sollten lieber wieder zum Englischen zurückkehren, bevor sich noch wer beschwert.
Viel Spaß in Deutschland nächstes Jahr :thereisnothumbsupsmiley:

First, you need to go to the script and find the "variable" method where you change the $game_variables to whichever you want to use.
Then you call Window_PlayTime#reset_time like this
@what_did_you_call_the_window.reset_time(3600)
This displays one hour less than it actually is.
Replace "@what_did_you_call_the_window" with the name, as you can find it where you create the window.
Example taken from the code:
@playtime_window = Window_PlayTime.new(0, 308)
In this case, it's @playtime_window.reset_time(seconds)
Stay up-to-date with all of my scripts and my ToU on github! - /regendo/rgss3-scripts
@bStefann

#17 FlipelyFlip

FlipelyFlip

    The Unown

  • Ace Member
  • 42 posts
  • LocationAustria
  • RM Skill - Jack of All Trades

Posted 10 January 2012 - 05:05 PM

@Tobyej so I got it :D

I have the script done (:

It's easy working (:

Spoiler

Instructions how it works is in the script. It's just plug and play and don't need the PlayTime Window Script above (:

@regendo: thx für die Vertretung. Hab deins zwar nich getestet, dürfte aber wsl auch funken, wenn ich mich jetz nich irre^^ ;)
(for all non-german speakers: thx for the representation. I haven't tested your script-edit yet, but I think it should work either^^

~Flip
Please do not ask me to write you any scripts or port from VX to Ace,
or to make scritps compatible with other scripts (except for my own scripts).
I will say 99.9999% yes, 'cause I'm very friendly. But you know, I have also
a RL and an own project and I will also work further on them ._.

Stuff I made on VX Ace:

Flip's Actor Restrict Equipment | Woratanas Sprite Mover | Advanced Item Selection v1.0 | Battle Transition V1.0 | Playtime Window

#18 Knightmare

Knightmare

    Knight of the Night

  • Ace Member
  • 589 posts
  • LocationCentral USA
  • RM Skill - Designer

Posted 10 January 2012 - 07:21 PM

I don't know why I thought of a bunch of kids jumping around and screaming when I read "Play time window". But little snippets like this are always welcome, thanks.
-Slapping people around and calling them Susan since 1998.

Chuck Norris facts and RPG Maker.
Spoiler


Maze of the Lost Progress
Spoiler

#19 Tobyej

Tobyej

    Advanced Member

  • Ace Member
  • 181 posts
  • LocationAustralia
  • RM Skill - Designer

Posted 10 January 2012 - 08:12 PM

Hell yeah! This works a treat ^^ It's something that I am totally surprised is missing from the editor in the first place, considering how staple it is for almost every game made after the 80s (I guess they tried with the timer thing, but it's just not right at all, especially with the number in the corner of the screen).

Thanks guys!
Project: Gilt Funk

Just to be clear: All my requests are for commercial projects and compatibility with Yanfly's engines is required. Thanks a lot to everyone who's helped so far :)

#20 BigDon

BigDon

    Big Don

  • Ace Member
  • 4 posts
  • LocationIn some dungeon making a game ;) Oh, Country you mean? Canada.
  • RM Skill - Jack of All Trades

Posted 07 March 2013 - 07:25 PM

Great little script. I appreciate you sharing it.

It really adds a nice looking feature to my new game I'm making.

Many thanks and keep up the good work. :)


Blade of Rage

BoR_Logo_125x125a.png

A medieval fantasy themed RPG.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users