Targets and generations
Two PC versions of the game
Section titled “Two PC versions of the game”Knockout City on PC comes in two versions that look the same but draw differently: PC · Standard and PC · Low-res, built for less powerful computers. Studio calls each a targettarget: A kind of client your mod is built for, such as PC Standard or PC Low-res. Each needs its own copy of anything the graphics card draws.. (Under the hood they’re two render generations, which is where “gen1” and “gen2” in some file names come from.)
The difference is only in what the graphics card draws: textures and models carry separate data for each. Levels, scripts, sounds and gameplay data are the same files for both.
| File | PC · Standard | PC · Low-res | Server |
|---|---|---|---|
| Texture | its own copy | its own copy | the file, minus graphics data |
| Model | its own copy | its own copy | the file, minus graphics data |
| Level | the same file | the same file | the same file |
| Script | the same file | the same file | the same file |
| Sound | the same file | the same file | no audio: it never plays sound |
A game crashes on a texture or model that lacks its own target’s data, so Studio checks every texture and model for you.
Your mod is built for both
Section titled “Your mod is built for both”A workspace targets both PC versions unless you change it (Settings › Project › Targets). For every texture and model, Studio builds the data each target needs:
- For PC · Standard, from the image or GLB you gave it.
- For PC · Low-res, made from the Standard version, at full size or smaller.
You can give a texture its own Low-res image when the automatic one isn’t right. See Materials and textures in Studio.
“Can’t be built for this target”
Section titled ““Can’t be built for this target””Occasionally Studio can’t make one target’s copy from another, usually a texture whose sizes don’t divide evenly. Studio then says which file and why, in the Package window’s target chips and in Problems. Give that texture an image of its own for the target, and the problem goes. Studio won’t export a mod while any file can’t be built, so players never get half a mod.
For programmers
A target is a GPU payload section inside each texture and model file: the low-res client loads only its generation’s section, the standard client only its own, and the server gets the file with GPU sections stripped. A file may carry both sections; Studio’s export writes one archive per target so each client downloads only its own.