Synomi / ns2stats_web_source

NS2Stats - Statistics for Natural Selection 2 PC Game, website source code
8 stars 1 forks source link

Add support for multiple minimap revisions #2

Open jorisvddonk opened 11 years ago

jorisvddonk commented 11 years ago

Currently, ns2stats.org hosts a single revision for each minimap in the game (e.g. http://ns2stats.org/images/minimaps/ns2_veil.png)

Unfortunately, this causes issues when Unknown Worlds makes significant updates to the layout of a map. Currently, this is only an issue when, for example, someone views the deaths/hits map for a round that was played on an older build of the game. However, in the future it may cause more significant issues, for example when someone wants to view a heatmap of deaths for ns2_tram at build 243 and build 244 (once heatmaps are added to ns2stats, of course).

A possible solution would be to store and host copies of all maps at /images/minimaps/_.png (e.g. /images/minimaps/ns2_veil_244.png).

Synomi commented 11 years ago

Yes its an issue. Yep using different map names for build and saving map origin/scaling values for each build would solve it. I wonder if it would be too big of a deal to make clients automatically upload map images to website randomly to get those minimap images for each build. Thou would need to make tga->png converter prob.