Updating old game to newest version: failing on hyperlinks

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
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:

Updating old game to newest version: failing on hyperlinks

#1 Post 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?
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
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

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

#2 Post 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?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

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: Updating old game to newest version: failing on hyperlin

#3 Post by JinzouTamashii »

Got it, it was the label name. I didn't even think of that. Thanks.
Don't worry, we can get through it together. I didn't forget about you! I just got overwhelmed.
https://cherylitou.wordpress.com

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: Updating old game to newest version: failing on hyperlin

#4 Post 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."
Don't worry, we can get through it together. I didn't forget about you! I just got overwhelmed.
https://cherylitou.wordpress.com

Post Reply

Who is online

Users browsing this forum: piinkpuddiin