Search found 145 matches

by thelastsecret
Fri Sep 13, 2024 5:58 am
Forum: Ren'Py Questions and Announcements
Topic: Blocky Zoom
Replies: 3
Views: 699

Re: Blocky Zoom

Thank you, it works like a charm! :)

Code: Select all

    scene castle:
        zoom 10
        nearest True
I LOVE Ren'Py. It seems like there's a solution to every problem a dev might have, even it is really esoteric!
by thelastsecret
Fri Sep 13, 2024 4:02 am
Forum: Ren'Py Questions and Announcements
Topic: Blocky Zoom
Replies: 3
Views: 699

Blocky Zoom

When I zoom a picture show picture zoom 5 the pixels are interpolated to make the picture looks nicer and less \"blocky\". That's fine and total standard. However, in my next game there will be some retro computer game and for that purpose I need \"blocky'" graphics where the pix...
by thelastsecret
Wed Aug 28, 2024 9:04 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Default dissolve transitions
Replies: 9
Views: 905

[solved] Default dissolve transitions

Thank you, that works even a bit better: there were some minor issues with the other method when combining it with auto highlight (by Daniel Westfall) causing flickering in some special cases. With the define tag_transitions this issue disappeared. Perfect!
by thelastsecret
Wed Aug 28, 2024 2:22 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Default dissolve transitions
Replies: 9
Views: 905

Re: Default dissolve transitions

philat wrote: Wed Aug 28, 2024 1:23 am

Code: Select all

transform fadeinout:
    on show, replace:
        alpha 0.0
        easein_cubic 0.5 alpha 1.0
    on hide, replaced:
        easeout_cubic 0.5 alpha 0.0
Fantastic! this works!
Thank you so much! (All of you, of course!)
by thelastsecret
Wed Aug 28, 2024 12:43 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Default dissolve transitions
Replies: 9
Views: 905

Re: Default dissolve transitions

Thank you very much for your help! The first idea would be a (slightly tedious) workaround, but the tag idea looks even better. I have a stupid problem though: how do I define the transform dissolve ? I need to have a dictionary like: define config.tag_transform = {"a":dissolve} But this g...
by thelastsecret
Fri Aug 23, 2024 10:50 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Default dissolve transitions
Replies: 9
Views: 905

Re: Default dissolve transitions

Wow, that looks fantastic. Thank you so much for your help! However, is there any way to do this without using this say attribute structure? One reason is that I would have to rewrite the whole game. The other is that this is limiting the valid transitions, e.g. here: show a happy at left show b hap...
by thelastsecret
Fri Aug 23, 2024 7:42 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Default dissolve transitions
Replies: 9
Views: 905

[Solved] Default dissolve transitions

When changing a character sprite expression like this: show a happy "Ha ha!" show a sad "Sniff" There is no transition between the pics which can look jarring. Adding with dissolve after every such transition, however, is cumbersome. Is there a way to make this automatically? Pre...
by thelastsecret
Mon Jul 15, 2024 11:58 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with DictInputValue [solved]
Replies: 2
Views: 410

Re: Problem with DictInputValue

Ocelot wrote: Mon Jul 15, 2024 9:58 am note_song is a list. 'note_song' is a string. DictInputValue expects a dict (or a list), not a string.
Thank you, that was the solution! (Feeling dumb now...)
by thelastsecret
Mon Jul 15, 2024 9:53 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with DictInputValue [solved]
Replies: 2
Views: 410

Problem with DictInputValue [solved]

Hello, I have a question about editing text in a screen: I'd like to make note_song[note_editing] editable. ( note_song is a list.) I've tried this here: input value DictInputValue('note_song', note_editing, default=True, returnable=False) But I got this error: File "game/main.rpy", line 2...
by thelastsecret
Mon Jul 01, 2024 11:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Duration of an mp3-file.
Replies: 9
Views: 761

Re: Duration of an mp3-file.

If you convert a lossy file like MP3 to another lossy file format, like ogg vorbis, the quality will still suffer. The effect is called generation loss. Yes, of course, that's logical. As I produced the files with Udio and Suno, I couldn't chose a lossless formal or ogg as starting format anyway, b...
by thelastsecret
Sat Jun 29, 2024 12:10 am
Forum: Ren'Py Questions and Announcements
Topic: Duration of an mp3-file.
Replies: 9
Views: 761

Re: Duration of an mp3-file.

Meanwhile, it works. I've downloaded ffprobe and put it into the game folder and then defined this Python function: init python early: import os foldername=config.basedir+"/game/" import subprocess def get_audio_length(file_path): try: # Path to ffprobe executable ffprobe_path = foldername...
by thelastsecret
Fri Jun 28, 2024 10:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Duration of an mp3-file.
Replies: 9
Views: 761

Re: Duration of an mp3-file.

That would be the last resort. It would be better if I could get the length directly dfrom the file, though. (Moreover, it's more difficult to listen to ogg files on the Mac (need to run VLC every time).)
Btw: For some mp3 files the duration measurement of Ren'Py works.
by thelastsecret
Fri Jun 28, 2024 11:19 am
Forum: Ren'Py Questions and Announcements
Topic: Duration of an mp3-file.
Replies: 9
Views: 761

Re: Duration of an mp3-file.

Thank you, but I'm too stupid to get this running. I've downloaded the mutagen folder into my game folder. Then I use from mutagen.mp3 import MP3 to import it in the game (in init python ). Then I use the routine MP3.get_audio_length(filename) , but I get an error: AttributeError: type object 'MP3' ...
by thelastsecret
Fri Jun 28, 2024 10:10 am
Forum: Ren'Py Questions and Announcements
Topic: Duration of an mp3-file.
Replies: 9
Views: 761

Duration of an mp3-file.

renpy.music.get_duration( ) has problems with mp3-files (see documentation). Is there any not-overly-complicated workaround for that? I would also be happy to calculate the duration of a song as a file on disk, as this would be fine for my application as well (I remember there is something like thi...
by thelastsecret
Thu Jun 27, 2024 10:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Easy way to get current folder?
Replies: 3
Views: 626

Re: Easy way to get current folder?

Thank you so much, that helped a lot!