簡易檢索 / 詳目顯示

研究生: 陳嘉宏
Jia-Hong Chen
論文名稱: NPC伺服器多人線上系統架構之研究
A Framework of NPC Server for Massive Multiplayer Online Games
指導教授: 吳忠霖
John-Ling Wu
口試委員: 薛文証
wen-jheng syue
莊華益
Hua-Yi Chuang
學位類別: 碩士
Master
系所名稱: 工程學院 - 機械工程系
Department of Mechanical Engineering
論文出版年: 2005
畢業學年度: 93
語文別: 中文
論文頁數: 121
中文關鍵詞: 伺服器線上遊戲NPC
外文關鍵詞: Server, MMOG, NPC
相關次數: 點閱:359下載:1
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報

本論文主旨在研究與探討多人線上遊戲裡的NPC(Non Player Character)伺服器架構,目的是架構出獨立的NPC伺服器,使NPC伺服器可依線上遊戲的規模來擴充或減少NPC伺服器硬體,以備未來開發大規模的線上遊戲時,在NPC伺服器伺服硬體之擴增作預留空間。
本研究研製了兩個NPC伺服器,分別用來管理寶物和昆蟲兩種NPC系統,並且設計蝙蝠(飛行)、蜘蛛(跳躍)、毛毛蟲(爬行)3種昆蟲之行為AI,在網路連線上建立各種NPC連線資訊,在用戶端製作各種NPC訊息與NPC物件管理的建構模組(Building Block,BB)。整體遊戲系統製作完成後,進行NPC與NPC伺服器的狀態測試,希望藉此線上遊戲系統的研究,讓NPC伺服器架構更趨於完善,以達到本研究之目的。


The main topics of this thesis are to study and discuss the NPC (Non Player Character) server framework in massive multiplayer online game. The objective of the thesis is NPC server with independent architecture. Enable NPC server to expand or reduce NPC server hardware in accordance with the scale of the on-line game. While developing the extensive on-line game in the future, we reserve the space for the increase of NPC server hardware.
This research has developed two NPC server which used for managing items and insects of NPC systems separately, and designs the AI(Artificial Intelligence) behavior of bat (flying), spider (jump), and caterpillar(creep). It sets up various kinds of NPC on-line information on the network line, and makes various building block(BB) of the NPC information and NPC entity management on the client. After the whole system is completed, the state of carrying on NPC and NPC server is tested. We hope to make use of the research of this on-line game system. It makes NPC Server architecture become more and more perfect, and achieves the goal of this research.

中文摘要……………………………………………………………..….I Abstract………………………………………………………………..II 致謝…………………………………………………………………….III 目錄…………………………………………………………………….IV 圖表索引……………………………………………………………...VII 第1章 緒論…………………………………………………….….…….1 1-1前言………..…………………...………………….…………....1 1-2研究動機與目的…………………………….………………….1 1-3整體系統架構與流程.…………………………….…….……...2 1-4論文架構………………………..….……….………………..…4 第2章 開發工具與環境………….………….…………...……….…….5 2-1虛擬實境研發系統Virtools Dev 3.0簡介…...………………....5 2-1-1 Virtools 3.0架構…..……………..…....………….……..…5 2-1-2 Virtools 3.0建構模組(Building Block)……….…..…….…7 2-2多人線上伺服器開發平台Terazona簡介…….…...……..…...10 2-2-1 Terazona伺服器架構……………………….…..……..…10 2-2-2 Terazona伺服器和資料庫之架設與連結…...…..…....…13 第3章 伺服端架構與程式設計………….………..…………………..15 3-1伺服端之架構之概念…….…………..…….….……………...15 3-2伺服端之程式設計..………….....………..…………………...16 3-2-1伺服器初始化….………….....…..……………..……..….17 3-2-2物件管理….……………...…….…….………………..….18 3-2-3訊息管理….………..……..…………………….……..….23 第4章 多NPC伺服器架構與程式設計……….…….………………..29 4-1 NPC伺服器之建構概念與流程.…….…..…..…..….………...29 4-1-1多NPC伺服器之設計概念………….....……………..….31 4-2 NPC資訊建構之程式設計.……….………………..………....32 4-3 NPC訊息建構之程式設計..……………...…….………..…....42 4-4主程式架構與程式設計.……………………………..…….....45 4-5命令處理與執行緒之程式設計.…………….………..……....51 4-6 NPC之行為策略.……………………….…..….……..……....63 第5章 用戶端NPC資訊之建構模組………..…..……….…….……..68 5-1 NPC管理之建構模組.………….…...…………..….………....68 5-2 NPC狀態訊息之建構模組.…………..…….…....…………....80 第6章 遊戲系統實作…………………………….….…….…………..93 6-1遊戲系統之人機界面設計………………….....…...…………93 6-1-1遊戲介面之設計…………………..…..……….…..….….93 6-1-2遊戲操作方式之設計………………..……….……….….97 6-2遊戲系統程式之主要模組架構..…….…..………...………....97 6-3遊戲系統程式之主要模組..…….……...…..………….……...98 6-3-1昆蟲逃跑AI模組……………...……...….………….……98 6-3-2蜘蛛跳躍行為模組……………...……...………….……100 6-3-3角色移動控制模組………………….….…..……..….…101 6-3-4角色旋轉控制模組……………...……...…..…..….……102 6-3-5滑鼠操控模組…………………...……...…..……...……104 6-3-6道具模組………………………...……...…….…………106 6-3-7取得角色材質模組……………..…………...…….….…107 6-3-8物件動態登入模組……….....………………..…….…...108 6-3-9物件動態登出模組……….…...…………….…….….…110 6-3-10鏡頭控制模組………….….………………...…….…...111 6-4測試結果..………………..……….…..………….…...……...117 第7章 結論與未來展望……………………………...…...…….……119 7-1 結論..………………….…………………..…..….....……….119 7-2 未來展望…….…….…………...………………..…………..120 參考文獻……………………………………..……….……….….…...121

參考文獻

[1] 余金安,“ 多人線上虛擬實境系統 ”,台灣科技大學機械工程所碩士論文,2003.
[2] 謝閔旭,“ 動作遊戲製作之基礎研究 ”,台灣科技大學機械工程所碩士論文,2004.
[3] 余政綱,“ 3 on 3格鬥足球系統之研究 ”,台灣科技大學機械工程所碩士論文, 2004.
[4] Virtools SDK Documentation.
[5] Terazona C++ Client API Documentation.
[6] Terazona C++ Server API Documentation.
[7] Zona Application Framework Version 1.0.1 Developer Guide.
[8] Axis 3D Technology,Inc.
http://www.axis3d.com.tw/index.jsp
[9] 汪洋資訊教育工作室, Virtools Dev 2.5使用手冊, 博碩文化, 2003
[10] Ivor Horton’s, 譯者:蔡明志, Visual C++ 6, 碁峯資訊, 1999

QR CODE