Skip to content

Targets and generations

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.

FilePC · StandardPC · Low-resServer
Textureits own copyits own copythe file, minus graphics data
Modelits own copyits own copythe file, minus graphics data
Levelthe same filethe same filethe same file
Scriptthe same filethe same filethe same file
Soundthe same filethe same fileno audio: it never plays sound
What each place receives, by kind of file. Only graphics data differs between the targets; the server needs none of it.

A game crashes on a texture or model that lacks its own target’s data, so Studio checks every texture and model for you.

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.

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.

How a mod reaches players.