mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-04-29 07:45:26 +00:00
Initial support for server REPL (#68)
* Initial support for server console * Expand README * Fix unmanagedClasspath for `sbt pslogin/console`
This commit is contained in:
parent
2ee4d27a9d
commit
88b6974edc
3 changed files with 57 additions and 9 deletions
34
README.md
34
README.md
|
|
@ -51,6 +51,40 @@ sbt pslogin/run
|
|||
```
|
||||
This will clone the repository and SBT will compile and run the login server. Note: SBT is quite slow at starting up. It's recommended you have an open SBT console in order to avoid this startup time.
|
||||
|
||||
## Running the Server
|
||||
|
||||
To run a headless, non-interactive server, run
|
||||
|
||||
```
|
||||
sbt pslogin/run
|
||||
```
|
||||
|
||||
PlanetSide can now connect to your server.
|
||||
|
||||
To run your custom server with an interactive `scala>` REPL, run
|
||||
|
||||
```
|
||||
sbt pslogin/console
|
||||
```
|
||||
|
||||

|
||||
|
||||
To start the server and begin listening for connections, enter the following expression into the REPL:
|
||||
|
||||
```
|
||||
PsLogin.run
|
||||
```
|
||||
|
||||

|
||||
|
||||
This process is identical to running the headless, non-interactive server: PlanetSide clients can connect, logging output will be printed to the screen, etc. The advantage is that you now have an interactive REPL that will evaluate any Scala expression you type into it.
|
||||
|
||||

|
||||
|
||||
The REPL supports various useful commands. For example, to see the type of an arbitrary expression `foo`, run `:type foo`. To print all members of a type, run `:javap -p some-type`. You can run `:help` to see a full list of commands.
|
||||
|
||||

|
||||
|
||||
## Connecting to the Server through the Client
|
||||
To get PlanetSide to connect to your custom server, you will have to navigate to the `client.ini` file (located within the PlanetSide game directory) and modify the IP addresses.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue