Server admin
All configuration files are written with their defaults on first start, to mods/Driftholm_Driftholm/ in the server folder. Edit a file and restart the server to apply the change. Your edits are kept: the server rewrites each file at start with the values it loaded, and leaves the previous version next to it as <name>.json.bak.
Ground rules: rules.json #
{
"ProtectMainWorld": true,
"RegrowSeconds": 30,
"KeepItemsOnDeath": true,
"PurseLostOnDeathPercent": 25,
"UnloadIdleIslandsAfterSeconds": 300
}
ProtectMainWorld: whiletrue, players cannot place blocks in the main world and every natural block broken there grows back. Set it tofalsefor an ordinary, buildable main world with no regrowth. See Main world.RegrowSeconds: how long a block takes to grow back, unless its rule ingathering.jsonsets its own time. At least 1.KeepItemsOnDeath: whiletrue, players keep their items when they die in the main world and on islands. Set it tofalseto lose items as the game's own rules say. Either way this option decides it for the main world and every island, and the server writes the result into each world's ownconfig.json(Death>ItemsLossMode); the other death settings there are left as they are. Worlds made by other plugins are not touched.PurseLostOnDeathPercent: the share of the coins in a player's purse lost on death, from 0 (nothing) to 100. Coins in the bank are never lost.UnloadIdleIslandsAfterSeconds: an island with nobody on it is saved and unloaded after this long, and loaded again when someone goes there. Each running island costs the server a thread and memory, so leave this on for a public server.0never unloads; any other value is treated as at least 60.
Block rewards: gathering.json #
{
"LogUnmappedBlocks": true,
"Blocks": {
"Rock_*": { "Skill": "Mining", "Xp": 5, "Collection": "stone", "Cultivated": false, "RegrowSeconds": 0 },
"Ore_*": { "Skill": "Mining", "Xp": 12, "Collection": "ore", "Cultivated": false, "RegrowSeconds": 90 },
"Plant_Crop_*_StageFinal": { "Skill": "Farming", "Xp": 6, "Collection": "crops", "Cultivated": true, "RegrowSeconds": 0 }
}
}
- Each key under
Blocksis a block id from the game's assets, or a pattern with one*wildcard such asRock_*orWood_*_Trunk. - An exact id always beats a pattern. Among patterns, the one with the most literal characters wins, so
Rock_*_BrickbeatsRock_*. - A block in one of its states has an id ending in
_State_Definitions_<state>. That is how a ripe crop (..._StageFinal) is told apart from the stages before it. Write rules without the*the game puts in front of such ids. Skillis one ofFarming,Mining,Woodcutting,Fishing,Combat,Cooking,Smithing,Exploration.Xpmust be above zero.Collectionis any name you choose.Cultivated: set totruefor something that takes time to grow, such as a ripe crop. It is then rewarded even where a player planted it. Leave itfalsefor anything a player could place and break again at once, or placing and breaking becomes free XP.RegrowSeconds: how long this block takes to grow back in the main world.0uses the time inrules.json.- A rule with a mistake is skipped and reported in the server log at startup.
LogUnmappedBlocks: whiletrue, the log names every broken block that no rule covers, which is how to find ids worth adding. Set it tofalseon a live server.
Sell prices: prices.json #
Sets what the server pays, in coins per item, for /sell.
{
"Prices": {
"Rock_*": 1,
"Ore_*": 6,
"Wood_*_Trunk": 2
}
}
Keys are item ids or * patterns, matched exactly like the block rules above. A price must be above zero; a rule with a mistake is skipped and reported in the server log at startup. An item that no rule covers cannot be sold.
Shop stock: shop.json #
Sets what the server sells with /shop buy, in coins per item.
{
"Items": {
"Soil_Dirt": 4,
"Plant_Seeds_Wheat": 5
}
}
Keys are exact item ids; patterns are not used here. A price must be from 1 to 1,000,000,000; the same limit applies in prices.json. An id that is not an item in the game is reported in the server log at startup and cannot be bought. Keep each price above what prices.json pays for the same item, or players can buy and sell back for a profit.
Where the characters stand: characters.json #
The people of the Landing each have a post in the main world: a position and the way they face. The first time the main world starts, the posts are laid out in a ring around the spawn point (RingRadius blocks out, default 7) and each is put on the ground. After that the file is the truth. Move a post in the game with /characters place <name> while standing where the character should be, or edit X, Y, Z and Yaw in the file and restart. A post that could not be put on the ground is not saved, and is tried again at the next start. landing ground says what each character is standing on, and landing relay <name> finds one ground afresh; both work from the console.
Each character stands at their post as a figure. Looks in the same file names the game model a character wears where you want another than the one they came with; landing looks lists them and landing look <name> <model> changes one at once. The figures are not saved with the world: the server makes them whenever a player is near the posts. The whole of it is described in Characters.
Skill sources: skills.json #
Sets what Combat, Cooking, Smithing, Exploration and Fishing XP is earned from: which creatures, which crafted items and which zones, and how much each gives. Every option and the defaults are described in Skill sources.
The exchange: exchange.json and exchange.txt #
exchange.json lists the goods that may be traded on the exchange. exchange.txt is the order book itself, saved after every change, with the coins and items the exchange is holding. Treat it like market.txt: back it up, do not edit it while the server is running, and if it cannot be read the exchange stays closed and the file is left untouched.
Festivals and the daily gift: calendar.json #
Sets how often festivals run, how long they last, the XP bonus, which skills take turns, the daily gift amounts and when a new day starts. Every option is described in Calendar.
The market: market.txt #
The player market is saved to mods/Driftholm_Driftholm/market.txt after every change. It holds the listings, the coins owed to sellers, and the items waiting to go back to sellers. Back it up with the rest of the server: it holds players' items and coins.
- Do not edit it while the server is running; the server would overwrite your change.
- If a line cannot be read at start, the server logs it, leaves it out, and keeps a copy of the whole file as
market.txt.unreadable-<time>so nothing is lost for good. - If the file cannot be read at all, the market stays closed, players are told it is closed for repairs, and the file is left untouched. Fix or restore the file and restart.
Player data #
- A player's progress (coins, bank, skill XP, collections, workers, and the island they joined) is stored in their own save file under
universe/players/, in theDriftholmProfilesection. Their place in the daily gift cycle is in theDriftholmCalendarsection, their quests inDriftholmQuests, their errands and the characters they have met inDriftholmCharacters, and the zones they have been paid for inDriftholmSkillSources. - Each island is its own world under
universe/islands/island-<owner uuid>/. In itsresources/folder,DriftholmIsland.jsonholds the co-op members and the visitor lock. Islands are kept out ofuniverse/worlds/on purpose: the server loads every world in that folder at start and keeps it running, and islands should only run while someone is on them. Islands that an earlier build saved inuniverse/worlds/are moved across at start. - Back up
universe/islands/together withuniverse/players/,market.txtandexchange.txt. - In every world's
resources/folder,DriftholmPlacedBlocks.jsonrecords where players placed blocks andDriftholmRegrowth.jsonholds the blocks waiting to grow back.
Operators #
Grant operator rights from the server console with op add <player uuid>. Operator-only commands are listed in Commands.