Search found 32 matches

by Nazon
Tue Jan 31, 2017 9:07 am
Forum: Development of Ren'Py
Topic: 'NoneType' object has no attribute 'mutated_surface'
Replies: 5
Views: 1692

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

I have the same problem('NoneType' object has no attribute 'mutated_surface') with the get_size finction. def get_size(d): d = renpy.easy.displayable(d) w, h = renpy.render(d, 0, 0, 0, 0).get_size() w, h = int(round(w)), int(round(h)) return w, h May be it related to the image transparency somehow? ...
by Nazon
Fri Jan 13, 2017 5:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Opacity update after slider moving
Replies: 7
Views: 2638

Re: Opacity update after slider moving - unresponsive screen

You could forgo styles and work with the screen directly through (for example) a persistent value. It should work... From the previous thread, it went unanswered :( should do the same thing and the whole required setup is 3 lines of new code (4 with the label). Yes! It works! Even better then the p...
by Nazon
Thu Jan 12, 2017 11:11 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Opacity update after slider moving
Replies: 7
Views: 2638

Re: Opacity update after slider moving - unresponsive screen

I've found a way out of this after all. At least changing window opacity works perfectly now. The code from the RenPy for Dummies blog(thanks to Ruslan Nebykov): options.rpy screen quick_menu: hbox: style_group "quick" xalign 0.9 yalign 0.98 textbutton _("Transparency %s:" % (wnd_alpha_s())) action ...
by Nazon
Tue Jan 10, 2017 7:00 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Opacity update after slider moving
Replies: 7
Views: 2638

Re: Opacity update after slider moving - unresponsive screen

I tried to do the same with the new empty renpy project. Here is the part from the default screen.rpy vbox: frame: style_group "pref" has vbox label _("Music Volume") bar: value Preference("music volume") changed renpy.play("/sounds/misc/scroll_button.b_Sys_OnMouse.wav", "audio") I added only change...
by Nazon
Thu Dec 29, 2016 1:14 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Opacity update after slider moving
Replies: 7
Views: 2638

Re: Opacity update after slider moving - unresponsive screen

Hmm... Now it's look like a some kind of issue with 'changed' preference. Every time I use it, the function works incorrectly. For example, if I want to play a sound after moving a bar knob, I add a new preference. Full code: screen title_menu: if (show_title_menu): imagebutton idle title_option_off...
by Nazon
Wed Dec 28, 2016 8:46 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Opacity update after slider moving
Replies: 7
Views: 2638

Re: Opacity update after slider moving - unresponsive screen

Try: changed update_mask_opacity #without () Though style.rebuild is a slow operation, it's better to avoid to use it. Thank you for this piece of advice. Unfortunately, it doesn't work this way. The function simply doesn't run. If I try something like this: init -2 python: #Function for the frame ...
by Nazon
Tue Dec 27, 2016 12:15 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Opacity update after slider moving
Replies: 7
Views: 2638

[Solved]Opacity update after slider moving

I tried to create bar slider, that could change the frame opacity in real time according to this instruction: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=22229 But something goes wrong. (This issue looks slightly different than original, so I created a new topic.) The code: init python: st...
by Nazon
Tue Dec 27, 2016 9:53 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Partial playback in the Music Room
Replies: 4
Views: 810

Re: [Solved]Partial playback in the Music Room

Was this issue actually solved like the title says? I'm interested in knowing the solution if so! :) Well, as it seems to be an engine limitation somehow, I came up with the idea of the using seekbar, that remembers position on the music track automatically. screen seek_bar: bar: value AudioPositio...
by Nazon
Mon Dec 26, 2016 9:20 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] ... is not a known configuration variable.
Replies: 2
Views: 1385

Re: default_fullscreen is not a known configuration variable

PyTom wrote:if renpy/common/00defaults.rpy didn't exist, I'd expect to see a problem like this.
Stupid me, I created a blank file 00defaults.rpy in the project folder and it seems, it replaced the original.
Everything is okay after renaming.
Thank you.
by Nazon
Fri Dec 23, 2016 7:39 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] ... is not a known configuration variable.
Replies: 2
Views: 1385

[Solved] ... is not a known configuration variable.

I created a new rpy file, commented out some part of the default screens.rpy code and created a new persistent variable(not sure if it's related or not) and got this error: I'm sorry, but an uncaught exception occurred. While running game code: File "game/options.rpy", line 271, in script init -1 py...
by Nazon
Wed Dec 07, 2016 8:28 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Partial playback in the Music Room
Replies: 4
Views: 810

Re: Partial playback in the Music Room

does this work? python: renpy.music.play ("<from 5 to 15.5>"+track_file) for a progress bar, would it work to just use renpy.music.get_pos() ? Thank you. Yes, it's working. I also could use the screen action: Play("music", "<from 10>" + track_file) I just wanted to check is there any way to do the ...
by Nazon
Tue Dec 06, 2016 8:37 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Partial playback in the Music Room
Replies: 4
Views: 810

[Solved]Partial playback in the Music Room

I am trying to create a song progress bar in the game's Music room, but it seems that Music room commands like: mr.Play(track_file) don't support partial playback ajustments: "<from 5 to 15.5>waves.opus" And this code is unusable: mr.Play("<from 5 to 15.5>" + track_file) So is there any way to use p...
by Nazon
Fri Nov 25, 2016 5:16 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]"selected" preference of the Imagebutton, error
Replies: 2
Views: 1600

Re: "selected" preference of the Imagebutton, error

Ren'Py 6.99.10.1227 selected and sensitive properties were added in 6.99.11 You can check if your button works without this property. In its absense, selected state is determined by button actions. It should work with ToggleVariable too (maybe you will need to change order, i.e. swap 10 and 1, to g...
by Nazon
Wed Nov 23, 2016 1:25 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]"selected" preference of the Imagebutton, error
Replies: 2
Views: 1600

[Solved]"selected" preference of the Imagebutton, error

I can't figure out how to use "selected" preference of the imagebutton. I tried to use instructions from this topic: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=41202 Check documentation for imagebutton . Especially selected_idle and selected_hover properties to define images your button w...
by Nazon
Wed Nov 02, 2016 5:24 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]CG gallery thumbnails clicking and hovering sound
Replies: 2
Views: 510

Re: CG gallery thumbnails clicking and hovering sound

Wow, I didn't think that I could use button styles for the thumbnail button.
Additional keyword arguments become style properties of the created button object.
This sounds quite vague for me.

Thank you for help!