Launching Edit Script on Vista, Script structure (solved)
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.
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.
- fioricca
- Veteran
- Posts: 333
- Joined: Fri Feb 19, 2010 3:17 am
- Completed: Rising Angels Reborn (2013), Rising Angels Fates: Allegiance (2017)
- IRC Nick: souten
- Contact:
Launching Edit Script on Vista, Script structure (solved)
Hello! I have just recently downloaded ver. 6.10.02 about a week ago, and am unable to load/launch the text editor after clicking on the Edit Script option. I have tried to copy the jedit application file into a few different areas but it still wouldn't work; clicking on the application itself yields the same result. I stumbled across an old thread in this forum which provided an attachment for users who faced the same problem with Windows 97/98, and tried downloading that file, but it looks like that file works only on Windows 97/98. I've looked at the FAQs and various sections Ren'Py tutorials to no avail.
I have no knowledge of programming at all, and am unsure of how else I can script without having to open jedit/clicking on the Edit Script option. I'm using Vista Home Premium (SP2), 32-bit, 3.00GB RAM.
What can I do? Thank you very much in advance for any assistance.
eta; If I may ask another question, do the commands have to be structured in some way - for instance, define commands would have to be written prior to the dialogue commands, or would writing define commands/inserting image commands at some other part of the script (like towards the end, for instance) have different effects? What is the proper structure?
If it's still not clear, is
define s = Character('Sylvie', color="#c8ffc8")
define m = Character('Me', color="#c8c8ff")
label start:
"I'll ask her..."
m "Um... will you..."
m "Will you be my artist for a visual novel?"
the same as:
label start:
"I'll ask her..."
m "Um... will you..."
m "Will you be my artist for a visual novel?"
define s = Character('Sylvie', color="#c8ffc8")
define m = Character('Me', color="#c8c8ff")
Thank you very much for your help!
I have no knowledge of programming at all, and am unsure of how else I can script without having to open jedit/clicking on the Edit Script option. I'm using Vista Home Premium (SP2), 32-bit, 3.00GB RAM.
What can I do? Thank you very much in advance for any assistance.
eta; If I may ask another question, do the commands have to be structured in some way - for instance, define commands would have to be written prior to the dialogue commands, or would writing define commands/inserting image commands at some other part of the script (like towards the end, for instance) have different effects? What is the proper structure?
If it's still not clear, is
define s = Character('Sylvie', color="#c8ffc8")
define m = Character('Me', color="#c8c8ff")
label start:
"I'll ask her..."
m "Um... will you..."
m "Will you be my artist for a visual novel?"
the same as:
label start:
"I'll ask her..."
m "Um... will you..."
m "Will you be my artist for a visual novel?"
define s = Character('Sylvie', color="#c8ffc8")
define m = Character('Me', color="#c8c8ff")
Thank you very much for your help!
Last edited by fioricca on Fri Feb 19, 2010 7:12 pm, edited 2 times in total.
-
number473
- Regular
- Posts: 195
- Joined: Tue Dec 15, 2009 4:20 am
- Projects: The Duke's Daughter
- Location: Cape Town
- Contact:
Re: Unable to launch Edit Script on Vista, Script structure
In order to run jEdit you need Java. Go to http://www.java.com/getjava/ and it should automatically detect your os so that you get the right version. The other alternative is to use another editor. On the Ren'Py site, if you click on editors on the side it will give you the option to download the other editor SciTE, which will run w/o Java. Just unzip in into the Ren'Py directory and then change the setting from the launcher.
Regarding the other question, this from the reference:
Regarding the other question, this from the reference:
Image statements can either appear in init blocks, or are implicitly placed in an init block with priority 990. (changed in 6.9.0)
In other words it treats it as if it was in an init block anyway.If not inside an init block, the define statement will automatically be run with init priority 0.
Mental weather report: Cloudy with a possibility of brain storms.
- fioricca
- Veteran
- Posts: 333
- Joined: Fri Feb 19, 2010 3:17 am
- Completed: Rising Angels Reborn (2013), Rising Angels Fates: Allegiance (2017)
- IRC Nick: souten
- Contact:
Re: Unable to launch Edit Script on Vista, Script structure
It works perfectly!! Thank you so very much!!
Regarding the second one - this is going to sound silly of me, but I... don't really get it. What is an init block?
Regarding the second one - this is going to sound silly of me, but I... don't really get it. What is an init block?
-
number473
- Regular
- Posts: 195
- Joined: Tue Dec 15, 2009 4:20 am
- Projects: The Duke's Daughter
- Location: Cape Town
- Contact:
Re: Launching Edit Script on Vista (solved), Script structure
Ren'Py script is structured i such a way that there are special blocks of code called init blocks where definitions and initializations are done. From the Reference:
You'll see something similar when you open the script for a new project the first time.
So you get code that looks something like this:The init statement is used to execute blocks of Ren'Py statements before the script executes. Init blocks are used to define images and characters, to set up unchanging game data structures, and to customize Ren'Py.
Code: Select all
init:
# image and character definitions go here
label start:
# actual game script goes hereMental weather report: Cloudy with a possibility of brain storms.
- fioricca
- Veteran
- Posts: 333
- Joined: Fri Feb 19, 2010 3:17 am
- Completed: Rising Angels Reborn (2013), Rising Angels Fates: Allegiance (2017)
- IRC Nick: souten
- Contact:
Re: Launching Edit Script on Vista, Script structure
Aaaahh I see. Thank you so much! *_*
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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: Launching Edit Script on Vista (solved), Script structure
Now that the define and image statements are automatically run at init-time, there isn't much need for explicit init blocks anymore.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- fioricca
- Veteran
- Posts: 333
- Joined: Fri Feb 19, 2010 3:17 am
- Completed: Rising Angels Reborn (2013), Rising Angels Fates: Allegiance (2017)
- IRC Nick: souten
- Contact:
Re: Launching Edit Script on Vista, Script structure (solved)
I understand. Thank you very much. 
Who is online
Users browsing this forum: No registered users