Updated README for client connection

This commit is contained in:
Calabro, Brandon
2025-07-20 23:53:47 -05:00
parent a6f582d2f2
commit bba96cbd00

View File

@@ -8,8 +8,25 @@ This project sets up a development environment for SWG using Docker.
2. **(Optional)** To use a custom git repository for the server source, create a file named `.env` in this directory. See the "Custom Repository" section below for details.
3. Run `docker compose up -d --build` to build the images and start the services.
4. Run `docker exec -it swg bash` to log into a shell in the `swg` container.
5. Run `ant swg` to compile the game and the assets. You only need to do this once, the first time you run the server.
6. Run `ant start` to run the server.
5. Run `ant swg` to compile the game and the assets. You only need to run this once, the first time you build the docker image, or if you destroy the docker volumes.
6. Run `ant start &` to run the server.
7. Run `ant stop` to stop your server.
## Connecting your client
To connect your client to the server, you'll need to open the `login.cfg` file within your client directory
and set the `loginServerAddress0` to the ip address of the machine that is hosting the docker container, or
to `127.0.0.1` if you are hosting the docker container on the same machine as the client.
```login.cfg
[Station]
subscriptionFeatures=1
gameFeatures=65535
[ClientGame]
loginServerPort0=44453
loginServerAddress0=127.0.0.1
```
#### Completely wiping your local Docker environment