| docs | ||
| gamefiles/online | ||
| patches | ||
| server | ||
| src | ||
| tools | ||
| vendor | ||
| web | ||
| .gitattributes | ||
| .gitignore | ||
| build.sh | ||
| bun.lock | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
vice city online
gta vice city. multiplayer. in a browser tab. no install.
vco.wtf: free roam, up to 32 players, phone and desktop.
this repo is the bare online core, the way it stood in its first week: connect, player and car sync, chat, vehicles. the live game has grown a lot on top of it since. that part stays closed.
i took reVC, the reversed source of the game, compiled it to WebAssembly, and wrote the online part on top: netcode, server, streaming, touch controls, ui. the game was never meant to do any of this :)
what's in it
multiplayer
- own WebSocket server, players and cars synced by snapshots
- passengers: get in a car someone else is driving
- pvp with real gunfire, kill feed, spawn protection, passive mode
- name tags over every player, so you can tell them from the crowd. change yours from the pause menu
- chat with bubbles over heads, player list, ping and fps on screen
- reconnects by itself when the line drops
free roam, not story mode
- spawn straight into the world: no missions, no cutscenes, no wanted level
- 81 vehicles by category, called from a menu with real pictures from the game
- weapon wheel, unlimited sprint, money from the start
- radio strip with the game's own station logos. on the phone, tap one and you're tuned. your station follows you to the next car
- stuck in a wall?
/stuckin chat - swimming instead of drowning
- bikes grip more, sand is drivable, streets are busier. the old bug that kept every car on skid grip after its first slide is gone
- short death screen, then back in the game
built for a browser
- the game starts on a small pack of what the spawn point reads (22 MB, 11 MB gzipped)
- the 312 MB world comes down behind the running game, 8 MB at a time. every piece works the moment it lands, and what the game asks for jumps the queue
- sound, music and the rest stream by range request
- browsers that switch stacks themselves (JSPI) get an engine without Asyncify, 30% smaller. the rest get the old one
- phone: stick, held buttons that also steer the camera, the mobile game's own pictures
- english, french, german, italian, turkish. follows the browser until you change it
![]() |
![]() |
![]() |
controls
| key | |
|---|---|
| WASD | move |
| Space / Shift | jump / run |
| Left / Right mouse | fire / aim |
| F | enter car |
| R / wheel | radio, in a car |
| Hold Q | weapon wheel |
| B | vehicles |
| T | chat |
| Tab | players |
| P | passive mode |
how it's put together
src/online/ netcode inside the game
src/core/CdStreamWeb.cpp world streaming over http
server/ game server (bun, websocket)
web/shell/ the page: loading, menus, tags, chat, touch
gamefiles/online/ all tuning and strings, json with schemas
tools/ build, manifest, start pack, pictures
run it
game files are not in this repo, and neither is reVC. you bring both:
- your own copy of the game (pc version, the folder with
gta-vc.exe) - your own copy of reVC, the reversed source this runs on (a folder or a git address). the patch fits reVC commit
f8b78769(patches/REVC_BASE), the last one of the miami branch
you need bun, git and emscripten (emsdk 6.0.13 or newer).
EMSDK=/opt/emsdk ./build.sh /path/to/your/reVC
cp -r gamefiles/. <game dir>/ # the online data next to your game files
bun tools/map-icons.ts <game dir> # map icons, read from your own data/main.scm
bun tools/make-manifest.ts <game dir>
bun tools/serve.ts web/dist <game dir> 8790
bun server/main.ts
build.sh puts reVC, our patch and our code together in build/revc and lands the engine in web/dist. new pictures: tools/thumbs.ts, tools/readme-shots.ts.
license
the online part, the server, the page, the tools and the docs are mine, under the CRT Noncommercial Share-Alike License. short version:
- never commercial. no selling, no paid stuff, no ads, no sponsors, no donations for it
- credit CRTkafa and link git.crt.fyi/CRT/vc-online, in your readme and in your game (an about or credits screen is enough)
- keep it open source. host or share your own version and you publish its full source, under the same license
- name it whatever you like. it doesn't have to be crt city
- what you write yourself is yours. put your own parts under any license you like (MIT, GPL, ...), the parts from here stay under this one
- no game files, no piracy. never ship, upload or link the game's files. everyone needs their own copy
the code underneath (re3 / reVC, librw) keeps its own terms, see docs/UPSTREAM.md. the game's own files are not here and never will be.
greetz
aap, Fire_Head, shfil, erorcun, Nick007J, Serge and everyone behind re3 / reVC and librw. none of this exists without them. their readme, history and license notes: docs/UPSTREAM.md.
their terms apply here too: educational, documentation and modding use. no commercial use, no piracy.
CRT · x.com/CRTkafa



