TeamVanilla Workshop

Libraries, tools and reference books for PC games, and games of our own.

This is the TeamVanilla workshop. We read a game's data files and its executable, write down what we can prove in a reference book, and generate an SDK from the same data. The editors, renderers, mods and rebuilds come after, built on three C++ libraries of our own.

Questions about anything on this site go to our Discord. Source code is on GitHub.

VanillaCity: the square in City Central, with the town's logo and its cat

VanillaCity

Our online town, out now. Make a citizen, move in, take a job, open a shop and adopt a pet. There is one town, and everyone who plays is in it.

Platforms
Browser, Windows 10 and 11, Android 7.0 and later
Price
Free to play
Ages
13 and up
Built on
Our own engine; the apps are C++ on VanGUI
  • The square in City Central on a sunny morning
  • Main Street: Vanilla Threads and The Garden Apartments, traffic stopping at the lights
  • Vanilla Heights: the sales office, the gate and the houses on Magnolia Lane
  • A cottage in Vanilla Heights with a chess table, a pool table and arcade machines

Libraries

C++20 and C++23

Every TeamVanilla project is built on these three. They share one error model, one lifetime model and one build standard, written down in the house rules at the end of this page.

VanHooks

C++23 · Hooking

Function hooking for Windows, Linux and macOS on x86, x64 and ARM64. Seventeen hook kinds, from trampolines and import tables to hardware breakpoints and TLS callbacks, with std::expected errors and RAII lifetime.

#include <vh/vh.hpp>

static decltype(&MessageBoxW) orig_mbw = nullptr;

int WINAPI hk_mbw(HWND h, LPCWSTR text, LPCWSTR cap, UINT type) {
    return orig_mbw(h, L"[Intercepted]", cap, type);
}

auto r = vh::api_hook("user32", "MessageBoxW", &hk_mbw, &orig_mbw);
if (!r) return log(vh::error_to_string(r.error()));

// unhooked when `hook` is destroyed
vh::Hook hook = std::move(*r);
VanHooks: API example

VanGUI

C++23 · Interface

Immediate-mode UI with 40 optional modules of our own: animation, stylesheet theming, dialogs, signals and slots, a command palette, a node graph, and tooling widgets such as a hex editor, a data grid and a timeline. A module you leave off compiles to nothing.

#include <vangui/van.h>
using namespace van;

if (auto w = window("Settings", { .size = {420, 300}, .p_open = &open })) {
    checkbox("V-Sync", cfg.vsync);
    slider("Volume", cfg.volume, 0.f, 100.f, "%.0f%%");
    button("Save", { .primary = true }).on_click(save);
}
VanGUI: API example

VanGFX

C++20 · Graphics

One API over Direct3D 9, 11 and 12. It reports every draw, state change, resource and present, lets you replace or add to shaders, captures the G-buffer and reads buffers back from the GPU, all without a proxy DLL.

auto ctx = vangfx::ContextBuilder{}
    .backend(vangfx::BackendKind::D3D11)
    .d3d11_device(device)
    .d3d11_swap_chain(swapChain)
    .build()
    .value();

ctx->on_draw([](vangfx::FrameContext&, vangfx::DrawEvent& ev) {
    if (ev.vertex_count > 10'000) { /* a big mesh */ }
});
VanGFX: API example

Tools

Desktop and browser

Each of these was written because one of our own projects needed it. None of them shows ads or sends telemetry.

VanSuite

Desktop · Reverse engineering

A desktop reverse-engineering app: disassembly, graphs, a decompiler and vtable recovery, with live instrumentation through VanHooks.

VanTools

Windows · Maintenance

A Windows maintenance suite: cleaning, startup control, drivers, an uninstaller and a download manager, with no ads and no telemetry.

Py2EXE

Desktop · Build

A desktop app over PyInstaller: point it at a script or a project and build a Windows executable.

Games

Research, mods, rebuilds

Eight games made by other studios, and the ones we make ourselves. Each game's page lists what is finished and what is still in development.

Soldier Front

Reconstruction · Server

OpenSF, the game reconstructed with its own server; a map editor; and a launcher, frame-rate and controller mods for the Legacy client.

Drift City

Research · Rebuild

A reference book, an SDK, a mod loader, a graphics mod and a menu mod for the Gamebryo racing game, and a rebuild in development.

CrossFire

Research · Platform

OpenCF, a site and app for players' profiles, weapons and items, and an asset viewer and engine reference in development.

Encyclopedias

Reference books

Written from each game's own files and executable. Every claim in them is marked verified, reasoned or open, and teamvanilla.org explains what each label means. Four are finished; two are being written.

Writing

A byte-level and runtime-level reference for Soldier Front 1, written as evidence lands, every claim tagged verified or reasoned.

Writing

An engine-level reference for CrossFire on LithTech Jupiter EX: archives, assets, the content catalogue and the 45,089-message string table.

Web

Self-hosted, no framework

Software a community can run on its own server, written without a framework: Prism and VanTracker in PHP, VanillaTickets in Node. Our own help desk is at teamvanilla.dev/support/.

Prism

PHP · Platform

A self-hosted community watchdog platform: a searchable public record, a social layer and a help desk.

VanillaTickets

Node · Help desk

Our help desk: a knowledge base, ticket forms, a live progress bar on every ticket and a staff queue. Node and SQLite, no dependencies.

VanTracker

PHP · Bug tracker

A self-hosted bug tracker with tags, attachments, votes, roles, Discord sign-in and a JSON API.

House rules

Every repository

The standard a release has to meet. Because every repository follows the same rules, someone who has worked on one project already knows how the next is built.

  • ErrorsFallible calls return std::expected. Nothing throws on a hot path or inside a hook.
  • LifetimeAnything we patch or hook is undone when the object that owns it is destroyed.
  • AddressesClass tables and addresses are generated from one data file, so a re-extraction updates the SDK.
  • LayoutsCounts and layouts are checked with static_assert. If the data drifts, the build breaks.
  • BuildsWarnings are errors (/W4 /WX), and the CRT is linked statically.
  • ReleasesNo game data in any release. Every archive is searched for it before it goes out.

Contact

Discord is the quickest way to reach the team. Bug reports and support requests go to the help desk, where each one gets a ticket you can follow.