Don’t Starve Guide

консольные команды для игры don't starve for Don't Starve

консольные команды для игры don’t starve

Overview

консольные команды для игры don’t starve…

Консоль

Консоль — это элемент игрового интерфейса, предназначенный для ввода игровых команд. Вызвать консоль можно нажатием тильды “~” (кнопки Ё) на клавиатуре. Её можно закрыть нажатием Ctrl + L. При открытии консоли игровое время “замирает”. Была добавлена в обновлении A Little Rain Must Fall. В консоли нельзя писать русским двоеточием и точка-запятой.

Если вам понадобится ввести команду несколько раз, напишите нужную команду, нажмите Enter, снова откройте консоль и нажмите “стрелку вверх”. Команда, введённая вами ранее появится в консоли.

В обновлении The End Is Nigh разработчики заблокировали консоль, но её можно разблокировать.

Алгоритм: 1.Мои Документы 2.Папка «Klei» 3.settings.ini. Откройте файл с помощью блокнота и найдите вот эту строку:

[misc]

ENABLECONSOLE = false
4. Измените строку таким образом:

[misc]

ENABLECONSOLE = true
Теперь консоль должна работать.

Консольные команды для игры don’t starve

Возможности
Консоль открыта
С помощью консоли вы можете:
Призвать любое существо.
Призвать любую структуру (растения, постройки)
Открыть всю карту местности.
Стать бессмертным.
Всё остальное, предусмотренное разработчиками.
DebugSpawn
Общий вид:
DebugSpawn(“строка”)
DebugSpawn — это директива для «призыва» игровых объектов. Фактически, внутри программы, эта директива является вызовом соответствующей функции, которая принимает как минимум один аргумент. Этим аргументом является строковой литерал. Если введённая строка соответствует одному из предопределённых названий для объектов, то программа создаст новый соответствующий объект в том месте, где находится курсор.
Список названий, определённых в программе находится-http://ru.dont-starve.wikia.com/wiki/Консоль/Лист_заготовок
Команды
Для того, чтобы использовать семь сокращённых команд, приведённых ниже, НЕОБХОДИМО использовать следующую строчку: require “consolecommands”
Призыв любого существа или структуры
c_spawn(“Префаб название”,количество)
Изменение процентов здоровья
c_sethealth(Проценты здоровья)
Изменение процентов рассудка
c_setsanity(Проценты рассудка)
Изменение процентов сытости
c_sethunger(Проценты сытости)
Призыв любого предмета в инвентарь
c_give(“Префаб название”,количество)
Режим бога (Бесконечные здоровье, голод и рассудок)
c_godmode()
Если активировать режим бога в состоянии призрака, то режим не включится, но персонаж возродится с сообщением “Игрок … был оживлён по собственной глупости”.

Скорость
c_speed(Скорость)
Обычная – 6. Немного быстрее – 10. Прохождение сквозь стены, объекты и хождение по воде – от 15-ти до 40.

Все рецепты и бесплатное создание
GetPlayer().components.builder:GiveAllRecipes()
Изменение максимального здоровья
GetPlayer().components.health:SetMaxHealth(Количество)
Изменение максимальной сытости
GetPlayer().components.hunger:SetMax(Количество)
Изменение максимального рассудка
GetPlayer().components.sanity:SetMax(Количество)
Пауза голода
GetPlayer().components.hunger:Pause(X)
X – выбрать: true – включить. false – выключить.

Превращение в бобра (Вуди)
GetPlayer().components.beaverness:SetPercent(1)
Телепорт к объекту/животному
c_gonext(“prefab”)
Вы перемещаетесь к самому ближайшему такому объекту.

Удаление объекта/животного
TheInput:GetWorldEntityUnderMouse():Remove()
Разблокировка персонажей
Уиллоу
GetPlayer().profile:UnlockCharacter(“willow”)
Вольфганг
GetPlayer().profile:UnlockCharacter(“wolfgang”)
Венди
GetPlayer().profile:UnlockCharacter(“wendy”)
WX-78
GetPlayer().profile:UnlockCharacter(“wx78”)
Уикерботтом
GetPlayer().profile:UnlockCharacter(“wickerbottom”)
Вуди
GetPlayer().profile:UnlockCharacter(“woodie”)
Вэс
GetPlayer().profile:UnlockCharacter(“wes”)
Максвелл
GetPlayer().profile:UnlockCharacter(“maxwell”)
Всех
GetPlayer().profile:UnlockEverything()
Сохранение настроек профиля
GetPlayer().profile:Save()
Открытие карты
GetWorld().​minimap.MiniMap:ShowArea(0,0,0,10000)​
Пропуск дня
​GetClock():MakeNextDay()
Пропуск нескольких дней
for x = 1, ”50” do GetClock():MakeNextDay() end
Настройка времени дня
GetClock():SetSegs(Время дня, вечера, ночи)
Сумма времени должна быть равна 16.

Пропустить фазу дня
GetClock():NextPhase()
Начать лето
GetSeasonManager():StartSummer()
Начать зиму
GetSeasonManager():StartWinter()
Начать весну (DLC)
GetSeasonManager():StartSpring()
Начать осень (DLC)
GetSeasonManager():StartAutumn()
Запуск дождя
GetSeasonManager():StartPrecip()
Остановка дождя
GetSeasonManager():StopPrecip()
Попадание молнией в игрока
​GetSeasonManager():DoLightningStrike(Vector3(GetPlayer().Transform:GetWorldPosition()))
Попадание молнией под курсором
​print(math.sqrt(GetPlayer():GetDistanceSqToInst(TheInput:GetWorldEntityUnderMouse())))
Don’t Starve Together
Запрет на предсказание движения
Игра начинает подлагивать, но зато игрок именно там, где показано на экране.

ThePlayer:EnableMovementPrediction(false)
Вывести сообщение
c_announce(Текст)
Выводить сообщения периодично
c_announce(Текст, Интервал)
Остановить периодичное выведение сообщений
c_announce()
Сохранить игру
c_save()
Откатить сохранения
При пустом аргументе откатится на 1 сохранение

c_rollback(Число сохранений)
Завершить работу
Сохранение опционально. Поставить в аргумент false, чтобы игра не сохранилась. При пустом аргументе сохраняется

c_shutdown(true/false)
Перезагрузить сервер
Сохранение опционально. Поставить в аргумент false, чтобы игра не сохранилась. При пустом аргументе не сохраняется

c_reset(true/false)
Перегенерировать мир
Старый мир удаляются

c_regenerateworld()
Удалить персонажа и перейти к экрану выбора
c_despawn(player)
Список активных игроков
c_listplayers()
Список всех игроков
c_listallplayers()
Получить объект под курсором
Возможна его модификация. Требуется проверка механизма функции

c_sel()
Набор спелеолога
Персонажу даётся ряд предметов и выученных рецептов

c_testruins()
Сделать пользователя невидимым
c_makeinvisible()

Примечания

Открытие карты: Если вы выйдете из игры, то вся открытая с помощью консоли карта, снова станет неисследованной.
Режим бога: Режим бога отключится, если вы:
Вошли или вышли из пещеры.
Перезашли в игру
Поспали.
Прыгнули в червоточину.
Воспользовались посохом телелокации.
Играя за Вуди превратились в бобра.
Телепортировались с помощью ленивого исследователя
Ссылочка на руководство по данной игре-http://ru.dont-starve.wikia.com/wiki/Консоль

Eng

The Command Console is enabled by default. If for whatever reason it is not, you first need to do some tweaking in your settings.ini of your save. This can be found in the “donotstarve” folder, located in the following paths :

Windows, Mac: <Documents>KleiDoNotstarvesettings.ini

Linux: ~/.klei/DoNotStarve/settings.ini
Locate the settings.ini and open it with Notepad and where it says [MISC]ENABLECONSOLE = false and rewrite it as [MISC]ENABLECONSOLE = true then save the document.

Then to open the console while in game by pressing “~” by default on English keyboards. This can be changed at any time in the controls menu. Also you can hide the console menu again by pressing Ctrl + L.

You will need to run this command once to enable console commands:

RunS​cript(“consolecommands”)
Note: You have to re-enter every command after loading a world.

Simple commands
Spawn prefab
c_spawn(“prefab”, amount)
Improved DebugSpawn(“prefab”), spawns amount of selected “prefab” under the mouse cursor.

Give Item
c_give(“prefab”, amount)
Spawns amount of selected “prefab” in your inventory. Only works with Backpacks and Items that can be stored in the inventory.

Scenario (Not tested)
c_doscenario(scenario)
Apply a scenario script to the selection and run it.

Health
c_sethea​lth(percent)
Sets your health to selected percentage. Note: Use fractional numbers 0.90 = 90%.

Sanity
c_setsanit​y(percent)
Sets your sanity to selected percentage. Note: Use fractional numbers 0.90 = 90%.

Hunger
c_sethunger(pe​rcent)
Sets your hunger to selected percentage. Note: Use fractional numbers 0.90 = 90%.

God Mode
c_godmode()
It won’t drain Sanity, Hunger or Health when attacked anymore. Note that you will need to turn it off and on again after passing through a Worm Hole or sleeping for it to work.

Set running speed
c_speed(value)
Standard runspeed is 1. 10 makes you a bit faster and with 40 you can walk through walls and “over” water.

There’s some other commands, but they’re hard to use and not very useful.

Player commands
Creative mode
​GetPlayer().components.builder:GiveAllRecipes()​
You can craft everything. This includes items you never crafted before.

Maximum health
​​GetPlayer().components.health:SetMaxHealth(value)​
Change the Maximum Health of your Characters

Maximum sanity
​GetPlayer().components.sanity:SetMax(value)​
Change the Maximum Sanity of your Characters

Maximum hunger
​GetPlayer().components.hunger:SetMax(value)​
Change the Maximum Hunger of your Characters

Pause hunger
​GetPlayer().components.hunger:Pause(true)​
Your Characters won’t starve anymore.

Werebeaver
​GetPlayer().components.beaverness:SetPercent(1)​
Turn Woodie into the Werebeaver.

World commands
Teleport to Prefab
​c_gonext(“prefab”)​
After pressing enter, it teleports you to the first numerical instance of the named prefab. If multiple iterations of the prefab exist, a list of the entity numbers will be displayed in the console log, and each subsequent execution of the same command will transport the player from entity to entity in the order they were generated in the world.

Delete Item Under Mouse
​TheInput:GetWorldEntityUnderMouse():Remove()​
After pressing enter, it deletes the item under your mouse

Reveal Map
GetWorld().​minimap.MiniMap:ShowArea(0,0,0,10000)​
Note: the map will return to normal after exiting the game or changing maps, but any new areas will remain explored.

Skip day
​GetClock():MakeNextDay()
Skips the current day.

Skip more days
​for x = 1, 50 do GetClock():MakeNextDay() end​
Skips 50 days in this example. Replace 50 with the amount of days you want to skip.

WARNING: Too big values may freeze the game. (Depending on computer speed)

Skip time units and update
​LongUpdate(X)​
Skips X time units and performs the “LongUpdate” function on world objects

Note: There are 30 time units per segment. To skip a whole day one can either use LongUpdate(480) or use multiplicative values such as LongUpdate(X*16*30) or LongUpdate(X*TUNING.TOTAL_DAY_TIME), with X=days to skip.

Set segments
Usage:

​GetClock():SetSegs(day,dusk,night)
Sets amount of segments. Errors if adds up to over 16. Example:

​GetClock():SetSegs(14,1,1)
Very long day, very short dusk and night (one segment for dusk and one for night)

Skip phase
​GetClock():NextPhase()​
Skips the current phase.

Start Summer
​GetSeasonManager():StartSummer()​
Start summer

Start Winter
​GetSeasonManager():StartWinter()​
Start winter

For the DLC the additional commands are GetSeasonManager():StartSpring()​ and GetSeasonManager():StartAutumn()​

Start Rain
​GetSeasonManager():StartPrecip()​
Start rain.

Stop Rain
​GetSeasonManager():StopPrecip()​
Stop rain.

Do Lightning Strike
​GetSeasonManager():DoLightningStrike(Vector3(GetPlayer().Transform:GetWorldPosition()))​
Lightning strike on player. Will hit lightning rod instead if there is one near

Measure Distance
​print(math.sqrt(GetPlayer():GetDistanceSqToInst(TheInput:GetWorldEntityUnderMouse())))​
Prints the distance between player and object under mouse to the console log (displayed with Ctrl + L by default).

Profile Commands
While profile commands are permanent and do not need to be done each time, they do need to be performed while in a game. You can unlock multiple characters at a time without requiring the line including the save until the very last step.

Unlock Willow
GetPlayer().profile:UnlockCharacter(“willow”)
GetPlayer().profile:Save()
Unlocks Willow. Does not need to be re-entered after the first time unless you lose your profile settings.

Unlock Wolfgang
GetPlayer().profile:UnlockCharacter(“wolfgang”)
GetPlayer().profile:Save()
Unlocks Wolfgang. Does not need to be re-entered after the first time unless you lose your profile settings.

Unlock Wendy
GetPlayer().profile:UnlockCharacter(“wendy”)
GetPlayer().profile:Save()
Unlocks Wendy. Does not need to be re-entered after the first time unless you lose your profile settings.

Unlock WX-78
GetPlayer().profile:UnlockCharacter(“wx78”)
GetPlayer().profile:Save()
Unlocks WX-78. Does not need to be re-entered after the first time unless you lose your profile settings.

Unlock Wickerbottom
GetPlayer().profile:UnlockCharacter(“wickerbottom”)
GetPlayer().profile:Save()
Unlocks Wickerbottom. Does not need to be re-entered after the first time unless you lose your profile settings.

Unlock Woodie
GetPlayer().profile:UnlockCharacter(“woodie”)
GetPlayer().profile:Save()
Unlocks Woodie. Does not need to be re-entered after the first time unless you lose your profile settings.

Unlock Wes
GetPlayer().profile:UnlockCharacter(“wes”)
GetPlayer().profile:Save()
Unlocks Wes. Does not need to be re-entered after the first time unless you lose your profile settings.

Unlock Maxwell (character)
GetPlayer().profile:UnlockCharacter(“waxwell”)
GetPlayer().profile:Save()
Unlocks Maxwell. Does not need to be re-entered after the first time unless you lose your profile settings.

Unlock Wigfrid (Reign of Giants DLC)
GetPlayer().profile:UnlockCharacter(“wigfrid”)
GetPlayer().profile:Save()
Unlocks Wigfrid. Does not need to be re-entered after the first time unless you lose your profile settings.

Unlock Webber (Reign of Giants DLC)
GetPlayer().profile:UnlockCharacter(“webber”)
GetPlayer().profile:Save()
Unlocks Webber. Does not need to be re-entered after the first time unless you lose your profile settings.

Unlock Everything (Currently all characters)
​GetPlayer().profile:UnlockEverything()
Miscellaneous Commands
Clear the morgue
​ErasePersistentString(“morgue”)​
Clears the morgue. Requires closing and reopening the game for changes to be seen.

[link]
SteamSolo.com