File: README.md

package info (click to toggle)
warzone2100 4.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 660,320 kB
  • sloc: cpp: 676,209; ansic: 391,201; javascript: 78,238; python: 16,632; php: 4,294; sh: 4,094; makefile: 2,629; lisp: 1,492; cs: 489; xml: 404; perl: 224; ruby: 156; java: 89
file content (85 lines) | stat: -rw-r--r-- 4,452 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Warzone 2100 - Web Edition

The Warzone 2100 Web Edition uses [Emscripten](https://emscripten.org) to compile Warzone 2100 to run in modern web browsers via [WebGL2](https://get.webgl.org/webgl2/) and [WebAssembly](https://webassembly.org).

<!--ts-->
   * [Browser Compatibility](#browser-compatibility)
   * [Features & Differences](#features--differences)
   * [Persisting Data](#persisting-data)
   * [Campaign Videos](#campaign-videos)
   * [↗ Building](README-build.md)
<!--te-->

## Browser Compatibility:

To run Warzone 2100 in your web browser, we recommend:
- Recent versions of Chrome, Edge, Firefox, or Safari
  - With JavaScript and modern WebAssembly support enabled
- WebGL 2.0 support
- 4-8+ GiB of RAM
- Minimum 1024 x 768 resolution display / browser window
- Keyboard & mouse are also strongly recommended

The page will automatically perform a basic series of checks for compatibility and inform you if any issues were detected.

## Features & Differences:

This port is able to support most core Warzone 2100 features, including: campaign, challenges, and skirmish.

> [!TIP]
> Some functionality may be limited or not available, due to size constraints or restrictions of the browser environment.

| Feature                        | Web   |  Native  |
| :----------------------------- | :---: |  :---:   |
| Campaign                       | ✅    | ✅      |
| Campaign Videos                | ✅<sup>1</sup>  | ✅     |
| Challenges                     | ✅    | ✅      |
| Skirmish                       | ✅    | ✅      |
| Savegames                      | ✅    | ✅      |
| HQ graphics                    | ❌    | ✅      |
| HQ music                       | ❌    | ✅      |
| Additional music               | ❌    | ✅      |
| Multiplayer (online)           | ❌    | ✅       |
| Mods                           | ❌<sup>2</sup>  | ✅      |
| Multi-language support         | ✅<sup>3</sup>  | ✅      |
| Performance                    | 🆗    | ✅🚀    |

> [!NOTE]
> <sup><sup>1</sup> The Web port supports low-quality video sequences, which it streams on-demand. _An active Internet connection is required._</sup>  
> <sup><sup>2</sup> The Web port does not currently provide an interface for uploading mods into the configuration directory, but support _could_ be added in the future.</sup>  
> <sup><sup>3</sup> The Web port currently supports _most_ of the same languages, but certain languages that require additional large fonts (ex. Chinese, Korean, Japanese) are unsupported.</sup>

The Web Edition also ships with textures that have been optimized for size, at the expense of quality.

> If you want the highest quality textures, and the complete set of features, you should consider downloading the latest [native build for your system](https://github.com/Warzone2100/warzone2100/releases/latest).

## Persisting Data:

The Web Edition can persist Warzone 2100 settings, configuration, savegames and more in your browser storage using technologies such as IndexedDB.

When you explicitly save your game, Warzone 2100 will ask the browser to opt-in to [persistent storage](https://web.dev/articles/persistent-storage).

Depending on your browser, you may receive a prompt (ex. on Firefox), or this may automatically succeed (or be denied by the browser) without any prompt or notice.

> [!TIP]
> By default, browsers store data in a "best-effort" manner.
> This means it may be cleared by the browser:
> - When storage is low
> - If a site hasn't been visited in a while
> - Or for other reasons
>  
> **Persistent storage can help prevent the browser from automatically evicting your saved games and data.**  
> See: [Storage for the Web: Eviction](https://web.dev/articles/storage-for-the-web#eviction)

> [!IMPORTANT]
> If you manually clear your browser's cache / history for all sites, this will still clear your savegames.

## Campaign Videos:

The Web Edition can automatically stream campaign video sequences on-demand (albeit at low-quality).

> [!IMPORTANT]
> If you've never played Warzone 2100 before, the campaign videos provide critical context for the plot of the campaign.  
> **It is strongly recommended you play with an active Internet connection** so these videos can be streamed during gameplay.

If you have a spotty Internet connection, you should strongly consider the native builds instead, which include the campaign videos for offline viewing.