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 Tue Jun 18, 2013 8:26 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  [ 23 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sat Jul 21, 2012 6:53 pm 
Regular
User avatar

Joined: Sun Aug 01, 2010 1:21 pm
Posts: 137
First off, I've got a button in the navigation that is supposed to turn on Auto Read.The problem is that I don't know which function to use. I've been doing random guesswork like "Auto_Forward()" and similar, but had no luck so far.

Second - is there a way to use ImageDissolve transitions when entering from the navigation to a specific menu?

Third - Is there a way to tell the game to stop skipping when entering the menu? The way it currently works is: you enter the navigation; you press skip; it brings you to the game; when you press rightclick you enter the menu, but the moment you leave it, the game continues skipping.
What I want is the game to recognize to stop skipping when you enter the menu.


Thank you very much for your time. I hope someone will be able to help.

P.S.
I already made a thread featuring another problem + these ones, but noticing that the problem was in the cache, I just deleted the topic before anyone had the chance to answer.


Top
 Profile Send private message  
 
PostPosted: Sun Jul 22, 2012 2:23 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
It's best to break a thread like this up into multiple threads, one for each question. Also, please use a subject that reflects the questions you're asking - this one doesn't really help anyone. (This is a new policy that we're beginning to try to enforce.)

Anyway:

1) Use Preference("Auto-Forward", mode), where mode can be one of "enable", "disable", and "toggle".

2) Yes, in the screen do:

Code:
screen whatever:
    on "show" action With(my_imagedissolve)
    on "replace" action With(my_imagedissolve)


3) I'll look into this.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Sun Jul 22, 2012 2:56 pm 
Regular
User avatar

Joined: Sun Aug 01, 2010 1:21 pm
Posts: 137
1) Ah, excuse me, I've expressed myself the wrong way. I meant that when you click the button, you leave the menu and the game starts auto_reading (similar to Skip() ). Is there any way to set that up?

2) I tried using it as
Code:
screen navigation:
    on "show" action With(menu_blinds)
    on "replace" action With(menu_blinds)

but it does absolutely nothing. The screen just opens up the way it always does.
3) Thank you. Until now, it always happens to me that I use skip and enter the menu. And when exiting it, I expect skip to be off just for it to continue skipping. Not really such a big problem, but it felt really awkward to me.


Top
 Profile Send private message  
 
PostPosted: Thu Jul 26, 2012 9:02 pm 
Regular
User avatar

Joined: Sun Aug 01, 2010 1:21 pm
Posts: 137
I suppose I shouldn't start designing the actual menu with the auto rea and skip buttons then?
It's a shame, but it seems I'll have to throw them out.


Top
 Profile Send private message  
 
PostPosted: Fri Jul 27, 2012 4:26 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
Samidarenina wrote:
1) Ah, excuse me, I've expressed myself the wrong way. I meant that when you click the button, you leave the menu and the game starts auto_reading (similar to Skip() ). Is there any way to set that up?

Code:
            frame:
                style_group "pref"
                has vbox

                textbutton _("Auto Read") action Preference("auto-forward", "toggle")


Samidarenina wrote:
but it does absolutely nothing. The screen just opens up the way it always does.

I used dissolve and it works for me.

Samidarenina wrote:
What I want is the game to recognize to stop skipping when you enter the menu.


Try putting
Code:
if config.skipping:
    $ config.skipping = False

under the navigation screen. It might or might not work

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
PostPosted: Fri Jul 27, 2012 5:00 am 
Regular
User avatar

Joined: Sun Aug 01, 2010 1:21 pm
Posts: 137
1) Again, this turns the navigation button into just a toggle which is not the desired behavior.

3) It just causes skipping not to work at all

Thanks for the try though.


Top
 Profile Send private message  
 
PostPosted: Fri Jul 27, 2012 8:12 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
1) Do you want different buttons for enable and disable? Then you just have to edit the toggle and put in enable and disable.

3) Okay, tested it and this one works.

Code:
$_game_menu_screen = "stop_skip"

^ Put this in the start label.

Code:
label stop_skip:
    if config.skipping:
        $ config.skipping = False
    jump save_screen
    return


Not a eloquent solution,. but this one works quite well.

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
PostPosted: Sat Jul 28, 2012 7:46 am 
Regular
User avatar

Joined: Sun Aug 01, 2010 1:21 pm
Posts: 137
1) I originally just wanted to make auto-forrward behave similary to Skip (where you click the button, then automatically get led to the game where it keeps auto-reading.), but I'm starting to get under the impression that I did something to make Auto-Forward not work. Even when it's enabled, it does absolutely nothing. Weird.
3) You really deserve a cookie for this solution - it's really one of those "why didn't I think of this myself?" things. :D

Edit: I just tried to turn on Auto-Forward in the Tutorial game and the text just stands still. Is there anything specific I have to do to make Auto-Read work or did I mess something up? Surprisingly enough, I cannot find any real info on the auto read function in the documentation.


Top
 Profile Send private message  
 
PostPosted: Sat Jul 28, 2012 8:16 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
1) You can always group together actions

Code:
 action [Preference("auto-forward", "toggle"), Return()]


This might be just a silly thought, but have you waited long enough?
If your auto-read value is set at low, it can take a little while (mine is set at max and I read the sentence four-five times before it stepped to the nest one)

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
PostPosted: Sat Jul 28, 2012 8:49 am 
Regular
User avatar

Joined: Sun Aug 01, 2010 1:21 pm
Posts: 137
In fact, that was exactly what I had in mind. Then I just planned to do exactly that what you did with Skip to turn auto-forward off. (I'd just have to think of a way to make an auto-forward indicator, but that's a story for another time.)

In the tutorial, I've waited for over a minute after turning on "auto" in the quickbar and nothing happened. Weird.
Come to think of, Auto-Forward was one of those RenPy features I was never able to turn on.

Edit: I've just discovered that the game definitely goes into "auto-forward" mode because if I click, it exits it. The problem still remains that even though it's in auto-forward mode, there is no auto-forwarding going on.
I've been playing around with config.default_afm_time a bit, setting the value both higher and lower, but it didn't help at all.


Top
 Profile Send private message  
 
PostPosted: Sat Jul 28, 2012 9:18 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
Err... make a new test build and then max out the Auto-forward time bar in preference.
And then wait and pray.

If it doesn't work, well, can't help you then.

And, here's how you'll put a Auto-Forward indicator

Code:
if _preferences.afm_enable:
    # your image code


EDIT: 500th post :-)

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Last edited by DragoonHP on Sat Jul 28, 2012 11:10 am, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Sat Jul 28, 2012 9:51 am 
Regular
User avatar

Joined: Sun Aug 01, 2010 1:21 pm
Posts: 137
Alright, so I did try making a new test build and then set the time to really low. And it worked.
I do the same thing in my project - nothing.
Could it be something NVL-related? Because that's the only thing that comes to mind.


Scratch that, I've cleared the persistent data and now it works. How silly of me. :'D

Thank you a lot, DragoonHP. You really saved me here :D


Now, excuse me for bugging you about something one last time, but I was hoping you may be able to help with the following. I've already mentioned that I'd like the auto-forward to get turned off when entering the menu, too. Now, I tried to accomplish that with
Code:
if config.afm_enable:
        $ config.afm_enable = False

because I wasn't sure about the right function. Obviously, it didn't work.
Any suggestions on this?


Top
 Profile Send private message  
 
PostPosted: Sat Jul 28, 2012 10:04 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
It's not a config variable.

Code:
if _preferences.afm_enable:
    _preferences.afm_enable = False


^ This should work,

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
PostPosted: Sat Jul 28, 2012 10:09 am 
Regular
User avatar

Joined: Sun Aug 01, 2010 1:21 pm
Posts: 137
I'm getting an "expected statement" error with that one.
And when changing it to "$ _preferences.afm_enable = False", then it does nothing at all.


Top
 Profile Send private message  
 
PostPosted: Sat Jul 28, 2012 10:14 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
I forgot the $ sign; sorry.
And just tested it and it works for me.

Where are you putting it?

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Suwamoto


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