Native Packs
A native pack is a game pack written with the Modding SDK: C# that the Crowd Control desktop app compiles and runs beside your game, talking to your mod or to an emulator. Through the Developer Portal you can publish one yourself, without sending your code to the Crowd Control team.
Create one with Create App and choose Native client pack. It doesn't get an Application ID, since the desktop app handles the connection. Its ID (x_YourGame) is shown as the App ID.
Example Packs
Download one and compare it with your own:
- x_HorseFight-PC-example.zip: a PC game with a SimpleTCP mod. The
.csfiles are placeholders showing the layout. - x_HorseFight-SNES-example.zip: a SNES game played in BizHawk or on an SD2SNES, with a full pack and a BPS patch.
The Zip
menu.json
assets/icons/ effect icons (optional)
locales/ translations, like es-ES.json (optional)
src/
x_YourGame.cs the main file: named after the game pack's ID
Effects.cs any other .cs files, built with the main file
x_YourGame.bps .ips or .bps patches, for console gamessrc/holds only.cs,.ipsand.bpsfiles. Subfolders are allowed.- The main file must be
src/<Game Pack ID>.cs. The desktop app builds it together with every.csfile beside it. - Up to 200 files. Each
.csfile can be up to 1 MB and each patch up to 16 MB. The whole zip can be up to 50 MB.
menu.json
menu.json lists the effects viewers see, in the same format as other games (see Creating a Game Pack), plus "kind": "native" and a meta block saying how the desktop app runs and connects to the game.
Your game's name, description and store links come from the library listing, not from meta.
PC games
{
"format": 1,
"kind": "native",
"meta": {
"platform": "PC",
"connector": ["SimpleTCPServer"],
"executable": "HorseFight.exe",
"steam": { "id": 480 },
"mod": { "version": "1.0.0", "port": 51337 },
"supportFiles": { "logPath": "{gamePath}BepInEx/LogOutput.log" }
},
"effects": {
"spawn_horse": {
"name": "Spawn Horse",
"description": "A horse appears.",
"price": 100,
"image": "spawn_horse.png"
}
}
}| Field | |
|---|---|
platform | "PC" |
connector | 1 to 4 of: SimpleTCPServer, SimpleTCPClient, SimpleWebsocketServer, SimpleWebsocketClient, SimpleHTTPServer, NamedPipeClient, NamedPipeServer, NamedPipeDuplex, BinaryGameSocket, Inject, CompactInject, MemoryBuffer, File, LogReader, RCON, REST, IRCClient, IRCServer, Pipeline |
executable | Required. The game's file name, like HorseFight.exe, which the desktop app finds and launches. |
steam | Optional. { "id": <Steam app ID> }, to find and launch the game through Steam. |
process, skipProcessArgCheck | Optional. How the desktop app recognizes the running game. |
mod | Optional. The mod version and port your pack expects. |
supportFiles.logPath | Optional. Your mod's log file, which the desktop app can open for the streamer. |
Console games
{
"format": 1,
"kind": "native",
"meta": {
"platform": "SNES",
"emulator": "bizhawk",
"connector": ["BizhawkTCP", "Lua", "sd2snes"],
"patch": true
},
"effects": {}
}| Field | |
|---|---|
platform | The console, such as SNES, NES, GBA, N64, PS1, PS2, GCN, Wii, WiiU. |
emulator | The emulator the desktop app installs and runs the game in, and which platforms it supports: bizhawk (GB, GBA, GEN, GG, N64, NDS, NES, PS1, SNES), project64 (N64), dolphin (GCN, Wii), pcsx2 (PS2), cemu or cemucc (WiiU). |
connector | 1 to 4 connectors of that emulator: Bizhawk, BizhawkTCP, Lua for BizHawk; Lua for Project64; Dolphin, DolphinTCP; PCSX2; Cemu; CemuTCP. Add sd2snes (SNES) or EverDriveN8Pro (NES) to also support real hardware. |
patch | Optional. true applies the pack's .ips/.bps patches to the streamer's ROM before launch. |
preferredCore | Optional. The BizHawk core to use. |
The streamer supplies their own ROM. Never put a ROM in the zip.
Testing
- Upload the zip and click Start Testing on the version.
- In the Crowd Control desktop app, signed in as someone on the game's team, pick your game and load the pack.
- Because the pack hasn't been reviewed, the desktop app asks before running it. It asks again for every new zip.
Every load downloads the version's src/ again into a fresh folder, so a replaced zip is always picked up.
The warning tells testers to report bugs to you rather than to the Crowd Control team, and the desktop app shows a Third-Party Game tag beside your game's name.
