Your first texture mod in 10 minutes

Repaint something in the game, such as the grass, a shirt or a sign. You need only your browser and a paint program. There is no command line and no game files to dig out.

What you need #

  • The game running in your browser at https://playaconline.com/play/. The game runs from your own disc file. See Your disc.
  • A paint program that saves .png files. For .dds files, GIMP (free, Windows, Mac and Linux) needs no add-ons, and Paint.NET (free, Windows) works too.
  • A way to make a ZIP file. Windows, macOS and most Linux desktops can do this from the file manager.

1. Start from a mod that works #

Do not start from an empty folder. Take a texture mod that already installs and works, and change it:

  • The texture kit. It turns the town grass into a green check, so you can see a texture mod work before you paint anything.
  • The Springtime Town example on GitHub, also as a ZIP. It draws clover over the town grass. Its README says how to start your own mod from it.
  1. Unzip it into a folder of its own.
  2. Open mod.json in a text editor. Set the id to your name, a dot and a name for the mod, like sam.springtime-grass. Use lower case letters, digits and dashes. Put yourself in authors.
  3. The pictures are in textures/. Delete the ones you do not want to keep.

2. Save the pictures #

  1. Open the model viewer. It reads your disc file, like the game.
  2. Open what you want to repaint, such as a tree, a shirt or a piece of furniture.
  3. Press Textures, then Save all. You get a ZIP with every texture of the model.
  4. Unzip it into your mod's textures/ folder.

Each file is already named. The game matches the tex1_... part, so keep it exactly as it is. The label before it, the model's name, is only there for you. Where a texture changes with the season or the time of day, the name has $ in it, so your picture shows all day and all year. For one season only, see palettes.

3. Paint over the pictures #

  1. Open a picture in your paint program. Paint your own picture over it, in the same layout.
  2. Save it under the same name. A bigger picture, 2 or 4 times the size, draws in the same place, sharper.
  3. Delete every picture you did not paint.

A .png is the simplest. For a .dds, see PNG or DDS. Keep one file per texture, not both.

4. ZIP it and install it #

  1. ZIP the folder. On Windows, right-click it, then Send to, Compressed (zipped) folder. On a Mac, right-click it, then Compress. mod.json must be at the top of the ZIP or inside one folder at the top. Keep other ZIPs out of the folder. A mod with a .zip inside is refused.
  2. In the game, open Settings, Mods. Under Install from a file, choose Choose a file and pick your ZIP.
  3. Choose Restart now. Mods load when the game starts.
  4. Walk to the spot. Your picture is there.

To change it again, paint, ZIP, choose Choose a file again and restart. A ZIP with the same id updates the installed mod.

Get the playac-mod tool (optional) #

playac-mod is a command line tool that checks a mod folder with the game's own rules, reloads it in the game as you save, and packs the ZIP. It needs Node.js 18.17 or newer (free, from nodejs.org; node --version says which you have). Nothing on this path needs it: installing a ZIP in the Mods tab runs the same checks.

terminal
npm install -g https://github.com/Play-AC-Online/playac-mods/releases/download/cli-v1.1.0/playac-mod-1.1.0.tgz
cd my-mod            # your mod's folder
playac-mod check     # every rule the game checks, each problem with its file
playac-mod dev       # serve the folder to the game's developer mode (see Testing)
playac-mod pack      # the ZIP to install or share, the same bytes every time

Every command and option is on The playac-mod tool.

For textures, playac-mod check also reads each picture's header. It warns about:

  • a picture the mod list would refuse (mipmaps, or a format the game cannot draw)
  • a picture smaller than the texture it replaces
  • a .png and a .dds of the same texture

Next #