Page 1 of 1

Updating old game to newest version: failing on hyperlinks

Posted: Sun Apr 17, 2011 1:24 pm
by JinzouTamashii
I'm attempting to release an older version to update it to the new Ren'Py, but it starts to load and won't initialize. The original version it was using, it still runs fine in.

This is the simple code, it's pretty much cut-and-pasted from the Wiki and the define call is the same one used on the Ren'Py Text Tags page.

Code: Select all

label define_escalade: 

    define "A lifting device similar to a vertical ladder that occupants hold onto in order to travel quickly in freefall environments. The most famous one is located in the tallest structure in Midwest Eurasia, the Millenial Arch, measuring at nearly twenty miles high. {p} However, it is constructed with antigravity to only simulate freefall. It does not actually escape Earth’s atmosphere." 

    return 
This is jEdit returning an impenetrable error. It hangs up on every definition with this:

Code: Select all

On line 10065 of C:\Renpy-6.12.0\_Controlled Chaos/game/script.rpy: expected 'name' not found.
define "A manmade material. As its name implies, it is a combination of plastic and glass that is far more durable than either substance alone. Unlike Plexiglas and other popular thermoplastics, it does not soften when heated or harden when cooled."
       ^
What's going on here?

Re: Updating old game to newest version: failing on hyperlin

Posted: Sun Apr 17, 2011 2:12 pm
by PyTom
In recent versions of Ren'Py, define is now a keyword. Use something else, and it will work.

Which wiki page did you get this from?

Re: Updating old game to newest version: failing on hyperlin

Posted: Tue Apr 19, 2011 8:27 am
by JinzouTamashii
Got it, it was the label name. I didn't even think of that. Thanks.

Re: Updating old game to newest version: failing on hyperlin

Posted: Tue Apr 19, 2011 9:02 am
by JinzouTamashii
Sorry for the double post, but it was on the http://www.renpy.org/wiki/renpy/doc/ref ... #Text_Tags page. Here it is.

Code: Select all

 init:
    $ definition = Character(None, window_yfill=True, window_xmargin=20, 
                             window_ymargin=20, window_background=Solid((0, 0, 0, 192)))

label start:

    "A game that instructs on how to make a game? Isn't that a sort of {a=define_quine}Quine{/a}?"

    # ...

label define_quine:

    definition "Quine:\n\nA program that prints itself to its output."