Code doesn't work

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Message
Author
Airetta
Regular
Posts: 25
Joined: Sat Apr 09, 2011 12:00 pm
Projects: Miracle Days: YourLife VS The Reality
Contact:

Code doesn't work

#1 Post by Airetta »

i have put these code to my game:

Code: Select all

    scene opening01
    with fade
    pause 5.0
but when i test the game it doesn't work

can you help me maybe i have erase some code?
Sorry guys, my English is so bad :D

My Blogsite: http://utysama.aoindonesia.net/
Miracle Days: YourLife VS TheReality: http://lemmasoft.renai.us/forums/viewto ... 5&p=129221

Eliont
Regular
Posts: 111
Joined: Thu Aug 06, 2009 6:51 am
Completed: Begin of Evangelion, SAO - Smile of the black cat, SAO - Project "Ceramic Heart", Time for Dragons
Location: Russia
Contact:

Re: Code doesn't work

#2 Post by Eliont »

Where you place this code?

Code: Select all

# The game starts here.
label start:
    show cursorPosition at bottom
    show screen exitButton
    # call newgame
    scene bg main 
    with fade
    pause 5.0
Works.
May be pause too long?

Blue Lemma
Forum Founder
Posts: 2005
Joined: Sat Jan 25, 2003 2:32 pm
Completed: ToL, Shoujo Attack!, Lemma Ten
Projects: [RETIRED FROM FORUM ADMINISTRATION - CONTACT PYTOM WITH ISSUES]
Contact:

Re: Code doesn't work

#3 Post by Blue Lemma »

I don't think that code alone is buggy. Is opening01 defined somewhere? What error do you get (does the game run, just not how you expected, or does it not even start and just gives you a lint.txt that shows errors?)
“Among those who dislike oppression are many who like to oppress.”
- Napoleon Bonaparte


I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )

Airetta
Regular
Posts: 25
Joined: Sat Apr 09, 2011 12:00 pm
Projects: Miracle Days: YourLife VS The Reality
Contact:

Re: Code doesn't work

#4 Post by Airetta »

@eliont i think i haven't place that code yet o_O amI have to?
i don't think pause is too long cause i copas it from tutorial (if i remember correctly)
@blue lemma opening01 is exactly on the game's folder. the problem i get is the code to makes movement to character doesn't work (like when i place 'dissolve', the character doesn't arrived with dissolve effect) the pause is also doesn't work.

by the way my english is suck but i hope you understand what iam saying :D
Sorry guys, my English is so bad :D

My Blogsite: http://utysama.aoindonesia.net/
Miracle Days: YourLife VS TheReality: http://lemmasoft.renai.us/forums/viewto ... 5&p=129221

Blue Lemma
Forum Founder
Posts: 2005
Joined: Sat Jan 25, 2003 2:32 pm
Completed: ToL, Shoujo Attack!, Lemma Ten
Projects: [RETIRED FROM FORUM ADMINISTRATION - CONTACT PYTOM WITH ISSUES]
Contact:

Re: Code doesn't work

#5 Post by Blue Lemma »

It's a little hard to tell exactly what you're trying to do. Try:

Code: Select all

scene opening01 with fade
or

Code: Select all

scene opening01 with dissolve
instead of putting the "scene" and "with" on different lines.

You might also try naming your scenes like:

Code: Select all

image bg opening01 = "blahblah.png"
instead of

Code: Select all

image opening01 = "blahblah.png"
and then use the scene statement like:

Code: Select all

scene bg opening01
which creates a sort of "bg" layer if I'm not mistaken.

Are you trying to make the dissolve/fade take 5 seconds? Or do you want to pause 5 seconds after? Is there a character fading at the same time?

I'd really need more of the surrounding code to help you more :?
“Among those who dislike oppression are many who like to oppress.”
- Napoleon Bonaparte


I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )

Airetta
Regular
Posts: 25
Joined: Sat Apr 09, 2011 12:00 pm
Projects: Miracle Days: YourLife VS The Reality
Contact:

Re: Code doesn't work

#6 Post by Airetta »

Code: Select all

scene opening01 with fade
it doesn't work either :<

Code: Select all

image bg opening01 = "blahblah.png"
it has been like that since beginning :<
Are you trying to make the dissolve/fade take 5 seconds? Or do you want to pause 5 seconds after? Is there a character fading at the same time?
err sorry i don't really understand, can you use more simple language?

i can send you the code file if you want :D
Sorry guys, my English is so bad :D

My Blogsite: http://utysama.aoindonesia.net/
Miracle Days: YourLife VS TheReality: http://lemmasoft.renai.us/forums/viewto ... 5&p=129221

User avatar
The CRxTR
Regular
Posts: 56
Joined: Sat Apr 18, 2009 4:55 am
Projects: "Project Fareena"
Organization: Cyclohexane Games
Tumblr: crxtrdude
Github: crxtrdude
itch: crxtrdude
Discord: CRxTRDude#9493
Contact:

Re: Code doesn't work

#7 Post by The CRxTR »

Yeah more better

You send the "script.rpy" that way we can know what is missing...
CRxTR

Airetta
Regular
Posts: 25
Joined: Sat Apr 09, 2011 12:00 pm
Projects: Miracle Days: YourLife VS The Reality
Contact:

Re: Code doesn't work

#8 Post by Airetta »

The CRxTR wrote:Yeah more better

You send the "script.rpy" that way we can know what is missing...
coming :D

check your pm
Sorry guys, my English is so bad :D

My Blogsite: http://utysama.aoindonesia.net/
Miracle Days: YourLife VS TheReality: http://lemmasoft.renai.us/forums/viewto ... 5&p=129221

Blue Lemma
Forum Founder
Posts: 2005
Joined: Sat Jan 25, 2003 2:32 pm
Completed: ToL, Shoujo Attack!, Lemma Ten
Projects: [RETIRED FROM FORUM ADMINISTRATION - CONTACT PYTOM WITH ISSUES]
Contact:

Re: Code doesn't work

#9 Post by Blue Lemma »

Feel free to email it to me, too.
“Among those who dislike oppression are many who like to oppress.”
- Napoleon Bonaparte


I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )

User avatar
Gear
Miko-Class Veteran
Posts: 764
Joined: Tue Apr 05, 2011 10:15 pm
Projects: Tempestus Sum
Organization: Xenokos Interactive
IRC Nick: Gear
Skype: Skye.Gear
Location: Grand Prairie, TX
Contact:

Re: Code doesn't work

#10 Post by Gear »

That is a head scratcher. Is your alignment right? Ren'Py is a bit particular about how your lines are indented.
The best reason to get up in the morning is to outdo yourself: to do it better than you've ever done it before. But if you haven't done it better by nightfall... look at your globe and pick a spot: it's always morning somewhere.

User avatar
The CRxTR
Regular
Posts: 56
Joined: Sat Apr 18, 2009 4:55 am
Projects: "Project Fareena"
Organization: Cyclohexane Games
Tumblr: crxtrdude
Github: crxtrdude
itch: crxtrdude
Discord: CRxTRDude#9493
Contact:

Re: Code doesn't work

#11 Post by The CRxTR »

Code: Select all

label start:
    play music "music06.mp3"
    scene opening01
    with fade
    pause 5.0
    scene opening02
    with fade
    pause 5.0
That's yo code right?

When you make pauses on scenes, you attribute as if pause is included with the scene like:

Code: Select all

label start:
    play music "music06.mp3"
    scene opening01
    with fade
    with Pause (5.0)
    scene opening02
    with fade
    with Pause (5.0)
with Pause (5.0)
use that instead.

pause is a python command... i think.
CRxTR

Airetta
Regular
Posts: 25
Joined: Sat Apr 09, 2011 12:00 pm
Projects: Miracle Days: YourLife VS The Reality
Contact:

Re: Code doesn't work

#12 Post by Airetta »

@Blue Lemma: check your PM :D
@Gear: I think yes? ._.
@The CRxTR: it doesn't work either :(
Sorry guys, my English is so bad :D

My Blogsite: http://utysama.aoindonesia.net/
Miracle Days: YourLife VS TheReality: http://lemmasoft.renai.us/forums/viewto ... 5&p=129221

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Code doesn't work

#13 Post by PyTom »

Airetta, can you explain how the code doesn't work?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Gear
Miko-Class Veteran
Posts: 764
Joined: Tue Apr 05, 2011 10:15 pm
Projects: Tempestus Sum
Organization: Xenokos Interactive
IRC Nick: Gear
Skype: Skye.Gear
Location: Grand Prairie, TX
Contact:

Re: Code doesn't work

#14 Post by Gear »

I've never had to use "with" in order to pause the scene. Consider checking to ensure your files are named properly, defined in your script before that point, and are located where you told Ren'Py there were. Without more info, that's all the advice I have.
The best reason to get up in the morning is to outdo yourself: to do it better than you've ever done it before. But if you haven't done it better by nightfall... look at your globe and pick a spot: it's always morning somewhere.

Airetta
Regular
Posts: 25
Joined: Sat Apr 09, 2011 12:00 pm
Projects: Miracle Days: YourLife VS The Reality
Contact:

Re: Code doesn't work

#15 Post by Airetta »

@PyTom: when i use an effect like "with fade", "with move" "with dissolve", "pause 2.0" etc, those codes doesnt work. so when you trying to play the game the characters who are supposed to appear with dissolve seemed appear like i never put a code like "with fade" etc


@Gear: yeah, when i put "with" before the "pause" i got an error message
Sorry guys, my English is so bad :D

My Blogsite: http://utysama.aoindonesia.net/
Miracle Days: YourLife VS TheReality: http://lemmasoft.renai.us/forums/viewto ... 5&p=129221

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot]