Commit Graph

28 Commits

Author SHA1 Message Date
RoosterDragon
ab9b393238 Compress all pngs, including within oramap files.
Reduces size used for png files from 13,366,660 bytes to 13,055,285 bytes in total. Changes size used for oramap files from 2,601,027 bytes to 2,605,779 bytes in total (contained PNGs are smaller, but the oramap zip wrapper didn't compress as well). This slight filesize improvement doesn't noticeably impact loading times.

zopfilpng is used for compression with the following command line:
'zopflipng.exe -y -m image.png image.png'

This follows on from 78bef8a98f and bc5e7d1497. Except now that the PNG decoder supports bit depths of 1, 2 or 4 we don't have to preserve the original bit depth of the image, allowing for more compression.

The oramap files were updated by:
- Running utility command "<mod> --unpack-map unpack" for each mod.
- Compressing the png files using the command above.
- Running utility command "<mod> --unpack-map repack" for each mod, except in Map.Save the line `if (!LockPreview) { var previewData = ...` is replaced with `if (false) { var previewData = ...` to save the existing optimized image on disk rather than generating a fresh preview.
2023-11-25 16:45:05 +01:00
RoosterDragon
78bef8a98f Compress all pngs.
Reduces size used for png files from 19,034,446 bytes to 13,305,798 bytes in total. The smaller files also improve loading times as the zlib decoder has less bytes to schlep through.

The PNG decoder shipped with OpenRA only supports a bit depth of 8 for images with a palette, so must must ensure that other depths (1,2 or 4) are not used.

zopfilpng is used for compression with the following command line:
'zopflipng.exe --keepcolortype -y -m image.png image.png'

The keepcolortype flag ensures the bit depth is not changed.
2023-06-26 19:28:06 +02:00
penev92
0b61954e39 Reimported some TS maps
Could not find the source for most of the maps, so reimported only those that were part of the original game's "official map pool" + 3 custom ones.
2023-04-14 20:50:08 +03:00
Gustas
09cb38bc6e Update TS maps to format 12 2022-08-30 20:03:40 +02:00
Paul Chote
06ea7bf923 Regenerate TS map previews. 2021-08-21 14:16:02 +02:00
Paul Chote
fcc3008b00 Implement proper TS Tiberium and Vein logic. 2021-03-20 16:45:41 +01:00
Paul Chote
70cb0d2924 Improve TS map importer and reimport classic maps. 2020-07-13 14:02:02 +02:00
Paul Chote
5f588561b6 Rewrite TS minimap rendering:
* Rename LeftColor and RightColor to MinColor and MaxColor
  These are mapped from LowRadarColor and HighRadarColor in
  the original inis, and appear to be used to set the bounding
  values for selecting a random colour, NOT for left/right
  pixels (which caused noticeably wrong banding).

* Adjust brightness based on terrain height.
  MinHeightColorBrightness and MaxHeightColorBrightness
  were chosen by trial/error to match the original
  map preview rendering.
2020-07-07 22:12:22 +02:00
Paul Chote
e3f868f0a8 Update TS map previews and formatting. 2019-05-02 13:40:22 +02:00
Paul Chote
43ff56eea9 Fix tunnel top definitions. 2017-04-29 15:50:16 +01:00
reaperrr
df85ea222a TS yaml style fixes
To reduce upgrade rule 'noise' a little.
2017-03-31 11:23:44 +02:00
Paul Chote
c00af2a85b Hook up tunnels and elevated bridges in "A River Runs Near It". 2017-01-29 18:58:35 +00:00
Paul Chote
0d769383e2 Add playable category back to A River Runs Near. 2016-12-10 11:52:04 +00:00
Matthias Mailänder
3759ab6fa6 Reimport map "A River Runs Near It" 2016-08-29 13:29:02 +01:00
Paul Chote
3d499f34c6 Add additional categories to TS maps. 2016-03-27 12:17:01 +01:00
Paul Chote
eb1d033ab4 Update TS maps to format 11. 2016-03-27 12:17:01 +01:00
Paul Chote
dd677ae916 Move TS lighting overrides to map.yaml. 2016-03-11 16:46:22 +00:00
Paul Chote
d60e1ddfb9 Upgrade TS maps to format 10. 2016-03-08 22:19:27 +00:00
Paul Chote
3635888dd9 Upgrade TS maps to format 9. 2016-03-07 21:41:15 +00:00
atlimit8
949994f10b Convert MiniYaml colors to hex 2015-10-27 16:10:33 -05:00
reaperrr
1a08e6de77 Add Music trait to maps (applied upgrade rule) 2015-10-21 08:20:48 +02:00
Matthias Mailänder
b4d22c2eb0 setup tunnel top rendering 2015-09-12 08:24:02 +02:00
penev92
6fc9abe599 Upgrade TS maps 2015-07-06 00:17:08 +03:00
Paul Chote
0005c04813 Reimport "A River Runs Near It".
Adds proper tiberium, vines, and rocks.
2015-06-21 11:04:07 +01:00
Paul Chote
a6d38c9260 Fix temperate tileset naming. 2015-06-21 09:31:22 +01:00
Paul Chote
27c4512ec7 Import lighting parameters for TS maps. 2015-04-06 08:50:08 +02:00
Paul Chote
bd2518649a Upgrade shipped maps to the latest format. 2014-12-23 10:00:19 +13:00
Paul Chote
cfddd47864 Add a new test map. 2014-11-07 19:18:34 +13:00