Square brackets in dialogue cause problems in History

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
xavimat
Eileen-Class Veteran
Posts: 1333
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy
Contact:

Square brackets in dialogue cause problems in History

#1 Post by xavimat » Thu Sep 20, 2018 9:32 am

These three examples show the square brackets correctly in the dialogue, but cause an error in the History screen. Renpy is looking for the variables "Test 1" etc.

Code: Select all

label start:
    "[[Test 1...]"
    "Go to History now."

Code: Select all

label start:
    "\[Test 2 ...]"
    "Go to History now."

Code: Select all

define e = Character("Eileen", what_prefix="[[", what_suffix="]")
label start:
    e "Test 3..."
    "Go to History now."
This does not work even in the dialogue:

Code: Select all

define e = Character("Eileen", what_prefix="\[", what_suffix="]")
label start:
    e "Test 4..."
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
unknown [Sci-Fi - mystery - computer]
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
xavimat
Eileen-Class Veteran
Posts: 1333
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy
Contact:

Re: Square brackets in dialogue cause problems in History

#2 Post by xavimat » Fri Sep 21, 2018 2:40 pm

This should be solved in the next release:
https://github.com/renpy/renpy/commit/5 ... 2f84adad37
Thanks again, PyTom.
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
unknown [Sci-Fi - mystery - computer]
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: No registered users