Ren'Py Help with RenPy scripts end tags

Dolmen

Newbie
May 27, 2020
56
86
Has anyone also experienced the problem that the end-tags ignore the back-slash? For example:
{i}xxxxx{\i} xxxx ### When behind it the text should be displayed normally, but it continues in italic and the same for {\b}
Or with: {size=+5}xxxxx{\size} #### the error message appears:

While processing text tag {size} in u'{size=+5}Hello, Jasmine xxxxx{size}'.:
File "game/script.rpy", line 658, in script
"{size=+5}Hello, Jasmine xxxxx{\size}"
Exception: empty value supplied for tag u'size'


In the first line the back-slash is not displayed at all, although it is there again in the full traceback.
Also here at F95 in the code input it is ignored from my side, because the [\CODE] not ended.
Is it maybe because of my operating system? I would be very grateful for a tip.
 
  • Angry
Reactions: ProjectSkywardFan

Thicc Lord

Purveyor of Assets
Trial Moderator
Uploader
Donor
Game Developer
Mar 20, 2019
4,547
11,078
When closing tags, you need to use a forward slash (/).
A backslash is an escape character.
See more here:
 

Dolmen

Newbie
May 27, 2020
56
86
When closing tags, you need to use a forward slash (/).
A backslash is an escape character.
Very, very thanks, ThiccStudios!
How in the world did I come up with the backslash and not notice it?! o_O :oops:
I've been writing the end tags with forward slash for years and on this project I just didn't recognize it! Of course I went to RenPy's site and looked at it, but even there I just didn't recognize my confusion!
Thanks! :)
 
  • Like
Reactions: Thicc Lord

Thicc Lord

Purveyor of Assets
Trial Moderator
Uploader
Donor
Game Developer
Mar 20, 2019
4,547
11,078
No problem, sometimes we just can’t see the woods for the trees.
 
  • Like
Reactions: Dolmen