Script Error? SOLVED.

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
User avatar
Talann
Regular
Posts: 132
Joined: Thu May 09, 2013 12:02 pm
Projects: Shooting Stars, REBORN
Contact:

Script Error? SOLVED.

#1 Post by Talann » Mon Aug 19, 2013 9:28 am

Okay, I really don't know what happened and I have no idea how to sort out this error (since I'm still new to Ren'Py.)
I typed my script, no problem.
And when I tried to test it, this popped up.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 373, in script
  File "game\screens.rpy", line 26, in python
Exception: Color string must be 3, 4, 6, or 8 hex digits long.
Er... I don't get it.
I was halfway through the script when this popped up... So what I'm assuming is that the beginning of the script is fine...
Any help would be appreciated.
Thank you!

Here is the full error traceback

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 373, in script
  File "game\screens.rpy", line 26, in python
Exception: Color string must be 3, 4, 6, or 8 hex digits long.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\execution.py", line 288, in run
    node.execute()
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\ast.py", line 453, in execute
    renpy.exports.say(who, what, interact=self.interact)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\exports.py", line 757, in say
    who(what, interact=interact)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\character.py", line 795, in __call__
    self.do_display(who, what, cb_args=self.cb_args, **display_args)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\character.py", line 671, in do_display
    **display_args)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\character.py", line 450, in display_say
    what_text = show_function(who, what_string)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\character.py", line 655, in do_show
    **self.show_args)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\character.py", line 263, in show_display_say
    return renpy.display.screen.get_widget(screen, "what")
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\display\screen.py", line 620, in get_widget
    screen.update()
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\display\screen.py", line 266, in update
    self.screen.function(**self.scope)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\screenlang.py", line 1217, in __call__
    renpy.python.py_exec_bytecode(self.code.bytecode, locals=scope)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\python.py", line 1297, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game\screens.rpy", line 26, in <module>
    text who id "who"
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\ui.py", line 448, in __call__
    w = self.function(*args, **keyword)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\text\text.py", line 1097, in __init__
    super(Text, self).__init__(**properties)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\display\core.py", line 131, in __init__
    self.style = renpy.style.Style(style, properties, heavy=True)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\style.py", line 837, in __init__
    build_style(self)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\style.py", line 646, in build_style
    my_updates.extend(expand_properties(p))
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\style.py", line 531, in expand_properties
    newval = func(val)
  File "C:\Users\iTalan\Downloads\Ren'Py\renpy\easy.py", line 65, in color
    raise Exception("Color string must be 3, 4, 6, or 8 hex digits long.")
Exception: Color string must be 3, 4, 6, or 8 hex digits long.

Windows-post2008Server-6.2.9200
Ren'Py 6.15.7.374
Shooting Stars 1.0
Last edited by Talann on Mon Aug 19, 2013 9:38 am, edited 1 time in total.

User avatar
Kato
Miko-Class Veteran
Posts: 649
Joined: Tue Jan 15, 2013 4:45 am
Projects: Memories of Summer Winds
Organization: Blue Sphere Group
Location: Perth, Western Australia
Contact:

Re: Script Error?

#2 Post by Kato » Mon Aug 19, 2013 9:31 am

It looks like you've set a colour to something that uses the wrong amount of hex digits (as the error says). Without seeing the code itself that's the best I can give you I'm afraid. Make sure, on the lines the error mentioned the hex codes you used to set a colour ar 3, 4, 6 or 8 digits long.
Image Image
Kato, Producer & Programmer for Blue Sphere Group. Current Projects: Memories of Summer Winds

User avatar
Talann
Regular
Posts: 132
Joined: Thu May 09, 2013 12:02 pm
Projects: Shooting Stars, REBORN
Contact:

Re: Script Error?

#3 Post by Talann » Mon Aug 19, 2013 9:37 am

@Kato - Oh god, I feel so dumb now... Thanks a lot! XD

Post Reply

Who is online

Users browsing this forum: Google [Bot]