8000 GitHub - fuwujiaxx/vera20k: Red Alert 2: Yuri's Revenge rebuilt in Rust / 用 Rust 重写的《红警2:尤里的复仇》 · GitHub
[go: up one dir, main page]

Skip to content
fuwujiaxxPublic
forked from YuriPlanet/vera20k

About

Red Alert 2: Yuri's Revenge rebuilt in Rust / 用 Rust 重写的《红警2:尤里的复仇》

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

7,557 Commits

Folders and files

Repository files navigation

VERA20K hero image

Svenska · 简体中文 · Deutsch · العربية · Русский · ไทย · Türkçe · English

macOS library tests Linux library tests Windows library tests Join Discord QQ group

VERA20K

VERA20K is a community-led rewrite of the original engine, gamemd.exe. It uses the original game files, so you'll need your own copy of Red Alert 2: Yuri's Revenge.

VERA20K is made by gamers, for gamers, and gamers have the final say in where it goes.

VERA20K skirmish setup screen and in-game view

Project goals

  1. Keep the gameplay, visuals and atmosphere of the original Red Alert 2: Yuri's Revenge.
  2. Support bigger battles: up to 30 players and 20,000 units on 500×500 maps.
  3. Incorporate known RTS features and some never seen before.
  4. Integrated multiplayer client

Current status

In active development.

  • Skirmish: Playable on Windows, Linux and macOS, with original and random maps, base building, harvesting, combat and save/load.
  • Campaigns: Missions can launch; support remains incomplete.
  • AI: Parts of the original AI handle base building and scripted attacks.
  • Ongoing work: Gameplay accuracy, visuals and performance.
  • Multiplayer: Network play is not available yet.
  • Scale: Battles with 30 players and 20,000 units have not yet been demonstrated.

Architecture

The engine has three main parts:

  • Simulation: Owns gameplay state and logic.
  • Rendering: An absolutely new GPU rendering pipeline using the original game assets, built to preserve the original look.
  • Application: Handles input, menus, audio, and platform integration, connecting the systems.

This separation supports deterministic gameplay.

Arrows show data flow:

Application sends commands to simulation, which returns world state; application sends draw data to rendering.

System requirements

  • Game: Red Alert 2: Yuri's Revenge 1.001.
  • OS: Windows 10+, Linux (glibc 2.35+, e.g. Ubuntu 22.04 or Steam Deck), or macOS 11+ on Apple Silicon.
  • Graphics: Vulkan, DirectX 12 or Metal.

Build and run

You need:

  • Rust and Git: Rust 1.88 or later, installed with rustup, and Git.
  • Build tools: on Windows, the Visual Studio C++ build tools, which the Rust installer offers to install; on macOS, xcode-select --install; on Debian and Ubuntu, sudo apt install build-essential libasound2-dev pkg-config.

VERA20K has been played on Windows, Linux and macOS.

git clone https://github.com/YuriPlanet/vera20k.git
cd vera20k
cp config.toml.example config.toml
# Edit config.toml and set ra2_dir to your game folder before running:
cargo run --release --bin vera20k

The build writes several GB into target/.

How we work

Most of the code is written by AI coding agents. They use Ghidra to study the original engine, then port its behavior to Rust and check it with comparison tools and playtesting. Agents follow AGENTS.md.

Customization

Ares compatibility is an optional build capability. Default builds use the retail readers and dispatch; an INI or client setting cannot enable omitted extensions. Build the supported extensions explicitly:

python -m tools.cargo_run -- build -p vera20k --profile fast --bin vera20k --features ares

Omit --features ares for a build without the extensions. Ares builds identify themselves in the window title and startup log. Supported INI keys configure existing GenericWarhead, UnitDelivery, superweapon building gates and money behavior; Include/inheritance expansion is also active only in Ares gameplay builds. The explicit read-only asset ini-expand probe remains available independently. Saves retain the build capability and cannot load in the other mode, even with identical retail INIs. This is partial Rust-native compatibility, not Ares DLL loading or general mod support. The enabled build also supports generic production prerequisites, including alternate owned types and installed-upgrade qualification.

To launch single-player YR skirmishes or campaigns through a dedicated CnCNet client, see the offline client setup. This needs a VERA build with the -SPAWN startup adapter.

Contributing

Help is welcome. You can write code, refactor the engine, test the game, share ideas, or play it next to the original and tell us what feels wrong. Open a PR and we'll take it from there. If you add a native comparison under tools/, record what gamemd.exe computes, never a hash of the executable: every build is treated as the same game, and the oracle runner refuses such hashes (see Evidence identity). Discussion is on Discord and in the QQ group (1097193563).

Support

Support VERA20K via PayPal

All donations received are distributed to contributors according to the TIBTRE contribution ledger.

Payouts to contributors:

PayPal China UnionPay Alipay Vipps SEPA Bitcoin

Credits and legal

Thanks to OpenRA, XCC Mixer, the ModEnc wiki, Project Perfect Mod, EA's GPL source release of Command & Conquer and Red Alert, World-Altering Editor, Final Alert, YRpp, Ares, Phobos and many others.

Licensed under the GPLv3. This repository contains no game files. Command & Conquer and Red Alert are trademarks of Electronic Arts Inc., and the screenshots show game art owned by Electronic Arts. VERA20K is not affiliated with or endorsed by Electronic Arts.

About

Red Alert 2: Yuri's Revenge rebuilt in Rust / 用 Rust 重写的《红警2:尤里的复仇》

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0