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).
Search found 111 matches
- 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: 917
- 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: 1497
- 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: 1497
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': in...
- 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: 1497
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(...
- 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: 1497
[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...
- Mon Jan 02, 2017 9:13 am
- Forum: Development of Ren'Py
- Topic: 'NoneType' object has no attribute 'mutated_surface'
- Replies: 5
- Views: 2043
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.
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.
- Sat Dec 31, 2016 9:17 am
- Forum: Development of Ren'Py
- Topic: 'NoneType' object has no attribute 'mutated_surface'
- Replies: 5
- Views: 2043
'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()...
- 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: 2144
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).
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).
- 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: 2144
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')
- 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: 2144
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...
- 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: 2144
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.
"Force Recompile" also did not help.
- 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: 2144
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...
- 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: 583
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.
Why this error happening and how to avoid this?
Traceback screenshot was attached to the post.
Thanks in advance.
- Wed Jun 24, 2015 3:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Animated images in screens
- Replies: 4
- Views: 3891
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 =...
- Wed Jun 24, 2015 12:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Animated images in screens
- Replies: 4
- Views: 3891
Re: Animated images in screens
A question - how to create/define ATL images with python code?
like old anim.filmstrip
like old anim.filmstrip