redstone

所属分类:Node.js
开发工具:CoffeeScript
文件大小:65KB
下载次数:0
上传日期:2013-09-27 20:20:41
上 传 者sh-1993
说明:  一个分布式、无限玩家的Minecraft服务器,运行在Node.js上。
(A distributed, infinite-player Minecraft server that runs on Node.js.)

文件列表:
bin (0, 2013-09-28)
bin\redstone (3671, 2013-09-28)
config.coffee (1014, 2013-09-28)
lib (0, 2013-09-28)
lib\component.coffee (3113, 2013-09-28)
lib\connector.coffee (2258, 2013-09-28)
lib\controllers (0, 2013-09-28)
lib\controllers\connector (0, 2013-09-28)
lib\controllers\connector\data.coffee (706, 2013-09-28)
lib\controllers\connector\handoff.coffee (451, 2013-09-28)
lib\controllers\master (0, 2013-09-28)
lib\controllers\master\chat.coffee (206, 2013-09-28)
lib\controllers\master\db.coffee (3079, 2013-09-28)
lib\controllers\master\players.coffee (1499, 2013-09-28)
lib\controllers\master\regions.coffee (3187, 2013-09-28)
lib\controllers\master\web.coffee (368, 2013-09-28)
lib\controllers\master\worlds.coffee (523, 2013-09-28)
lib\controllers\server (0, 2013-09-28)
lib\controllers\server\animation.coffee (726, 2013-09-28)
lib\controllers\server\build.coffee (2303, 2013-09-28)
lib\controllers\server\chat.coffee (1688, 2013-09-28)
lib\controllers\server\chunks.coffee (5024, 2013-09-28)
lib\controllers\server\commands.coffee (305, 2013-09-28)
lib\controllers\server\inventory.coffee (2423, 2013-09-28)
lib\controllers\server\keys.coffee (950, 2013-09-28)
lib\controllers\server\maps.coffee (134223, 2013-09-28)
lib\controllers\server\motd.coffee (272, 2013-09-28)
lib\controllers\server\neighbors.coffee (2514, 2013-09-28)
lib\controllers\server\playerList.coffee (917, 2013-09-28)
lib\controllers\server\playerMovement.coffee (4281, 2013-09-28)
lib\controllers\server\playerSettings.coffee (127, 2013-09-28)
lib\controllers\server\playerStorage.coffee (358, 2013-09-28)
lib\controllers\server\players.coffee (2853, 2013-09-28)
lib\controllers\server\regions.coffee (4177, 2013-09-28)
lib\controllers\server\snake.coffee (2590, 2013-09-28)
lib\controllers\server\time.coffee (735, 2013-09-28)
lib\eventstack.coffee (2215, 2013-09-28)
... ...

redstone ======== A distributed, infinite-player Minecraft server that runs on Node.js. Redstone can support theoretically infinite players in one game world by transparently breaking up the work to multiple servers. Being based on Node.js, it has blazing fast IO performance, which means lower resource consumption and lower latency than standard Java servers. ## Status **WARNING:** This project is currently considered unstable and experimental, it is not ready for production yet. Redstone currently only supports creative mode, and is missing much of the game logic. The framework for the clustering of servers is present and functional, but could use some reorganization. This was originally a private project. Since I don't have enough time to spend on it anymore, I am open-sourcing it to allow the community to contribute and progress the code. When I have time, I will document the current architecture to make it easier to figure out what's going on. ## Usage First, make sure you have a MongoDB instance running. By default, Redstone connects to a MongoDB server on `localhost`, but if neccessary, you can configure the Mongo URI via the `database` parameter in `config.coffee`. Install the dependencies: ``` npm install ``` ### Simple mode (all components in one process) ``` node bin/redstone.js ``` ### Distributed (components running on separate processes or servers) First, you must run one master component: ``` node bin/redstone.js -m ``` Next, you will need to start the other components (servers and connectors). When starting them, you will need to specify the hostname of the master. You must start at least one server and at least one connector, but you may start as many as you like. ``` node bin/redstone.js -s --master= node bin/redstone.js -c --master= ``` **NOTE:** If multiple components are running on the same machine, you must set the control port to a unique port, e.g.: ``` node bin/redstone.js -s --master=localhost --control=8001 node bin/redstone.js -c --master=localhost --control=8002 ``` Once your components spin up, you should be able to connect to the connector(s) via your Minecraft client.

近期下载者

相关文件


收藏者