Group: Member
Posts: 4
Type: Scripter
RM Skill: Beginner
I've made a mistake and posted this in a wrong section! Please, move this topic to RGSS2 Script Support.
Hello. I am currently working on a game with a feature of displaying current game time in player's menu. It should be shown in a window, right above gold. I have wrote this script and called it Window_Time:
CODE
#============================================================================== # ** Window_Time #------------------------------------------------------------------------------ # This window displays playtime on the menu screen. #==============================================================================
Now when I press ESC in game, the window with text 'Game time: 0h:0min" is shown for a second and then it just disappears... How to make it work? Thanks in advance for any answers!
This post has been edited by Hoodlum: Jan 15 2012, 10:47 AM
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: Member
Posts: 4
Type: Scripter
RM Skill: Beginner
Thanks for your very fast reaction! I've tried it and reult is the same - the window disappears very fast. Also, after closing the menu, game crashes with following error:
CODE
Script 'Window_Base' line 37: RGSSError occurred. disposed window
Line 37 is here:
CODE
def dispose self.contents.dispose # Line 37 super end
Hmm, any other ideas?
This post has been edited by Hoodlum: Jan 15 2012, 10:58 AM
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: Member
Posts: 4
Type: Scripter
RM Skill: Beginner
Yes, it seems that Jet's Time System is ruining everything... It's a shame, 'cause I really like this script and can't find anything in advantage. Well, anyway, thanks for your help, there is no problem anymore, although if someone knows how to make it work with Jet's Time System it would be really great.
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: Member
Posts: 4
Type: Scripter
RM Skill: Beginner
I wasn't expecting such helpfulness, it makes me nicely surprised (in Poland, where I live, it would be hard to find someone like you )! Again thank you very much, but this time I need to refuse - I don't want to bother you with it, since it surely would take some amount of time. Also I would wish to learn RGSS by fixing most of the problems myself. I am advanced scripter in Pawn language (used in GTA: San Andreas Multiplayer) and I know how to think like programmer if you know what I mean. ;d I don't read any tutorials, just look at code, analyze it and try to change it for my needs. So I've removed Jet's Time System and replaced it with my own, based on events and few commands in Game_Interpreter class. The window now works and I've even managed to draw an hourglass icon next to the time amount!
Group: Local Mod
Posts: 1,348
Type: Scripter
RM Skill: Skilled
Rev Points: 5
Great, I'm glad it's all working for you! And thanks for the compliment lol, if you need any later help in scripting, throw me a PM and I'll be more than happy to help you out (Though it seems you're already progressing very well )
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One