Search found 88 matches

by Eliont
Sat Nov 02, 2019 6:58 am
Forum: Ren'Py Questions and Announcements
Topic: lookup_translate: AttributeError: 'unicode' object has no attribute 'block'
Replies: 4
Views: 217

Re: lookup_translate: AttributeError: 'unicode' object has no attribute 'block'

I can't provide full game code. And can't replicate bug on my own machine.
Just may be someone encountered same bug as here - https://f95zone.to/threads/four-element ... st-1359092
by Eliont
Thu Oct 31, 2019 10:50 pm
Forum: Ren'Py Questions and Announcements
Topic: lookup_translate: AttributeError: 'unicode' object has no attribute 'block'
Replies: 4
Views: 217

lookup_translate: AttributeError: 'unicode' object has no attribute 'block'

Hello and good time of day. I'm sorry, but an uncaught exception occurred. While running game code: AttributeError: 'unicode' object has no attribute 'block' \renpy\ast.py", line 2159, in execute \renpy\ast.py", line 2144, in lookup \translation\__init__.py", line 190, in lookup_translate AttributeE...
by Eliont
Fri Jun 21, 2019 11:47 am
Forum: Ren'Py Questions and Announcements
Topic: Prevent side image with unusual position from flickering
Replies: 1
Views: 434

Prevent side image with unusual position from flickering

Hello and good time of day.

I want side images to be shown right above textbox centered.
But when show / hide with dissolve side image still appears in bottom left corner (only during transition).

How to make it show / hide on set position all the time ?

Thanks in advance.
by Eliont
Sun Jun 02, 2019 12:52 am
Forum: Ren'Py Questions and Announcements
Topic: Distinguish, drag, drop creator-defined displayable
Replies: 1
Views: 450

Re: Distinguish, drag, drop creator-defined displayable

Thanks to Xela, working code for this small example: class Card(renpy.Displayable): def __init__(self, child, xsize,ysize, **kwargs): super(Card, self).__init__(**kwargs) self.xsize = xsize self.ysize = ysize self.x_offset = 0 self.y_offset = 0 self.rect = pygame.Rect((0, 0), (self.xsize,self.ysize)...
by Eliont
Fri May 31, 2019 11:46 am
Forum: Ren'Py Questions and Announcements
Topic: Distinguish, drag, drop creator-defined displayable
Replies: 1
Views: 450

Distinguish, drag, drop creator-defined displayable

Hello and good time of day. Following https://www.renpy.org/doc/html/udd.html i managed to create two custom displayable with updateable text on them. But how to distinguish what displayable clicked, move them, and detect collision? http://puu.sh/DzOB7/88ec3e4898.jpg displayable code: init python: i...
by Eliont
Sat Nov 17, 2018 10:56 pm
Forum: Development of Ren'Py
Topic: Keep text (not only textbox) on screen during transition
Replies: 0
Views: 206

Keep text (not only textbox) on screen during transition

Hello and good time of day. And, is there any way to do it using standart syntax? How it shouid be: https://youtu.be/65na51EQb80 label start: scene bg room show screen say("Hello, world.", "Name") pause show eileen with dissolve pause hide screen say e "Hello, world" return (c) Xela - working as nee...
by Eliont
Thu Jan 25, 2018 11:07 pm
Forum: Development of Ren'Py
Topic: Speed up loading of game with huge amount of labels
Replies: 1
Views: 538

Speed up loading of game with huge amount of labels

Hello and good time of day.

Is there a way to speed up loading game with contain around thousand independent labels?
(other then splitting it to several projects).
by Eliont
Wed Sep 06, 2017 7:21 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Flush drag-and-drop drags position cache (random drags position problem)
Replies: 5
Views: 384

Re: Flush drag-and-drop drags position cache (random drags position problem)

philat wrote:
Wed Sep 06, 2017 4:52 am
customize the Drag() and DragGroup() class
Thank you, i think i will try next time.
by Eliont
Wed Sep 06, 2017 7:16 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Flush drag-and-drop drags position cache (random drags position problem)
Replies: 5
Views: 384

Re: Flush drag-and-drop drags position cache (random drags position problem)

Thanks to Alex, solution found: drag_group = renpy.get_widget('adventure', "drag_group").children for drag in drag_group: data = drag.drag_name.split() if data[0] == 'field_hero': index = int(data[1]) x,y = calculate_field_hero_card_position(index) drag.snap(x,y,0) if data[0] == 'Hand': index = int(...
by Eliont
Wed Sep 06, 2017 4:16 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Flush drag-and-drop drags position cache (random drags position problem)
Replies: 5
Views: 384

Re: Flush drag-and-drop drags position cache (random drags position problem)

Index - element number in list def calculate_field_hero_card_position(index): x = (side_bar_width+5) + (field_card_width + 5) * index y = config.screen_height - field_card_height - 5 return x,y def calculate_hand_card_position(index): h = hand_card_height if len(p.current().hand) > 10: amount = len(...
by Eliont
Tue Sep 05, 2017 11:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Flush drag-and-drop drags position cache (random drags position problem)
Replies: 5
Views: 384

[solved] Flush drag-and-drop drags position cache (random drags position problem)

Hello and good time of day. How to deal with drags taking random position on screen after interaction which change drag lists content? May be there are way to flush their positions to locate them as they spawn on game start. Or method to solve it in another way. Video demostrating problem: In develo...
by Eliont
Mon Jan 02, 2017 9:13 am
Forum: Development of Ren'Py
Topic: 'NoneType' object has no attribute 'mutated_surface'
Replies: 5
Views: 1178

Re: 'NoneType' object has no attribute 'mutated_surface'

Sorry for late answer.
It seems bug occured in line "renpy.render(d, 0, 0, 0, 0).get_size()" what needed to determine h/w of picture to fit it to frame afterwards.

Using pre-scaled images is not a option.
by Eliont
Sat Dec 31, 2016 9:17 am
Forum: Development of Ren'Py
Topic: 'NoneType' object has no attribute 'mutated_surface'
Replies: 5
Views: 1178

'NoneType' object has no attribute 'mutated_surface'

Hello and happy New Year to everyone. Got an error in new version, before update worked just fine. I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 12, in script python: File "game/script.rpy", line 79, in <module> base = Base() # основной класс уч...
by Eliont
Sun Nov 20, 2016 12:38 am
Forum: Development of Ren'Py
Topic: Renpy don't get python function if it not in the same rpy
Replies: 8
Views: 1059

Re: Renpy don't get python function if it not in the same rp

Error code in the first post.

Well, idk what was there, but when i deleted lib-functions.rpy and placed its content in a new file with the same name error gone. May be the file itself been corrupted at filesystem level (but Notepad++ operated with them with no problem).