ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

MAPCLEAN

From ModEnc
Jump to navigation Jump to search

MAPCLEAN is a script originally designed to remove clutter from Red Alert 2 and Yuri's Revenge maps added by FinalAlert2, but has been expanded to allow automatic addition, removal or replacement of headings or tags. One example would be to automatically add custom game modes to every map, or change every capturable tech structure to civilian ownership. It is run via a batchfile on Windows, but in this case you drag-and-drop the map onto the mapclean.bat batchfile one at a time, instead of running it directly. To bulk modify existing maps in identical fashion, there are included batchfiles with -mpr or -yrm in the name, which will sequentially load all maps of that type and 'clean' them.

Before using MAPCLEAN, the package will have to be extracted to the game directory, with the correct read/write permissions, but it doesn't need to read any game/mod files aside from the map. A copy of the TCL runtimes (version 8.3+) have to be installed, available through Activestate, link below.

To configure MAPCLEAN to run correctly, the mapclean.cfg will have to be edited to configure the changes it intends to make to the maps passed to it. Because of the nature of maps, what it safe to do for multiplayer/skirmish maps, can be highly unsafe for singleplayer/mission maps, so by default altering mission maps is disabled. To enable editing of mission maps, the mapclean.tcl will have to be edited to set allowmissions to 1. Also you may find it is useful to have a copy of mapclean setup for modifying one type of map, and another copy setup to modify others, to this end, both the mapclean.cfg and the resulting maps.log filenames can be changed within mapclean.tcl, therefore uniquely re-named versions of the script and related files can coexist.

Since MAPCLEAN is potentially destructive to map code, a backup of the processed maps will be saved with the extension .old, for easy comparison or restoration in case of mistakes.

Links