skynet README

The project's README from github.com/cloudwu/skynet. As one markdown file: README.md.

skynet logo

Skynet is a multi-user Lua framework supporting the actor model, often used in games.

It is heavily used in the Chinese game industry, but is also now spreading to other industries, and to English-centric developers. To visit related sites, visit the Chinese pages using something like Google or Deepl translate.

The community is friendly and almost all contributors can speak English, so English speakers are welcome to ask questions in Discussion, or submit issues in English.

Build

For Linux, install autoconf first for jemalloc:

git clone https://github.com/cloudwu/skynet.git
cd skynet
make 'PLATFORM'  # PLATFORM can be linux, macosx, freebsd, openbsd now

Or:

export PLAT=linux
make

For FreeBSD , use gmake instead of make.

Test

Run these in different consoles:

./skynet examples/config	# Launch first skynet node  (Gate server) and a skynet-master (see config for standalone option)
./3rd/lua/lua examples/client.lua 	# Launch a client, and try to input hello.

About Lua version

Skynet now uses a modified version of lua 5.5.0 ( https://github.com/ejoy/lua/tree/skynet55 ) for multiple lua states.

Official Lua versions can also be used as long as the Makefile is edited.

How To Use

skynet (cloudwu/skynet)

Searching Database…

14.2K ·GitHub
这是什么?Skynet 是一个基于 Actor 模型的轻量级多用户 Lua 框架,主要用于搭建网络游戏服务器。
这是完整的游戏引擎,还是更底层的东西?它是一个服务端并发框架:Lua Actor(服务)通过消息相互通信,不是图形引擎,也不是客户端运行时。
我该如何编译和运行它?在 Linux 上,请先安装 autoconf(jemalloc 需要它),再用 make 编译;测试时,在两个独立的控制台中分别运行服务端和客户端。
它是否需要特定版本的 Lua?Skynet 内置了一个经过修改的 Lua 5.5.0,支持多个 Lua 状态;不过你也可以通过编辑 Makefile 改用官方的 Lua 发行版。
在 FreeBSD 上的运行方式是否相同?基本相同,但 FreeBSD 下需要用 gmake 代替 make 来编译。
这主要是一个中文生态的工具吗?它在中国游戏行业用得很多,也正逐步进入其他行业,并向以英语为主的开发者群体扩展;社区欢迎用英文提问和提交 issue。
Skynet 实际上是用什么语言编写的?其核心部分用 C 语言编写以保证性能,Lua 则作为脚本层,用来编写 Actor 服务和游戏逻辑。
文档有英文版吗?Wiki 同时提供英文和中文版本,但 FAQ 只有中文,可以通过 Google 或 DeepL 翻译阅读。
遇到问题时,英语使用者能获得支持吗?可以。社区很友好,几乎所有贡献者都会英语,你可以在 Discussions 中提问,也可以用英文提交 issue。
Creator
cloudwu
Size
5.2 MB
Stars
14.2K
Age
14y
Commits · 90 Days