What modding Knockout City means
The game is files
Section titled “The game is files”Everything you see and do in Knockout City comes from files the game loads: the hideout is a level file, the crate in it is a model file, the crate’s wood is a texture, the sound it makes when a ball hits it is in a sound bank, and what happens when you step on a jump pad is a script. The program itself (the engine) mostly reads those files and does what they say.
So modding Knockout City means changing the files the engine reads, never the engine itself.
A mod is your files, laid over the game’s
Section titled “A mod is your files, laid over the game’s”You never edit the game’s own files, the shippedshipped: Part of the game as it was released. Shipped files are never changed; a mod layers its own files over them. ones. You make your own files, and the game loads yours in their place:
- Change something that ships: make your own copy of its file at the same place, and change the copy. That copy is an overrideoverride: Your copy of a shipped file, at the same path. While your mod is installed the game loads your copy instead of the original..
- Add something new: make a new file where nothing ships.
- the game's, underneathyour copyhideout_master.level
Game loads: your copy
- the game'scrate.model
Game loads: the game's
- yours, newmy_pad.level
Game loads: your new file
Because the originals are never touched, taking a mod out is always safe: remove your files and the game is exactly as it shipped. It also means a mod stays small. It holds only what you changed, not a copy of the game.
In Studio, everything you change lives in your workspaceworkspace: Your mod in Studio: every file you added or changed, kept apart from the game's own files until you install or export it. until you install it into the game or export it for players. See Shipped files and yours for the details.
What you can change
Section titled “What you can change”| You want to… | Which means changing | Start with |
|---|---|---|
| Move, add or remove things in a map or the hideout | Levels | The world |
| Change how something looks | Models, materials, textures | Models |
| Change a sound or add one | Sound banks | Sound |
| Change how something moves | Animations | Animation |
| Tweak balls, modes, powerups | Gameplay data | Gameplay data |
| Make something new happen | Scripts | Scripts in the world |
| Sell things, run an event | Store offers, schedules, event content | The store |
What you can’t
Section titled “What you can’t”- The engine itself. How the game draws, simulates physics and talks over the network is built into the program. Your files can use all of that, but not replace it.
- New shaders. A material picks one of the game’s own shaders and feeds it your textures and values. That covers almost every look you’ll want, but you can’t write a new kind of surface.
- Whole new maps, easily. Changing a shipped map is well understood. Adding a map the game has never heard of touches parts of the game nobody has fully mapped yet, so these docs don’t cover it.
Two halves: the game and the server
Section titled “Two halves: the game and the server”Knockout City is an online game. Every match runs on a server, and every player runs a copy of the game (a clientclient: A player's copy of the game. It runs the same scripts, and shows the player what the server decided.) that talks to it. With a private server, you run both.
A mod usually has to reach both halves. If the server spawns a crate the players’ games have never heard of, players walk into something they can’t see; the other way round, they see something that isn’t there. Studio handles this for you: when you test, it installs your mod into both at once, and works out for every file which half needs it.
For programmers
A mod is a set of loose files installed beside the game’s archives, which are never written to. An override is a file at a shipped path; Studio points every package list (the per-package load order) that names that path at your copy. Files reference each other by a stable ID, not by path. Uninstalling is deleting the loose files.
Where to go next
Section titled “Where to go next”- The tools you’ll use: Studio, the game, and what each is for.
- Your first ten minutes: open the game in Studio, change one thing, see it in game.