1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
|
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Environment Variables — Ren'Py Documentation</title>
<link rel="stylesheet" href="_static/screen.css" type="text/css" media="screen, projection"/>
<link rel="stylesheet" href="_static/renpydoc.css" type="text/css" media="print" />
<!--[if lt IE 8]>
<link rel="stylesheet" href="_static/renpydoc.css" type="text/css" media="screen, projection"/>
<![endif]-->
<link rel="stylesheet" href="_static/renpydoc.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '6.18.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Ren'Py Documentation" href="index.html" />
<link rel="next" title="Text Editor Integration" href="editor.html" />
<link rel="prev" title="Dealing with Problems" href="problems.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="editor.html" title="Text Editor Integration"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="problems.html" title="Dealing with Problems"
accesskey="P">previous</a> |</li>
<li> <img src="_static/logo.png" width=19 height=21 align=center>
<li> <a href="http://www.renpy.org/">Ren'Py Home</a> |
<li><a href="index.html">Ren'Py Documentation</a></li>
</ul>
</div>
<div class="container">
<div class="span4">
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="problems.html"
title="previous chapter">Dealing with Problems</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="editor.html"
title="next chapter">Text Editor Integration</a></p>
<h4>Search</h4>
<div id="cse-search-form" style="width: 100%;"></div>
<div class="copydata">
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
<br>
</div>
</div>
</div>
</div>
<div class="document span20 last">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="environment-variables">
<h1>Environment Variables<a class="headerlink" href="#environment-variables" title="Permalink to this headline">ΒΆ</a></h1>
<p>Ren'Py accepts a number of environment variables that influence its behavior.
These environment variables may disappear or change between Ren'Py releases.</p>
<p>The following environment variables control the behavior of Ren'Py:</p>
<dl class="docutils">
<dt><tt class="docutils literal"><span class="pre">RENPY_DISABLE_JOYSTICK</span></tt></dt>
<dd>If set, joystick detection is disabled. Use this if a faulty joystick is
causing Ren'Py to advance when not desired.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_DISABLE_FULLSCREEN</span></tt></dt>
<dd>If set, Ren'Py will refuse to go into fullscreen mode.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_DISABLE_SOUND</span></tt></dt>
<dd>This prevents sound playback from occuring. If this variable contains
"pss", sound playback will be disabled.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_EDIT_PY</span></tt></dt>
<dd>The path to an .edit.py file telling Ren'Py how to invoke a text editor.
See <a class="reference internal" href="editor.html#text-editor-integration"><em>Text Editor Integration</em></a> for more information.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_GL_ENVIRON</span></tt></dt>
<dd>Sets the OpenGL texture environment.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_GL_RTT</span></tt></dt>
<dd>Sets the OpenGL render-to-texture method.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_GL_VSYNC</span></tt></dt>
<dd>This determines if Ren'Py will attempt to synchronize with the display's
vertical refresh. (This prevents tearing, at the cost of potentially
lowering framerate.) Set this to "0" to disable synchronization, or
"1" to sync to every vertical refresh.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_LANGUAGE</span></tt></dt>
<dd>If set, gives the translation language Ren'Py will use.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_LESS_MEMORY</span></tt></dt>
<dd>This causes Ren'Py to reduce its memory usage, in exchange for reductions
in speed.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_LESS_UPDATES</span></tt></dt>
<dd>This causes Ren'Py to reduce the number of screen updates that occur.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_LESS_MOUSE</span></tt></dt>
<dd>This causes Ren'Py to disable the mouse at all times.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_SCREENSHOT_PATTERN</span></tt></dt>
<dd>A pattern used to create screenshot filenames. It should contain a single
%d substitution in it. For example, setting this to "screenshot%04d.jpg" will
cause Ren'Py to write out jpeg screenshots rather than the usual pngs.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_SIMPLE_EXCEPTIONS</span></tt></dt>
<dd>When set, this disables Ren'Py's graphical exception handling.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_SKIP_MAIN_MENU</span></tt></dt>
<dd>When set, skips the main menu.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_SKIP_SPLASHSCREEN</span></tt></dt>
<dd>When set, skips the splashscreen.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_SOUND_BUFSIZE</span></tt></dt>
<dd>This controls the sound buffer size. Values larger than the default (2048)
can prevent sound from skipping, at the cost of a larger delay from when a
sound is invoked to when it is played.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_TIMEWARP</span></tt></dt>
<dd>This can be set to make time run faster or slower. For example, setting
a timewarp of 0.5 makes things run at half-speed, while a timewarp of
2.0 makes everything run at twice normal speed.</dd>
<dt><tt class="docutils literal"><span class="pre">RENPY_VARIANT</span></tt></dt>
<dd>This should be set to a space-separated list of screen variants that
Ren'Py is expected to use.</dd>
</dl>
<p>As Ren'Py uses SDL, its behavior can also be controlled by the SDL environment
variables.</p>
<p>At startup, Ren'Py will look in the Ren'Py directory (the one containing
renpy.exe or renpy.py) for the file "environment.txt". If it exists, it will be
evaluated as a python file, and the values defined in that file will be used as
the default values of environment variables.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="editor.html" title="Text Editor Integration"
>next</a> |</li>
<li class="right" >
<a href="problems.html" title="Dealing with Problems"
>previous</a> |</li>
<li> <img src="_static/logo.png" width=19 height=21 align=center>
<li> <a href="http://www.renpy.org/">Ren'Py Home</a> |
<li><a href="index.html">Ren'Py Documentation</a></li>
</ul>
</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en' });
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('012476843541036121001:gx3sqkoaxkm');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.enableSearchboxOnly("http://www.google.com/cse?cx=012476843541036121001:gx3sqkoaxkm");
customSearchControl.draw('cse-search-form', options);
}, true);
</script>
</body>
</html>
|