個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Drift City rebuilt in Unity from the original exe. Code only: runs on your own copy of the game files.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗A from-scratch rebuild of the online racing game Drift City in Unity, written by reverse-engineering the
original DriftCity.exe function by function, plus its own game server.
This repository contains no game content. No models, textures, sounds, music, interface art, data tables or executables. You need your own installed copy of the Drift City client: the rebuild reads every original file from it while it runs and never modifies it.
Website: https://magicibrar.github.io/driftcity-unity/
About 94% of the game's own code is converted (by size of the original code, after leaving out libraries and platform services the rebuild replaces on purpose). 3,032 functions are studied and cited in the notes, and 295 of the 384 dialogs the exe drives are rebuilt from the original layouts. It has 85 Unity play tests and 125 server tests. The code map has the per-subsystem breakdown.
Playable offline on your own or online on a server you host: the open cities (Moon Palace, Koinonia, Cras, Oros), traffic and HUV chases, the Battle Zone races and crew Channel Battles, the Undercity, missions and the storyline, the car show room, custom shop, parts, inventory, trade and auction, parties, friends, crews and chat, and the seasonal events.
Ready-to-run builds are on the Releases page:
DriftCityRebuild-Client-win64.zip (the Windows player) and DriftCityRebuild-Server.zip (the server, for whoever
hosts). Neither contains game files: put your game folder into a gameroot.txt next to the exe (and in the server
folder) as described below.
You need the installed client: the folder that contains DriftCity.exe and Data (with Init.agt, World.agt ...).
The client finds it in this order:
-gameRoot "C:\Games\Drift City" on the command lineDRIFTCITY_ROOT environment variablegameroot.txt next to the player exe (in the editor: in DriftCityOffline/, next to Assets) holding that pathThe archives (.agt, Patch\Patch.*) are mounted and read directly. Optionally, Drift City → Import Game Data
Into Project unpacks them into DriftCityOffline/GameData for faster loading; that folder is git-ignored and stays
on your machine.
DriftCityOffline in Unity Hub.DriftCityOffline/gameroot.txt containing your game path.Assets/Scenes/DriftCityGame.unity and press Play, or build with Drift City → Build Windows Player (no game data)
(output in DriftCityOffline/Build/DriftCityPublic). Put a gameroot.txt next to the built exe as well.git clone https://github.com/MagicIbrar/driftcity-unity.git
Only needed to play online.
DriftCityServer: npm install, then put your game path into DriftCityServer/gameroot.txt (or set
DRIFTCITY_ROOT).npm start (or start-server.bat). On the first start it reads the tables it needs from your game's archives
into DriftCityServer/gamedata (git-ignored), then listens on port 7860. To redo that step:
node tools/extract-gamedata.js "C:\Games\Drift City".Name|ws://HOST:7860 to servers.txt next to the client.npm test runs the server tests; node tools/bot.js 3 starts three test drivers.
The server is not the original one and does not speak its protocol: it is a new JSON-over-WebSocket server made for this rebuild, authoritative for money, rewards and items.
| Folder | What it is |
|---|---|
DriftCityOffline | The Unity client: file system and format readers (NayaPack, NIF, DDS, NUI, XLT/TDF), world, cars, UI, game modes, tests |
DriftCityServer | The Node.js game server (own protocol), its tests and the game-data extractor |
DriftCity_RE | Reverse-engineering notes with exe addresses, the opcode list and the code map |
DriftCityStaging | A small .NET harness used while studying formats |
docs | The project website (GitHub Pages) |
Pull requests with code are welcome. Never commit game files or anything extracted from them; the .gitignore
blocks the usual formats and the data folders.
A non-commercial fan project for preservation and study. It is not affiliated with or endorsed by the game's developer, publisher or the Hangame portal. Drift City and all related names are trademarks of their owners. The source code is released under the MIT licence; the game and all of its content remain the property of their owners and are not distributed here.