2026-09-07 15:08:01 -07:00
|
|
|
# CapySR
|
2026-09-07 15:08:21 -07:00
|
|
|
|
2026-09-07 21:28:11 -07:00
|
|
|
A Honkai: Star Rail server reimplementation rewritten in C#.
|
2026-09-07 21:57:28 -07:00
|
|
|
Current version: `CNBETAWin4.5.53`
|
2026-09-07 21:28:11 -07:00
|
|
|
|
|
|
|
|
Goals: a full combat system including combat events, and
|
|
|
|
|
[srtools](https://srtools.neonteam.dev/) support. Currency Wars and Divergent Universe might be focused on in the far future.
|
|
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
|
|
- .NET 10 SDK
|
|
|
|
|
- `protoc` (only to regenerate the protocol)
|
|
|
|
|
|
|
|
|
|
## Running
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
dotnet run --project src/CapySR.SdkServer # dispatch + sdk, port 21000
|
|
|
|
|
dotnet run --project src/CapySR.GameServer # kcp gateway, port 23301
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Or just `run.bat`.
|
|
|
|
|
|
|
|
|
|
## What works
|
|
|
|
|
|
2026-09-07 22:10:47 -07:00
|
|
|
- WIP
|
2026-09-07 21:28:11 -07:00
|
|
|
|
|
|
|
|
## Chat commands
|
|
|
|
|
|
2026-09-07 22:10:47 -07:00
|
|
|
- WIP
|
2026-09-07 21:28:11 -07:00
|
|
|
|
|
|
|
|
## srtools
|
|
|
|
|
|
2026-09-07 22:10:47 -07:00
|
|
|
- WIP
|
2026-09-07 21:28:11 -07:00
|
|
|
|
|
|
|
|
### Hotfix URLs
|
|
|
|
|
|
|
|
|
|
For OS:
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"OSBETAWin4.5.51": {
|
|
|
|
|
"asset_bundle_url": "https://autopatchos.starrails.com/asb/...",
|
|
|
|
|
"ex_resource_url": "https://autopatchos.starrails.com/design_data/...",
|
|
|
|
|
"lua_url": "https://autopatchos.starrails.com/lua/...",
|
|
|
|
|
"ifix_url": "https://autopatchos.starrails.com/ifix/..."
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Tests
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
dotnet test tests/CapySR.Tests
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Regenerating the protocol
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
dotnet run --project tools/CapySR.ProtoGen
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Credits
|
|
|
|
|
- capyb2222
|
|
|
|
|
- Various other server reimplementation.
|