饥荒联机版

饥荒联机版

59 个评价
Instantly unlock all skill trees
由 hamurlik 制作
Some console commands to get 15 insight points on all characters
   
奖励
收藏
已收藏
取消收藏
Mod
Here's my mod that does this with some buttons:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3119663996
The mod just provides buttons to do the same thing you can do with commands. Doesn't matter which one you use.


The command
This command will give characters with skill trees all 15 insight points, mark final bosses as defeated for lunar and shadow affinity, and do Wigfrid's more specific tasks.

PLEASE NOTE! Your current skill trees progress will be erased and overwritten!

Open the console by pressing "~". This button is usually below "Esc" and left of "1".
Paste this into the console and press enter:
local a=TheSkillTree:GetMaximumExperiencePoints()local b={"wilson","willow","wolfgang","wathgrithr","woodie","wormwood"}for c,d in ipairs(b)do TheSkillTree:AddSkillXP(a,d)end;local e={"fuelweaver_killed","celestialchampion_killed","wathgrithr_container_unlocked","wathgrithr_horn_played"}for c,d in ipairs(e)do TheGenericKV:SetKV(d,"1")end;TheGenericKV:SetKV("wathgrithr_instantsong_uses",tostring(TUNING.SKILLS.WATHGRITHR.INSTANTSONG_CD_UNLOCK_COUNT))
Your game may freeze for a bit while it's pasting.
You must use this command from the main menu.
Explanation
Here is a human readable version of the code above:
local maxXp = TheSkillTree:GetMaximumExperiencePoints() local skillChars = { "wilson", "willow", "wolfgang", "wathgrithr", "woodie", "wormwood" } for i,v in ipairs(skillChars) do TheSkillTree:AddSkillXP(maxXp, v) end local boolKv = { "fuelweaver_killed", "celestialchampion_killed", "wathgrithr_container_unlocked", "wathgrithr_horn_played" } for i,v in ipairs(boolKv) do TheGenericKV:SetKV(v, "1") end TheGenericKV:SetKV("wathgrithr_instantsong_uses", tostring(TUNING.SKILLS.WATHGRITHR.INSTANTSONG_CD_UNLOCK_COUNT))
You cannot paste this into the game, as it has multiple lines.

An alternative way to write this without loops and variables would look like this:
TheSkillTree:AddSkillXP(160, "wilson") TheSkillTree:AddSkillXP(160, "willow") TheSkillTree:AddSkillXP(160, "wolfgang") TheSkillTree:AddSkillXP(160, "wathgrithr") TheSkillTree:AddSkillXP(160, "woodie") TheSkillTree:AddSkillXP(160, "wormwood") TheGenericKV:SetKV("fuelweaver_killed", "1") TheGenericKV:SetKV("celestialchampion_killed", "1") TheGenericKV:SetKV("wathgrithr_instantsong_uses", "10") TheGenericKV:SetKV("wathgrithr_container_unlocked", "1") TheGenericKV:SetKV("wathgrithr_horn_played", "1")


Manual
Modify XP
Manually change XP:
TheSkillTree.skillxp.wilson=160;TheSkillTree:UpdateSaveState("wilson")

To modify other characters, replace wilson in the code snippet above to one of these:
wilson willow wolfgang woodie wormwood wathgrithr
Note! Wigfrid is referred to as Wathgrithr in the code!

As for the amount, 160 xp is 15 skill points.
Oddly enough, 0-4 xp is 0 points, 5-12 is 1 point, etc. I don't know the pattern.

Alternatively, you can use
TheSkillTree:AddSkillXP(160, "wilson")
This adds XP instead of overwritting it, but otherwise they're the same.




Defeated bosses and Wigfrid requirements
Here is how you can mark bosses as defeated (for lunar and shadow affinity), and complete Wigfrid requirements:
TheGenericKV:SetKV("fuelweaver_killed", "1") TheGenericKV:SetKV("celestialchampion_killed", "1") TheGenericKV:SetKV("wathgrithr_instantsong_uses", "10") --yes, 10 is intentional TheGenericKV:SetKV("wathgrithr_container_unlocked", "1") TheGenericKV:SetKV("wathgrithr_horn_played", "1")
Copy and paste any specific line.


Will this get me banned?
No. This functionality, these commands, were provided by Klei themselves. I just formatted it for easy copy-pasting.

When Klei cares about something, they protect it in the code.
This is why there is no way to play a DLC character you don't own using console commands, or unlock skins.
Skill trees, on the other hand, have no protection at all. Klei doesn't care.


31 条留言
Bronyparty 9 月 30 日 上午 11:16 
The skilltree commands aren't working for unlocking the anfinity
Marc Spector 6 月 26 日 上午 7:33 
your commands doesnt work for me
Silentstorm 5 月 18 日 下午 7:12 
thanks i can now lunar blast
yippi
FlickerDitz 3 月 23 日 下午 10:43 
it doesn't need to be from main menu, you just need to press cntrl to switch the console mode to "local" instead of "remote"
Byfrkn 1 月 20 日 上午 10:49 
To reset the affinity just wrote 1 to 0 :
TheGenericKV:SetKV("fuelweaver_killed", "0")
TheGenericKV:SetKV("celestialchampion_killed", "0")
TheGenericKV:SetKV("wathgrithr_instantsong_uses", "0")
TheGenericKV:SetKV("wathgrithr_container_unlocked", "0")
TheGenericKV:SetKV("wathgrithr_horn_played", "0")
Boatman 2024 年 10 月 13 日 上午 3:20 
well I can confirm that boss defeats worked for me.
I think that ppl reporting it had already unlocked all insight points when they used command and assumed that only boss defeats part didn't work

thx for the guide and correction:)
hamurlik  [作者] 2024 年 10 月 13 日 上午 1:39 
You're probably right. I tested those on my own a caveless server, and there's a big difference. I edited it to say only from the main menu just in case.

Also I haven't tested those in a while, but they probably work. Some report that the commands for unlocking boss defeats don't work though.
Boatman 2024 年 10 月 12 日 上午 3:41 
These commands DO NOT work while the server is active.
They DO WORK however if you use them from the main menu.
So, yeah... pls correct the guide
CruelSky 2024 年 8 月 25 日 上午 8:07 
boss kill commands dont work
Whyro 2024 年 7 月 24 日 下午 5:47 
The boss killing commands do not work for me. İt's my own toasted server and even after disconnecting and reconnecting it doesn't change