CommunityMaps icon indicating copy to clipboard operation
CommunityMaps copied to clipboard

Estimate created date for maps missing a date

Open willocn opened this issue 9 months ago • 6 comments

This PR adds a creation date to maps which don't have one.

I used the command git log --follow -M level.dat to get the oldest commit for each map. In order to confirm this works at all, I compared this predicted date to existing map <creation> tags. mean difference: ~125 days median difference: 5 days

This will definitely be wrong for some maps, but seems to be pretty close for most. I have given most of these maps a cursory glance, but obviously I don't know the history of some of these maps, so hopefully someone else can look at them as well.

willocn avatar Feb 19 '25 11:02 willocn

Some of these files have a huge diff, not sure if I understand why - maybe I clobbered the encoding?

willocn avatar Feb 19 '25 11:02 willocn

It might be better if we also checked the last played date inside the oldest level.dat file to make sure it lines up as well. It’ll be more effort, but I know some of the commit dates for these maps are wrong

TheRealPear avatar Feb 19 '25 14:02 TheRealPear

Totally GOAT - Nice PR!

arcadeboss avatar Feb 19 '25 21:02 arcadeboss

My copy of the Stratus repo only goes so far back, a more recent map dev from there would have better insight - but I believe most of the Water Drop maps were a part of an April Fools event, Some new ones may have been created when the rest were added, but I want to say the originals were made in 2018/2019.

On top of that, there appears to be a few maps from the Stratus repo that were added into the CommunityMaps repo instead of the PublicMaps repo - such as Hide n Seek & Wrath Tor Rage. There could be others. Those maps would have older creation dats not reflected by the commit into this repo.

CrazyisCreeps avatar Feb 21 '25 04:02 CrazyisCreeps

This will definitely be wrong for some maps

I'm concerned this is going to be far more than anticipated. Backstreets is incorrect (should be sometime in April or May 2022) and anything else that is a competitive map migrated into this repo from public-competitive is going to be wrong as well.

calcastor avatar Feb 21 '25 21:02 calcastor

I'm concerned this is going to be far more than anticipated. Backstreets is incorrect (should be sometime in April or May 2022) and anything else that is a competitive map migrated into this repo from public-competitive is going to be wrong as well.

For maps that were moved from a different repo, I think Pear's approach (reading oldest level.dat) might work better. I didn't realize that that many maps were migrated into community - I thought it was mostly new (post-OCC) maps.

willocn avatar Feb 22 '25 00:02 willocn