Search found 14 matches

by Perik
Wed Mar 30, 2022 1:39 pm
Forum: Ren'Py Questions and Announcements
Topic: 'dict_keys' object does not support indexing
Replies: 2
Views: 404

Re: 'dict_keys' object does not support indexing

PyTom wrote: Tue Mar 29, 2022 9:30 am Ren'Py now ships with requests. What you have is probably an old version - I'd suggest removing it and tlslite, and using the built-in version.
Yes, that's the case. But how to fix it? I can't find any documentation on www.renpy.org
by Perik
Fri Mar 25, 2022 11:32 am
Forum: Ren'Py Questions and Announcements
Topic: 'dict_keys' object does not support indexing
Replies: 2
Views: 404

'dict_keys' object does not support indexing

Hi. After updating Renpy this error appeared: I'm sorry, but an uncaught exception occurred. While running game code: File "game/events.rpy", line 1, in script init -1 python: File "game/events.rpy", line 1, in script init -1 python: File "game/events.rpy", line 2, in <...
by Perik
Thu Jan 20, 2022 2:14 pm
Forum: Ren'Py Questions and Announcements
Topic: How to call function everytime the say screen is shown?
Replies: 2
Views: 389

How to call function everytime the say screen is shown?

Hi! What I want to do is something like this: label Interview_1: Hi there! $id_of_the_text_line = 1 $add_message() Hello $id_of_the_text_line = 2 $add_message() Goodbye $id_of_the_text_line = 3 $add_message() ​ When the text is shown I want to change variable and run function. I was thinking about c...
by Perik
Tue Mar 30, 2021 3:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Very long words- word wrap
Replies: 11
Views: 1069

Re: Very long words- word wrap

Alex wrote: Mon Mar 29, 2021 6:11 pm As an alternative you can fake the input screen, something like
Thanks. That's interesting idea. I'll see if I can make it work.
by Perik
Mon Mar 29, 2021 4:53 am
Forum: Ren'Py Questions and Announcements
Topic: Very long words- word wrap
Replies: 11
Views: 1069

Re: Very long words- word wrap

You can register function which will run on user input every time she changes something. Look for changed property in documentation. That's not really working. screen input_comments: input default "" xmaximum 690 length(150) size 35 pixel_width 2500 xalign 0.5 yalign 0.5 changed upload_co...
by Perik
Sat Mar 27, 2021 5:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Very long words- word wrap
Replies: 11
Views: 1069

Re: Very long words- word wrap

How you want it to work (what should happen if player will type 30 chars with no spaces)? Player should be unable to type more characters until player hit space or backspace. Then it should be back to normal. Player can type more characters as long as there is no 30 chars with out spaces. Alternati...
by Perik
Sat Mar 27, 2021 3:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Very long words- word wrap
Replies: 11
Views: 1069

Re: Very long words- word wrap

Is there a way to cut down long words when renpy is in input mode? ... Either set length property to an input, so user won't be able to type more than x characters, or cut the result right after input. I appreciate your help, but it's not what I need. Look at the attachment in the previous post. Al...
by Perik
Sat Mar 27, 2021 3:46 am
Forum: Ren'Py Questions and Announcements
Topic: function run in the background
Replies: 2
Views: 510

Re: function run in the background

Thank you! That's exactly what I was looking for.
by Perik
Sat Mar 27, 2021 3:35 am
Forum: Ren'Py Questions and Announcements
Topic: Very long words- word wrap
Replies: 11
Views: 1069

Re: Very long words- word wrap

Is there a way to cut down long words when renpy is in input mode? Maybe I wasn't clear but I have custom input screen. It's in the window. window width is 700 pixels. User is allowed to write longer sentence than 700px. When the input length exceeds 700 pixels, the cursor moves to a new line and th...
by Perik
Fri Mar 26, 2021 7:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Very long words- word wrap
Replies: 11
Views: 1069

Very long words- word wrap

Hi! I have a code like this: window: background Frame("bg/framebgdark.png", 5, 5) align 0.5, 0.5 xysize 700, 400 xfill True text "Very_long_word_and_it's_to_long_to_fit_in_the_frame_if_it_is_one_word.........................." input default "Very_long_word_and_it's_to_long_t...
by Perik
Fri Mar 26, 2021 4:24 pm
Forum: Ren'Py Questions and Announcements
Topic: function run in the background
Replies: 2
Views: 510

function run in the background

Hi! In my game, renpy connects to the server to retrieve data. The problem is that when the download function is executed which takes a few seconds renpy freezes. Is it possible to make this function run in the background? My code looks like this: screen myscreen: imagebutton "icon.png" ac...
by Perik
Mon Mar 08, 2021 5:14 pm
Forum: Ren'Py Questions and Announcements
Topic: AnimatedValue in text
Replies: 2
Views: 292

Re: AnimatedValue in text

Amazing! Thank you so much!
by Perik
Mon Mar 08, 2021 5:17 am
Forum: Ren'Py Questions and Announcements
Topic: AnimatedValue in text
Replies: 2
Views: 292

AnimatedValue in text

Hi! I have a bar like this. screen my screen: bar: value AnimatedValue(value=current, range=max, delay=1.0, old_value=None) ysize 30 left_bar Frame("bar_full", 0, 0, 0, 0, tile=True) right_bar Frame("bar_empty", 0, 0, 0, 0, tile=True) When I change "current" variable th...