1 / 42

OnME Platform Tutorial

OnME Platform Tutorial. Ken Hui System Analyst OnME Research Laboratory. Content. Part 1: Overview of OnME Platform System Architecture Logic Flow Engine Components Database Editor Server Client library Part 2: Usage of OnME Platform Getting Started Introduction to OnME Editor

mulan
Download Presentation

OnME Platform Tutorial

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OnME Platform Tutorial Ken HuiSystem AnalystOnME Research Laboratory

  2. Content • Part 1: Overview of OnME Platform • System Architecture • Logic Flow • Engine Components • Database • Editor • Server • Client library • Part 2: Usage of OnME Platform • Getting Started • Introduction to OnME Editor • Case Studies

  3. Part 1: Overview of OnME Platform

  4. System Architecture Database Game Server Client • User • Player • Monster • Item • Battle • Map • Event • NPCs • GUI Elements • Server Communication

  5. Game Server Interaction Map Event Game World Player

  6. Logic Flow How is the “Game World” affected by clients?? Game World Time Line server User 2 User 1 Communication Unit – “Control”

  7. Engine Components

  8. Component 1: Database • Schema (Please refer to OnMEPlatform-UsageGuide.doc section 5) • User • ID, username, password, etc… • Player • ID, HP, Attack, Defense, etc… • Item • ID, name, usage, etc.. • Battle • ID, monsterIDs … • Monster • ID, Characteristic, etc… • Fully tested for MySQL DB. • Reasons for MySQL, • Widely supported by community, such as phpMyAdmin UI configuration tool • Free for academic research

  9. Component 2: Editor • User Friendly • Easy to learn • WYSIWYG

  10. Component 3: Servers • It is Centralized and Distributed • Provides clustering and zone-subdivision techniques for massive player load balancing • Allow asynchronous game state synchronization for client to optimize the network delay limitation • Enable flexible modification for different type of mobile application

  11. Component 4: Client Library • Library Documentation • http://onme.cse.cuhk.edu.hk/sampleClientDoc/index.html • Simple Client has packaged in Object and Source Code license • Base on Finite State Machine • By Class named “Logic” • Apply MVC model User event View Controller Common.Logic Common.View Select view Change modification queries Model updates MODEL Player, BagItem, etc…

  12. Client Library INIT • Implement your own game by inserting states • Just “fill-in” your own game’s logic GAME User input MENU Event Ready WAIT

  13. Part 2: Usage of OnME Platform

  14. Getting Started

  15. Set up your OnME server • What’ve you got? • onmeworld (world server) • onmebattle (battle server) • Place the files in the following link • c:/Program Files/Tomcat4/webapp/

  16. Start up your OnME server • Open the command prompt • Start->run->cmd • Type the command • cd “Program Files”/tomcat4/bin • catalina.bat run

  17. Prepare your OnME client • Open the Emulator • Start-> All Progams -> J2ME Wireless Toolkit 2.2-> KToolbar

  18. Open the OnME client project • Press Open Project -> OnMEGame

  19. Build your OnME client • Press build and then run

  20. Run your OnME Client • Run the client in theWTK2.2 Emulator • Register a new account • Choose the server: • Local Server (localhost) • Please Try and Enjoy!!

  21. Introduction to OnME Editor

  22. OnME Editor • Game Map Editing • Make your game more attractive • Game Event Editing • Make your game more meaning and playable

  23. Palette • Basic component of a Game Map • Palette is a png file that is composed of basic grids of the map • Each grid is of size 16 x 16 pixels • Example: a palette with 20 grids

  24. Game Map • A Game Map is a composition of palettes, like a puzzlee.g.

  25. Edit Game Map

  26. Try the OnME Editor • Open the OnME Editor • Open the resource folder • C:\Program File\ tomcat4\ webapps\ onmeworld\ map\map_72

  27. How to Edit? • Choose the grid of palette • Right click on the map to paste fill the grid • Select a rectangle for filling • Right click for filling the whole rectangle • Copy and paste are enabled • Use Ctrl-c and Ctrl-v • Remember to save your map

  28. Restart your server • Stop the tomcat server by pressing ctrl-c in the command prompt • Type in catalina.bat run to start the server again • Then you can see the changes you’ve just made!!!

  29. Game Event • Missions, Interactions, Transactions, etc.. • Three components • Event Trigger • Event DB (sentences) • Event Content • Naming Conversion • event_xx_yy.evt • where xx is the ID of the map • yy is the ID of the event • You can see some example in the resources folder: C:\Program File\tomcat4\webapps\ onmeworld\map\map_72\event_72_yy.evt

  30. Control • Control is the unit of event • Each event is composed of one or more controls

  31. Types of control • There are 12 controls available: • Dialog • Multiple Choice (store the user choice using temporary variable) • To Battle • Alter (combination of Increment and Decrement) • Exchange (for exchanging items only) • Multiple Choice Jump (for making choices with temporary variable) • Conditional Jump (for checking player’s mission variable) • Unconditional Jump • SetMission • AttributeJump (for checking player’s attributes) • ItemQuantityJump (for checking player’s item quantity) • Jump (for moving the player to another map)

  32. Edit Game Event

  33. Game Event Example • Open an event file • C:\Program File\tomcat4\ webapps\onmeworld\ map\map_72\ event_72_01.evt

  34. Map 72 is shown here Dialog sentences NPC information Event controls Components of Event Editor

  35. Run the event script

  36. The interface for modifying event • NPC (drag and drop, editing name) • Sentence (editing dialog) • Testing the event by altering player’s information

  37. Try to make a simple event • Try to change the dialog first, make a new event if you want • Remember to save the event • Reload the server • Open an IE browser and type in http://localhost/onmeworld/HttpConnector?gamereload

  38. Use Case Studies

  39. Use Case 1:Create a new NPC to sell a new Item

  40. Use Case 2:Create new battle map

  41. Use Case 3:Create a simple mission

  42. Question & Answer

More Related