Search found 337 matches

by henvu50
Thu Jul 20, 2023 4:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved, but could be better] How do you set the default volume of a custom audio channel?
Replies: 1
Views: 215

Re: How do you set the default volume of a custom audio channel?

Here is a solution, but IMO, this doesn't feel right. I first saw this idea on renpy github here: https://github.com/renpy/renpy/issues/3645 init python: def setDefaultVolOfNewAudioChannel(): if not persistent.newAudChan: persistent.newAudChan = True renpy.run(preferences.set_mixer('ambience', 0.71)...
by henvu50
Thu Jul 20, 2023 12:24 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved, but could be better] How do you set the default volume of a custom audio channel?
Replies: 1
Views: 215

[Solved, but could be better] How do you set the default volume of a custom audio channel?

If you've made a new audio channel; using register_channel, how do you set its default volume? The issue was discussed here: https://github.com/renpy/renpy/issues/3645, but looks like it was never resolved? That link provides this code: init python: if not persistent.newAudChan: persistent.newAudCha...
by henvu50
Sun Jul 16, 2023 7:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do you prevent the music and sound from stopping when starting a new game?
Replies: 1
Views: 180

Re: How do you prevent the music and sound from stopping when starting a new game?

I found another solution. You can also register your own custom music, sfx and ambience channels like this: # early_init.rpy init python: # register new audio channel renpy.music.register_channel(name='ambience', mixer='ambience', loop=False, stop_on_mute=True, tight=False, file_prefix=u'', file_suf...
by henvu50
Sat Jul 15, 2023 9:11 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do you prevent the music and sound from stopping when starting a new game?
Replies: 1
Views: 180

[Solved] How do you prevent the music and sound from stopping when starting a new game?

How do you prevent the music and sound from stopping when starting a new game? EDIT - Okay, I figured it out with some help from discord: thanks to Seronis, Fen (Feniks) & Mr. Robot. Note: We need to use config.main_menu_music so the music won't stop when starting a new game. But, we also need t...
by henvu50
Thu Jul 06, 2023 7:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How can I get the X/Y coordinates of a button?
Replies: 6
Views: 644

Re: [Solved] How can I get the X/Y coordinates of a button?

Would be great if there was an example of how to use CaptureFocus, GetFocusRect, along with transclusion. I can't figure out how to use nearrect to get the xpos and ypos of the currently focused displayable. That's the whole point. For example, let's say I make a button that when hovered shows text ...
by henvu50
Thu Jun 29, 2023 9:09 am
Forum: Ren'Py Questions and Announcements
Topic: If you connect Iphone to PC, what's the Ren'py game folder path location?
Replies: 0
Views: 3010

If you connect Iphone to PC, what's the Ren'py game folder path location?

Let's say you plug your iphone(IOS) into your PC via usb. Now you want to browse the iphone and copy files to your renpy game's game folder. What is the path?

On Android it's the following:

Code: Select all

Android/data/yourRenpy.game/files/game/
But what's the path on ios; iphone?
by henvu50
Fri Jun 23, 2023 10:54 pm
Forum: Ren'Py Questions and Announcements
Topic: [Unresolved; re'npy is not 5.01+ android compat] Android - Samsung S6 Factory Reset - Latest Updates - Constant crashing
Replies: 4
Views: 370

Re: Android - Samsung S6 Factory Reset - Latest Updates - Constant crashing from ANY Ren'py APK build, even from 2019.

I've experimented with three android emulators, to try and replicate the exact environment of my phone, but I've learned you can never get it exact. - Visual Studio 2022 has Android Emulator; but it's riddled with problems; for example you can't even drag & drop APK's onto the interface; it's su...
by henvu50
Fri Jun 23, 2023 2:13 am
Forum: Ren'Py Questions and Announcements
Topic: [Unresolved; re'npy is not 5.01+ android compat] Android - Samsung S6 Factory Reset - Latest Updates - Constant crashing
Replies: 4
Views: 370

Re: Android - Samsung S6 Factory Reset - Latest Updates - Constant crashing from ANY Ren'py APK build, even from 2019.

The gui demo I never actually got around to finishing (part of why I no longer advertise it in my signature) ........ Rest assured, the problem is not on your end. I just needed to use an older APK that wasn't mine for testing purposes. Your app works fine everywhere I test it; emulators, other pho...
by henvu50
Thu Jun 22, 2023 5:14 am
Forum: Ren'Py Questions and Announcements
Topic: [Unresolved; re'npy is not 5.01+ android compat] Android - Samsung S6 Factory Reset - Latest Updates - Constant crashing
Replies: 4
Views: 370

Re: Android - Samsung S6 Factory Reset - Latest Updates - Constant crashing from ANY Ren'py APK build, even from 2019.

So I managed to get the game: The Question(That comes with Ren'py), to run on my phone for 3 minutes and 40 seconds, but do you know what happened? After 3 min, 40 seconds, the popup window came up asking me if I want to quit the game: "Are you sure you want to quit?", right at the screen:...
by henvu50
Thu Jun 22, 2023 4:26 am
Forum: Ren'Py Questions and Announcements
Topic: [Unresolved; re'npy is not 5.01+ android compat] Android - Samsung S6 Factory Reset - Latest Updates - Constant crashing
Replies: 4
Views: 370

[Unresolved; re'npy is not 5.01+ android compat] Android - Samsung S6 Factory Reset - Latest Updates - Constant crashing

UPDATE 6/25/2023 For now this issue still remains unresolved. I told renpytom about it, and NO ONE else is having this problem. I agree with him that this is not worth solving, for now. But if you find this post and you're having the same problem, you need to respond to this post and say so. Once mu...
by henvu50
Fri Jun 09, 2023 6:12 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you allow the user to toggle between a custom hardware mouse cursor image?
Replies: 3
Views: 366

Re: How do you allow the user to toggle between a custom hardware mouse cursor image?

That is just a code example to demonstrate the theory of what I need. It doesn't work. Wrapping a define with a if then conditional won't work. I don't think there's anyway to let the user Toggle a custom hardware mouse cursor, even if they restart the game. This code just won't work. init offset = ...
by henvu50
Tue Apr 25, 2023 9:35 am
Forum: Ren'Py Questions and Announcements
Topic: How do you allow the user to toggle between a custom hardware mouse cursor image?
Replies: 3
Views: 366

How do you allow the user to toggle between a custom hardware mouse cursor image?

The user would go into preferences, and click a checkbox that says, "Custom Hardware Mouse Cursor Image". When they do that, and restart the game, the game begins using a custom hardware mouse cursor image, but if the user goes back into preferences and disables the checkbox: "Custom ...
by henvu50
Mon Apr 24, 2023 2:29 pm
Forum: General Discussion
Topic: [delete]
Replies: 0
Views: 1855

[delete]

[delete] i posted this in wrong sub-forum accidentally.
by henvu50
Sun Jan 15, 2023 5:59 am
Forum: Ren'Py Questions and Announcements
Topic: [Question] How to get position&size of image in screen?
Replies: 3
Views: 993

Re: [Question] How to get position&size of image in screen?

Was this ever resolved? There's no proper documentation on how to get a displayable's xpos and ypos, where it is on the screen exactly.
by henvu50
Sun Jan 15, 2023 5:34 am
Forum: Ren'Py Questions and Announcements
Topic: How do you get the screen x & y position of a displayable, by its ID?
Replies: 1
Views: 265

How do you get the screen x & y position of a displayable, by its ID?

How do you get the screen x & y position of a displayable, by its ID? I'm looking for something super simple and effect, here's an example of code I'm looking for, to simply get a displayable's position info by id. screen test(): button: id 'some_button_id_84' xpos 80 # 80/1920 ypos 120 # 120/10...