Outpost Universe Forums

Projects & Development => Projects => Topic started by: Fefi on June 24, 2026, 09:57:15 AM

Title: OP2 Codegen Editor
Post by: Fefi on June 24, 2026, 09:57:15 AM
---

**Hey everyone!**

I've been working on a visual mission editor for Outpost 2 and just published it on GitHub.

Instead of writing C++ by hand, you design your mission in a GUI ? place units, buildings, beacons and walls on the map, configure players, set up victory/defeat conditions, and build trigger logic visually. The editor then generates native C++ source code and compiles it directly to a mission DLL via MSVC.

**Features so far:**
- Map viewer with tile rendering
- Click-to-place units, buildings, beacons, walls
- Player setup (colony type, tech level, researches)
- Trigger system with conditions and a nested if/then/else action editor (inspired by Home Assistant automations)
- AI mining groups (RoboMiner + smelter + cargo trucks)
- Building groups with runtime assignment
- One-click build to DLL

The OP2 SDK (Outpost2DLL, OP2Helper, HFL) is bundled ? no extra setup needed beyond Python, PySide6, and MSVC Build Tools.

Still early and the UI is currently mostly in German ? English localization is on the roadmap. The full pipeline already works though: design in the editor → compile → load in game.

GitHub: https://github.com/fefi-byte/op2-codegen-editor

Feedback and contributions welcome!

---
Title: Re: OP2 Codegen Editor
Post by: Leviathan on June 24, 2026, 10:42:37 AM
Thanks for the work on this and sharing. I will take a look and do some improvements at some point.