CommunityMaps
CommunityMaps copied to clipboard
Estimate created date for maps missing a date
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.
Some of these files have a huge diff, not sure if I understand why - maybe I clobbered the encoding?
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
Totally GOAT - Nice PR!
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.
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.
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-competitiveis 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.