Renpy 6.6.2 issue

Forum organization and occasional community-building.
Forum rules
Questions about Ren'Py should go in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
xoanan
Newbie
Posts: 2
Joined: Wed Mar 11, 2009 7:22 am
Contact:

Renpy 6.6.2 issue

#1 Post by xoanan »

Hi All

I am having a few issues with Renpy; let me give you some specs

I am running Renpy on Xubunut 8.10 on a Dell L1000R

For some reason, the Launcher has no SCiT editor(or any editor at all). I can work around that by going into my files and using nano.

If I create one character in init and a few lines in the start, the program runs fine.
When I create 2 characters, the program won't even launch.

Any thoughts?

Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: Renpy 6.6.2 issue

#2 Post by Jake »

xoanan wrote: Any thoughts?
When you've added your second character and the game doesn't start, does it leave a file called 'traceback.txt' in the Ren'Py directory? If it does, can we see it? Regardless of that, could we see the code you've written to cause this problem?

Normally, the traceback would be loaded automatically in the editor if you launch it from the launcher and it breaks, but if the editor isn't working that's probably why you're not seeing anything.

(Also, for future reference, this topic should really have been in the "Ren'Py" sub-forum.)
Server error: user 'Jake' not found

xoanan
Newbie
Posts: 2
Joined: Wed Mar 11, 2009 7:22 am
Contact:

Re: Renpy 6.6.2 issue

#3 Post by xoanan »

Jake wrote:
xoanan wrote: Any thoughts?
When you've added your second character and the game doesn't start, does it leave a file called 'traceback.txt' in the Ren'Py directory? If it does, can we see it? Regardless of that, could we see the code you've written to cause this problem?

Normally, the traceback would be loaded automatically in the editor if you launch it from the launcher and it breaks, but if the editor isn't working that's probably why you're not seeing anything.

(Also, for future reference, this topic should really have been in the "Ren'Py" sub-forum.)
Oops! Sorry!

At any rate, here's the traceback

Code: Select all

  File "/usr/share/games/renpy/renpy/bootstrap.py", line 210, in bootstrap
    renpy.main.main()
  File "/usr/share/games/renpy/renpy/main.py", line 194, in main
    game.script = renpy.script.load_script()
  File "/usr/share/games/renpy/renpy/script.py", line 478, in load_script
    rv = Script()
  File "/usr/share/games/renpy/renpy/script.py", line 155, in __init__
    self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
  File "/usr/share/games/renpy/renpy/script.py", line 372, in load_appropriate_file
    if not self.load_file(dir, fn + source, initcode):
  File "/usr/share/games/renpy/renpy/script.py", line 334, in load_file
    self.update_bytecode()
  File "/usr/share/games/renpy/renpy/script.py", line 427, in update_bytecode
    code = renpy.python.py_compile_exec_bytecode(i.source, filename=i.location[0], lineno=i.location[1])
  File "/usr/share/games/renpy/renpy/python.py", line 218, in py_compile_exec_bytecode
    code = py_compile(source, 'exec', **kwargs)
  File "/usr/share/games/renpy/renpy/python.py", line 202, in py_compile
    raise Exception(msg)
Exception: Syntax error on line 9 of /home/xoanan/Test/game/script.rpy:
    David = Character('David' color="#c8ffc8")

While compiling python block starting at line 9 of /home/xoanan/Test/game/script.rpy.

Here's the script

Code: Select all

xoanan@ubuntu:~/Test/game$ cat script.rpy
# You can place the script of your game in this file.

init:
    # Declare images below this line, using the image statement.
    # eg. image eileen happy = "eileen_happy.png"

    # Declare characters used by this game.
    $ bob = Character('bob', color="#c8ffc8")
    $ David = Character('David' color="#c8ffc8")


# The game starts here.
label start:

    bob "Hi David."

    David "Hi Bob."

    bob "Say, who is that man coming towards us now?"

    David "I don't know"

I just cut out David completely and removed everything except the first line and the project launched.

User avatar
sake-bento
Eileen-Class Veteran
Posts: 1909
Joined: Sat Jan 26, 2008 5:58 pm
Completed: http://sakevisual.com/games.html
Projects: Every Sunrise, Shinsei
Organization: sakevisual
Tumblr: sakevisual
Deviantart: sakevisual
itch: sakevisual
Contact:

Re: Renpy 6.6.2 issue

#4 Post by sake-bento »

I'm not sure if this is the problem, but if you put a comma in David's character, it might help:

Code: Select all

$ David = Character('David', color="#c8ffc8")

Post Reply

Who is online

Users browsing this forum: No registered users