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.
-
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:
#1
Post
by JinzouTamashii » Sun Apr 17, 2011 1:24 pm
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?
-
PyTom
- Ren'Py Creator
- Posts: 15562
- 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:
#2
Post
by PyTom » Sun Apr 17, 2011 2:12 pm
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
"Silly and fun things are important." - Elon Musk
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:
#3
Post
by JinzouTamashii » Tue Apr 19, 2011 8:27 am
Got it, it was the label name. I didn't even think of that. Thanks.
-
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:
#4
Post
by JinzouTamashii » Tue Apr 19, 2011 9:02 am
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."
Users browsing this forum: Bing [Bot], Google [Bot]