ModPlug Central

OpenMPT => Help and Questions => Topic started by: MagnumAlpasan on August 21, 2022, 09:36:32

Title: libopenmpt install on Unity project
Post by: MagnumAlpasan on August 21, 2022, 09:36:32
Hello everyone, I'm new to the forums. Can you tell me how to install libopenmpt on my unity project as they did on modarchive.org's online player? I intended to include the .it module file in my game project like the games that use the Tracker Module, such as Hoggy 2. I'm new to the software and tried to find any install-like plugins on YouTube or Google. Thanks
Title: Re: libopenmpt install on Unity project
Post by: Saga Musix on August 21, 2022, 10:53:54
There is nothing in common between Unity and the modarchive.org online player. ModArchive uses a customized version of chiptune2.js (https://github.com/deskjet/chiptune2.js), which is a JavaScript library for embedding libopenmpt on websites. From my understanding, you would need a C# wrapper for libopenmpt to use in Unity. A similar question was asked recently how to integrate libxmp into a Unity project, and while there are no specific instructions on how to do so, there are a few pointers in that thread that might be helpful: https://github.com/libxmp/libxmp/issues/587
From what I know, Unity may already support playing modules using the FMOD library, which is not as accurate as libopenmpt, but it might be a good start that is less work than integrating a complete third-party library for module playback.