|
29.
|
|
|
There are a number of fairly major caveats to the warp feature. The first is that it only examines a single path, which means that while the path may be representative of some route of execution, it's possible that there may be a bug along some other route. In general, the path doesn't consider game logic, so it's also possible to have a path that isn't actually reachable. (This is only really a problem on control-heavy games, espcially those that use a lot of python code.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/developer_tools.rst:108
|
|
30.
|
|
|
The biggest problem, though, is that no python code is executed before the statement that is warped to. This means that all variables will be uninitalized, which can lead to crashes when they are used. To overcome this, one can define a label ``after_warp``, which is called after a warp but before the warped-to statement executes. The code reached by this label can set up variables in the program, and then return to the preview.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/developer_tools.rst:116
|
|
31.
|
|
|
The warp feature requires :var:`config.developer` to be True to operate.
|
|
|
|
O recurso warp requer: var: `config.developer` para ser True para operar.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/developer_tools.rst:123
|
|
32.
|
|
|
When using renpy.sh or renpy.py from the SDK to run Ren'Py, you will also need to give the ``--game`` option. For example ::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/developer_tools.rst:123
|
|
33.
|
|
|
Debug Functions
|
|
|
|
Funções de depuração
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/developer_tools.rst:127
|
|
34.
|
|
|
Returns a pair giving the filename and line number of the current statement.
|
|
|
|
Retorna um par com o nome do arquivo e o número da linha da instrução atual.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/debug:5
|
|
35.
|
|
|
If :var:`config.log` is not set, this does nothing. Otherwise, it opens the logfile (if not already open), formats the message to 70 columns, and prints it to the logfile.
|
|
|
|
Se: var: `config.log` não estiver definido, isso não fará nada. Caso contrário, ele abre o arquivo de log (se ainda não estiver aberto), formata a mensagem em 70 colunas e a imprime no arquivo de log.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/debug:10
|
|
36.
|
|
|
This watches the given python expression, by displaying it in the upper-left corner of the screen (although position properties can change that). The expression should always be defined, never throwing an exception.
|
|
|
|
Isso observa a expressão python fornecida, exibindo-a no canto superior esquerdo da tela (embora as propriedades de posição possam mudar isso). A expressão deve sempre ser definida, nunca lançando uma exceção.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/debug:16
|
|
37.
|
|
|
A watch will not persist through a save or restart.
|
|
|
|
Um relógio não persistirá ao salvar ou reiniciar.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/debug:21
|