renpy input problem

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
SSooooo
Newbie
Posts: 7
Joined: Fri Sep 28, 2018 5:10 am
Contact:

renpy input problem

#1 Post by SSooooo »

Hello!
I am not good at English, but I will explain the problem as I can.

I wanted to make an ok button in Input.
So I made a button with this link.
viewtopic.php?p=291807#p291807

But there was a problem.
When I type a sentence with Korean, the last word isn't entered like example.

For example, if I type only '가', it will not be entered.
And if I type '가나', It will be entered '가'.

Finally I deleted the button.

It turned out that , Korean must be pressed Enter twice
(English was input by a single press.)

Is there a way to solve this problem?

philat
Eileen-Class Veteran
Posts: 1912
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: renpy input problem

#2 Post by philat »

I don't know the technical aspects of this, but from experience, the first enter is when the last character is entered, and the second enter is when the resulting string is actually returned. (이거 렌파이만 그런 거 아니고, 영미권에서 만든 프로그램 쓸 때 가끔 한글입력 지원이 미흡할 때 화면 위쪽에 작은 상자 생기면서 타자 쳐질 때 있잖아요, 그럴 때도 글자 친 다음에 스페이스나 엔터 쳐줘야 입력이 제대로 인식되는 경우 꽤 있죠. 결국은 조합형 글자라서 조합 끝, 이라고 따로 신호를 줘야 하는 게 이슈인 것 같은데, 제대로 한글지원되는 프로그램에서는 어떤 방식으로 그걸 해결하는지 저도 프로그래머가 아니라서 모르겠고...)

Again because I don't know the technical aspects of this, I don't know if there's anything you can do to necessarily fix it, but I do know that you can work around it using VariableInputValue, which, for whatever reason, circumvents the problem.

Code: Select all

default input_test_var = "아무말"

screen testinput:
    vbox:
        input value VariableInputValue("input_test_var", returnable=True)
        textbutton "OK" action Return()

label start:
    scene black
    call screen testinput
    "[input_test_var]"

SSooooo
Newbie
Posts: 7
Joined: Fri Sep 28, 2018 5:10 am
Contact:

Re: renpy input problem

#3 Post by SSooooo »

It was resolved in one fell swoop.
Thank you soooo much! I hope you always have a nice day!
(이것 때문에 꽤 골머리를 썩었는데 정말 고맙습니다…늘 행복하세요TT)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]