This repository contains the source code and content for BitCraft, a community sandbox MMORPG developed by Clockwork Labs: the Unity client, the SpacetimeDB server modules, and the services needed to run the game on your own machine.
BitCraft blends cooperative gameplay, city-building, crafting, exploration, and survival all in a single seamless world shared by players around the globe. It is being made available for public inspection, experimentation, and contribution.
We first open sourced the server code; this repository now contains the full game. You can read more about our decision to open source the game here:
About BitCraft
BitCraft is a community-driven MMORPG where players collaborate to shape a procedurally generated world. There are no fixed classes or roles, instead, players build, craft, explore, trade, and govern together to shape their civilizations.
- Game website: https://bitcraftonline.com
- Steam page: https://store.steampowered.com/app/3454650/BitCraft_Online/
About This Repository
| Folder | Contents |
|---|---|
Assets/, Packages/, ProjectSettings/, AudioBanks/ |
The Unity client (Unity 2022.3.62f2) |
BitCraftServer/ |
The server: SpacetimeDB modules written in Rust |
ApiServer/, RelayServer/, WorldMapClient/, MobMonitorClient/, BotClient/ |
Services the game uses (authentication, inter-module relay, world map, NPC behaviour, test bots) |
The server for BitCraft is built on SpacetimeDB, a real-time, reactive, backend platform designed for multiplayer game development.
The BitCraft server is structured as SpacetimeDB modules: all the data is stored in SpacetimeDB tables and all the logic runs inside reducers.
The source code for SpacetimeDB itself is also available on GitHub. If you're interested in learning about SpacetimeDB, please give the repo a star!
A few paid third-party Unity packages that the game uses cannot be redistributed and are not included. The game builds and runs without them, with open fallbacks for the visuals they provide; if you own them, you can add them back.
To run the game locally, see DEVELOP.md. It lists the closed-source dependencies, the prerequisites, and step-by-step instructions with and without the third-party packages. Third-party code that is included is listed in THIRD-PARTY-NOTICES.md.
This repository is not connected to the live game infrastructure, and nothing in it connects to the official BitCraft servers.
Contributing
We welcome contributions that improve correctness, stability, or player experience.
Please see CONTRIBUTING.md for details on contribution scope and process.
Reporting Exploits
If you find an exploit that affects the official game, please report it to us privately. See SECURITY.md for how, and for the in-game reward for verified reports.
License
The BitCraft source code is licensed under the Apache License 2.0. The assets (art, models, audio, music, static data, world data and text) are not open source: they are covered by the BitCraft Community License, as are the BitCraft name and logos. The official game and its servers are governed by the BitCraft EULA. Third-party components keep their own licenses, see THIRD-PARTY-NOTICES.md. For which files are code and which are assets, see NOTICE.
What you can and cannot do
To avoid any confusion, here is a clear summary of what is allowed and what is not allowed:
You can:
- Read and study the code to better understand how the game works
- Modify and experiment with the code locally
- Run the game on your own machine for development and testing
- Use it as a reference for building your own projects
- Make (and sell) a game similar to BitCraft with your own IP (art and themes) using our code as a basis
- Use BitCraft's art and assets for personal, non-commercial projects, such as learning, 3D modeling and animation practice, and fan art (see the BitCraft Community License for the conditions)
You cannot:
- Use BitCraft's art, game content, music, or other protected assets commercially, redistribute the asset files, or include them in a game or other product you distribute
- Use BitCraft's IP or present forks as official
- Use modified clients, mods or other third-party software with the official game or servers
- Share information about any discovered exploits in the game with anyone other than us (see SECURITY.md)
- Operate official, unofficial, private or any otherwise competing BitCraft servers
- Do anything that violates the open source license
The game's assets and IP remain protected, and the official BitCraft servers will continue to be operated by us.
This repository is not connected to the live game infrastructure, and any changes here will not affect the official BitCraft servers.