Skip navigation
PETAFAB: Steam Workshop mods - day 2
0:00 / 0:36

PETAFAB: Steam Workshop mods - day 2

Sebastian Aaltonen

@SebAaltonen59K followers

Visit on X
195 likesDownloadOriginal post

16,849 views

PETAFAB: Steam Workshop mods - day 2 Level = .zip file: .json file defines SDF brush hierarchy (boolean ops), camera/post settings, light sources, enemies, pickups. Supports custom materials and custom skybox. Test: Gave Codex my old Claybook lv1 screenshots. 15 min later:

21 Comments

Comments from the original post on X (Twitter)

  • Sebastian Aaltonen's profile picture

    @SebAaltonen

    I have a background in UGC content creation platforms. Trials series (RedLynx/Ubisoft) had massively popular level editor. We hired the best creators to do official maps to the sequels and DLCs. My fancy streaming tech made memory usage constant. Could mix/match any DLC assets in your level on a 0.5GB RAM device. HypeHype was a touchscreen game creation platform for phones and tablets. A full blown game editor in your pocket. It was killed because Roblox already had that audience (and their friends). Hard to compete against them.

    9 likes

  • Singular Prism's profile picture

    @singular_prism

    this looks so beautiful, Claybook aesthetics and art direction were so good

    2 likes

  • Sebastian Aaltonen's profile picture

    @SebAaltonen

    Yeah. It had a nice art style and nice tech. Too bad the game itself wasn't that good. Both me and Sami were competitive hardcode gamers and tried to make a slow paced kids game. Puzzle game in a world that is fully deformable. Can't restrict player movement in any way = PROBLEM!

    2 likes

  • Arshad Barves's profile picture

    @arshadbarves

    15 min from old screenshots and it even kept the checkerboard slides and barrel towers. zip plus a json of sdf brushes is a really clean workshop format

    2 likes

  • bonzaj/plastic's profile picture

    @bonzajplc

    You should do a mcp server instead of handling files

    2 likes

  • Sebastian Aaltonen's profile picture

    @SebAaltonen

    File based wastes less tokens. MCP requires lots of tool calls back and forth. Slower and more token hungry. We did both paths at HypeHype in our AI platform. Also command line tools (skills) instead of MCP connections + tool API has better results with modern agents.

    7 likes

  • Sebastian Aaltonen's profile picture

    @SebAaltonen

    Anthropic and OpenAI recommend using files/skills nowadays. MCP was the recommendation last year. Both work of course and have their strengths/weaknesses. Game can also hot reload files when they change. But if you do mixed AI/human editor, then MCP is of course better.

    1 like

  • Andrew's profile picture

    @AndrewBuilds98

    Using old screenshots as the spec is such a good trick. Did it get the layout right first go, or did it take a few rounds of fixes?

    1 like

  • Sebastian Aaltonen's profile picture

    @SebAaltonen

    This is 3 iterations. Still nowhere the quality I would ever ship, but it’s fine for UGC dogfooding. Petafab built-in levels are way more polished. 100x work. But AI gets you started super fast.

  • Ruslan | Building apps's profile picture

    @progerallworld

    A workshop level is a nice test of whether the format is actually portable. Can I load the zip on a clean install and get a useful error if a custom material is missing?

    1 like

  • Sebastian Aaltonen's profile picture

    @SebAaltonen

    There’s a validator already.

  • Lachy's profile picture

    @illulachy_

    what did codex learn the json level format from: a written schema, example level files, or the loader code?

  • Sebastian Aaltonen's profile picture

    @SebAaltonen

    I have a json schema + file format documentation. Intended audience is both humans and AI. I didn't have to do any extra API/MCP for AI.

  • Lachy's profile picture

    @illulachy_

    makes sense, one doc for both. did the docs ship with an example level or two, or was the schema plus the written format description enough for codex to get the brush boolean ops right?

    1 like

  • Sebastian Aaltonen's profile picture

    @SebAaltonen

    I made the first prototype yesterday. Nothing has shipped yet. I just gave AI the docs and asked it to build a level to dogfood the system. Then I posted the result. Today I have been polishing the system and creating Steam Workshop UI for the app, so that players can share content. Adding missing features and improving everything for the next patch.

  • crertel ᐛ's profile picture

    @crertel

    That's hilarious. I love it!

  • Koding Nights / Solo Indie GameDev's profile picture

    @kodingnights

    Would you be able to create a map manually though. Sounds complicated for a layman.

  • Sebastian Aaltonen's profile picture

    @SebAaltonen

    Of course. It's a json file and everything is well documented. Create your own textures using whatever software you want. Place primitives in Blender and ask AI to write a Blender -> json conversion script based on my spec. I could write such python script myself too.

    1 like

  • Sebastian Aaltonen's profile picture

    @SebAaltonen

    I don't think me writing a level editor is worth doing, since people prefer to use existing tools that they are familiar with.

  • Akshat | MagnetX's profile picture

    @aksenHQ

    how close was the first try to the original level?