Author Topic: Creation date  (Read 3275 times)

Offline Harbinger

  • Extreme artist
  • *****
  • Posts: 1,137
  • Gender: Male
  • Operating System: Windows XP
Creation date
« on: September 13, 2010, 15:35:47 »
As i'm cleaning up old leftover modules, it would help me to know their creation dates quickly. This info could probably be retrieved from the modules file info, but it would be great to see it from within MPT, maybe in the Song Properties in the Version Info group, or perhaps in the General tab near the file info...

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,250
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 7 x64
[ASSIGNED] Creation date
« Reply #1 on: September 26, 2010, 13:01:08 »
Impulse Tracker actually implemented something like this in the IT format, however the format of this data isn't documented at all and nobody but Jeff Lim probably knows how it works. Deciphering this data block might be the first step to adding this feature.

EDIT: In fact, the format of this IT save history is now 99% reverse-engineered, so it won't be any problem to implement this feature now for IT and MPTM files!
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Harbinger

  • Extreme artist
  • *****
  • Posts: 1,137
  • Gender: Male
  • Operating System: Windows XP
[ASSIGNED] Creation date
« Reply #2 on: September 28, 2010, 16:15:15 »
Well that's cool. I was wondering, if this gets implemented, is this the original creation date according to the tracker or according to the OS?

The reason i ask is, i noticed that when i copied the files from my old computer to the new one, the file's creation date was changed to the date when it was planted into the new computer, rather than when it was first created by an application (this is the opposite behavior of Mac documents BTW). But we often need to know when we actually came up with the idea...

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,250
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 7 x64
[ASSIGNED] Creation date
« Reply #3 on: September 28, 2010, 16:56:54 »
It saves a list of dates, so yes, they are preserved when copying/etc. Even if you set your system clock to the year 2025, they will be preserved. :D
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,250
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 7 x64
Re: [ASSIGNED] Creation date
« Reply #4 on: November 07, 2010, 17:22:39 »
Can you please check if this was implemented as expected in the latest stuff builds? http://sagagames.de/stuff/mptrack.exe
Note that there will be no history for already existing files (unless they were made in Impulse Tracker). The edit history can be viewed by using View -> Edit History.
« Last Edit: November 07, 2010, 18:02:23 by Jojo »
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Harbinger

  • Extreme artist
  • *****
  • Posts: 1,137
  • Gender: Male
  • Operating System: Windows XP
Re: [ASSIGNED] Creation date
« Reply #5 on: November 08, 2010, 20:29:19 »
Note that there will be no history for already existing files (unless they were made in Impulse Tracker). The edit history can be viewed by using View -> Edit History.

Well, shucks, that's what i needed -- to view the creation dates of existing files.

Hmm, will new files save their creation date in the MPTM file?

(I'll check out this build when i get home. Thanks for the link.)

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,250
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 7 x64
Re: [ASSIGNED] Creation date
« Reply #6 on: November 08, 2010, 20:31:35 »
You will get a date added to the history every time the file is loaded and saved, so also when creating new files. I cannot and don't want to go beyond that, because adding the file creation date as the hard drive reports it would break the semantics of the edit history as the IT format provides it.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Harbinger

  • Extreme artist
  • *****
  • Posts: 1,137
  • Gender: Male
  • Operating System: Windows XP
Re: [ASSIGNED] Creation date
« Reply #7 on: November 08, 2010, 20:36:44 »
Fair enough.

Thanks for the quick turnaround too ;) I'll check it out tonight.

UPDATE: The creation and modification data is indeed saved with all tracks built from 1.19.0.12 and higher. Looks very good and will be useful for the future, altho i can't get the same info in MPT from older modules.
« Last Edit: November 22, 2010, 20:30:47 by Harbinger »