entdark / jaMME

Jedi Academy Movie Maker's Edition
GNU General Public License v2.0
16 stars 15 forks source link

Added new demo tokens: server name and strftime timestamps #12

Closed Avygeil closed 8 years ago

Avygeil commented 8 years ago

strftime timestamps make it very easy to organize demos on a folder hierarchy (like year/month/day etc). Some tokens were commented because they contain illegal characters in OS file paths, and some old tokens were renamed since they were using reserved strftime tokens.

This is a modified merge, I didn't try to compile it but it should work fine as it did on cgame.

entdark commented 8 years ago

Could you try to test it at first? Once you done I will merge.

entdark commented 8 years ago

It also break the default format which is %t_%m. I think time parsing should be in some other format like %tm etc.

Avygeil commented 8 years ago

Works fine, tried some nice folder hierarchy with seta cl_autoDemoFormat "%Y/%b/%d/%s/%t_%n_%N"

entdark commented 8 years ago

When I said to change formatting, I told to change the format of that fancy time, not default value of cvar. %m is best for map (and definitely it is not %N). Change time formatting to something different, it's less needed than map so if it has higher priority for already existing keys than it sucks. I offered something like 2 keys after % like %tm. This time formatting will be used by minor users at all, so it has to have lower priority to current keys.