Author Topic: XM file format, undocumented message part?  (Read 576 times)

Ketil

  • Posts: 4
I'm coding a BASS based music player in PowerBASIC and I'm creating my own tag/info/message reader for various file formats for various reasons. The XM file format specifications I have found have no info about messages stored in XM files. When I look at XM files with my hex editor it looks like the message(s) are stored at the end of the files. I know that these messages can be read by XMPlay so that is why I'm asking here how to get the data.

Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: XM file format, undocumented message part?
« Reply #1 on: 3 Aug '16 - 16:46 »
The message text isn't a standard feature of the XM file format. I'm not certain, but I think it was introduced by Modplug Tracker? Anyway, when present, the message text is at the end of the standard XM content and is preceded by "text" and the size of the message text.

0: "text"
4: size of the text
8: the text

saga

  • Posts: 2179
Re: XM file format, undocumented message part?
« Reply #2 on: 3 Aug '16 - 19:26 »
It was indeed introduced by ModPlug Tracker. All ModPlug / OpenMPT extensions are documented here: https://wiki.openmpt.org/Development:_OpenMPT_Format_Extensions

Ketil

  • Posts: 4
Re: XM file format, undocumented message part?
« Reply #3 on: 4 Aug '16 - 18:01 »
Thank you.