Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed May 22, 2013 10:31 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ren'Py support questions should go here. This forum is for discussing changes to Ren'Py itself.



Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Editra + Ren'Py
PostPosted: Thu Mar 22, 2012 12:02 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
For those of you who don't know, Editra is an open source text editor, written in Python and using the wxWidgets toolkit and the C++-based Scintilla editing component (the same one used by SciTE).

It was one of the editors I considered back in 2008, as a replacement for SciTE - before I eventually settled on jEdit. The reason for the original decision was largely based on the size of the Ren'Py download. jEdit was a relatively small download, and in 2008 Java was installed on most new computers.

It's 2012, and times have changed. Java is now owned by Oracle, and has some not-so-fun licensing bits. The formerly large size of Editra seems less important now that faster internet connections, and incremental updating of Ren'Py. (Which will be improved in a future Ren'Py release.)

For the last week, I decided to revisit my decision, and see what Editra/Ren'Py integration looks like today. So I've spent the last week taking my old code and bringing it up to date, and this is the result:

Attachment:
editra.png
editra.png [ 70.18 KiB | Viewed 1537 times ]


I've managed to add support for Ren'Py specific syntax highlighting and indenting. Editra with Ren'Py will flag indentation errors, and can optionally flag spelling errors. (You'll need to enable this, and pick your language, in the Preferences.)

I'm leaving on a trip for a couple of days, but I decided to post what I have before I go. So you can download the first release of Editra with Ren'Py from:

http://www.renpy.org/dl/editra/

There isn't any launcher integration, yet - you'll have to take care of opening files by hand. Launcher integration is coming soon, but isn't quite ready yet. The linux versions requires that you have wxpython 2.8 or later and setuptools installed, the Windows and Mac versions are standalone. Editra opens a couple of local-only sockets for remote-control purposes - please let me know if you see a firewall warning because of this.

I'd really like people's feedback on this. My current plan is to eventually distribute Editra alongside Ren'Py, replacing jEdit as the default text editor we ship. So I'd like people to bang on this and make suggestions for how to improve it. If it breaks, please let me know.


Finally, let me point out that all credit for Editra goes to Cody Precord. He's been working on Editra - one of the best cross-platform small editors - for over 7 years now. All I did was to write a plugin for Editra that supports the Ren'Py syntax, using the plugin API he put together.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Sat Mar 24, 2012 11:45 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
Is there no interest in this?

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Sat Mar 24, 2012 11:53 am 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3400
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
Sorry, if I wasn't in "crunch mode" I would definitely take a closer look at this. It doesn't have code completion though from what I read?

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Sat Mar 24, 2012 11:55 am 
Veteran
User avatar

Joined: Thu May 01, 2008 1:12 pm
Posts: 353
Location: Estonia
Projects: Winter, winter
I tried. It didn't colour Ren'py code properly. So I went back to coding with Notepad2 and will later try to make a proper edit file for it.


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Sat Mar 24, 2012 12:13 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
Is it not selecting Ren'Py mode at all, or is it starting to color and screwing up? When there's a failure like this, I should know about it - since it works for me.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Sat Mar 24, 2012 12:24 pm 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
Expanding on luminarious problem...

(I think...)The style for Ren'Py is not properly registered with Editra... in the lower right corner, the err... language marker points to Plain Text even though Editra recognises the file as Ren'Py.

And trying to switch to Ren'Py is unsuccessful as it remains in the "Plain Text" mode but switching to Python is successful and the code is coloured again.

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Sat Mar 24, 2012 2:05 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 939
Got not much to say, 'cause I'm an average user...
Tried editra - it highlighted Ren'py code properly for me. And the ability to show whitespaces is a great advantage for my taste (or maybe I just don't know how to set it in Jedit).


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Sat Mar 31, 2012 8:37 pm 
Newbie
User avatar

Joined: Fri Mar 30, 2012 12:12 pm
Posts: 8
so,why not use notepad++?i think it's a good editor.and it is GPL license.


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Sat Mar 31, 2012 8:39 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
winsock wrote:
so,why not use notepad++?i think it's a good editor.and it is GPL license.


It only runs on windows? That pretty much rules it out as the default Ren'Py editor.

I've been writing a bit of code with Editra, and making improvements to it. My hope is to ship it with the June Ren'Py release.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Tue Apr 03, 2012 4:51 pm 
Regular

Joined: Tue Feb 15, 2011 8:00 pm
Posts: 161
Projects: Mutagen : Journey to Haven's Landing
I have tested it out and it seems to work for me. As attached as I am to jEdit, Oracle can do some nasty things with licenses if they want to so the move to a open source reliant editor is very wise.

_________________
Visit my game development group's Facebook page : Timekeeper Games
Mutagen : Journey to Haven's Landing Facebook Page
Follow our Twitter feed too : TK Games


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Tue Apr 03, 2012 5:30 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
I've been using it for a while, and it's not all that great - yet. My current version is improved over the one given above, and it'll be getting better before June.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Wed Apr 04, 2012 11:11 am 
Regular

Joined: Tue Feb 15, 2011 8:00 pm
Posts: 161
Projects: Mutagen : Journey to Haven's Landing
If you need someone to test the new improved version PyTom, I have lots of free time on my hands since I got laid off from my job. So far it looks promising :)

_________________
Visit my game development group's Facebook page : Timekeeper Games
Mutagen : Journey to Haven's Landing Facebook Page
Follow our Twitter feed too : TK Games


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Wed Apr 04, 2012 11:27 am 
Regular

Joined: Tue Feb 15, 2011 8:00 pm
Posts: 161
Projects: Mutagen : Journey to Haven's Landing
Okay, this is weird. The coloring on the if/else etc statements was there on my laptop, but now that I pull up Editra on my desktop the coloring isnt there. Can anyone else replicate this?

Edit: PyTom, is the module you developed only Ren'Py centric in terms of the color coding? Does Editra color regular Python code?

Edit Edit: Nope, Renpy code is still not color coded on my desktop version of Editra.

_________________
Visit my game development group's Facebook page : Timekeeper Games
Mutagen : Journey to Haven's Landing Facebook Page
Follow our Twitter feed too : TK Games


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Thu Apr 12, 2012 3:30 am 
Veteran
User avatar

Joined: Mon Aug 09, 2010 10:02 pm
Posts: 237
Location: California, USA
Projects: Eastern Starlight Romance, Touhou Mecha
Organization: Dai-Sukima Dan
I just tried this on my Windows 7 64-bit computer; just extracted the Windows .zip somewhere and opened Editra.exe. I also can't get Ren'Py syntax coloring to work. Coloring other languages like Python and HTML works fine - those syntax highlighting schemes are automatically used when opening .py and .html files respectively. But Ren'Py highlighting doesn't happen for .rpy. Also, I seem to be getting the same behavior as DragoonHP on the bottom-right language indicator.

In Edit -> Preferences -> Document -> Code, the Default Lexer is Ren'Py. I also see that there's a RenPy Color Scheme in Document -> Syntax Highlighting. Not sure what else needs to be in place. Should there be an entry for Ren'Py / .rpy under the Filetype Associations in Document -> Syntax Highlighting? Because I don't see such an entry in there.

_________________
Dai-Sukima Dan blog


Top
 Profile Send private message  
 
 Post subject: Re: Editra + Ren'Py
PostPosted: Thu Apr 12, 2012 2:34 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
There should be - I'll take a look at why it isn't showing up.

I'm currently using a much-improved version of this code, which I will make another release of when I get some more experience with it.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group