Don't Starve Together

Don't Starve Together

Super Wall DST
DYC  [developer] 10 Dec, 2016 @ 7:18am
Custom "recipe" for fast build tool 为快速建造工具自定义“配方”
If you really want to add your custom "recipe" to the fast build tool, now there is a way to do this!
如果你很想把你自己的“配方”加到快速建造工具中,现在可以实现了!
Last edited by DYC; 11 Dec, 2016 @ 1:22am
< >
Showing 1-5 of 5 comments
DYC  [developer] 10 Dec, 2016 @ 7:33am 
How to do it 步骤:
1. Create a file named "superwall_custom.lua" in the root folder of the game. 在游戏根目录创建一个名为"superwall_custom.lua"的文件。
2. Add your custom "recipes" into the file and save it. 把你自己的“配方”加进去并保存。
3. Start your game and you will find your custom "recipes" at the end in fast build tool. 启动游戏后你会在快速建造工具的最后面找到你的自定义“配方”。

An image for the file path 文件路径见此图[i63.tinypic.com]

An example is as below. You can copy and paste it into the file and see how it looks in the game. Then you can write your own with the same format. 下面是一个例子,你可以把它复制粘贴到那个文件里,再在游戏中看看效果。然后你可以照着相同格式写你自己的。

SuperWall.AddCustomWallSet({ { walltype="stonewall", offset=Vector3(0,0,0), }, --Offset is the relative coordinate of the wall. Y should always be zero. 偏移指的是墙的相对坐标。Y轴坐标必须是零。 { walltype="limestonewall", offset=Vector3(1,0,1), }, { walltype="limestonewall", offset=Vector3(2,0,2), }, { walltype="limestonewall", offset=Vector3(1,0,-1), }, { walltype="limestonewall", offset=Vector3(2,0,-2), }, }) SuperWall.AddCustomWallSet({ name="My custom recipe!", -- If you are really lazy, name is also optional... 如果你非常懒的话,名字也不是必须的。。 description="This is my custom recipe.", -- Description is optional. 描述不是必须的 pivot=Vector3(-3,0,-3), -- Pivot is optional. Default value of it is (0,0,0). 中心点不是必须的,它的默认值为(0,0,0) { walltype="woodwall", offset=Vector3(0,0,0), height=4, }, -- Height is optional. Default value of it is 4. 高度不是必须的,默认值为4 { walltype="woodwall", offset=Vector3(-1,0,0), height=3, }, { walltype="woodwall", offset=Vector3(-2,0,0), height=2, }, { walltype="woodwall", offset=Vector3(-3,0,0), height=1, }, { walltype="woodwall", offset=Vector3(1,0,0), height=3, }, { walltype="woodwall", offset=Vector3(2,0,0), height=2, }, { walltype="woodwall", offset=Vector3(3,0,0), height=1, }, { walltype="woodwall", offset=Vector3(0,0,-1), height=3, }, { walltype="woodwall", offset=Vector3(0,0,-2), height=2, }, { walltype="woodwall", offset=Vector3(0,0,-3), height=1, }, { walltype="woodwall", offset=Vector3(0,0,1), height=3, }, { walltype="woodwall", offset=Vector3(0,0,2), height=2, }, { walltype="woodwall", offset=Vector3(0,0,3), height=1, }, }) SuperWall.AddCustomWallSet({ name="test", description="test description", pivot=Vector3(0,0,0), { walltype="stonewall", offset=Vector3(0,0,0), height=2, }, { walltype="fence", offset=Vector3(-1,0,0), height=4, rotation=270, }, -- rotation is useful only when the walltype is fence or fencegate. 旋转仅当墙类型为栅栏或栅栏门时才有用。 { walltype="fencegate", offset=Vector3(-2,0,0), height=4, rotation=270, isswingright=false,}, -- isswingright is useful only when the walltype is fencegate. 向右打开仅当是栅栏门时才有用。 { walltype="fencegate", offset=Vector3(-3,0,0), height=4, rotation=270, isswingright=true,}, { walltype="fence", offset=Vector3(-4,0,0), height=4, rotation=270, }, { walltype="stonewall", offset=Vector3(-5,0,0), height=2, }, { walltype="wooddoor", offset=Vector3(1,0,0), height=4, }, { walltype="stonedoor", offset=Vector3(2,0,0), height=4, }, { walltype="haydoor", offset=Vector3(3,0,0), height=4, }, { walltype="ruindoor", offset=Vector3(4,0,0), height=4, }, { walltype="limestonedoor", offset=Vector3(5,0,0), height=4, }, { walltype="moonrockdoor", offset=Vector3(6,0,0), height=4, }, { walltype="woodwall", offset=Vector3(1,0,-1), height=4, }, { walltype="stonewall", offset=Vector3(2,0,-1), height=4, }, { walltype="haywall", offset=Vector3(3,0,-1), height=4, }, { walltype="ruinwall", offset=Vector3(4,0,-1), height=4, }, { walltype="limestonewall", offset=Vector3(5,0,-1), height=4, }, { walltype="moonrockwall", offset=Vector3(6,0,-1), height=4, }, })

Now you can also use Super Wall Maker to make generate the code!
你现在也可以用超级墙编辑器来生成这个代码了!

Only you can see your custom "recipe". 只有你自己看得到你自己的自定义“配方”

Note that, if you encounter any game crash, you can just delete the file or rename it. 如果你碰到了任何游戏崩溃问题,你可以把那个文件删了或者重命名。
If you know nothing about lua, it is not suggested to do this. 如果你对lua一点也不了解,那么不推荐去弄这些。
Last edited by DYC; 20 Feb, 2017 @ 11:16pm
DYC  [developer] 20 Feb, 2017 @ 6:02am 
中文教程[tieba.baidu.com]
DYC  [developer] 19 Dec, 2017 @ 6:30am 
maybe
Stone 15 Feb, 2020 @ 5:48pm 
这个位置文件在哪里呀?
DYC  [developer] 19 Feb, 2020 @ 7:27am 
饥荒根目录,要你自己创建,如果你不用快速建造工具可以不管
< >
Showing 1-5 of 5 comments
Per page: 1530 50