Instruction on Installation of DeBugger

Eric Liao edited this page Oct 14, 2013 · 3 revisions
Clone this wiki locally

Install DeBugger game

Dependencies

  1. Panda 3D
    1. Python will be installed along with Panda 3D
    2. For Mac User, please install Cg Toolkit as well
  2. Java
  3. MySQL

Game Server and Game Client

CSNS File Manager

1. Download GameClient.zip
2. Download GameServer.zip
3. Download BugServer.zip

If you didn't see any spiders in your game level, please start BugServer.

For the local testing purpose

Configure GameServer
  1. Start the MySQL workbrench and set up the your local connection
Note:
Keep note of what is your username (at my case, root)
and password (at my case 1234)
  1. In MySQL run sql script under GameServer/sql/deBuggerDB.sql to populate the sample data

Thanks to Yoyo, in the sql script on line 1940, change the password field for "admin" from ee8e3f77189e01d94bf0e6622970bc1b to 5f4dcc3b5aa765d61d8327deb882cf99 Your sql script from line 1938 to 1943 like the following:

INSERT INTO `user` (`user_id`, `username`, `password`, `student_id`, `first_name`, `last_name`, `gender`, `email`, `level`, `online`, `play_time`, `last_login`, `last_logout`, `last_ip`, `create_time`) VALUES
(0, '0', 'cfcd208495d565ef66e7dff9f98764da', 100000000, 'John', 'Doe', 0, 'a@a.com', 0, 0, 0, '1970-01-01 08:00:00', '1970-01-01 08:00:00', '127.0.0.1', '1970-01-01 08:00:00'),
(1, 'admin', '5f4dcc3b5aa765d61d8327deb882cf99', 908765432, 'No', 'Color', 0, 'no@sfsu.edu', 1, 0, 0, '1970-01-01 08:00:00', '1970-01-01 08:00:00', '127.0.0.1', '1970-01-01 08:00:00'),
(2, '1', 'c4ca4238a0b923820dcc509a6f75849b', 908765432, 'Red', 'Color', 0, 'red@sfsu.edu', 1, 0, 0, '1970-01-01 08:00:00', '1970-01-01 08:00:00', '127.0.0.1', '1970-01-01 08:00:00'),
(3, '2', 'c81e728d9d4c2f636f067f89cc14862c', 908765432, 'Green', 'Color', 0, 'green@sfsu.edu', 1, 0, 0, '1970-01-01 08:00:00', '1970-01-01 08:00:00', '127.0.0.1', '1970-01-01 08:00:00'),
(4, '3', 'eccbc87e4b5ce2fe28308fd9f2a7baf3', 908765432, 'Blue', 'Color', 0, 'blue@sfsu.edu', 1, 0, 0, '1970-01-01 08:00:00', '1970-01-01 08:00:00', '127.0.0.1', '1970-01-01 08:00:00');
  1. Modify game_server.config.txt
## Main configuration file

## Modify this file to run the Server on your own machine.

## NOTE: Do NOT commit modified version of this file.

## Server configuration.
# Port number.
# The default server port is 9696
serverPort 9696


## Data Base connection configuration.
# URL of DB.
dburl localhost

# DB name.
# Schema name
dbname debuggerdb

# DB username.
dbuser root

# DB password.
dbpassword 1234

#BugServerPath Absolute Path of BugServer must be enclosed with double quotes Example "C:\\Documents and Settings\\BugServer\\"
#Don't forget the slashs at the end
BugServerPath "C:\\\\Users\\Eric\\Documents\\CS 454 Multi Game Design\\BugServer\\"

# this is for my windows environment
  1. Start the GameServer.jar by java -jar GameServer.jar
    • note: remember to put Launcher.py
    • You should see the following as success message
Eric@INFYNITE-LAPTOP ~/Documents/CS 454 Multi Game Design/GameServer
$ java -jar GameServer.jar

-----------------------

deBugger MMO v1.02

Debug Mode - OFF
Smart Bug Mode - OFF

-----------------------

Starting Game Server...

Server has started: 9696
Loading Bug Server Monitor...
Waiting for clients...

Loading Bug Server...

Some minor note: For some reason, even I setup the bug server correctly, it still doesn't run on windows


GameClient
  1. Remember to install Panda3D
  2. Direct to GameClient Folder
  3. type in the following ppython Launcher.py
  4. There should be a GameClient Window pop out

Connecting To School Server

  1. If you are connecting from off campus, you have to set up VPN by the following link
  2. Start game client by the following command ppython Launcher.py -ip csproject.calstatela.edu

BugServer

Same way to start BugServer as you would start GameClient except everything is running on the terminal, which the Panda 3D window will not pop out

  1. Remember to install Panda3D
  2. Direct to BugServer Folder
  3. type in the following ppython Launcher.py

If you have any trouble, email me @ rcliao01@gmail.com, containing question you are facing.
Then, as Launch team, we will create a FAQ section for common question.