Skip to content
Projets

À propos

FOnline Engine is a flexible cross-platform isometric game engine

Jeux et émulation

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
+1
in 15 days
+2
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

layout: default title: FOnline Engine locale: en document_id: repository-home permalink: /

FOnline Engine

Engine versioning · Changelog

FOnline is an open-source (MIT) C++20 engine for building online multiplayer RPGs in the classic isometric style of Fallout 1/2/Tactics and Arcanum. One codebase gives you the authoritative server, the game client, the map editor, the content pipeline, and packaging for desktop, mobile, and the browser — you bring the game: content, scripts, and rules live in your own repository that embeds the engine.

In continuous development since 2006, the engine powers community multiplayer RPGs; a current example is Last Frontier, a post-apocalyptic MMO built on it.

Why FOnline?

  • Multiplayer first. Not a single-player engine with networking bolted on: an authoritative server, replicated entity state, and client/server separation are the core design, all the way down to the entity model.
  • Complete vertical. Server, client, mapper, editor, resource baker, script compiler, test runner, auto-updater — all built from the same sources by one CMake pipeline.
  • Engine/game split that stays clean. The engine is a reusable submodule; your game owns content, scripts, configuration, branding, and release policy. Engine updates don't drag game policy with them.
  • Data-driven content. Prototypes, maps, localization, and GUI are authored as plain-text assets and baked into runtime packs — friendly to diffs, reviews, and tooling.
  • Runs where players are. Native Windows/Linux/macOS, Android and iOS, and a WebAssembly client that plays in the browser over WebSockets.

Feature highlights

Multiplayer core

  • Authoritative server runtime with entity managers, client validation, and hardened parsing of untrusted client input.
  • Shared entity/property/prototype model with generated type-safe property wrappers and automatic property replication to clients.
  • Pluggable network transports: TCP sockets (including an Asio-based server), WebSockets for browser play, an ordered-UDP channel, and an in-process transport for tests and embedded clients.
  • Pluggable persistence backends — JSON files, SQLite, MongoDB, or in-memory — behind one database facade with an async commit queue and recovery logs.
  • Built-in client auto-updater: a thin client host plus a replaceable runtime, resumable file transfer, and a server-side update backend.

Scripting

  • AngelScript and Managed C# gameplay scripting over a backend-neutral script system; Native scripting remains a reserved placeholder.
  • The native API is exported to scripts by code generation from ///@ annotations — methods, properties, events, remote calls, and enums stay in sync with the C++ source automatically.
  • Nullability is enforced across the script/native boundary: script T? maps to native ptr<T>/nptr<T> contracts, checked by analyzers and runtime asserts.
  • Script debugging support alongside native debugging.

Rendering and presentation

  • Renderer backends: OpenGL, Direct3D, Vulkan, and SDL_GPU, plus headless/null modes for servers and CI.
  • Effects are written once in GLSL and compiled through glslang to SPIR-V, then translated to each backend via SPIRV-Cross.
  • Sprite-based isometric worlds with 3D character models (FBX), particle effects, video playback, and audio in both modern (Ogg/Vorbis) and classic Fallout formats.
  • Windowed, borderless-fullscreen, and multi-client virtual-window modes with a consistent resolution/letterbox model; ImGui-powered developer overlay.

World and maps

  • Hexagonal and square grid geometry modes with shared helpers for distance, direction, and neighborhoods.
  • Path finding, line tracing, movement contexts, and a blocking model designed for multiplayer server authority.

Content pipeline and tools

  • A baking pipeline turns authored sources — prototypes, maps, localized texts, effects, images, models, scripts — into versioned runtime resource packs.
  • Imports classic 2D asset formats (Fallout FRM, Arcanum ART, and other legacy formats) alongside PNG/TGA.
  • Interactive tools built on the engine itself: Mapper with map/content windows and SPARK editing, plus focused animation and baked-particle viewers.

Engineering quality

  • Unit tests (Catch2) with generated per-suite targets, sanitizer runs, and code coverage.
  • Clang Thread Safety Analysis enforced as -Werror on every Clang toolchain; strict smart-pointer and nullability vocabularies audited across the codebase.
  • Always-on stack traces, deterministic exception-safety rules, and a terminate-on-OOM allocation model instead of half-mutated states.
  • Tracy profiler integration for client and server captures.

Architecture at a glance

Your game repository                      FOnline engine (this repo, embedded as Engine/)
────────────────────                      ────────────────────────────────────────────────
content: protos, maps,            ┌──►    Applications — client/server/tool entry points
dialogs, texts, GUI               │       Client & Server runtimes — views vs. authority
AngelScript / C# game logic embeds │      Common model — entities, properties, protos,
.fomain configuration      ───────┤                      maps, networking, config
native extensions                 │       Frontend — windows, input, audio, renderers
CMake presets, CI,                │       Scripting — AngelScript + Managed C# bridges + generated API
release policy                    └──►    Tools & BuildTools — bakers, mapper, editor,
                                                     CMake stages, codegen, packaging

The engine owns reusable technology; the game owns the product. A game repository adds the engine as an Engine/ submodule, points the engine's staged CMake pipeline at its own configuration, and gets project-named build targets for every application. The full layer map is in Engine Architecture, and the embedding contract in Embedding FOnline in a Game Project:

GameProject/
├── Engine/                 # this repository as a git submodule
├── CMakeLists.txt          # project entry point that includes engine build logic
├── CMakePresets.json       # project presets and platform variants
├── GameName.fomain         # master project configuration
├── Scripts/                # game AngelScript or Managed C# modules
├── SourceExt/              # optional project-native C++ extensions
├── Critters/ Items/ Maps/  # game content and prototypes
└── Dialogs/ Texts/         # dialogs and localization

Getting started

FOnline has build profiles for Windows, Linux, macOS, Android, iOS, and WebAssembly, but support is evidence-scoped. Consult the support matrix; a cross-build or headless smoke does not qualify a renderer, device, package, service, or store route.

Repository layout

  • Source/ — engine source: Applications/ entry points, Client/ and Server/ runtimes, Common/ shared model, Frontend/ platform/render layer, Scripting/ bridge, Tools/ bakers and editors, Essentials/ low-level core, Tests/ unit tests.
  • BuildTools/ — staged CMake pipeline, code generation, platform toolchains, workspace and package preparation.
  • Resources/ — engine-owned runtime and build resources.
  • ThirdParty/ — vendored dependencies (SDL, AngelScript, Asio, ImGui, glslang, SPIRV-Cross, Tracy, and more); maintenance workflow in ThirdParty Maintenance.
  • Docs/ — maintained engine documentation.

Documentation

The maintained index is Docs/en/index.md; the Russian mirror is Docs/ru/index.md. Deep dives by theme:

Theme Docs
Architecture & navigation Architecture · SourceTree · Applications · Essentials
Runtime model Entity Model · Maps and Movement · Networking · Persistence
Client & server Client Runtime · Server Runtime · Frontend and Rendering · Client Updater
Scripting Scripting · Managed C# · LifecycleAndConcurrency · AngelScriptStyle · RemoteCalls · ScriptMethodsMap · Nullability · GeneratedApiAndMetadata · ContractChangeManagement
Build & content pipeline BuildWorkflow · ProjectConfiguration · GeneratedContentWorkflow · EngineUpgradeGuide · SupportMatrix · BuildToolsPipeline · BakingPipeline · ConfigurationAndDataSources
Tools Tools · Mapper Tools · Mapper Interactive Manual · Animation and Particle Viewers
Quality & conventions Testing · Profiling · ExceptionSafety · SmartPointers · ThreadSafetyAnalysis
Platform debugging Debugging · Web · Android

When behavior changes in a noticeable way, the owning document is updated in the same change — the docs are maintained as a source-grounded reference, not an afterthought.

Project and community

Explorer des projets similaires

Chargement…