Repository navigation
Expand file tree
/
Copy pathconfig.sample.php
More file actions
98 lines (87 loc) · 4.81 KB
/
Copy pathconfig.sample.php
File metadata and controls
98 lines (87 loc) · 4.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
declare(strict_types=1);
/**
* DimensioneY Configuration Template (config.sample.php)
*
* Copy this file to `config.php` and adjust the settings to match your environment.
* DimensioneY is a single-world multiplayer virtual world and interactive fiction engine.
* One world per installation, configured authoritatively on the server.
*/
return [
// -------------------------------------------------------------------------
// Database Connection Settings
// -------------------------------------------------------------------------
// Configure your MySQL / MariaDB connection credentials here.
// If credentials are left blank, host is unreachable, or the database is offline,
// the engine automatically falls back to local file persistence in `php/data/`.
'db' => [
'host' => '127.0.0.1',
'port' => 3306,
'dbname' => 'dimya',
'user' => 'dbuser',
'pass' => 'dbpass',
],
// -------------------------------------------------------------------------
// Administrator Password
// -------------------------------------------------------------------------
// Required to authenticate maintenance, world re-seeding, and reset
// operations via the web maintenance console (`php/maint.php`).
'adminPasswd' => 'admin',
// -------------------------------------------------------------------------
// Server Type ("public" or "local")
// -------------------------------------------------------------------------
// Determines whether the game engine runs in production ("public", default)
// or development ("local") mode. Maps to GameEngine::$serverType and selects
// between IMAGESFOLDER_PUBLIC and IMAGESFOLDER_LOCAL when loading a .dxw world.
'serverType' => 'public',
// -------------------------------------------------------------------------
// Debug Output Destination ("none" or "file")
// -------------------------------------------------------------------------
// Sets destination for game engine debug logging ("none" by default, or "file").
// Maps to GameEngine::$debugTo.
'debugTo' => 'none',
// -------------------------------------------------------------------------
// World Definition File (.dxw)
// -------------------------------------------------------------------------
// The single authoritative world definition file for this installation.
// Can be an absolute/relative local file path or a remote HTTP/HTTPS URL.
// (Legacy alias 'default_world' is also supported as fallback).
'world_file' => __DIR__ . '/../docs/dxw-examples/world1.dxw',
// -------------------------------------------------------------------------
// World Clock Tick Interval (seconds)
// -------------------------------------------------------------------------
// The game engine evaluates a global clock tick on incoming client requests.
// When elapsed time since the previous tick is >= tickLength (default: 30 seconds),
// the global 'onTick' event is triggered, and all characters evaluate their
// periodic 'Living' routine.
'tickLength' => 30,
// -------------------------------------------------------------------------
// Player Inactivity Timeout (seconds)
// -------------------------------------------------------------------------
// Maximum idle time in seconds before an inactive player character is
// automatically disconnected and pruned from the world (default: 30 seconds).
// For human players or retro/terminal clients (such as Commodore 64),
// a higher value such as 90 or 300 seconds is recommended.
'playerTimeout' => 90,
// -------------------------------------------------------------------------
// Messages Panel (#msgs) Refresh Rate (seconds)
// -------------------------------------------------------------------------
// Interval in seconds at which the web client (UIhtml) polls the server
// to refresh incoming chat and system messages in DIV #msgs (default: 5 seconds).
'msgRefreshRate' => 5,
// -------------------------------------------------------------------------
// Base URL
// -------------------------------------------------------------------------
// Base URL for web resources, client scripts, and media assets
// when media directives (e.g. IMAGESFOLDER, sounds) use relative paths.
'base_url' => 'http://localhost',
// -------------------------------------------------------------------------
// Test Bots (UIjson vs UIbot)
// -------------------------------------------------------------------------
// List of bot account nicknames that should receive diagnostic UIjson
// responses (including hidden items and internal inspect fields) instead
// of standard gameplay UIbot snapshots.
'testBots' => [
'testbot',
],
];