Spring-Chobby / Chobby

Spring RTS Ingame lobby project
24 stars 62 forks source link

Extract minimap image from map archive #322

Open Licho1 opened 8 years ago

Licho1 commented 8 years ago

http://i.imgur.com/yYONayU.jpg

gajop commented 8 years ago

I don't think minimaps from the archive are used yet. This really depends on #67 and isn't related to downloading the map

GoogleFrog commented 8 years ago

The minimap is not found. It is not related to whether the map has been downloaded or not. This just depends on #67.

Licho1 commented 8 years ago

If you want to use unitsync/VFS, it can definitely do it without knowing the exact path to archive. No changes should be needed. Alternatively, minimap could be downloaded from ZK website (by knowing map internal name you can just get it from url using plain download)

GoogleFrog commented 8 years ago

You have a point about downloading the image directly. Could the site process and provide links to both a 64x64 and 1024x1024 version of each map? The thumbnails are small both for chili texture loading times and download requirement.

Every featured map as-of 2 months ago has is minimap included in chobby. Users would only need to download a few extra.

Licho1 commented 8 years ago

Yes it could adding a ticket to other place.

Licho1 commented 7 years ago

Steam depot generator now deploys all supported map images.

gajop commented 7 years ago

This might be enough for ZK, but I want Chobby to be able to work without Steam as well, so reopening.

Licho1 commented 7 years ago

For non steam you could just download the images from zero-k.info/Resources it contains minimaps and thumbnails for all maps.

Anarchid commented 7 years ago

Using the replay downloader thing to fetch image files from SF/ZK should work unless there are any http responses more advanced than 200.

This would be good for zk-chobby too because people may want to play on non-featured maps etc.

Beherith commented 3 years ago

If the .smf can easily be located inside a map archive without using unitsync, then the built-in minimap dds dxt1 compressed image can be loaded via a few pointer indirections inside binary .smf file.