Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sat May 25, 2013 10:12 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri May 18, 2012 12:33 am 
Newbie

Joined: Thu Mar 08, 2012 12:01 pm
Posts: 7
Location: Somewhere around here...lemme look...
Projects: Helga's Cheese Festival
This little annoyance has been bothering me, pretty much since the very beginning of my project... and now, as I'm getting closer and closer to completion... It's still an issue that refuses to go away.

For my splash screen, which I hope you all know, appears as soon as the user opens to game to play, then fades into the menu... I got the code straight out of the cookbook...

Code:
label splashscreen:
    $ renpy.pause(0)
    scene black
    with Pause(0.5)
   
    show splash
    with dissolve
    with Pause(2.0)
   
    scene black
    with dissolve
    with Pause(1.0)


The only difference is mine has a sound clip that plays through it...

Code:
label splashscreen:
   
    scene black
    with fade
    with Pause(1.0)
   
    show opening pic
    play sound "OPENINGSONG.wav"
    with fade
    with Pause(5.0)


    scene black
    with fade
    with Pause(1.0)
    return


Now here's my big issue. Over and over and over again I've seen people claim the solution to insure that people CANNOT skip a splash screen, or a cut scene, or a movie... whatever you've got... is this:

Code:
$ renpy.pause(0, hard=True)
Then you write out how long it's suppose to pause for and all your problems are solved... Okay, so I must be missing something major here because every time I try to use this helpful little code, it never works. If I put it at the beginning, it pauses on a black screen for 5 seconds, THEN plays my splash screen which I can still skip... And if I put it in before the return code, I can still skip the splash screen but it pauses on another black screen before it fades off into the menu.

Is it because my splash screen isn't a movie or something? Is it because it uses three different images (kind of...)

Basically, can someone please tell me the best way to have a NON-SKIP-ABLE splash screen, with sound?

Please? PLEASE?!


Top
 Profile Send private message  
 
PostPosted: Fri May 18, 2012 12:21 pm 
Miko-Class Veteran
User avatar

Joined: Mon Feb 06, 2012 9:50 pm
Posts: 722
Location: NYC
Projects: Icebound
Organization: Fastermind Games
It works for me. You can just replace the pause commands in your animation like so:

Code:
label splashscreen:
    scene black
    with Pause(0.5, hard=true)
   
    show splash
    with dissolve
    with Pause(2.0, hard=true)
   
    scene black
    with dissolve
    with Pause(1.0, hard=true)

_________________
ImageImage


Top
 Profile Send private message  
 
PostPosted: Sat May 19, 2012 12:25 am 
Newbie

Joined: Thu Mar 08, 2012 12:01 pm
Posts: 7
Location: Somewhere around here...lemme look...
Projects: Helga's Cheese Festival
I put in exactly what you suggested... Up once again problems occured...

Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 226, in script
  File "game/script.rpy", line 226, in python
NameError: name 'true' is not defined

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\execution.py", line 265, in run
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\ast.py", line 1001, in execute
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\python.py", line 1009, in py_eval
  File "game/script.rpy", line 226, in <module>
NameError: name 'true' is not defined


And when I write out as hard=True instead of hard=true I get...

Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 226, in script
Exception: Style property hard is unknown.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\execution.py", line 265, in run
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\ast.py", line 1008, in execute
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\exports.py", line 887, in with_statement
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\display\core.py", line 1502, in do_with
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\display\core.py", line 1803, in interact
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\display\core.py", line 2006, in interact_core
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\curry.py", line 38, in __call__
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\display\transition.py", line 76, in __init__
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\display\transition.py", line 38, in __init__
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\display\core.py", line 127, in __init__
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\style.py", line 810, in __init__
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\style.py", line 629, in build_style
  File "C:\Documents and Settings\Owner.FMA\Desktop\renpy-6.13.12\renpy\style.py", line 507, in expand_properties
Exception: Style property hard is unknown.


Top
 Profile Send private message  
 
PostPosted: Sat May 19, 2012 1:17 am 
Miko-Class Veteran
User avatar

Joined: Mon Feb 06, 2012 9:50 pm
Posts: 722
Location: NYC
Projects: Icebound
Organization: Fastermind Games
Hmm, that's lame, apparently the Pause parameter doesn't accept that.

You should do this instead:

Code:
show splash with dissolve
$ renpy.pause(2, hard=true)


The problem, I believe, was that you put it before the relevant code happened.

_________________
ImageImage


Top
 Profile Send private message  
 
PostPosted: Sat May 19, 2012 1:41 am 
Newbie

Joined: Thu Mar 08, 2012 12:01 pm
Posts: 7
Location: Somewhere around here...lemme look...
Projects: Helga's Cheese Festival
Yes! I got it! Thank you very much... It feels like an annoying weight has been lifted from my shoulders!


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group