General Settings
This page covers the basic configuration options for Koja-Crafting that control debug mode, language, and player behavior.
π§ Configuration Options
All general settings are located in shared/config.lua under the GENERAL SETTINGS section.
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- GENERAL SETTINGS
-- ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Config.Debug = false
Config.Locale = 'en'
Config.LetPlayerMoveAwayFromTable = false
Config.DuiQueue = falseπ Setting Descriptions
Debug Mode
Config.Debug = falsePurpose: Enable or disable debug console logs for troubleshooting.
Options:
true- Shows detailed console logs for debugging (player actions, crafting events, etc.)false- Normal operation without debug messages (recommended for production)
When to use:
β Set to
truewhen troubleshooting issuesβ During initial setup to verify everything works
β Set to
falseon live servers to reduce console spam
Example output when enabled:
[KOJA-CRAFTING] Player 1 opened crafting menu: weapon_crafting
[KOJA-CRAFTING] Crafting started: bandage (x3)
[KOJA-CRAFTING] Player 1 has level 2, exp: 150/200Language / Locale
Config.Locale = 'en'Purpose: Set the language for all UI text, notifications, and messages.
Available Languages:
'en'
English
locales/en.json
'pl'
Polish
locales/pl.json
'de'
German
locales/de.json
'es'
Spanish
locales/es.json
'fr'
French
locales/fr.json
'hi'
Hindi
locales/hi.json
'ja'
Japanese
locales/ja.json
'ru'
Russian
locales/ru.json
'zh'
Chinese
locales/zh.json
How to add custom translations:
Example locale structure (locales/en.json):
{
"crafting_menu_title": "Crafting Menu",
"not_enough_resources": "You don't have enough resources",
"crafting_started": "Crafting started",
"item_claimed": "Item claimed successfully"
}Player Movement During Crafting
Config.LetPlayerMoveAwayFromTable = falsePurpose: Control whether players can walk away from the crafting station while items are being crafted.
Options:
false- Players must stay near the crafting table (default)true- Players can freely move away while crafting
How it works:
When false (Recommended):
Player must stay within
Config.CraftingQueue.maxDistance(default 5m)If player moves too far, they get a warning
After
Config.CraftingQueue.warningTimeseconds (default 15s), crafting is cancelledMore realistic and prevents abuse
When true:
Player can move anywhere on the map
Crafting continues in the background
More convenient but less realistic
Recommendation: Keep this false for balanced gameplay. Use true only if your server prefers convenience over realism.
DUI Queue Display
Config.DuiQueue = falsePurpose: Enable or disable 3D visual crafting queue display above crafting tables.
Options:
false- No 3D display (lighter on performance)true- Shows crafting progress on a 3D screen above the table
What is DUI? DUI (Draw User Interface) renders the crafting queue as a 3D object in the game world. Players can see what's being crafted without opening the menu.
Visual Example:
βββββββββββββββββββββββ
β β’ Bandage (====) β
β β’ Lockpick (====) β
βββββββββββββββββββββββ
β
(Floating above table)
[Crafting Table]Performance Impact:
β οΈ Enabling DUI uses more client resources
Recommended only for servers with good performance
Test with multiple players before enabling on live server
When to use:
β High-performance servers
β Want visual feedback for shared tables
β Low-end servers or many crafting stations
β If players experience FPS drops
π‘ Tips & Best Practices
Always test in dev environment first before changing settings on live server
Monitor server performance when enabling DUI on multiple stations
Keep Debug disabled on production to avoid console spam
π Troubleshooting
π Related Settings
For distance checking configuration, see Crafting Queue Settings
For interaction configuration, see Interaction Settings
For database options, see Server Settings
Last updated