Skip to content

Pencea-Flavius/Triny-Tok-R.E.P.O.-Mod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrinyTok Repo

Compatible with the latest functional version of R.E.P.O.

A BepInEx mod that bridges R.E.P.O. to Triny-Tok — letting TikTok viewers trigger in-game effects in real time via gifts, follows, and likes.


Effects

Player Effects

Code Description Type
player_invincible God mode — player cannot take damage Timed
player_infinitestam Stamina never drains while sprinting or sliding Timed
player_fast 2× movement speed Timed
player_slow 0.5× movement speed Timed
player_antigravity Player floats upward Timed
player_disableinput Freezes all player controls Timed
player_disablecrouch Prevents crouching Timed
player_heal Restores 100 health Instant
player_hurt Deals 25 damage Instant
player_kill Instantly kills the player Instant
player_refill_energy Restores all stamina Instant
player_drain_energy Drains all stamina to zero Instant
playerPitch_high High-pitched voice for duration Timed
playerPitch_low Low-pitched voice for duration Timed

Teleport Effects

Code Description
player_teleport_truck Teleports to the truck spawn point
player_teleport_extraction Teleports to nearest extraction point
player_teleport_random Teleports to a random other player
player_teleport_room Teleports to a random room

Upgrade Effects

Code Description
upgrade_energy Upgrades player energy capacity
upgrade_health Upgrades player max health
upgrade_jump Adds an extra jump
upgrade_grabrange Extends grab range
upgrade_grabstrength Increases grab strength
upgrade_sprint Increases sprint speed
upgrade_throw Increases throw strength
upgrade_tumble Upgrades tumble launch
upgrade_map Upgrades map player count

Global Effects

Code Description
revive_all Revives all downed players
closeAllDoors Slams every door shut
increase_haul_goal Multiplies the haul goal by 1.5×
decrease_haul_goal Reduces the haul goal by 0.5×
destroy_random_item Destroys a random valuable in the level

Spawn Effects

Code pattern Description
spawnenemy_<name> Spawns an enemy near the target player
spawncollectable_<name> Spawns a collectable item
randomSpawnActivatedItem_<name> Spawns an activated item

All items, valuables, and enemies below are verified working in the current version of R.E.P.O.

Items: Health Pack (S/M/L), Revive Item, Handgun, Shotgun, Tranq Gun, Photon Blaster, Pulse Pistol, Boltzap, Sword, Sledge Hammer, Baseball Bat, Frying Pan, Inflatable Hammer, Stun Baton, Explosive/Shockwave/Stun/Duct Tape/Human Grenade, Explosive/Shockwave/Stun Mine, Staff Torque/Void/Zero-G, Drone Battery/Feather/Indestructible/Torque/Zero-G, Zero-G Orb, Medium/Small/Cannon/Laser Cart, Exit Tracker, Loot Tracker, Semiscooter, Semiscooter (S), Phase Bridge, Leaf Blower, Walkie Talkie Box, Duck Bucket, Power Crystal, Rubber Duck, all Upgrades (Energy/Health/Jump/Grab Range/Grab Strength/Sprint/Tumble/Map/Death Head Battery/Crouch Rest/Tumble Climb/Tumble Wings).

Enemies: Reaper, Mentalist, Huntsman, Clown, Chef, Trudge, Spewer, Shadow Child, Rugrat, Peeper, Birthday Boy, Headgrab, Heart Hugger, Apex Predator, Headman, Bang, Animal, Bowtie, Bella, Cleanup Crew, Elsa, Gambit, Gnome, Hidden, Loom, Oogly, Robe, Tick, Upscream.

Valuables: toate obiectele din biome-urile Generic, Arctic, Manor, Wizard și Museum sunt suportate.


Building

Prerequisites

  • .NET SDK 6+ (any platform)
  • Game DLLs from R.E.P.O._Data/Managed/ placed in the ../Managed/ folder relative to the project
  • BepInEx core DLLs placed in ../repo/BepInEx/core/
  • REPOLib DLL placed in ../repo/BepInEx/plugins/REPOLib/

Steps

  1. Clone this repo

  2. Drop the required DLLs (see TrinyTokRepo.csproj HintPaths for the full list):

    From R.E.P.O._Data/Managed/:

    Assembly-CSharp.dll
    UnityEngine.dll
    UnityEngine.CoreModule.dll
    UnityEngine.UI.dll
    UnityEngine.PhysicsModule.dll
    PhotonUnityNetworking.dll
    PhotonRealtime.dll
    Photon3Unity3D.dll
    PhotonVoice.dll
    PhotonVoice.PUN.dll
    Newtonsoft.Json.dll
    

    From BepInEx/core/:

    BepInEx.dll
    0Harmony.dll
    

    From BepInEx/plugins/REPOLib/:

    REPOLib.dll
    
  3. Build:

    dotnet build
  4. Output DLL: bin/Debug/netstandard2.1/TrinyTokRepo.dll


Installation

  1. Copy TrinyTokRepo.dll into your BepInEx plugins folder:

    R.E.P.O./
    └── BepInEx/
        └── plugins/
            └── TrinyTokRepo/
                └── TrinyTokRepo.dll
    
  2. Launch Triny-Tok and go to the R.E.P.O. tab.

  3. Click Start Bridge — it will listen on port 51337.

  4. Launch the game. The mod connects automatically on startup.

  5. Press F8 in-game at any time to toggle the connection.


Configuration

After the first launch, edit BepInEx/config/com.trinytok.repo.cfg:

[Connection]
Host = 127.0.0.1
Port = 51337
ToggleConnectKey = F8
AutoReconnect = true

Set AutoReconnect = false if you're streaming with friends and don't want the mod to keep reconnecting when the host goes offline.


Triny-Tok Setup

In Triny-Tok, navigate to the R.E.P.O. tab, then map TikTok gifts to effects:

Gift Effect suggestion
Rose player_hurt
TikTok player_kill
Ice Cream player_invincible
Galaxy revive_all

For timed effects you can configure the duration (in seconds) per mapping. Enable Target Random to hit a random player instead of the streamer.


Project Structure

TrinyTokRepo/
├── src/
│   ├── TrinyTokRepoMod.cs   # BepInEx plugin + Harmony patches + all effects
│   └── TrinyTokClient.cs    # TCP client connecting to Triny-Tok
├── TrinyTokRepo.csproj
└── README.md

How It Works

TikTok gift
    │
    ▼
Triny-Tok (Node.js server)
    │  TCP :51337  (JSON + \0 delimiter)
    ▼
TrinyTokRepo.dll (BepInEx mod)
    │  Harmony patch on Unity main thread
    ▼
R.E.P.O. game
    │  Photon network events (player + pitch effects)
    ▼
All connected players

Triny-Tok acts as a TCP server; the mod connects as a client on startup and reconnects automatically if the connection drops. Effects that target players (damage, speed, pitch) are broadcast via Photon network events so all clients in the session see them. Global effects (doors, haul goal) run directly on the streamer's machine.


License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors