Jump to content

Recommended Posts

Hello, I used to run a custom function consolecommand to count a bunch of prefabs in the world so I wouldn't have to enter each one manually, this used to work fine last time I played but now returning to the game it seems to no longer work, no matter what function I add to consolecommands.lua in the games scripts directory, they don't seem to work in-game.
I've also tried adding customcommands.lua to both the documents klei directory and the world file itself but that doesn't seem to work or do anything either and I can't figure out why?
Any help would be greatly appreciated.
The commands I'm trying to run goes as follows tho this applies to anything else I input too:
 

function countscript()
	c_announce("Knights:")
	c_announce(c_countprefabs"knight")
	c_announce("Bishops:")
	c_announce(c_countprefabs"bishop")
	c_announce("Rooks:")
	c_announce(c_countprefabs"rook")
	c_announce("Beefalo:")
	c_announce(c_countprefabs"beefalo")
	c_announce("Goats:")
	c_announce(c_countprefabs"lightninggoat")
	c_announce("Mandrakes:")
	c_announce(c_countprefabs"mandrake_planted")
end

 

Update: Adding customcommands.lua into "C:\Users\[UsrName]\Documents\Klei\DoNotStarveTogether\[RandomNumbers]\Cluster_[Number]\Master" fixed the issue and commands are once again working.
Still no clue why consolecommands.lua in the games directory doesn't seem to work anymore?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...