unsupported format !?

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
Lion
Newbie
Posts: 21
Joined: Tue Mar 08, 2011 7:49 pm
Contact:

unsupported format !?

#1 Post by Lion »

hi!
one of my Characters's short value is "a" (you know:

Code: Select all

a "hi"
instade of

Code: Select all

"adam" "hi"
...)
and everything is fine and dandy, but then line number 15 of my script get this!

Code: Select all

ValueError: unsupported format character 'a' (0x61) at index 46
while i would understand it if i couldn't use "a" at all, i do infact use it!
(line 14) a "..."
(line 15) a "Its might be a prank... no, actually its 100% a prank!"
and line 14 is just fine, but once the game get to line 15, crush! O.O

i seriusly dont get what the problem here!
obviusly im doing something wrong here, but i just dont get where im wrong!?

thenks for the helpers

edit:
lol i figured it out, the unsupported 'a' wasn't the character's 'a', it was the 'a' after "100%" and before "prank"
a "Its might be a prank... no, actually its 100% A prank!"
i guess it's something to do with "%(-)s", but then, how do i use the sign "%" without cuseing errors?

JinzouTamashii
Eileen-Class Veteran
Posts: 1686
Joined: Mon Sep 21, 2009 8:03 pm
Projects: E-mail me if you wanna rock the planet
Location: USA
Contact:

Re: unsupported format !?

#2 Post by JinzouTamashii »

Ren'Py doesn't like that percentage without a backslash in front of it, if I remember right. In my old game, I just flat out said "percent" instead. It was easier.
Don't worry, we can get through it together. I didn't forget about you! I just got overwhelmed.
https://cherylitou.wordpress.com

User avatar
Alex
Lemma-Class Veteran
Posts: 3093
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: unsupported format !?

#3 Post by Alex »

Try "...\%..."

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: unsupported format !?

#4 Post by Aleema »

%% <- Double makes it work.

Code: Select all

a "Its might be a prank... no, actually its 100%% A prank!"

Lion
Newbie
Posts: 21
Joined: Tue Mar 08, 2011 7:49 pm
Contact:

Re: unsupported format !?

#5 Post by Lion »

thenks, it worked!
%% worked for me :)

Post Reply

Who is online

Users browsing this forum: No registered users