forked from LosaDev/ls-2019-source
32 lines
2.5 KiB
Markdown
32 lines
2.5 KiB
Markdown
# Server config (2019, one PC)
|
|
|
|
A complete config for running all nine 2019 servers on one Windows PC, taken from the tested local setup (2026-11-07: all servers start, the client logs in to the lobby). Everything uses `127.0.0.1` and ports `19xxx`. Gameplay tables in `ls_gamesvr\config\` and `ls_mainsvr\config\` come from the 2021 config set, with the 2019 client's shop/gacha files synced in. `_original-release\` keeps what this folder held before.
|
|
|
|
## Folder layout
|
|
|
|
Each folder is one server process. Copy the built `.exe` into its folder plus `iocpSocketDLL.dll`, `frametimerdll.dll`, `CrashFind.dll` (and `GAuthClientDLL.dll` for billing) from `lib\`. `global_define.ini` and `global_loadtable.ini` stay in the parent folder of the server folders.
|
|
|
|
| Folder | Program |
|
|
|---|---|
|
|
| `ls_dbagent_game` | `ls_dbagent.exe` (database `LosaGame`) |
|
|
| `ls_dbagent_logdb` | `ls_dbagent.exe` (database `LosaLogData`) |
|
|
| `ls_dbagent_logserver` | `ls_dbagent.exe` in log server mode |
|
|
| `ls_mainsvr`, `ls_billingsvr`, `ls_gamesvr`, `ls_relaysvr`, `ls_loginsvr`, `ls_filewritesvr` | the server of the same name |
|
|
|
|
Ports are in `global_define.ini` and each server's ini. Start each from its own folder with `-c <its ini>`, in this order: the three DB agents, main, billing, game, relay, login, file write.
|
|
|
|
## Before the first start
|
|
|
|
1. Create the databases with `database\setup-db.bat` (see `database\README.md`).
|
|
2. Put the DB agent password in `PW=` of `ls_dbagent_game\ls_dbagent.ini` and `ls_dbagent_logdb\ls_dbagent.ini` (`CHANGE_ME` now). `Port=1433` is the SQL Server port.
|
|
3. The 2019 servers bind to the PC's own IPv4 address (the first address its host name resolves to), not to `127.0.0.1`. On one PC, put that address in `global_define.ini` and the relay/login server lists, and let the client connect to it.
|
|
|
|
## Values that matter
|
|
|
|
- Locale **Indonesia**: `[Local] Version=938400398` in `ls_config_game.ini` and `ls_config_billingsvr.ini` (the 2019 client's packs only open with the Indonesia pack password).
|
|
- `ls_billingsvr.ini` `[Test] TestMode=1`: every ID is accepted without a publisher, with a test cash balance. IDs need 6 to 12 characters; a new ID creates its account on the first login.
|
|
- GM: nickname under `[ID]` in `ls_gamesvr\config\sp2_developerID.ini`.
|
|
- `ls_gamesvr\config\tables\`: `LSC_SnakeLadders_Move.dat` from the client and an empty reward table with the version the server expects (dice event without rewards). Practice and excavation stay off.
|
|
|
|
The client launch line is on the wiki page "2019 Source", section "Run it locally".
|