Update Setting up IntelliJ authored by Derek Williams's avatar Derek Williams
...@@ -62,93 +62,24 @@ The image below will guide you to the correct location. ...@@ -62,93 +62,24 @@ The image below will guide you to the correct location.
4) Fill in the remaining information as listed in the configurations below. 4) Fill in the remaining information as listed in the configurations below.
## Running locally ## Running locally
To run the game on your machine, use these run configurations for the Login Server and Game Servers with the following arguments. To run the game on your machine, use these run configurations for the Desktop Client, Login Server and Game Servers with the following arguments.
The Working Directory fields that are listed will be added after the "FreshmanRPG" path. The Working Directory fields that are listed will be added after the "FreshmanRPGSuite" path.
Name: Login Server | Name | Main Class | Module | Program Arguments | Working Directory | Environment Variables |
Main Class: LoginServer |---|---|---|---|---|---|
Module: `-cp Freshman_RPG.LoginServer.main` | Login Server | edu.ship.engr.shipsim.LoginServer | `-cp Freshman_RPG.LoginServer.main` | --localhost | FreshmanRPG/LoginServer | INTELLIJ_MODE=true |
Program Arguments: --localhost | Desktop Client | edu.ship.engr.shipsim.DesktopClient | `-cp Freshman_RPG.GameClient-desktop.main` | --localhost | FreshmanRPG/GameClient-desktop | INTELLIJ_MODE=true |
Working Directory: FreshmanRPG/LoginServer | Server Rec Center | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1873" --map="recCenter.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
| Server Library | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1874" --map="library.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
Name: Server Rec Center | Server Sorting Room | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1875" --map="sortingRoom.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
Main Class: edu.ship.shipsim.areaserver.Server | Server Wellington Room | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1876" --map="wellingtonRoom.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
Module: `-cp Freshman_RPG.GameServer.main` | Server MCT Room | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1877" --map="mct1.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
Program Arguments: --port=1873 --map=recCenter.tmx --localhost | Server Ducktopia | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1879" --map="Ducktopia.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
Working Directory: FreshmanRPG/GameServer | Server Cub | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1880" --map="cub.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
| Server Mowrey | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1881" --map="mowrey.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
Name: Server Library | Server Outside Mowrey | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1882" --map="outsideOfMowrey.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
Main Class: edu.ship.shipsim.areaserver.Server | Server Quad | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1883" --map="quad.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
Module: `-cp Freshman_RPG.GameServer.main` | Server DHC1 | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1884" --map="dhc1.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
Program Arguments: --port=1874 --map=library.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: Server Sorting Room
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
Program Arguments: --port=1875 --map=sortingRoom.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: Wellington Room
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
Program Arguments: --port=1876 --map=wellingtonRoom.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: Server MCT Room
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
Program Arguments: --port=1877 --map=mct1.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: Ducktopia
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
Program Arguments: --port=1879 --map=Ducktopia.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: Server Cub
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
Program Arguments: --port=1880 --map=cub.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: Mowrey
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
Program Arguments: --port=1881 --map=mowrey.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: Outside Mowrey
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
Program Arguments: --port=1882 --map=outsideOfMowrey.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: Quad
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
Program Arguments: --port=1883 --map=quad.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: DHC1
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
Program Arguments: --port=1884 --map=dhc1.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: GameClient-desktop
Main Class: DesktopClient
Module: `-cp Freshman_RPG.GameClient-desktop.main`
Program Arguments: --localhost
Working Directory: FreshmanRPG/GameClient-desktop
Name: GameManager
Main Class: manager.GameManagerFX
Module: `-cp Freshman_RPG.GameManager.main`
Program Arguments: --localhost --db=x (where x is your database identifier)
Working Directory: FreshmanRPG/GameManager
VM Options (show this from the "Modify options" drop down): --module-path "INSERT FILE PATH TO JFX LIBRARY" --add-modules=javafx.controls,javafx.fxml --add-exports javafx.graphics/com.sun.javafx.sg.prism=ALL-UNNAMED
## Running in production for testing ## Running in production for testing
To test using the production database, change the --localhost arguments for all run configurations to --production **except** GameClient-desktop, which should still use the --localhost argument. Since you are running the servers on your local machine, the client needs to know that they are being run locally. To test using the production database, change the --localhost arguments for all run configurations to --production **except** GameClient-desktop, which should still use the --localhost argument. Since you are running the servers on your local machine, the client needs to know that they are being run locally.
... ...
......