This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ece1e7
commit ce3998d
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Deployment | ||
|
||
## Server | ||
|
||
It is required to put the correct server IPv4 address in the Config.json file in order to let RMI work properly. | ||
|
||
Here is an example of the Config.json file: | ||
|
||
```json | ||
{ | ||
"socketPort": 30000, | ||
"rmiPort": 30001, | ||
"pingTimePeriod": 5000, | ||
"socketReadTimeout": 100, | ||
"maxPingCount": 3, | ||
"serverIp": "192.168.178.20", | ||
"endGameDueToDisconnectionTimeout": 120000 | ||
} | ||
``` | ||
|
||
## Client | ||
|
||
If the client is running on a Windows machine it is required to enable UTF-8 encoding in the terminal to let the client display the special characters correctly for TUI. | ||
|
||
To enable UTF-8 encoding in the terminal, run the following command: | ||
|
||
```powershell | ||
PS C:\> $OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 | ||
PS C:\> $PSDefaultParameterValues['*:Encoding'] = 'utf8' | ||
PS C:\> java -jar .\IS24-AM32-0.1-CLIENT.jar | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters