Page 1 of 1

unsupported format !?

Posted: Tue Apr 19, 2011 11:20 am
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?

Re: unsupported format !?

Posted: Tue Apr 19, 2011 12:16 pm
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.

Re: unsupported format !?

Posted: Tue Apr 19, 2011 12:49 pm
by Alex
Try "...\%..."

Re: unsupported format !?

Posted: Tue Apr 19, 2011 12:51 pm
by Aleema
%% <- Double makes it work.

Code: Select all

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

Re: unsupported format !?

Posted: Tue Apr 19, 2011 2:26 pm
by Lion
thenks, it worked!
%% worked for me :)