To generate a custom map with a dedicated server, GSAs will have to create a "lua" file in their configuration directory (~/Klei/DoNotStarveServerDirectory) named worldgenoverride.lua. This file should return a table containing a key "override_enabled" assigned to true or false, and other keys containing tables of settings. An example of this is:
return {
override_enabled = true,
misc = { season="shortboth", world_size="huge", season_start="summer" },
resources = { flint="never", grass="never", sapling="never", trees="never" }
}
Here is the table of options and their potential settings:
return {
override_enabled = true,
unprepared = { -- "never", "rare", "default", "often", "always"
berrybush = "default",
cactus = "default",
carrot = "default",
mushroom = "default",
},
misc = {
task_set = "default", -- Biomes: "classic", "cave_default"
start_location = "default", -- Start: "plus", "darkness", "caves"
autumn = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"
boons = "default", -- "never", "rare", "default", "often", "always"
branching = "default", -- "never", "least", "default", "most"
day = "default", -- "default", "longday", "longdusk", "longnight", "noday", "nodusk", "nonight", "onlyday", "onlydusk", "onlynight"
frograin = "default", -- "never", "rare", "default", "often", "always"
lightning = "default", -- "never", "rare", "default", "often", "always"
loop = "default", -- "never", "default", "always"
season_start = "default", -- "default", "winter", "spring", "summer", "random"
spring = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"
summer = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"
touchstone = "default", -- "never", "rare", "default", "often", "always"
weather = "default", -- "never", "rare", "default", "often", "always"
wildfires = "default", -- "never", "rare", "default", "often", "always"
winter = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"
world_size = "default", -- "default", "medium", "large", "huge"
},
animals = { -- "never", "rare", "default", "often", "always"
alternatehunt = "default",
angrybees = "default",
beefalo = "default",
beefaloheat = "default",
bees = "default",
birds = "default",
butterfly = "default",
buzzard = "default",
catcoon = "default",
frogs = "default",
hunt = "default",
lightninggoat = "default",
moles = "default",
penguins = "default",
perd = "default",
pigs = "default",
rabbits = "default",
tallbirds = "default",
},
monsters = { -- "never", "rare", "default", "often", "always"
bearger = "default",
chess = "default",
deciduousmonster = "default",
deerclops = "default",
dragonfly = "default",
goosemoose = "default",
houndmound = "default",
hounds = "default",
krampus = "default",
liefs = "default",
lureplants = "default",
merm = "default",
spiders = "default",
tentacles = "default",
walrus = "default",
},
resources = { -- "never", "rare", "default", "often", "always"
flint = "default",
flowers = "default",
grass = "default",
marshbush = "default",
meteorshowers = "default",
meteorspawner = "default",
reeds = "default",
rock = "default",
rock_ice = "default",
sapling = "default",
trees = "default",
tumbleweed = "default",
},
}
To customize the world from the Don't Starve Together graphical client for a dedicated server, GSAs can follow the following steps. This is the legacy method.
Creating the Map
To create a custom map for a dedicated server, launch the Don't Starve Together client and select the option to Host Server on the server selection screen. Take note of which slot is used to generate the world, as GSAs will need to set its number in the dedicated server's settings.ini. Then they can select the option to Edit World on the right.
On the Edit World options screen, GSAs may select the world options for the new world they wish to run as a dedicated server. It is not necessary to save their settings as a preset, though they may do so if they wish to reuse the settings later. When finished, select the option to Apply the settings.
Back on the server creation screen, enter a world name and description. This is required, but note that these settings are overridden in the persistent server's settings.ini file, so enter any legal values. The server will briefly appear in Klei's server selection screen, so it's not advised to choose a vulgar or obscene name. Once ready, select the Create Server option on the left.
GSAs will then see the Generating World screen while the map is generated, and next be placed on the Character Selection screen. At this point, the map is generated and there is no need to actually play on it, so select the option to Disconnect and confirm the option to shut down the server (Do it!) when prompted. They may now exit the Don't Starve Together graphical client.
In their Don't Starve Together directory, which is DocumentsKleiDoNotStarveTogethersave on Windows, or ~/.klei/DoNotStarveTogether/save on Linux, there will now be a file named saveindex, and a folder named server_temp. Copy both of these servers into the configuration directory for the dedicated server (or leave them in the same directory if they are not using -conf_dir (this is not recommended!)).
In the Dedicated Server's settings.ini file, ensure that the server_save_slot parameter in the [Network] section matches up with the save slot number GSAs will use. For example, if they are using slot 2, they should have this in their settings.ini file:
เพื่อสร้างแผนที่ที่กำหนดเองที่มีเซิร์ฟเวอร์เฉพาะสัญญาซื้อขายก๊าซธรรมชาติจะต้องสร้าง "หลัว" แฟ้มในไดเรกทอรีการกำหนดค่าของพวกเขา (~ / Klei / DoNotStarveServerDirectory) ชื่อ worldgenoverride.lua ไฟล์นี้ควรกลับมาเป็นตารางที่มีคีย์ "override_enabled" ได้รับมอบหมายให้จริงหรือเท็จและกุญแจอื่น ๆ ที่มีตารางการตั้งค่า ตัวอย่างนี้คือการกลับมา{override_enabled = จริงmisc = {ฤดูกาล = "shortboth" world_size = "ขนาดใหญ่" season_start = "ฤดูร้อน"}, ทรัพยากร = {หิน = "ไม่เคย" หญ้า = "ไม่เคย" หนุ่ม = "ไม่เคย" ต้นไม้ = "ไม่เคย"}} นี่คือตารางของตัวเลือกและการตั้งค่าศักยภาพของพวกเขา: การกลับมา {override_enabled = จริงไม่ได้เตรียมตัวไว้= {- "ไม่เคย", "หายาก", "เริ่มต้น", "มักจะ" "เสมอ" berrybush = "เริ่มต้น", แคคตัส = "เริ่มต้น", แครอท = "เริ่มต้น", เห็ด = "เริ่มต้น"} misc = {task_set = "เริ่มต้น", - Biomes: "คลาสสิก", "cave_default" START_LOCATION = "เริ่มต้น" - เริ่มต้น: "บวก", "ความมืด", "ถ้ำ" ฤดูใบไม้ร่วง = "เริ่มต้น" - "noseason", "veryshortseason", "shortseason", "เริ่มต้น", "longseason", "verylongseason "," สุ่ม "พร=" เริ่มต้น "-" ไม่เคย "," หายาก "," เริ่มต้น "," มักจะ "" เสมอ "แยก=" เริ่มต้น "-" ไม่เคย "," น้อย "," เริ่มต้น "," มากที่สุด "วัน=" เริ่มต้น "-" เริ่มต้น "," longday "," longdusk "," longnight "," noday "," nodusk "," nonight "," onlyday "," onlydusk "," onlynight "frograin =" เริ่มต้น "-" ไม่เคย "," หายาก "," เริ่มต้น "," มักจะ "" เสมอ "ฟ้าผ่า=" เริ่มต้น "-" ไม่เคย "," หายาก "," เริ่มต้น "," มักจะ "" เสมอ "ห่วง=" เริ่มต้น "-" ไม่เคย "," เริ่มต้น "" เสมอ "season_start =" เริ่มต้น "-" เริ่มต้น "," ฤดูหนาว "," ฤดูใบไม้ผลิ "," ฤดูร้อน "," สุ่ม "ฤดูใบไม้ผลิ=" เริ่มต้น "-" noseason "," veryshortseason "," shortseason "," เริ่มต้น "," longseason "," verylongseason "," สุ่ม "ฤดูร้อน=" เริ่มต้น "-" noseason "," veryshortseason "," shortseason "," เริ่มต้น "," longseason "," verylongseason "," สุ่ม "มาตรฐาน=" เริ่มต้น "-" ไม่เคย "," หายาก "," เริ่มต้น "," มักจะ "" เสมอ "สภาพอากาศ= "เริ่มต้น" - "ไม่เคย", "หายาก", "เริ่มต้น", "มักจะ" "เสมอ" ไฟป่า = "เริ่มต้น" - "ไม่เคย", "หายาก", "เริ่มต้น", "มักจะ" "เสมอ" ฤดูหนาว = "เริ่มต้น" - "noseason", "veryshortseason", "shortseason", "เริ่มต้น", "longseason", "verylongseason", "สุ่ม" world_size = "เริ่มต้น" - "เริ่มต้น" "กลาง", "ขนาดใหญ่", "ขนาดใหญ่"} สัตว์ = {- "ไม่เคย", "หายาก", "เริ่มต้น", "มักจะ" "เสมอ" alternatehunt = "เริ่มต้น" angrybees = "เริ่มต้น" beefalo = "เริ่มต้น" beefaloheat = "เริ่มต้น" ผึ้ง = "เริ่มต้น" นก = "เริ่มต้น", ผีเสื้อ = "เริ่มต้น" อีแร้ง = "เริ่มต้น" catcoon = "เริ่มต้น" กบ = "เริ่มต้น" ล่า = " เริ่มต้น "lightninggoat =" เริ่มต้น ", ไฝ =" เริ่มต้น "นกเพนกวิน=" เริ่มต้น "เปิด=" เริ่มต้น ", หมู =" เริ่มต้น "กระต่าย=" เริ่มต้น "tallbirds =" เริ่มต้น "}, มอนสเตอร์ = { - "ไม่เคย", "หายาก", "เริ่มต้น", "มักจะ" "เสมอ" bearger = "เริ่มต้น", หมากรุก = "เริ่มต้น" deciduousmonster = "เริ่มต้น" deerclops = "เริ่มต้น" แมลงปอ = "เริ่มต้น" , goosemoose = "เริ่มต้น" houndmound = "เริ่มต้น" สุนัข = "เริ่มต้น" Krampus = "เริ่มต้น" liefs = "เริ่มต้น" lureplants = "เริ่มต้น" merm = "เริ่มต้น" แมงมุม = "เริ่มต้น" หนวด = "เริ่มต้น" วอลรัส = "เริ่มต้น"} ทรัพยากร = {- "ไม่เคย", "หายาก", "เริ่มต้น", "มักจะ" "เสมอ" หินเหล็กไฟ = "เริ่มต้น", ดอกไม้ = "เริ่มต้น" หญ้า = "เริ่มต้น" marshbush = "เริ่มต้น" meteorshowers = "เริ่มต้น" meteorspawner = "เริ่มต้น" กก = "เริ่มต้น" ร็อค = "เริ่มต้น" rock_ice = "เริ่มต้น" หนุ่ม = "เริ่มต้น", ต้นไม้ = " เริ่มต้น "วัชพืช=" เริ่มต้น "}} ในการปรับแต่งโลกจากอย่าอดลูกค้าแบบกราฟิกร่วมกันเพื่อให้เซิร์ฟเวอร์เฉพาะสัญญาซื้อขายก๊าซธรรมชาติสามารถทำตามขั้นตอนต่อไป นี่คือวิธีการเดิม. สร้างแผนที่การสร้างแผนที่ที่กำหนดเองสำหรับเซิร์ฟเวอร์ทุ่มเทเปิดตัวอย่าอดลูกค้าร่วมกันและเลือกตัวเลือกไปยัง Host Server บนหน้าจอการเลือกเซิร์ฟเวอร์ จดสล็อตซึ่งจะใช้ในการสร้างโลกเช่นสัญญาซื้อขายก๊าซธรรมชาติจะต้องกำหนดจำนวนใน settings.ini เซิร์ฟเวอร์ทุ่มเทของ แล้วพวกเขาก็สามารถเลือกตัวเลือกที่จะแก้ไขโลกด้านขวา. the ในการแก้ไขหน้าจอตัวเลือกโลกสัญญาซื้อขายก๊าซธรรมชาติอาจเลือกตัวเลือกโลกสำหรับโลกใหม่ที่พวกเขาต้องการที่จะทำงานเป็นเซิร์ฟเวอร์เฉพาะ มันไม่จำเป็นที่จะบันทึกการตั้งค่าของพวกเขาเป็นที่ตั้งไว้แม้พวกเขาจะทำเช่นนั้นหากพวกเขาต้องการที่จะนำมาใช้การตั้งค่าในภายหลัง เมื่อเสร็จแล้วเลือกตัวเลือกที่จะใช้การตั้งค่า. กลับไปบนหน้าจอการสร้างเซิร์ฟเวอร์ให้ใส่ชื่อของโลกและคำอธิบาย นี้เป็นสิ่งจำเป็น แต่ทราบว่าการตั้งค่าเหล่านี้จะถูกแทนที่ในไฟล์ settings.ini เซิร์ฟเวอร์ถาวรดังนั้นป้อนค่าทางกฎหมายใด ๆ เซิร์ฟเวอร์ในเวลาสั้น ๆ จะปรากฏในหน้าจอการเลือกเซิร์ฟเวอร์ Klei ดังนั้นก็ไม่ควรที่จะเลือกชื่อหยาบคายหรือลามกอนาจาร พร้อมเมื่อเลือกตัวเลือกเซิร์ฟเวอร์สร้างด้านซ้าย. สัญญาซื้อขายก๊าซธรรมชาติแล้วจะเห็นหน้าจอในขณะที่โลกผลิตแผนที่จะถูกสร้างขึ้นและต่อไปจะถูกวางไว้บนหน้าจอเลือกตัวละคร ณ จุดนี้แผนที่ถูกสร้างขึ้นและมีความจำเป็นต้องเล่นจริงที่มันไม่ให้เลือกตัวเลือกเพื่อตัดการเชื่อมต่อและยืนยันการเลือกที่จะปิดเซิร์ฟเวอร์ (Do it!) เมื่อได้รับแจ้ง ตอนนี้พวกเขาอาจจะออกจากลูกค้าไม่ต้องอดอาหารแบบกราฟิกร่วมกัน. ในอย่าอดอาหารร่วมกันไดเรกทอรีของพวกเขาซึ่งเป็นเอกสาร Klei DoNotStarveTogether บันทึกบน Windows หรือ ~ / .klei / DoNotStarveTogether / บันทึกบน Linux มีขณะนี้จะ ไฟล์ชื่อ saveindex และโฟลเดอร์ชื่อ server_temp คัดลอกทั้งสองเซิร์ฟเวอร์เหล่านี้ลงในไดเรกทอรีการกำหนดค่าสำหรับเซิร์ฟเวอร์ทุ่มเท (หรือเก็บไว้ในไดเรกทอรีเดียวกันถ้าพวกเขาไม่ได้ใช้ -conf_dir (นี้ไม่แนะนำ!)). ในไฟล์ settings.ini เช่าเซิร์ฟเวอร์ที่ให้แน่ใจว่า server_save_slot พารามิเตอร์ใน [Network] ส่วนตรงกับจำนวนช่องบันทึกสัญญาซื้อขายก๊าซธรรมชาติจะใช้ ตัวอย่างเช่นถ้าพวกเขาจะใช้ช่องที่ 2 ที่พวกเขาควรจะมีนี้ในแฟ้ม settings.ini ของพวกเขา
การแปล กรุณารอสักครู่..

การสร้างแผนที่ที่กำหนดเองกับเซิร์ฟเวอร์ทุ่มเท gsas จะต้องสร้าง " ลัวะ " แฟ้มในไดเรกทอรีการกำหนดค่าของพวกเขา ( ~ / klei / donotstarveserverdirectory ) ชื่อ worldgenoverride.lua . ไฟล์นี้จะเป็นตารางที่มีคีย์ " override_enabled " มอบหมายให้จริง หรือ เท็จ และคีย์อื่น ๆที่มีตารางการตั้งค่า ตัวอย่างนี้คือ :
กลับ {
override_enabled = จริงMisc = { ฤดูกาล = " shortboth " world_size = " ใหญ่ " season_start = " ฤดูร้อน " } ,
ทรัพยากร = { หินเหล็กไฟ = " ไม่เคย " หญ้า = " ไม่เคย " ต้นกล้า " ไม่เคย " ต้นไม้ = = " ไม่เคย " } }
ที่นี่คือโต๊ะของตัวเลือกและการตั้งค่าของพวกเขาที่มีศักยภาพ :
กลับมา {
override_enabled = true
unprepared = { . . . " ไม่ " , " หายาก " , " เริ่มต้น " , " มักจะ " , " เสมอ "
berrybush = " เริ่มต้น " , " เริ่มต้น " , แคคตัส =
=
" เริ่มต้น " , แครอทเห็ด = " เริ่มต้น " ,
} {
task_set Misc = = " เริ่มต้น " , -- บิมสเทค : " คลาสสิก " , " cave_default "
start_location = " เริ่มต้น " , -- เริ่มต้น : " บวก " , " ความมืด " , " ถ้ำ "
ฤดูใบไม้ร่วง = " เริ่มต้น " , " . . . noseason " , " veryshortseason " , " shortseason " , " เริ่มต้น " , " " , " " , longseason verylongseason " สุ่ม "
boons = " เริ่มต้น " , " ไม่ " , " หายาก " , " เริ่มต้น " , " มักจะ " , " เสมอ "
แตกแขนง = " เริ่มต้น " , " ไม่ " , " น้อย " ," เริ่มต้น " , " ที่สุด "
วัน = " เริ่มต้น " , " เริ่มต้น " , " longday " , " longdusk " , " longnight " , " noday " , " nodusk " , " nonight " , " onlyday " , " onlydusk " , " onlynight "
frograin = " เริ่มต้น " , " . . . ไม่เคย " , " หายาก " , " เริ่มต้น " , " มักจะ " , " เสมอ "
ฟ้าผ่า = " เริ่มต้น " , " ไม่ " , " หายาก " , " เริ่มต้น " , " มักจะ " , " เสมอ "
loop = " เริ่มต้น " , " ไม่ " , " เริ่มต้น " , " เสมอ "
season_start = " เริ่มต้น " , " เริ่มต้น " , " ฤดูหนาว "" ฤดูใบไม้ผลิ " , " ฤดูร้อน " , " สุ่ม "
ฤดูใบไม้ผลิ = " เริ่มต้น " , " . . . noseason " , " veryshortseason " , " shortseason " , " เริ่มต้น " , " longseason " , " verylongseason " , " สุ่ม "
ฤดูร้อน = " เริ่มต้น " , " . . . noseason " , " veryshortseason " , " shortseason " , " เริ่มต้น " , " " , " " , longseason verylongseason " สุ่ม " ทัชสโตน =
" เริ่มต้น " , " ไม่ " , " หายาก " , " เริ่มต้น " , " มักจะ " , " เสมอ "
อากาศ = " เริ่มต้น " , " ไม่ " , " หายาก "" เริ่มต้น " , " มักจะ " , " เสมอ "
ไฟป่า = " เริ่มต้น " , " ไม่ " , " หายาก " , " เริ่มต้น " , " มักจะ " , " เสมอ "
ฤดูหนาว = " เริ่มต้น " , " . . . noseason " , " veryshortseason " , " shortseason " , " เริ่มต้น " , " longseason verylongseason " , " " , " สุ่ม "
world_size = " เริ่มต้น " , " เริ่มต้น " , " กลาง " , " ใหญ่ " , " ใหญ่ "
} {
สัตว์ = . . . " ไม่ " , " หายาก " , " เริ่มต้น " , " มักจะ " , " เสมอ "
alternatehunt = " เริ่มต้น
"
การแปล กรุณารอสักครู่..
