Integrating SciTE with Ren'Py
This page has some hints on better integrating SciTE with Ren'Py. We assume you're using the version of SciTE we've compiled with Ren'Py support, which can be found here.
Running Ren'Py from SciTE
By editing SciTE's configuration files, it's possible to launch Ren'Py from SciTE. It's even possible to integrate this with the warp feature of Ren'Py, so that execution of the game starts from the current line in the Ren'Py program. (But see Developer Tools for a number of important caveats.)
You can integrate Ren'Py with SciTE by adding a few lines to the renpy.properties configuration file. The easiest way to edit this file is to run SciTE, and then pick Options > Open renpy.properties from the menubar. Then you want to append to the bottom of that file:
command.name.0.*.rpy=Start Ren'Py command.0.*.rpy="t:\ab\renpy-devel\run_game.exe" command.subsystem.0.*.rpy=1 command.is.filter.0.*.rpy=1 command.name.1.*.rpy=Warp to Line command.1.*.rpy="t:\ab\renpy-devel\run_game.exe" "--warp" "$(FileNameExt):$(SelectionStartLine)" command.subsystem.1.*.rpy=1 command.is.filter.1.*.rpy=1
Modify these lines to replace t:\ab\renpy-devel with the full path to your installation of Ren'Py. Close SciTE, restart it, and open a .rpy file. There will now be two new options on the Tools menu. The first, Start Ren'Py, will start the given instance of Ren'Py. The second, Warp to Line, will try to warp to the line the cursor is on, if possible.
Running SciTE from Ren'Py
It is also possible to run SciTE from Ren'Py. To do this, you'll need to add code like:
init: $ config.editor = '"t:\\ab\\scite\\scite-1.62-renpy-1\\scite-renpy.exe" -check.if.already.open=1 -open:%(filename)s -goto:%(line)d'
You'll need to chage t:\\ab\\scite\\scite-1.62-renpy-1\\scite-renpy.exe to the path to the SciTE program you use. Backslashes in the path need to be doubled, as you're in a python string.
Once the game has had this line added to it, start it up. Pressing shift-e in the game will start an editor at the line corresponding to the currently executing Ren'Py statement.