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: 1460
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: pilgrimcreations
Location: Spain
Contact:

Square brackets in dialogue cause problems in History

#1 Post by xavimat »

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..."
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
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: pilgrimcreations
Location: Spain
Contact:

Re: Square brackets in dialogue cause problems in History

#2 Post by xavimat »

This should be solved in the next release:
https://github.com/renpy/renpy/commit/5 ... 2f84adad37
Thanks again, PyTom.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: No registered users