OpenTS 0.1.2 (23 Oct 2026)
==========================

OpenTS for RISC OS (Tiberian Sun). The version above is the port's own;
the same text is in the icon's Info window, and the program's log starts
with it. A version ending in -dev is not a release.

Command & Conquer: Tiberian Sun (1999) and its Firestorm expansion, for
RISC OS. OpenTS is a community-led, open-source reconstruction of the
game's engine: a new program, not the original executable. It is based on
the source code Electronic Arts released under the GNU GPL for other
Command & Conquer games, and on reverse engineering of Tiberian Sun.

OpenTS:          https://github.com/OpenTS-Developers/OpenTS
OpenTS manual:   https://opents-developers.github.io/OpenTS/
RISC OS port:    https://github.com/davidpsharp/OpenTS (branch riscos)

This RISC OS version is a port of OpenTS, ported by David Sharp. It is based
on OpenTS 0.2.0 (the development source of 7 October 2026, commit 70286ee6),
after the project's last release, 0.1.0. It needs
RISC OS 5 on a Raspberry Pi (it doesn't run on a Risc PC). It draws
everything in software, since RISC OS has no 3D drivers, and runs full
screen. Its source code, updates and bug reports for the port are at the
RISC OS port address above.

The main menu footer and the Info window on the icon bar show the version of
this RISC OS port.


Requirements
------------

  * A Raspberry Pi with RISC OS 5, tested on RISC OS 5.30. A Pi 4 is
    best; it also runs on a Pi 2 and a Pi 3, more slowly.
  * These modules, which come with RISC OS 5 or from PackMan, in !System:
      SharedUnixLibrary 1.16 or later
      ARMEABISupport 1.03 or later
      DigitalRenderer, for sound (without it the game is silent)
  * About 250 MB of disc space for the game data, plus about 1.4 GB if
    you want all the movies.


Installing the game data
------------------------

The game data isn't included. You need the freeware Tiberian Sun CD
images that Electronic Arts released in 2010. There are three discs, and
no CD key is needed:

  GDI disc        the game itself, the GDI campaign and its movies
  Nod disc        the Nod campaign and its movies
  Firestorm disc  the Firestorm expansion: its two campaigns, its movies
                  and its extra skirmish and multiplayer maps

The GDI disc is needed. Without the Nod disc the Nod campaign can't be
played (the GDI campaign, Firestorm, skirmish and multiplayer games can
all still be), and without the Firestorm disc only Tiberian Sun itself
can be played. All three are best.

As of October 2026 they can be downloaded from cnc-comm.com:

  GDI disc:        https://cnc-comm.com/tiberian-sun/downloads/the-game/gdi-disc
  Nod disc:        https://cnc-comm.com/tiberian-sun/downloads/the-game/nod-disc
  Firestorm disc:  https://cnc-comm.com/tiberian-sun/downloads/the-game/firestorm-disc

The downloads are zip files (TS_GDI.zip, TS_Nod.zip and TS_Firestorm.zip),
each holding one .iso file of about 700 MB. Unzip them first; that's
easiest on a modern computer, since a zip and its ISO together need about
1.3 GB. If you are short of space, install one disc at a time: unzip it,
install it, then delete the ISO before the next.

To install them:

  1. Put !OpenTS where you want to keep the game, and double-click it.
     Its icon appears on the icon bar.
  2. Drag the ISO file(s) onto that icon: several at once, or one after
     the other. The GDI disc is needed; the Nod and Firestorm discs add
     their campaigns.

When you drop a disc, the game says which one it is, how much space its
game data and its movies (about 470 MB per disc) need, and how much is
free, and asks whether to install the game data only or the movies too.
Without the movies the game simply skips them; drop the disc again later
to add them. If there isn't room for the movies as well, it says how much
more space they need; if there isn't room even for the game data, it says
so and installs nothing.

The game copies the data into the gamedata directory inside !OpenTS, so
the ISO files can be on any disc, and can be deleted afterwards. It reads
them directly: no CD drive or CDFS is needed. Meanwhile a window shows
which file it's copying and how far it has got, and the desktop carries
on as usual; each disc takes a few minutes. When it has finished, the
window says which discs are installed and which you can still add; click
the icon to play. The game reads its data as it starts, so a disc added
once it has started (from the desktop, with Shift+F12) is used after it
starts again: clicking the icon offers to restart it, or to play on.

Deleting the gamedata directory uninstalls the game data: the game then
asks for the CD images again. Your settings (sun/ini), saved games and
screenshots are kept outside it, in !OpenTS itself. Data installed by an
earlier version, straight into !OpenTS, is moved into gamedata the next
time the game starts.

Each file is checked against the freeware discs' checksums as it's
copied. If anything goes wrong, a window lists what happened. A file
that comes out wrong, or a copy that is stopped part-way (a full disc, a
power cut), leaves nothing that looks installed: drag the image onto the
icon again to finish. Files already installed are skipped, so that's
always safe, and a disc added later (the Nod disc after the GDI one, say)
just adds its files.

If installing goes wrong, the file InstallLog in the gamedata directory
records what happened; to see it, Shift-double-click !OpenTS to open
the application. Please include it when you report the problem.

The game recognises each disc by its contents, and says so if it's the
wrong one: a C&C95 (Tiberian Dawn) or Red Alert disc goes on the
!VanillaTD or !VanillaRA icon. It spots a download that didn't finish,
too.

Each time the game starts, it checks that its files are all there at the
right sizes (it takes a moment). Until they are, clicking the icon says
what's missing, and that this file says where to get the discs, instead
of starting the game.
*Set OpenTS$NoDataCheck 1 skips that check, for game data from
elsewhere.

From the command line, Utils.tsprep installs from images too, with
-nomovies to leave out the movies and -force to rewrite files already
there:

  *WimpSlot -min 2000K -max 2000K
  *Run <OpenTS$Dir>.Utils.tsprep -dest <OpenTS$Dir>.gamedata SDFS::RISCOSpi.$.Downloads.CD1_GDI/iso

If you have the game data already, from the CDs or an installed copy, you
can copy the files into !OpenTS yourself instead: TIBSUN.MIX, MAPS01.MIX,
SCORES.MIX and SIDECD01.MIX from the GDI disc, MAPS02.MIX and SIDECD02.MIX
from the Nod disc, and EXPAND01.MIX, LANGUAGE.DLL, MULTI.MIX, WDTVOX.MIX,
E01SCD01.MIX, E01SCD02.MIX, MAPS03.MIX, SCORES01.MIX, SIDECD02.MIX and
WDT.MIX from the Firestorm disc (several are in its INSTALL directory;
its MULTI.MIX and SIDECD02.MIX are newer than the other discs' copies).
The movies are MOVIES01.MIX, MOVIES02.MIX and MOVIES03.MIX, one on each
disc.


Playing
-------

Double-click !OpenTS to put its icon on the icon bar, then click the icon
to start the game and choose Tiberian Sun or Firestorm. The controls are
the original game's. In a game, move the pointer to the edge of the
screen to scroll the map. The mouse wheel scrolls the build columns in the
sidebar: over one column it scrolls just that one, elsewhere both.

The desktop doesn't respond while the game is on the screen. Shift+F12,
or Desktop in the game's Options menu, goes back to it, with the game
paused where it was (sound too); click the icon again to carry on. In a
network game the game carries on for the other players meanwhile. The
icon's menu has Info, Help (this file) and Quit. Insert, Print or
Shift+F9 saves a screenshot, as a PNG file in !OpenTS.Screenshots (the
menus are not in it). Shift+F8 shows or hides
a small green frame rate counter in the bottom right corner of the screen
(the number of frames a second actually shown); it is off each time the
game starts.

The first time it runs, the game picks its screen size for you: the shape
of your screen, as large as this computer can draw smoothly (it takes about
a second to time it). The game is then scaled to fill the screen. Larger
sizes show more of the map. To change the size, use Options, then Display,
on the main menu; to change it during a game, save the game, change the size
on the main menu, then load the game. To have the game pick again, for
instance after moving it to a faster computer, set this before running it:

  *Set OpenTS$Retune 1

Saved games are in !OpenTS.Saved Games. They can be moved between RISC OS
and OpenTS on other computers.


Network play
------------

Choose Multiplayer Game, then Network. One player chooses New to set up a
game; the others on the same local network see it in the list and choose
Join.

  * Every player needs this version of OpenTS for RISC OS, and must have
    started the same game (Tiberian Sun or Firestorm).
  * All the machines must be on the same subnet. Wired Ethernet is
    recommended: some wireless networks drop the broadcast messages that
    the game uses to find other players.
  * The game uses UDP port 1234.
  * Games over the internet aren't supported yet.


Problems
--------

The game writes a log to the Debug directory in !OpenTS, and its messages
go to !OpenTS.stderr. If something goes wrong, please include the newest
log and stderr in a bug report. To also log frame rates, set this before
running the game:

  *Set OPENTS_FPS 1

Known issues in this preview:

  * The end credits' text isn't drawn.
  * Network play has only been tried between two Pis on a local network
    (LAN).
  * A network game against OpenTS on another kind of computer (the Mac
    build has been tried) goes out of sync after a while, so play RISC OS
    against RISC OS.
  * The World Domination Tour needs Westwood's old online service, which
    has closed, so it doesn't start.


Licences
--------

OpenTS is free software under the GNU General Public License version 3 or
later. Part of it is derived from the source code for Command & Conquer
Red Alert, which Electronic Arts released under that licence with
additional terms. See !OpenTS.Licences for the licence texts:

  OpenTS          OpenTS and this port, including Utils.tsprep (GPL-3,
                  with Electronic Arts' additional terms)
  ThirdParty      the libraries built into !RunImage and their licences:
                  SDL 3 (zlib), RmlUi (MIT), FreeType (FreeType Licence),
                  LZO (GPL-2), Dear ImGui (MIT), miniaudio (MIT-0 or
                  public domain), miniz (MIT)
  Arimo           the Arimo font in !OpenTS.ui (SIL Open Font Licence)
  UnixLib         the C library in !RunImage (BSD and LGPL; an unofficial
                  fork of GCCSDK's UnixLib, riscos-unixlib 5.0.3.3)

The GPL means you can have the source code: this RISC OS version's, with
all of its changes to OpenTS, is at the RISC OS port address above (the
riscos branch), and OpenTS's own at the OpenTS address. SharedUnixLibrary
is from the GCCSDK project at https://www.riscos.info/, and the C library in
!RunImage from https://github.com/adyoull/riscos-unixlib.

Command & Conquer and Tiberian Sun are trademarks of Electronic Arts.
OpenTS is not affiliated with or endorsed by Electronic Arts. The game
data remains the property of Electronic Arts.
