# tMock-Server: reconstructing Terraria server handshakes

> tMock-Server is an unfinished C++ reimplementation of the Terraria server's initial network flow. It uses socket code and packet classes to accept connections, check protocol versions, request passwords, and assign player slots; the README records packet IDs, fields, directions, and structures informed by traffic analysis.

- Type: Case study
- Targets: Game · Protocol
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-06
- Original resource: <https://github.com/StardustVulpine/tMock-Server>
- Primary source: <https://github.com/StardustVulpine/tMock-Server/blob/54cbdba0337979fe4d67e4f2e613a6f0d0811345/README.md>
- Catalog page: <https://awesomerea.org/resources/tmock-server-case/>
- Record JSON: <https://awesomerea.org/resources/tmock-server-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/tmock-server-case/index.md)

## Requirements & limits

- **Prerequisites:** GNU/Linux is currently required because the server relies on its socket support.
- **Prerequisites:** CMake 4.1 and a C++26 toolchain are specified by the build file.
- **Limits:** Player and world information handling remain unfinished.
- **License:** GPL-3.0 license.

## Primary sources

1. <https://github.com/StardustVulpine/tMock-Server/blob/54cbdba0337979fe4d67e4f2e613a6f0d0811345/README.md>
2. <https://github.com/StardustVulpine/tMock-Server/blob/54cbdba0337979fe4d67e4f2e613a6f0d0811345/CMakeLists.txt>

## More in Games

- [Touhou reconstructions: an agent-driven method across three games](https://awesomerea.org/resources/rea-touhou-reconstruction-method-case/index.md) · Case study
- [Uncharted: The Nathan Drake Collection native Windows port](https://awesomerea.org/resources/uncharted-collection-pc-port-case/index.md) · Case study
- [Void Client: rebuilding the Starblast.io client](https://awesomerea.org/resources/void-client-case/index.md) · Case study
- [RenderDoc](https://awesomerea.org/resources/renderdoc/index.md) · Tool
- [AssetRipper](https://awesomerea.org/resources/assetripper/index.md) · Tool
- [Cpp2IL](https://awesomerea.org/resources/cpp2il/index.md) · Tool

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
