Skip to content

Resource Generation

Renée Kooi edited this page Dec 9, 2016 · 1 revision

Resources like images for civilizations and researches, and language strings for most things, are generated automatically from the HD Edition source files. They're generated using the script in tools/makeResources.php. To run it, enter the following in the command line:

composer run-script make-resources /path/to/SteamApps/common/Age2HD/

You need to have a recent version of HD Edition installed (4.6+, probably, but maybe an earlier version works too). You also need Node.js to render the images.

The make-resources script uses the Openage convert library. It extracts data from the empires2_x2_p1.dat file, and renders images using the slp-render command line tool.

Clone this wiki locally