Search found 45 matches

by sashaaero
Fri Aug 05, 2016 1:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Naming Saved files
Replies: 3
Views: 898

Re: Naming Saved files

So... Like...
1. You can define function

Code: Select all

python:
    def update_save_name():
        global save_name
        save_name = '%s\n%s' % (chapterName, _last_say_what[:30])
2. Use this function in save screen

Code: Select all

on "show" action Function(update_save_name)
Hope I got you right.
by sashaaero
Tue Aug 02, 2016 7:03 pm
Forum: Ren'Py Questions and Announcements
Topic: deleted
Replies: 0
Views: 240

deleted

[deleted]
by sashaaero
Sun Jul 24, 2016 6:09 am
Forum: Ren'Py Questions and Announcements
Topic: Problems with a flag inside a nvl say screen
Replies: 6
Views: 335

Re: Problems with a flag inside a nvl say screen

http://puu.sh/qczK0/ef7bae8772.png watch this That's the default NVL. Isn't it that you want? Or you want if someone say several phrases they will just add to another one? Then you can separate them with {w} e "To be, or not to be: that is the question: {w}Whether 'tis nobler in the mind to suffer ...
by sashaaero
Sun Jul 24, 2016 3:33 am
Forum: Ren'Py Questions and Announcements
Topic: Problems with a flag inside a nvl say screen
Replies: 6
Views: 335

Re: Problems with a flag inside a nvl say screen

You mean that you trying to prevent NVL to show talker's name several times on each line if phrase too long?
by sashaaero
Sun Jul 24, 2016 2:59 am
Forum: Ren'Py Questions and Announcements
Topic: Problems with a flag inside a nvl say screen
Replies: 6
Views: 335

Re: Problems with a flag inside a nvl say screen

Idk if I see right problem. But in your code talker(textToPrint) It seems like talker is a function (or callable object, whatever) So, in part if (NvlLastTalker == talker): NvlShowTalker = False else: NvlShowTalker = True You compare NvlLastTalker (str) with talker (function/callable object) and if ...
by sashaaero
Sun Jul 24, 2016 2:43 am
Forum: Ren'Py Questions and Announcements
Topic: Use the pc username to a character name in-game
Replies: 5
Views: 937

Re: Use the pc username to a character name in-game

Yes, do as andrewngn13 said.
You must define a variable before using.
by sashaaero
Sat Jul 23, 2016 3:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Use the pc username to a character name in-game
Replies: 5
Views: 937

Re: Use the pc username to a character name in-game

You can try easy python script

Code: Select all

import os
name = os.getlogin()
P.S.
If that will not work for you, use then

Code: Select all

os.getenv('username')
istead of getlogin function
by sashaaero
Sat Jul 23, 2016 3:24 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I know parent screen?
Replies: 0
Views: 160

How can I know parent screen?

If I have screen called go_back that contains single button that needs to go back.
I use this screen in another screens with

Code: Select all

use go_back
How can screen go_back knows which screen called it.
by sashaaero
Wed Jul 13, 2016 8:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Save function crashes
Replies: 5
Views: 613

Re: Save function crashes

Thanks for idea, will try.
But -- any ideas why my code doesnt work?
by sashaaero
Wed Jul 13, 2016 6:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Screen inside a screen
Replies: 2
Views: 267

Re: Screen inside a screen

Code: Select all

screen Complicated:
    blah-blah

screen main:
    tag main_screen
    add "image" xpos 0.5 ypos 0.5
    text "Hi everyone!"
    use Complicated
by sashaaero
Wed Jul 13, 2016 5:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Save function crashes
Replies: 5
Views: 613

Re: Save function crashes

trooper6 wrote:If you just want time spent in game, couldn't you use the renpy.get_game_runtime function?

https://www.renpy.org/doc/html/other.ht ... me_runtime
Thanks for reply but this function does not help me.
I mean it works, but I need another stuff.
Like I need time from scene to another.
by sashaaero
Wed Jul 13, 2016 2:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Save function crashes
Replies: 5
Views: 613

Save function crashes

Hi! I wrote a timer that will count time spent in game. from time import sleep as ec_sleep from threading import Thread as ECThread class ECGameTimer(ECThread): def __init__(self): ECThread.__init__(self) self.i = persistent.ec_game_time self.condition = True def __str__(self): return '%02d:%02d:%02...
by sashaaero
Sat Feb 06, 2016 1:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Persistent object's crashing
Replies: 0
Views: 415

Persistent object's crashing

Sup. I modified my save logic, and after it my persistent object do weird things as erasing all data in game. In my save menu I have this action action [FileSave(load_number, page=load_page), SaveSettings(load_number, load_page)] And the code is if not persistent.saves: persistent.saves = {} class C...
by sashaaero
Wed Feb 03, 2016 2:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Window/Fullscreen mode buttons issue
Replies: 2
Views: 347

Window/Fullscreen mode buttons issue

Hi everyone! I have one trouble that 'window' button doesn't feel it's selected. Here is example. http://puu.sh/mUv8B/df3d7eedb0.jpg http://puu.sh/mUvbW/1cb45d9db1.jpg (There is no images errors, another buttons with preferences works okay) And code is grid 2 1: label '{size=32}Display{/size}' xpos ...