github地址:https://github.com/mangos/MaNGOSphp
MaNGOS 是( Massive Network Game Object Server) 的縮寫。因爲暴雪公司對相似的開發小組採起過一些法律行動。爲了不麻煩,如同它的名字,mangos強調本身並不是一個魔獸服務器模擬器,而是一個開源的 多人在線遊戲服務器的軟件。說究竟是個網遊的遊戲引擎。Mangos開發小組強調其軟件是用c++和C#編程語言,實現 的一個支持大型多人在線角色扮演遊戲服務器的程序框架,在這個框架下,它理論上應該支持任何客戶端的網絡遊戲,因爲如今不少人使用魔獸世界來對它進行測 試,因此針對魔獸世界的腳本和數據庫文件比較完善,不少人就利用這個開源項目來實現魔獸私服。而遊戲的內容,例如故事情節,任務場景的腳本等都是由別的小 組獨立開發的。
開發小組一再強調,這是個研究,教育性質的對怎樣開發大型網遊的服務器端有好處的項目,是一個技術細節毫無保留向公衆開放的軟件,是一件頗有 意義的事情,若是你使用它做爲盈利目的,那你自己就違反了軟件的協議。因此任何利用mangos項目進行私服活動的組織和我的都違反了mangos的宗 旨,mangos項目也不會對它們負責。
mangos的技術細節上是這樣的,核心部分是個和特定遊戲沒有關係的核心框架程序,主要是進行進程調度,創造世界,創建心跳機制,處理網絡接入 等。數據庫能夠使用的開源數據庫軟件MySQL。至於遊戲內容數據庫,遊戲人物,時間,世界腳本,都是由這個核心程序所支持的擴展 腳原本實現,因此有一些獨立出來的項目專門模擬魔獸世界來開發支持mangos的核心程序。 html
ScriptDev2
安裝MaNGOS 以後,咱們的WOW沒有任何NPC和怪物,那是由於MaNGOS只負責搭建遊戲框架,並不負責構建遊戲內容。所以有另外一個項目叫作ScriptDev2(簡稱SD2),專門負責遊戲內容的開發。
https://github.com/mangosfour/scripts
這是readme文件:
criptDev2 is a script library, an extention of the scripting capabilities that comes with MaNGOS ( http://www.getmangos.co.uk ), written in C++ and is compatible with Windows and Linux. SQL needed for database support both MySQL and PostgreSQL. This script library provides unique scripts for NPCs, gameobjects, events and other that need unique implementation. Once ScriptDev2 is compiled it is automatically run by MaNGOS on server startup.
一旦sd2被編譯,他會自動被服務器mango自動運行。 For further information on ScriptDev2, please visit our project web site at http://www.scriptdev2.com/ Documentation on various development related topics can be found in the ../doc/ sub directory as well as on the web site. The required SQL files for creating the database backend are included in the ../sql/ sub directory. If you are updating from an older ScriptDev2 version, make sure to take a look at the SQL files provided in the ../sql/updates/ sub directory.
數據庫後臺文件在../sql/sub目錄下。
ms@ubuntums:~/mangos/server$ git apply src/bindings/scripts/patches/MaNGOS-*-ScriptDev2.patch
error: patch failed: src/bindings/CMakeLists.txt:16
error: src/bindings/CMakeLists.txt: patch does not applylinux
https://github.com/mangosfour/serverc++
https://github.com/mangoswiki/Wiki/wiki/Ubuntuinstallgit
http://blog.sina.com.cn/s/blog_7278100c0100q5ke.htmlweb
http://www.kaspersky-tribe.cn/forum.php?mod=viewthread&tid=264270sql
http://www.cnblogs.com/linbc/archive/2009/11/20/1606493.html數據庫
http://blog.csdn.net/smuggler_2003/article/details/5170839編程