ModPlug Central

OpenMPT => Help and Questions => Topic started by: Skaven on October 13, 2011, 13:42:52

Title: Unity and .it file compatibility
Post by: Skaven on October 13, 2011, 13:42:52
Some acquaintances of mine are working on a game project on Unity and want to use my old tracker songs in it.

The problem is, though, that the native Unity tracker music player only seems to work with .s3m files, and the very oldest .it files I have - ones that have been saved with the original DOS Impulse Tracker. Anything newer than that isn't recognized as a tracker song.

I already tried "Compatibility Export", but alas it doesn't fix the problem. :/  Is there anything else I can do to make the songs 'recognizable' for Unity?

I found this answer on the Unity forums (http://answers.unity3d.com/questions/63111/unity-and-trackers.html). Apparently using old ModPlug Tracker (1.17.02.54 or earlier) fixes the problem.

Well... no: I tried both re-saving AND Compatibility Exporting the song file with OpenMPT 1.17.02.48 but it still didn't work. :/
Title: Re: Unity and .it file compatibility
Post by: LPChip on October 13, 2011, 13:59:53
I suppose you could always load Impulse Tracker again to resave the song.

It runs in dosbox using this (http://files.lpchip.com/temp/ImpulseTracker214v5.7z) installation.
Title: Re: Unity and .it file compatibility
Post by: Skaven on October 13, 2011, 14:15:22
Cool, thanks! I'll try to get that to work.
Title: Re: Unity and .it file compatibility
Post by: Saga Musix on October 13, 2011, 14:41:59
Quote from: Unity ForumYou have to use MODPlug Tracker 1.17.02.54!!! The later versions have some kind of file format hack that Unity doesn't like!
*sigh* ... "hacks". That's exactly what the later versions are removing.
Are you making use of filter envelopes? In that case, OpenMPT writes a higher IT version in the header (IT 2.17), because that feature was only available in the latest non-public IT releases. The leaked (?) IT2.15 on ModLand also seemed to have some problems with that, so I have reduced the IT version to 2.16 to make it work with that version. Check if this works better for you.
Apart from that, I've heard people using libmodplug with Unity, so if that is an option, you should probably go for it.
Title: Re: Unity and .it file compatibility
Post by: Saga Musix on October 13, 2011, 15:18:36
Also, the information in that post is not applicable to the IT format, since I'm pretty sure that XM files won't load in Unity because OpenMPT uses a trimmed header (which results in perfectly valid XM files, people should not ignore the header size!), something that is not possible with IT files.