Warriors of the Eternal Sun: Easy on the Eyes

Warriors of the Eternal Sun Easy on the Eyes is a Linux port of Warriors of the Eternal Sun for Sega Genesis with 240 Hz smooth motion and calm shading.

README

Warriors of the Eternal Sun: Easy on the Eyes

Warriors of the Eternal Sun: Easy on the Eyes

A native Linux port of Warriors of the Eternal Sun (Sega Genesis, 1992) with 240 Hz smooth motion

An unofficial, fan-made static recompilation of Dungeons & Dragons: Warriors of the Eternal Sun (Westwood / Sega) for Linux, built on segagenesisrecomp. The game's 68000 code is translated to native C and runs without an emulator; the picture is drawn with the engine's own VDP renderer, then made smooth and calm for sensitive eyes.

You need your own Warriors of the Eternal Sun ROM (which one). Nothing from the game is in this repository or in the download.

What's different from the original

All of these change only the picture or remove technical hiccups; the game plays by its original rules.

240 Hz smooth motionIn-between pictures at your display's rate (up to 240 a second). The world map scrolls in quarter-pixel steps or finer instead of jumping whole pixels; battle hops and spells glide. Drawn on the graphics card, checked against the real picture.
Calm mountain shadingThe 1-pixel checkered shadows that shimmered while scrolling are shown as the even shade a TV made of them.
Steady battle cameraThe battle camera's stop-and-go following and its sudden swings become one smooth, steady glide.
Even party walkingYour party members' lumpy steps on diagonals are evened out.
No lag hitchesThe original world map skipped a frame now and then when the Genesis CPU ran out of time. Here the game gets enough CPU time; random battles still come at the usual rate.
DashHold B while walking on the world map or in town to move twice as fast (not in dungeons).
Fast travelOn the world map, stand still and hold A + C for one second to go to the town (you arrive just inside its north gate).

Play on Linux

  1. Download WarriorsOfTheEternalSun-EasyOnTheEyes-x86_64.AppImage from the Releases page.
  2. Make it executable: right-click it → Properties → Permissions → Allow executing file as program, or in a terminal: chmod +x WarriorsOfTheEternalSun-EasyOnTheEyes-x86_64.AppImage
  3. Double-click it and choose your ROM in the launcher. (You can also put the ROM into ~/.local/share/WarriorsOfTheEternalSunRecomp/.)

You need SDL2 installed (almost every desktop distribution has it; Arch/CachyOS: sdl2-compat, Ubuntu/Debian: libsdl2-2.0-0). The AppImage is built on a current distribution (CachyOS), so it runs on similarly recent systems; on an older one, build it yourself.

Your settings and saves are kept in ~/.local/share/WarriorsOfTheEternalSunRecomp/. High refresh rate is on from the first start; Escape opens the menu (Mods → High refresh rate to change it). Play fullscreen for the finest steps.

Switching features off

Every feature can be turned off for comparison by starting the game with an environment variable, for example WOTES_CAM_EASE=0 ./WarriorsOfTheEternalSun-EasyOnTheEyes-x86_64.AppImage:

VariableOffWhat it controls
WOTES_VIDEO_GPU0Graphics-card drawing of the in-between pictures (falls back to the CPU)
WOTES_DITHER_BLEND0Calm mountain shading
WOTES_CAM_EASE0Steady battle camera (or a stiffness, default 0.80)
WOTES_PARTY_SMOOTH0Even party walking on the map
WOTES_CPU_HEADROOM1Extra CPU time (1 = the original timing, with its hitches)
WOTES_DASH0Dash on B
WOTES_FAST_TRAVEL0Fast travel on A + C

Supported ROM

Dungeons & Dragons: Warriors of the Eternal Sun (USA, Europe), 1 MB, CRC32 AF4A9CD7 (serial GM MK-1304 -00). The game checks it at start.

Build it yourself

Needs: git, cmake, ninja, gcc/g++, Python 3, SDL2 development files (Arch/CachyOS: sudo pacman -S --needed cmake ninja sdl2-compat; Ubuntu/Debian: sudo apt install cmake ninja-build g++ libsdl2-dev python3).

git clone --recurse-submodules https://github.com/gabbycat4/WarriorsOfTheEternalSunRecomp.git
cd WarriorsOfTheEternalSunRecomp
cp /path/to/your/rom.bin game/wotes.bin
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DGEN_ENABLE_TRACE=OFF -DSONIC_REVERSE_DEBUG=OFF
cmake --build build --target WotESRecomp
./build/WotESRecomp game/wotes.bin

The first build generates the game's code from your ROM and takes a while. To make the AppImage: bash tools/release/make_appimage.sh (refuses to package if the ROM, saves or logs would end up inside).

How it was made

Recompiled with segagenesisrecomp, then measured frame by frame before anything was smoothed. The full history of every finding (what was measured, what was tried, what worked) is in notes.txt; HANDOFF.txt summarizes the current state. The game's own code changes are in game/ (wotes_video.c: the smooth pictures; wotes_spec.c: CPU headroom, encounter check, dash, fast travel); engine fixes are in the segagenesisrecomp fork (branch wotes).

Credits and license

  • segagenesisrecomp, m68k-recomp-core and recomp-ui by Matthew Stanley (mstan) and contributors: the recompiler, the runtime and the launcher this port is built on.
  • Warriors of the Eternal Sun © 1992 Sega / Westwood Associates; Dungeons & Dragons is a trademark of Wizards of the Coast. This project is not affiliated with or endorsed by any of them, and contains none of the game's data.

This project is licensed under the PolyForm Noncommercial License 1.0.0, the same as segagenesisrecomp: free to use, share and change, not for commercial use. Third-party components and their licenses are listed in segagenesisrecomp/THIRD-PARTY-LICENSES.md and inside the AppImage.