Search found 81 matches

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: 346

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: 220

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: 220

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: 220

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: 220

[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: 883

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: 883

'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: 764

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).
by Eliont
Sat Nov 19, 2016 11:55 pm
Forum: Development of Ren'Py
Topic: Renpy don't get python function if it not in the same rpy
Replies: 8
Views: 764

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

i dont think its about init order...

Code: Select all

# The game starts here.
label start:
    show screen debugTools
    python:    
        work_actions_desc = load_work_action_descriptions('db/work actions descriptions')
by Eliont
Sat Nov 19, 2016 1:21 pm
Forum: Development of Ren'Py
Topic: Renpy don't get python function if it not in the same rpy
Replies: 8
Views: 764

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

In 6.11 worked just fine. Function has one and only place and one and only use. If i copy her to script.rpy then launch break on next function call - load_content. Hmm, just noticed, it not next. Functions that defined in lib - common.rpy was loaded succesfully. Copied lib - functions.rpy content to...
by Eliont
Sat Nov 19, 2016 12:24 pm
Forum: Development of Ren'Py
Topic: Renpy don't get python function if it not in the same rpy
Replies: 8
Views: 764

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

Hi. Did not work. Lol, i tried it in the first place, and tried again just now, problem still exist.

"Force Recompile" also did not help.
by Eliont
Sat Nov 19, 2016 4:52 am
Forum: Development of Ren'Py
Topic: Renpy don't get python function if it not in the same rpy
Replies: 8
Views: 764

Renpy don't get python function if it not in the same rpy

Hello and good time of day. Tryed to migrate to new version and encountered a bug: 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 30, in <module> work_actions_desc = load_work_action_descriptions...
by Eliont
Wed Jul 22, 2015 12:52 am
Forum: Ren'Py Questions and Announcements
Topic: Cannot start interaction in the middle of interaction
Replies: 2
Views: 364

Cannot start interaction in the middle of interaction

Hello and good time of day.

Why this error happening and how to avoid this?
Traceback screenshot was attached to the post.

Thanks in advance.
by Eliont
Wed Jun 24, 2015 3:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Animated images in screens
Replies: 4
Views: 715

Re: Animated images in screens

This IS python code. Problem is solved, thanks to Xela's custom anim.Filmstrip: class FilmStrip(renpy.Displayable): def __init__(self, image, framesize, gridsize, delay, frames=None, loop=True, reverse=False, **kwargs): super(FilmStrip, self).__init__(**kwargs) width, height = framesize self.image =...
by Eliont
Wed Jun 24, 2015 12:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Animated images in screens
Replies: 4
Views: 715

Re: Animated images in screens

A question - how to create/define ATL images with python code?
like old anim.filmstrip