Repository navigation
For developers
- Code, comments, logs and console messages are in English (players' texts are translated in
launcher/i18n.pyand in the plugin). -
4_launcher.bat: opens the launcher with Python, without building. -
plugin/: source of the optional BepInEx plugin and its compiled.dll. It's built against the assemblies BepInEx 6 (IL2CPP) generates inBepInEx\interopon the first game start; no game files are included. -
build_exe.bat: buildsdist\CrimeSightRevival.exe(development build, does not update itself). -
CHANGELOG.md: what's new in each version. Its first block is what the launcher shows when it offers an update, if the file changes in the push; otherwise it shows the commit message. - Every push to
mainmakes GitHub Actions build the.exeon Windows and publish a release (.github/workflows/release.yml). Installed launchers download it, check its SHA-256 hash and replace themselves. -
tests/: automated tests (points, profile merging, whole matches, the launcher's texts in every language). Every pull request runs them, and checks that all the Python code compiles (.github/workflows/checks.yml). To run them yourself:python -m unittest discover -s tests -v. - Scripts without the launcher:
1_setup.bat(dependencies, keys and redirect),2_server.batand3_restore_original_game.bat.
Unity 2020.3 with IL2CPP. The server address (https://cott-game.cs.konami.net) is changed in
global-metadata.dat. Traffic is encrypted with AES-256-CBC; the keys are in the game's own
resources.assets. The API is POST /cott/api/index.php and matches run over WebSocket with WAMP v2:
the server drives the turn phases, hands out items and decides hazards and murders; the visual
simulation runs on the client. Community server extras: POST /revival/sync (profiles), GET /revival/info,
GET /revival/mods (the room's mod pack) and GET/POST /revival/discord (linking Discord for async pings).
Mods (server/modpack.py, server/modimage.py, launcher/modinject.py):
- Stamps are
StampDataobjects inresources.assets; the free ones are inStampSet0. The game identifies them bytype | faceand sends their position in the list over the network (setIndex,dataIndex), so every player in the room needs the same list in the same order. Each new stamp gets a type from 1000 to 4095 (the game uses 0-38) computed from the mod folder and the file name, so it's stable and the order (the game sorts by type) comes out the same on every PC. - Avatars are
CursorAvatarDataobjects insharedassets3.assets, listed by theCursorAvatarSets of thelevel3(menu) andlevel4(match) scenes; over the network they travel by name (Icon_CSR_<hash>). -
Without BepInEx,
modinject.pyrebuilds those files with UnityPy, always starting from the originals (*.original): it clones a templateStampData/CursorAvatarData, adds an embedded RGBA32 texture and a 4-vertex sprite, and appends them to the lists. Messages are added to the game's text (ctg_name, in all 11 languages). If the saved wheel or avatar (PlayerPrefs) points to a mod that's gone, they're replaced with one of the game's. -
With BepInEx, the game files stay original: the launcher writes the room's set to
BepInEx\csr_live\live.json(in the game folder) and the plugin (plugin/CrimeSightRevivalMods.cs) creates the objects in memory (Texture2D+Sprite.Create+ScriptableObject.CreateInstance), adds them to the game's lists and adds the texts toTextManager.LangText. It checks every second and reapplies after every scene change. - Over the network, an internal zip carries the already adjusted and validated images (size, names, format): players never have to compress anything.
A community project, not affiliated with KONAMI. · CRIMESIGHT Revival es un proyecto de la comunidad sin relación con KONAMI. · README
English
- Home
- Getting started
- How to play
- Roles
- Controls
- Playing with a controller
- Hazards and items
- Communication
- Tips and trivia
Revival
- Revival features
- Progress and points
- AI and solo play
- Forfeit and rejoining
- Async matches
- Replays and Discord
- Stamps, avatars and cursor
- 3D models and new characters
- Scenario Creator
- FAQ
- Running a server
- For developers
Español
- Inicio
- Primeros pasos
- Cómo se juega
- Papeles
- Controles
- Jugar con mando
- Peligros y objetos
- Comunicación
- Consejos y curiosidades
Revival
- Novedades de Revival
- Progreso y puntos
- IA y juego en solitario
- Rendirse y volver
- Partidas asíncronas
- Repeticiones y Discord
- Stickers, avatares y cursor
- Modelos 3D y personajes nuevos
- Creador de escenarios
- Preguntas frecuentes
- Montar un servidor
- Para desarrolladores