Перейти к содержимому

Как открыть консоль в renpy на андроид

  • автор:

How To Enable Console in Renpy games

FavoriteAdd this game to favorites

First you’ll want to find the folder named “renpy”, this should be in the first page after opening up your game.

Capture.PNG

You’ll want to open this folder and double click the folder named “common”.

Capture2.PNG

Next you’ll want to find a file named “00console”, we’re looking for the one that is .rpy, not .rpyc.
After finding 00console.rpy you’ll want to right click and choose the option “Open with” and select notepad.

Capture3.PNG

Once opened you’ll want to hit “Ctrl + F” to opening up the search bar and you’ll being searching for False, refer to image if confusing.

Capture4.PNG

You’re looking for the part that highlights this False

Capture5.PNG

You’ll then change the line “config.console = False ” to config.console = True, refer to image if confusing

Capture6.PNG

Finally, look to the top right of notepad, select File, and then save.

Capture7.PNG

Start up your game and load file and hit “Shift + O” and this should bring up the console command prompt. From here you’ll be able to use any commands that were listed in your choice of game forums.

Коды для игры

Думаю многие уже пытались взломать игру и терпели неудачу, можно конечно ломать через онлайн редактор сохранений такой как https://www.saveeditonline.com/ но есть способ лучше, консольные коды.

Откройте папка с игрой / Renpy / Common / 00console.rpy с помощью текстового редактора.
Нажмите Ctrl + F и введите config.console = (поиск вместе с =).
Установите для переменной значение True,
чтобы она выглядела так:
config.console = True
Сохраните файл.
Теперь Shift + O должен работать, чтобы открыть консоль в игре.

game.data[‘money’]=500000000 деньги
game.data[‘efficiency’]=100 без понятия
game.logistic.iron_data.resources [‘metal’].storage=1000 руда
game.logistic.iron_data.resources [‘iron’].storage=1000 вроде бы трубы
game.logistic.iron_data.resources [‘fuel’].storage=1000 топливо
game.logistic.iron_data.resources [‘light_industry’].storage=1000 изделия лёгкой промышленности
game.logistic.iron_data.resources [‘medecine’].storage=1000 медикаменты
game.logistic.iron_data.resources [‘food’].storage=1000 продовольствие

Вводить без пробелов так как пробел между .resources и [ сделан по причине того что сайт не пропускал слова длиннее 50 букв

Developer Tools link

Ren’Py includes a number of features to make a developer’s life easier. Many of them need the variable config.developer to be set to True to operate.

Lint link

The Lint tool (available from the launcher) checks the game for potential errors or misoptimizations, and advises the developing team about how to best improve it. Since some of these errors will only affect users on other platforms, it’s recommended to understand and fix all errors, even if the problem can’t be triggered locally.

Lint also includes useful infos and stats about the game.

Note that using Lint is not a substitute for thorough testing.

Shift+O Console link

The debug console makes it possible to interactively run Ren’Py script and Python statements, and immediately see the results. The console is available in developer mode or when config.console is True, and can be accessed by pressing Shift+O.

The console can be used to:

  • Jump to a label.
  • Interactively try out Ren’Py script statements.
  • Evaluate a Python expression or statement to see the result.
  • Trace Python expressions as the game progresses.
  • clear: clear the console history
  • escape: Enables escaping of unicode symbols in unicode strings.
  • exit: exit the console
  • help: show this help
  • jump <label>: jumps to label
  • load <slot>: loads the game from slot
  • long: Print the full representation of objects on the console.
  • reload: reloads the game, refreshing the scripts
  • save <slot>: saves the game in slot
  • short: Shorten the representation of objects on the console (default).
  • stack: print the return stack
  • unescape: Disables escaping of unicode symbols in unicode strings and print it as is (default).
  • unwatch <expression>: stop watching an expression
  • unwatchall: stop watching all expressions
  • watch <expression>: watch a python expression
  • watch short: makes the representation of traced expressions short (default)
  • watch long: makes the representation of traced expressions as is
  • <renpy script statement>: run the statement
  • <python expression or statement>: run the expression or statement

Shift+E Editor Support link

The config.editor variable allows a developer to specify an editor command that is run when the launch_editor keypress (by default, Shift+E) occurs.

Shift+D Developer Menu link

When config.developer is true, hitting Shift+D will display a developer menu that provides easy access to some of the features given below.

Shift+R Reloading link

When config.developer is True, hitting Shift+R will save the current game, reload the game script, and reload the game. This will often place you at the last unchanged statement encountered before Shift+R was pressed.

This allows the developer to make script changes with an external editor, and not have to exit and restart Ren’Py to see the effect of the changes.

Note that game state, which includes variable values and scene lists, is preserved across the reload. This means that if one of those statements is changed, it is necessary to rollback and re-execute the statement to see its new effect.

Shift+I Style Inspecting link

When config.developer is true, pressing Shift+I will cause style inspection to occur. This will display a list of displayables underneath the mouse. For each displayable, it will display the type, the style used, and the size it is being rendered at.

Clicking on the style name will display where the style properties used by the displayable are taken from.

> Fast Skipping link

When config.developer or config.fast_skipping is True, pressing the fast_skip key (by default, ">") causes the the game to immediately skip to the next important interaction. For this purpose, an important interaction is one that is not caused by a say statement, transition, or pause command. Usually, this means skipping to the next menu, but it will also stop when user-defined forms of interaction occur.

Warping to a Line link

Ren’Py supports warping to a line in the script, without the developer to play through the entire game to get there. While this warping technique has a number of warnings associated with it, it still may be useful in providing a live preview.

To invoke warping, run Ren’Py with the —warp command-line argument followed by a filename:line combination, to specify where you would like to warp to. For example:

(Where my_project is the full path to the base directory of your project.)

When warping is invoked, Ren’Py does a number of things. It first finds all of the scene statements in the program. It then tries to find a path from the scene statements to every reachable statement in the game. It then picks the reachable statement closest to, but before or at, the given line. It works backwards from that statement to a scene statement, recording the path it took. Ren’Py then executes the scene statement and any show or hide statements found along that path. Finally, it transfers control to the found statement.

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, especially those that use a lot of Python.

The biggest problem, though, is that Python is not executed before the statement that is warped to. This means that all variables will be uninitialized, 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. This label can set up variables in the program, and then return to the preview.

The warp feature requires config.developer to be True to operate.

Debug Functions link

Returns a pair giving the filename and line number of the current statement.

If config.log is not set, this does nothing. Otherwise, it opens the logfile (if not already open), formats the message to config.log_width columns, and prints it to the logfile.

Stops watching the given Python expression.

This watches the given Python expression, by displaying it in the upper-right corner of the screen.

© Copyright 2012-2022, Tom Rothamel.
Created using Sphinx 1.8.6.

Как открыть консоль в renpy на андроид

First things first, enabling the console.

Open the game directory. (Right-click game in steam > properties > local files tab > browse local files)

Once there, go to renpy > common
Then find the file 00console.rpy
Open it in your preferred text editor and look for the line "config.console = False"
Change it to "config.console = True"
Save and close the file, and you’ve enabled console

To bring it up in game, press Shift + O (That’s the letter, not zero)

*Use of the console can break your game or introduce bugs that wouldn’t otherwise exist, so if you ever get a bug whilst console is enabled, or with a save that has had anything altered with console, include that in a potential bug report. (TL;DR: you’re responsible for the mess you make)
**Bear in mind that the devs can probably completely remove the ability to enable the console if they want to.
***This guide may or may not contain spoilers, but i will not use any black bars.

Now that you’ve enabled the console, you need something you can do it with, so here is a list of a few commands.

player_actor.full_heal()
— Heals the player character completely.

set_level(player_actor, 50)
— Sets the designated characters level, haven’t yet checked what the name is for all of them yet, will come back to this.

player_actor.strength += 1
player_actor.defend += 1
player_actor.intel += 1
player_actor.res += 1
player_actor.agi += 1
— Above commands increase the stat by 1, you can also use -= 1 to reduce it, aswell as any other number. Finally, you can directly set it by just using =, like with money below.

Money = 1000000
— Sets your current amount of money, can also be used with += and -=, like any other number variable.

special_inv.append(angel_wings)
— Adds the special item angel wings to inventory, which reduces all travel time to 5 minutes and remove combat time entirely.

food_inv.add(seafood_soup, 1)
— Adds items to the food inventory, refer to the food item list.

player_inv.add(magic_essence, 1)
— Adds items to the players inventory, in this case, 1 Magical Essence, refer to the item lists.

player_actor.change("hp", 1337)
— Change any value, you can replace "hp" with things like def, res, str, agi, int, mp, and so on.

This section contains the ID’s of all items that go into the special_inv

Maria’s Charm
>
Dungeon Manual
>
Salamander’s Tail
>
Lily’s Spirit Signal
>
Maria’s Spirit Signal
>
Dolly’s Spirit Signal
>
Iris’s Spirit Signal
>
Felina’s Spirit Signal
>
Arisa’s Spirit Signal
>
Rocky’s Core
>
Fafnir’s Jewel
>
Fafnir’s Recharged Jewel
>
Powered Boots
>
Angel Wings
>
Dimensional Pocket
>
Ren’s Fan
>
Dragon Crystal
>
Recovery Kit
>
Arcane Scroll
>
Ino’s Hairpin
>
Magic Goggles
>
Shop Key
>
Yami’s Token
>
Lucifer’s Token
>
Phantom’s Token
>
Garde’s Token
style=»clear: both»>

This section contains IDs for all food items, for use with food_inv (for food materials, check the material section)

Emilia’s Lunch Combo
>
Apple
>
Strawberry
>
Banana
>
Sunny Side Up
>
Bread
>
Cheesecake
>
Fruit Cake
>
Apple Pie
>
Meat Stew
>
Fresh Sushi
>
Smoked Salmon
>
Fish Pate
>
Pate Baguette
>
Fried Fish
>
Rejuvenating Soup
>
Seafood Soup
>
Deluxe Meal
>
Mushroom Noodle
>
Cutlet Bowl
>
Mixed Pizza
>
Royal Hot Pot
style=»clear: both»>

This section contains IDs of all materials, for use with player_inv

Iron
>
Silver
>
Mythril
>
Platinum
>
Dragon Scale
>
Adamantite
>
Wool
>
Spider Web
>
String
>
Ribbon
>
Cloth
>
Wool Cloth
>
Silk
>
Satin
>
Magic Cloth
>
Garnet
>
Aquamarine
>
Citrine
>
Onyx
>
Tiny Fang
>
Light Feathers
>
Leather
>
Rough Skin
>
Soft Fur
>
Quills
>
Turtle Shell
>
Magic Goo
>
Tough Leather
>
Sharp Fang
>
Blue Shell
>
Demon Horn
>
Mystic Fur
>
Metal Goo
>
Chimera Hoof
>
Concentrated Venom
>
Rainbow Prism
>
Ancient Tusk
>
Amber Beak
>
Black Mythril
>
Iron Sand
>
Egg
>
Flour
>
Cheese
>
Lemon
>
Raw Meat
>
Potato
>
Herbs
>
Wild Mushroom
>
Shrimp
>
Tuna
>
Trout
>
Eel
>
Squid
>
Salmon
>
Lobster
>
Swordfish
style=»clear: both»>

This section contains the IDs of all weapons, for use with player_inv

Wooden Katana
>
Odachi
>
Kanshou
>
Bakuya
>
Onimaru
>
Kiku-Ichimonji
>
Asura
>
Masamune
>
Muramasa
>
Wooden Sword
>
Iron Sword
>
Mythril Blade
>
Claymore
>
Flamberge
>
Durandal
>
Excalibur
>
Blood Sword
>
Wooden Rod
>
Iron Rod
>
Ocean Rod
>
Wizard Rod
>
Mystic Rod
>
Volcanic Rod
>
Prism Rod
>
Icarus
>
Paper Fan
>
Dictionary
>
Thunder Tome
>
Frosty Memoir
>
Holy Tome
>
War Grimoire
>
Encyclopedia
>
Niflheim
>
Yellow Bell
>
Silver Bell
>
Healing Chime
>
Demonic Chime
>
Hell’s Lullaby
>
Seraphic Bell
>
Bell of Chaos
>
Iron Lance
>
Steel Spear
>
Knight Lance
>
Mythril Halberd
>
Longinus
>
Dragon Lance
>
Gae Bulg
>
Gungnir
>
Cat Claws
>
Silver Claws
>
Mythril Claws
>
Vampire Talons
>
Tiger Claws
>
Platinum Claws
>
Death’s Grip
>
Blank Chip
style=»clear: both»>

This section contains the IDs of all armor, for use with player_inv

Kunoichi Outfit
>
Light Armor
>
Enchanted Dress
>
Cheongsam
>
Lingerie
>
Clothes
>
Leather Vest
>
Wool Sweater
>
Silk Clothes
>
Hunter Outfit
>
Feral Tunic
>
Ranger Cape
>
Master Gi
>
Battle Suit
>
Assassin Garb
>
Beastmaster
>
Desert Vest
>
Heroic Cloak
>
Dragon Tunic
>
Iron Armor
>
Silver Chainmail
>
Silver Breastplate
>
Quill Armor
>
Tortoise Plate
>
Mythril Chainmail
>
Mythril Armor
>
Platinum Armor
>
Bone Armor
>
Azure Plate
>
Jade Hauberk
>
Black Mail
>
Dragon Cuirass
>
Sentinel
>
Apprentice Robe
>
Silver Lace Gown
>
Warm Robe
>
Silk Robe
>
Slimy Robe
>
Magician Robe
>
Witch Mantle
>
Satin Robe
>
Gothic Dress
>
Spirit Vestment
>
Rainbow Dress
>
Mystic Shroud
>
Luminous Gown
style=»clear: both»>

This section contains al IDs of accessories, for use with player_inv

Gladiator Ring
>
Knight Ring
>
Sorcerer Ring
>
Psychic Ring
>
Thief Ring
>
Silver Ring
>
Mystic Charm
>
Fire Bracelet
>
Ice Bracelet
>
Thunder Bracelet
>
Shadow Bracelet
>
Wild Necklace
>
Feather Charm
>
Dusty Charm
>
Titan Bracelet
>
Ren’s Ribbon
>
Monkey Paw
>
Mini Barrier
>
Leather Sash
>
Trainee Gloves
>
Jeweled Necklace
>
Lucky Charm
>
Garuda Charm
>
Tiger Eye
>
Champion Badge
>
Paladin Badge
>
Archmage Badge
>
Templar Badge
>
Assassin Badge
>
Heroic Crest
>
Berserker Soul
>
Guardian Soul
>
Dragon Soul
>
Mythril Bangle
>
Adamantite Guard
>
Molten Amulet
>
Frost Amulet
>
Thunder Amulet
>
Shadow Amulet
>
Twilight Bangle
>
Demonic Ring
>
Demonic Ring II
>
Seraphic Ring
>
Seraphic Ring II
>
Fiery Core
>
Freezing Core
>
Lightning Core
>
Shadow Core
>
7 Colored Amulet
>*Yes, this one starts with an _, it is not a mistake.

Holy Emblem
>
Dragon Jewel
>
Power Wrist
>
5-leaf Clover
>
Crest of Nobles
>
Spirit Emblem
>
Midas Gloves
>
Phantom Mask
style=»clear: both»>

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *