{"id":13831544,"url":"https://github.com/qingliangcn/mgee","last_synced_at":"2025-04-07T15:08:18.115Z","repository":{"id":31000737,"uuid":"34559132","full_name":"qingliangcn/mgee","owner":"qingliangcn","description":"2010年写的一个erlang游戏服务端demo","archived":false,"fork":false,"pushed_at":"2015-04-28T03:13:11.000Z","size":1387,"stargazers_count":375,"open_issues_count":3,"forks_count":128,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-03-31T13:16:33.618Z","etag":null,"topics":["erlang","mmoarpg"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qingliangcn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-25T07:09:03.000Z","updated_at":"2025-03-26T05:59:00.000Z","dependencies_parsed_at":"2022-08-26T08:21:14.222Z","dependency_job_id":null,"html_url":"https://github.com/qingliangcn/mgee","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qingliangcn%2Fmgee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qingliangcn%2Fmgee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qingliangcn%2Fmgee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qingliangcn%2Fmgee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qingliangcn","download_url":"https://codeload.github.com/qingliangcn/mgee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["erlang","mmoarpg"],"created_at":"2024-08-04T10:01:30.937Z","updated_at":"2025-04-07T15:08:18.090Z","avatar_url":"https://github.com/qingliangcn.png","language":"Erlang","funding_links":[],"categories":["Erlang"],"sub_categories":[],"readme":"# mgee\n2010年写的一个erlang游戏服务端demo\n\n## 说明\n\n1. 代码未作美化或者修改，仅仅作为一个记录，代码质量不做任何保证\n2. 部分文件可能会涉及到开源版权问题，请自行处理[当年无知，改了开源文件的版权内容]\n3. 其他八卦见这里:[为什么一些网页游戏喜欢用Erlang做服务端？](http://www.zhihu.com/question/20405300/answer/45747560?group_id=575056971175112704)\n4. 本demo离商业化差距太大(当年是边学边写)，如直接使用，本人概不负责\n\n## 代码结构\n\n目录|说明\n:----|:------\nconfig|配置文件，目前只有技能和地图(前端用)\ndoc|当时写的一些文档\ndoc/设计文档|设计思路都在这里\ndoc/message|协议说明\ndoc/tech|技术问题的记录\ninclude|头文件目录\nproto|proto定义目录\nscripts|脚本目录\nsrc|源码目录\nsrc/mod|游戏模块\nsrc/library|第三方模块\nsrc/proto|第三方erlang proto库\ntest|压力测试用\nunittest|单元测试\n\n## 编译运行\n\n### Mac/Linux\n\n进入源码根目录\n\n```\nmake proto \u0026\u0026 make all\nsudo mgectl live # live方式启动，需要回车一次继续\nsudo mgectl start # 后台方式启动\n```\nPS:需要sudo权限的原因是服务端监听了843端口(安全沙箱)\n\n以live模式启动正常的话可以看到类似如下的结果输出:\n\n```\nstarting Test Data Setup                          ...done\n\nsystem running :)\n\n=PROGRESS REPORT==== 25-Apr-2015::16:00:57 ===\n         application: mgee\n          started_at: mgee@localhost\n```\n\n### Windows\n\n1. 进入源码目录的scripts目录\n2. 运行rebuild_proto.cmd\n3. 运行make.cmd\n4. 运行run.cmd\n\n## 需要的工具\n\n1. Erlang运行时环境\n2. make支持(mac/linux)\n3. 阅读设计文档:Enterprise Archtect (eap格式文件)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqingliangcn%2Fmgee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqingliangcn%2Fmgee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqingliangcn%2Fmgee/lists"}