Searching labels etc in multiple scripts

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
QuantumHive
Newbie
Posts: 12
Joined: Thu Nov 20, 2014 12:58 pm
Contact:

Searching labels etc in multiple scripts

#1 Post by QuantumHive »

Hi,

I'm new to Ren'Py. I just started in an existing project, with that there is already a lot of Ren'Py scripts.
Now I'm also new to Python, but I'm pretty experienced with other imperative programming languages like c++, c#, java, php etc.

I'm used to 'fancy' IDE's like Visual Studio, which has a file-tree so you can organize your source code and quickly navigate to it.
I'm kinda missing this with Ren'Py and its standard editor Editra. For me it consumes developing time to ask around and find out where everything is located in source code.
For example, in Visual Studio, you have features like, find all references, or go to declaration to quickly navigate while viewing source. I assume when coding with Ren'Py there is no feature like this by default?

So how do you guys handle these problems? Are there any tips on how to organize and structure your scripts, and how to use the editor or maybe an alternative editor which has those features I talked about?

QuantumHive
Newbie
Posts: 12
Joined: Thu Nov 20, 2014 12:58 pm
Contact:

Re: Searching labels etc in multiple scripts

#2 Post by QuantumHive »

Well, I already found the Projects plugin, for source control and tree-view! Great one! So what about finding references?

QuantumHive
Newbie
Posts: 12
Joined: Thu Nov 20, 2014 12:58 pm
Contact:

Re: Searching labels etc in multiple scripts

#3 Post by QuantumHive »

And I guess I will use ctrl + shift + f, to find things in the directory..

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Searching labels etc in multiple scripts

#4 Post by Donmai »

What text editor are you using, Editra or jEdit? In jEdit, for example, you can simply open the 'search & replace' window and select 'all buffers' to search on all open scripts at the same time. Editra must have a similar feature, but I don't use it.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Searching labels etc in multiple scripts

#5 Post by PyTom »

I'll note you can also click "Navigate" in the launcher, and that will let you open files, labels, etc.
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

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Searching labels etc in multiple scripts

#6 Post by Donmai »

PyTom wrote:I'll note you can also click "Navigate" in the launcher, and that will let you open files, labels, etc.
:shock: Thank you, Tom. Never tried that before. :o
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: Searching labels etc in multiple scripts

#7 Post by xavimat »

PyTom wrote:I'll note you can also click "Navigate" in the launcher, and that will let you open files, labels, etc.
In the Navigation panel I find specially useful the "TODO" feature.
Add "# TODO something" in your code and Renpy will rememeber it for you.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], MisterPinetree