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.
4) Fill in the remaining information as listed in the configurations below.
## Running locally
To run the game on your machine, use these run configurations for the Login Server and Game Servers with the following arguments.
The Working Directory fields that are listed will be added after the "FreshmanRPG" path.
Name: Login Server
Main Class: LoginServer
Module: `-cp Freshman_RPG.LoginServer.main`
Program Arguments: --localhost
Working Directory: FreshmanRPG/LoginServer
Name: Server Rec Center
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
Program Arguments: --port=1873 --map=recCenter.tmx --localhost
Working Directory: FreshmanRPG/GameServer
Name: Server Library
Main Class: edu.ship.shipsim.areaserver.Server
Module: `-cp Freshman_RPG.GameServer.main`
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
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 "FreshmanRPGSuite" path.
| Name | Main Class | Module | Program Arguments | Working Directory | Environment Variables |
|---|---|---|---|---|---|
| Login Server | edu.ship.engr.shipsim.LoginServer | `-cp Freshman_RPG.LoginServer.main` | --localhost | FreshmanRPG/LoginServer | INTELLIJ_MODE=true |
| Desktop Client | edu.ship.engr.shipsim.DesktopClient | `-cp Freshman_RPG.GameClient-desktop.main` | --localhost | FreshmanRPG/GameClient-desktop | INTELLIJ_MODE=true |
| 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 |
| Server Sorting Room | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1875" --map="sortingRoom.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
| Server Wellington Room | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1876" --map="wellingtonRoom.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
| Server MCT Room | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1877" --map="mct1.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
| Server Ducktopia | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1879" --map="Ducktopia.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
| 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 |
| Server Outside Mowrey | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1882" --map="outsideOfMowrey.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
| Server Quad | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1883" --map="quad.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
| Server DHC1 | edu.ship.engr.shipsim.Server | `-cp Freshman_RPG.GameServer.main` | --port="1884" --map="dhc1.tmx" | FreshmanRPG/GameServer | INTELLIJ_MODE=true |
## 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.
......
......