Search found 94 matches

by Li yuanlin
Sun Apr 28, 2024 6:31 am
Forum: Ren'Py Questions and Announcements
Topic: live2d define causes error in renpy8
Replies: 3
Views: 293

Re: live2d define causes error in renpy8

it's okay in renpy7 Ren'Py 8.1.3.23091805 You may wanna try it using the latest version of Renpy stable, which is 8.2.1. If it persists, please create a bugreport here: https://github.com/renpy/renpy/issues (better not use the forum for bugreports, Tom probably doesn't check every entry and it's ha...
by Li yuanlin
Sat Apr 27, 2024 2:28 am
Forum: Ren'Py Questions and Announcements
Topic: live2d define causes error in renpy8
Replies: 3
Views: 293

live2d define causes error in renpy8

it's okay in renpy7 image hiyori = Live2D("live2d/hiyori/hiyori.model3.json", zoom=None, top=0.0, base=0.6, height=0.9, alias={}, loop=True, fade=True, seamless=None, attribute_function=None, attribute_filter=None, update_function=None,aliases={"idle" : "m01"}) I'm sorr...
by Li yuanlin
Tue Apr 23, 2024 1:42 am
Forum: Ren'Py Questions and Announcements
Topic: renpy 8.2 © icon is shown as non-copyright icon
Replies: 2
Views: 307

Re: renpy 8.2 © icon is shown as non-copyright icon

PyTom wrote: Mon Apr 22, 2024 12:29 pm What does the font have? Ren'Py 8.2 is much better about rendering what the font tells it to.
SourceHanSansCN-Medium.otf(思源黑体)
by Li yuanlin
Mon Apr 22, 2024 5:44 am
Forum: Ren'Py Questions and Announcements
Topic: renpy 8.2 © icon is shown as non-copyright icon
Replies: 2
Views: 307

renpy 8.2 © icon is shown as non-copyright icon

8.2:
QQ图片20240422174222.png
QQ图片20240422174222.png (55.21 KiB) Viewed 307 times
8.1:
QQ图片20240422174230.png
QQ图片20240422174230.png (46.58 KiB) Viewed 307 times
by Li yuanlin
Sat Apr 20, 2024 3:46 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.music.get_duration() cannot return duration of some BGM
Replies: 2
Views: 301

renpy.music.get_duration() cannot return duration of some BGM

def get_audio_duration(channel="music"): duration = renpy.music.get_duration(channel) return convert_format(int(duration)) def get_audio_position(channel="music"): music_pos = renpy.music.get_pos(channel) if music_pos: return convert_format(int(music_pos)) return "0:00"...
by Li yuanlin
Sun Mar 31, 2024 10:50 pm
Forum: Ren'Py Questions and Announcements
Topic: cannot import name 'App' from 'kivy.app' (E:\renpy project\flashlight\game/python-packages/kivy/app.py)
Replies: 5
Views: 260

Re: cannot import name 'App' from 'kivy.app' (E:\renpy project\flashlight\game/python-packages/kivy/app.py)

First of all what version of kivy are you using and how did you import it in the first place? game/python-packages/kivy/__init__.py and finding the line starting with __version__ = make sure that the file game/python-packages/kivy/app.py is not corrupted and contains the correct definition of the A...
by Li yuanlin
Sun Mar 31, 2024 10:41 pm
Forum: Ren'Py Questions and Announcements
Topic: from plyer import camera causes “can't concat str to bytes” error
Replies: 1
Views: 129

from plyer import camera causes “can't concat str to bytes” error

I'm sorry, but an uncaught exception occurred. After initialization, but before game start. TypeError: can't concat str to bytes -- Full Traceback ------------------------------------------------------------ Full traceback: File "E:\renpy-8.0.0-sdk\renpy\bootstrap.py", line 275, in bootstr...
by Li yuanlin
Sat Mar 30, 2024 7:55 am
Forum: Ren'Py Questions and Announcements
Topic: can we make window icon dynamic?
Replies: 6
Views: 639

Re: can we make window icon dynamic?

anyone else knows how to change configs in game?
by Li yuanlin
Sat Mar 30, 2024 4:03 am
Forum: Ren'Py Questions and Announcements
Topic: cannot import name 'App' from 'kivy.app' (E:\renpy project\flashlight\game/python-packages/kivy/app.py)
Replies: 5
Views: 260

cannot import name 'App' from 'kivy.app' (E:\renpy project\flashlight\game/python-packages/kivy/app.py)

sems to be slash backslash problem,can someone help me?

Code: Select all

init python:
    from kivy.app import App
    from kivy.uix.button import Button
    from kivy.utils import platform
by Li yuanlin
Sat Mar 16, 2024 11:07 am
Forum: Ren'Py Questions and Announcements
Topic: How to let function execute only once each time when if flag is true?
Replies: 2
Views: 196

Re: How to let function execute only once each time when if flag is true?

find a way: label set_qte1_word_name(formal_test=False): if formal_test: $ word = renpy.random.choice(list(formal_test_words_dict.keys())) else: $ word = renpy.random.choice(list(temp_test_words_dict.keys())) $ word_color = renpy.random.choice([blue,green,yellow,red]) jump qte_begin return in screen...
by Li yuanlin
Sat Mar 02, 2024 1:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Can we play sound loop when textbox is showing text?
Replies: 8
Views: 312

Can we play sound loop when textbox is showing text?

Once text is fully showed, stop sound effect.
by Li yuanlin
Thu Feb 22, 2024 1:43 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.count_seen_dialogue_blocks() always returns 0
Replies: 5
Views: 206

Re: renpy.count_seen_dialogue_blocks() always returns 0

I just tested this script with 8.1.3: label start: $ a = renpy.count_seen_dialogue_blocks() "Dialogue_blocks: [a]" $ a = renpy.count_seen_dialogue_blocks() "Dialogue_blocks: [a]" $ a = renpy.count_seen_dialogue_blocks() "Dialogue_blocks: [a]" $ a = renpy.count_seen_dia...