casualexpiesource

cu-trainer/README.md

56 lines · 4.4 KB · plain text · download

Ultra Paradise CU:Trainer

A trainer for Casualties: Unknown (formerly Scav Prototype): the cheats from CU Cheats in a standalone app, a live health view, tools, themes and more. Single player only: if a multiplayer mod is loaded, the cheats stay off.

How it fits together

FolderWhat it is
Ultra Paradise ApplicationThe Windows app (Windows Forms, .NET Framework 4) and the in-game payload (Payload.cs, Engine.cs, Health.cs, Debug.cs, MyMods.cs, Music.cs), which is embedded into the loader
UltraParaThe loader, in C. version.dll sits next to the game and starts UltraPara.dll, which loads the payload into the game
Ultra Paradise Linux/appThe Linux and macOS app (Avalonia, .NET 8)
Ultra Paradise Linux/pluginThe BepInEx plugin the Linux and macOS app talks to (the payload plus LinuxHost.cs)
Ultra Paradise Linux/sharedCheat list shared by the Linux app and plugin
Ultra Paradise Linux/tools/macsignA small ad-hoc signer, so the macOS build can be signed on Windows

Internet use

AddressWhenWhat is sent
updates.smellypawz.comUpdate check when the app starts; update download when you click UpdateThe app's version. Downloads are checked against the SHA-256 fingerprints on the official Nexus page before they're used.
updates.smellypawz.com/v1/pingOnce a day, only if you agreed to be counted as a userA random id made on your computer, the app version and the OS (Windows, Linux or macOS). The server doesn't keep your IP address. Turning it off in Settings sends /v1/forget and the server deletes what your computer sent.
updates.smellypawz.com/v1/usersWelcome tabNothing. It fetches the total user count.
updates.smellypawz.com/v1/vtVirusTotal tabThe app's version, to show the VirusTotal result for the official file.
api.nexusmods.com/v2/graphqlChecking that your copy is official, About Me, Install My ModsPublic queries for the trainer page's file fingerprints and casualexpie's mod list. No API key, no account.
lrclib.netMusic tab, only when a song is playingSong title and artist, to fetch lyrics.
github.com/BepInExOnly when you click Install BepInExDownloads the official BepInEx 5 release.

Nothing else is sent, and no personal information is collected.

Building

You need Windows, Casualties: Unknown from Steam, and:

  • Windows app: the C# compiler from .NET Framework 4 (part of Windows) and the Windows 10/11 SDK (for Windows.winmd).
  • UltraPara loader: Visual Studio Build Tools with the C++ workload.
  • Linux/macOS app: the .NET 8 SDK.
  • Libraries: copy 0Harmony.dll, MonoMod.RuntimeDetour.dll, MonoMod.Utils.dll and Mono.Cecil.dll from a BepInEx 5 install (BepInEx\core) into Ultra Paradise Application\lib.
  • Images: not included. The builds expect art\experimentHead.png (20x12 pixels), art\splash.jpg and art\logo-nexus.png, art\logo-gamebanana.png, art\logo-discord.png in Ultra Paradise Application\art, and icon.png, tile.png, splash.jpg plus the same logos in Ultra Paradise Linux\art. Any images with those names work.

Build order (the scripts call each other where needed):

$game = "C:\Program Files (x86)\Steam\steamapps\common\Casualties Unknown"
powershell -ExecutionPolicy Bypass -File "Ultra Paradise Application\build.ps1" -NewUltraPara -GameDir $game
powershell -ExecutionPolicy Bypass -File "Ultra Paradise Linux\build.ps1"
powershell -ExecutionPolicy Bypass -File "Ultra Paradise Linux\build-mac.ps1"

The Windows build makes Ultra Paradise Application\bin\Ultra Paradise CU-Trainer.exe. The first run builds the payload, then the UltraPara loader (which embeds the payload and writes UltraPara\out\UltraParaInfo.cs), then the app.

Your own build won't match the official fingerprints, so the update checks will treat it as unofficial. That's expected.