First, the console opening method
一、控制臺(tái)開啟方法
1, the default open: usually, the console of “Famine” is opened by default. You can turn it on by pressing the “~” key (wave key) to the left of the “1” key on your keyboard.
1、默認(rèn)開啟:通常情況下,《饑荒》的控制臺(tái)是默認(rèn)開啟的。你可以通過按下鍵盤上“1”鍵左邊的“~”鍵(波浪鍵)來打開它。
2. If the console is not turned on:
First, go to your “My Documents” folder.
Inside, find the “Klei” folder and proceed to the “DoNotStarve” folder.
In this folder, you will find a file named “settings.ini”. Open it using Notepad or any text editor.
Use Ctrl+F shortcut to search for “ENABLECONSOLE=false”.
Change the “false” in this line to “true”, i.e. to “ENABLECONSOLE=true”.
Save the file and restart the game, the console should now be on.
2、如果控制臺(tái)未開啟:
首先,前往你的“我的文檔”文件夾。
在里面找到“Klei”文件夾,并繼續(xù)找到“DoNotStarve”文件夾。
在這個(gè)文件夾中,你會(huì)找到一個(gè)名為“settings.ini”的文件。使用記事本或任何文本編輯器打開它。
使用Ctrl+F快捷鍵搜索“ENABLECONSOLE=false”。
將這一行的“false”改為“true”,即改為“ENABLECONSOLE=true”。
保存文件并重新啟動(dòng)游戲,控制臺(tái)現(xiàn)在應(yīng)該已經(jīng)開啟。
How to use console commands
二、控制臺(tái)指令使用方法
1. Generate items:
To generate items on the ground: use c_spawn(“item code”, quantity). For example, c_spawn(“pigman”, 10) will spawn 10 pigmen on the ground.
To spawn items in your backpack: use c_give(“item code”, quantity). For example, c_give(“ice”, 40) will spawn 40 ice cubes in your backpack.
1、生成物品:
在地上生成物品:使用c_spawn("物品代碼", 數(shù)量)。例如,c_spawn("pigman", 10)會(huì)在地上生成10只豬人。
在背包里生成物品:使用c_give("物品代碼", 數(shù)量)。例如,c_give("ice", 40)會(huì)在你的背包里生成40個(gè)冰塊。
2.Adjust life, spirit and hunger values:
Use c_sethealth(value) to adjust life values.
Use c_sethunger(value) to adjust hunger values.
Use c_setsanity(numeric value) to adjust the spirit value.
2、調(diào)整生命、精神和饑餓值:
使用c_sethealth(數(shù)值)來調(diào)整生命值。
使用c_sethunger(數(shù)值)來調(diào)整饑餓值。
使用c_setsanity(數(shù)值)來調(diào)整精神值。
3. Set the speed:
Use c_speed(numeric value) to adjust the player's movement speed. For example, c_speed(20) will set the player's speed to 20 times the base speed.
3、設(shè)置速度:
使用c_speed(數(shù)值)來調(diào)整玩家的移動(dòng)速度。例如,c_speed(20)會(huì)將玩家的速度設(shè)置為基礎(chǔ)速度的20倍。
4. godmode:
Enter c_godmode() to enable God Mode, which makes the player invincible. Note, however, that certain actions (such as sleeping, jumping wormholes, teleporting, etc.) will disable God Mode.
4、上帝模式:
輸入c_godmode()來開啟上帝模式,使玩家無敵。但請(qǐng)注意,某些行為(如睡覺、跳蟲洞、傳送等)會(huì)解除上帝模式。
Cautions
三、注意事項(xiàng)
Console commands usually have a large impact on game balance, and it is recommended that they be used only with knowledge of their effects.
In multiplayer online games, the use of console commands may affect the game experience of other players, so please use them with caution.
Before changing game settings or files, it is best to back up the original files to prevent unforeseen circumstances.
控制臺(tái)指令通常對(duì)游戲平衡有較大影響,建議僅在了解指令效果的情況下使用。
在多人聯(lián)機(jī)游戲中,使用控制臺(tái)指令可能會(huì)影響其他玩家的游戲體驗(yàn),請(qǐng)謹(jǐn)慎使用。
更改游戲設(shè)置或文件前,最好備份原始文件以防意外情況。