Foundation
A server framework for nanos world, installed as a script package named foundation. It provides the infrastructure other packages build on and contains no gameplay of its own.
Scope
Available in 0.1.0
- Package registration, lifecycle and resource tracking
- Configuration files for Foundation and for each package
- Localization with plural rules
- Namespaced keys and validation schemas
- Timers, debounce, throttle and futures
- Structured console and log output
Part of the platform, not available yet
Events, commands, permissions, services, guarded client-server messaging, storage and diagnostics are being implemented. They will be documented when they ship.
Not included by design
Gameplay. Economy, jobs, ranks, homes, warps and shops belong in separate packages, so any of them can be replaced without touching Foundation.
Requirements
| Requirement | Value |
|---|---|
| nanos world server | 1.156 or newer |
| Operating system | Any platform supported by the nanos world server. Tested on Windows; Linux is not tested yet. |
| Server flags | None. Foundation does not need --enable_unsafe_libs. |
| Native modules | None. Foundation is written entirely in Lua. |
Players need nothing beyond the nanos world client.
Compatibility
| Foundation | Minimum nanos world | Tested with | Status | Notes |
|---|---|---|---|---|
| 0.1.0 (unreleased) | 1.156 | 1.156.0 on Windows | In development | Linux not tested yet |
“Tested with” means the automated integration suites passed on that server version.
Versions and stability
Foundation follows Semantic Versioning. Before 1.0.0, any minor release may change the API.
From 1.0.0 on, patch releases fix bugs without breaking documented behaviour, minor releases add features without breaking existing ones, and major releases may remove APIs deprecated earlier, with a migration guide.
Installation
-
Download the source of the repository. Until the first release there is no separate archive.
-
Copy its package folder into your server’s Packages folder and rename it foundation. The folder name is the package identifier.
-
Add foundation to the packages list of Config.toml, or let the packages that need it list it in their packages_requirements.
Support and security
Report bugs and request features in the issue tracker of the Foundation repository. Open the issue tracker
Foundation is free software under the MIT license.