Lemma Soft Forums
Supporting creators of visual novels and story-based games since 2003.
Visit our new games list, blog aggregator, IRC channel, and Discord.
NaNoRenO ends when April begins .
Activation problem? Email PyTom.
- Unanswered topics
- Active topics
- Search
- Members
- The team
- Board indexRen’Py Visual Novel EngineRen’Py Questions and Announcements
- Search
[SOLVED] How to enable console?
[SOLVED] How to enable console?
#1 Post by Lord Hisu » Thu Feb 15, 2018 6:49 pm
There should be a way to enable the good and old console when running Ren’Py. The virtual console is very bad for debugging.
I want a console that let me use the print function in the middle of my code and see what is happening and when is happening. I want to watch transitions while printing positions, etc, all defined in my own classes.
Name already in use
renpy / renpy / common / 00keymap.rpy
- Go to file T
- Go to line L
- Copy path
- Copy permalink
- Open with Desktop
- View raw
- Copy raw contents Copy raw contents
Copy raw contents
Copy raw contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
- Copy lines
- Copy permalink
Footer
© 2023 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Как открыть консоль renpy
, the tilde, by default) to open the console. # Type ‘help’ for in-console help. Press the same key again to close the console. # # The following configuration variables are offered for customization: # — config.debug_console_layer: the layer the debug console will draw on, will be created at init-time. default: ‘debug_console’ # — config.debug_console_history_size: the number of commands to store in history. default: 100 # — config.debug_console_keybind: the key combination used to open the console. default: ‘shift_K_BACKQUOTE’, which defaults to the tilde (
) on QWERTY. # — config.debug_console_custom_commands: a simple name -> function dictionary for custom commands. Command functions should take a single parameter, the full command and return a tuple of (result, no_error). # # The following styles are offered for customization: # — debug_console: the debug console frame. # # — debug_console_input: the input frame. # — debug_console_prompt: the ‘>’ or ‘. ‘ text preceding a command input. # — debug_console_input_text: the actual text that is being input by the user. # # — debug_console_history: the history frame. # — debug_console_history_item: an item frame in the history. # — debug_console_command: a command frame in the command history. # — debug_console_command_text: the actual command text. # — debug_console_result: the result frame from a command in the command history, if applicable. # — debug_console_result_text: the actual result text. # # — debug_console_trace: the trace box used to show expression and variable traces. # — debug_console_trace_var: the variable in a trace box. # — debug_console_trace_value: the value in a trace box. # # Changelog: # v1.3b: Fixed some rollback issues, fixed custom command invocation, updated documentation, added styles for the trace box. # v1.3: Added error highlighting, added ability to run init commands (image, transform definitions. ), delegated Python block execution # to Ren’Py. # v1.2: Added custom keybinding to open console, allowed pressing the console key again to close it, UI revamp, # added more styling options, added configuration variables, added support for variable and expression tracing, Python expressions # now also capture console (stdout, stderr) output, added custom commands, partially fixed rollback issue. # v1.1b: Added nicer handling of multi-line input. # v1.1: Fixed python: block support, fixed spacing issue in showing multi-line commands in command history. # v1.0: Initial release. # # Known bugs/defects: # — Menus can mess with flow. This is solved by adding ‘return’ to the end of every console-defined menu option. # — When writing multi-line blocks, you can’t go back to a previous line to edit it. # — Rollback after executing a Ren’Py command in the console works, but isn’t fully smooth yet: added commands will be marked as non-seen. # Tested on Ren’Py 6.13.11, 6.14.0 and 6.14.1. Not guaranteed to work on any other version. # Configuration and style initalization. python early: # Create configuration variables. locked = config.locked config.locked = False config.debug_console_layer = ‘debug_console’ config.debug_console_history_size = 100 config.debug_console_keybind = ‘shift_K_BACKQUOTE’ config.debug_console_custom_commands = < >config.locked = locked # Create default styles. See above for documentation. style.create(‘debug_console’, ‘frame’) style.debug_console.background = «#00000000» style.debug_console.xpos = 0 style.debug_console.ypos = 0 style.debug_console.xpadding = 0 style.debug_console.ypadding = 0 style.create(‘debug_console_input’, ‘frame’) style.debug_console_input.background = «#00000040» style.debug_console_input.xpos = 0 style.debug_console_input.ypos = 0 style.debug_console_input.xpadding = 0 style.debug_console_input.ypadding = 0 style.debug_console_input.xfill = True style.create(‘debug_console_prompt’, ‘text’) style.debug_console_prompt.color = «#ffffff» style.debug_console_prompt.xpos = 50 style.create(‘debug_console_input_text’, ‘input’) style.debug_console_input_text.color = «#fafafa» style.debug_console_input_text.xpos = 50 style.create(‘debug_console_history’, ‘frame’) style.debug_console_history.background = «#00000000» style.debug_console_history.xpos = 0 style.debug_console_history.ypos = 0 style.debug_console_history.xpadding = 0 style.debug_console_history.ypadding = 0 style.debug_console_history.xfill = True style.debug_console_history.yfill = True style.create(‘debug_console_history_item’, ‘frame’) style.debug_console_history_item.background = «#00000040» style.debug_console_history_item.xpos = 0 style.debug_console_history_item.ypos = 0 style.debug_console_history_item.xpadding = 0 style.debug_console_history_item.ypadding = 0 style.debug_console_history_item.top_margin = 4 style.debug_console_history_item.xfill = True style.create(‘debug_console_command’, ‘frame’) style.debug_console_command.background = «#00000040» style.create(‘debug_console_command_text’, ‘text’) style.debug_console_command_text.color = «#ffffff» style.debug_console_command_text.xpos = 60 style.create(‘debug_console_result’, ‘frame’) style.debug_console_result.background = «#00000000» style.create(‘debug_console_result_text’, ‘text’) style.debug_console_result_text.color = «#ffffff» style.debug_console_result_text.xpos = 80 style.create(‘debug_console_error_text’, ‘text’) style.debug_console_error_text.color = «#ff0000» style.debug_console_error_text.xpos = 80 style.create(‘debug_console_trace’, ‘frame’) style.debug_console_trace.background = «#00000040» style.debug_console_trace.xalign = 1.0 style.debug_console_trace.top_margin = 10 style.debug_console_trace.right_margin = 20 style.create(‘debug_console_trace_var’, ‘text’) style.debug_console_trace_var.bold = True style.create(‘debug_console_trace_value’, ‘text’) init 3735929054 python: import sys # Simple circular buffer to hold the command history; # will automatically delete older commands once the limit has reached. class RingBuffer: def __init__(self, size, default_value=None): self.size = size self.default_value = default_value self.data = [ self.default_value for i in xrange(size)] def push(self, value): self.data.pop(0) self.data.append(value) def pop(self): self.data.append(self.default_value) return self.data.pop(0) def get(self, i): return self.data[i] def put(self, i, value): self.data[i] = value class DebugConsole: def __init__(self, layer=’debug_console’, history_size=100): self.enabled = False self.layer = layer self.history_size = history_size self.history = RingBuffer(self.history_size, default_value=(None, None, None)) self.custom_commands = <> self.traced_expressions = [] self.parent_context = None self.parent_node = None self.tail_node = None self.script_reentry_point = None self.help_message = («» «Ren\’Py debug console\n» » by Shiz, C and delta.\n» «commands:\n» » — execute Ren’Py command as if it were placed in a script file.\n» » $
— execute Python command.\n» » clear — clear the command history.\n» » crash — crash the game with an appropriate error message.\n» » reload — reload the game.\n» » trace — trace variable or expression in overlay.\n» » untrace — stop tracing variable or expression.\n» » untraceall — stop tracing any variable or expression.\n» » help — show this message.\n» » exit/quit/
Быть DIK — Гайд по консольным командам (включая специальные команды второго сезона)
Устали узнавать, что пропустили одну непристойную сцену, потому что она закрыта платным доступом? Или что вы узнали, что ваше последнее сохранение было в местном магазине на углу в первом сезоне, когда вы уже потратили 2 часа, пропуская экзамены и кат-сцены только для того, чтобы понять, что ваша близость к члену фактически испортила все ваше прохождение? Или вы просто хотите ♥♥♥♥ поиграть в игру и исследовать ее (или использовать ее) со всей ее ценностью? Гайд содержит инструкции по включению консоли и несколько консольных команд, которые оказались работающими.
Гайд по консольным командам
Введение/Примечания
Да, добро пожаловать в руководство по генератору денег. Некоторые могут спросить, почему такое руководство необходимо; когда игра гордится реиграбельностью, а эти деньги вообще не так уж и сложно заработать. Все очень важные пункты. Однако это руководство создано просто как попытка для тех, кто хочет поиграть с игрой с помощью консольных команд или изучить игру целиком, не тратя слишком много времени на повторное прохождение всей игры.
Отказ от ответственности: включение консоли отключит достижения. Рекомендуется отключить консоль перед достижением определенной сцены, а затем позволить ей воспроизвести ее, если вы стремитесь к таким достижениям, как разблокировка всех непристойных сцен или иллюстраций.
Как включить плохую консоль?
Быть ΔIK [BAD] работает на консоли RenPy, и включить эту конкретную консоль очень просто, когда дело доходит до BAD.
Шаг 1.Перейдите туда, где когда-либо установлен BAD. В таком случае; файлы игр будут расположены на вашем жестком диске > Steam > steamapps > common > Быть ΔIK. Кроме того, можно также щелкнуть правой кнопкой мыши «Быть ΔIK» в вашей библиотеке Steam, щелкнуть «Свойства», перейти на вкладку «Локальные файлы», затем нажать «Просмотреть локальные файлы» &#, и оттуда вам будут представлены файлы игр.
Шаг 2. То, что вы ищете, находится в папке &#renpy&#, за которой следует папка &#common&#.
Шаг 3: Конкретный файл, который нам нужен, называется �console.rpy&#, а НЕ 00console.rpyc. Правильный файл показан на следующем изображении.
Шаг 4: Откройте этот файл с помощью программного обеспечения, такого как Notepad или Notepad++. Затем нажмите Ctrl+F и найдите следующую строку: config.console = False.
Шаг 5:Наконец, чтобы включить консоль, просто измените &#False&# на &#True&#. Помните, что это приведет к отключению достижений, и вам нужно будет вернуть значение False, чтобы снова включить достижения.
Поздравляем, теперь у вас есть доступ к командной консоли и теперь вы можете повеселиться.
Шаг 6: чтобы активировать консоль в игре, вам нужно нажать Shift+O, и вы увидите следующее окно:
С этого момента вы можете использовать соответствующие команды в зависимости от ситуации, в которой вы оказались.
Читы, которые мне удалось найти
Теперь давайте перейдем к самому интересному; просто введите эти команды на дисплее консоли renpy, и эффекты должны произойти немедленно.
Общие читы
Изменение вашего статуса ΔIK:
dk = [предпочтительный номер]
Влияние на количество денег, которые у вас есть:
Влияние на количество очков RP, которые у вас есть:
RP[имя] = [предпочитаемое число], например. RPjosy = 10
Примечание: я читал в другом месте, что эти имена подтверждены для работы с консольной командой RP, эта команда может не работать с такими персонажами, как Дерек.