prosthetik_
User
Joined: 01 Jul 2003
Location: Canada
|
Posted: Tue Jul 01 2003 21:36 Madtracker 2.2+ and Linux, using Wine and ALSA |
 |
Neat. I didn't expect it to work, but it did.
But this makes no sense - Although I can setup MT2, load samples, track music, go wild with effects, and pipe the resulting output to all kinds of funky linux sound apps for further real-time effects processing, I can't load .mt2 files! huh?! .xm works fine... loading a .mod in fastracker mode works fine too... hmmmmmmmmm
So... for the benefit of linux geeks everywhere... are there any special windows libraries that Madtracker uses for dealing with it's MT2 format?
just curious... |
-- la la la -- |
|
Back to top |
|
 |
|
prosthetik_
User
Joined: 01 Jul 2003
Location: Canada
|
Posted: Tue Jul 01 2003 23:46
|
 |
whoops, i think I figured that out, it was the lack of an end of file in the mt2 format that is incompatible with wine...
sorry to bother ya |
-- la la la -- |
|
Back to top |
|
 |
Inge
Man-At-Arms

Joined: 04 May 2003
Location: Nieuw Lekkerland @ Holland
|
Posted: Tue Jul 01 2003 23:50
|
 |
prosthetik_ wrote: |
whoops, i think I figured that out, it was the lack of an end of file in the mt2 format that is incompatible with wine...
sorry to bother ya
|
Rather interesting actually: I know nothing of linux, but is there any chance that this problem can be overcome? In other words (you seem to know something about linux): can mt be transported to linux in its native format?
Inge |
Care for a game of Monopoly? |
|
Back to top |
|
 |
Big Mo
Registered User

Joined: 05 May 2003
Location: Hoogeveen, The Netherlands
|
Posted: Wed Jul 02 2003 21:47
|
 |
Well, Inge, it may be possible to convert the C++-code Yannick wrote to a Linux-executable. I don't suppose that will work directly, because MadTracker is using Windows functions, but it might work after some editing. You can never copy an .exe-file to a linux-system, because it is converted else.
With wine (the linux Windows-emulator) you can run most Windows programs under linux, but it's strange it's not compatible with Windows files.
And by the way, I never use linux, this is just what I know. |
|
|
Back to top |
|
 |
prosthetik_
User
Joined: 01 Jul 2003
Location: Canada
|
Posted: Fri Jul 04 2003 06:09
|
 |
Big Mo wrote: |
With wine (the linux Windows-emulator) you can run most Windows programs under linux, but it's strange it's not compatible with Windows files.
|
Oddly enough, the only problem I can find is within the process of loading .mt2 files specifically. When the tracker is put into .xm mode, it can load .xm and .mod files without a problem. Furthermore, I can load .mti, .mts and .mtp in mt2 mode... the tracker works fine if I start it up and create an mt2 file with all the features blasting away. I can save my composition too. But, either *converting* an .xm to mt2 format or attempting to load an mt2 results in a memory access violation (in french!) failure under Wine.
I believe the root of the problem is the way that Unix has to allow for special device nodes that can be accessed from the filesystem. Windows doesn't have this feature. As a result, an mt2 file is regarded by Unix as going on forever, much like listening to the incoming stream on a serial port. Unix cannot "load" a file of this type - it would fill all available memory.
This is just my best guess. All of the above file formats except for .mt2 must have a clearly defined offset for the EOF. However, because Wine is constantly under development, all of this babbling should be regarded as conjecture, and furthermore, nobody ever claimed that mt2 was compatible with Unix in the first place  |
-- la la la -- |
|
Back to top |
|
 |
Inge
Man-At-Arms

Joined: 04 May 2003
Location: Nieuw Lekkerland @ Holland
|
Posted: Fri Jul 04 2003 21:47
|
 |
prosthetik_ wrote: |
However, because Wine is constantly under development, all of this babbling should be regarded as conjecture, and furthermore, nobody ever claimed that mt2 was compatible with Unix in the first place
|
But it would be nice though
Inge
ps: interesting stuff to read! I'm a total n00b concerning linux, so these things catch my eye quite easy. |
Care for a game of Monopoly? |
|
Back to top |
|
 |
Daxx909
Registered User

Joined: 04 May 2003
Location: Kelpen, NL
|
Posted: Sat Jul 05 2003 10:48
|
 |
Big Mo wrote: |
Well, Inge, it may be possible to convert the C++-code Yannick wrote to a Linux-executable.
|
MT2 was developed with Delphi, not C++... so porting is a bit more difficult then...  |
After all is said and done, more is said than done. |
|
Back to top |
|
 |
prosthetik_
User
Joined: 01 Jul 2003
Location: Canada
|
Posted: Sat Jul 05 2003 22:11
|
 |
Daxx909 wrote: |
MT2 was developed with Delphi, not C++... so porting is a bit more difficult then...
|
More to the point, Yannick seems to want to make $$$ off his tracker... There's something called Kaylx for Borland's Delphi I think that would make migration to linux easier... but even still... Somebody down at the FT3 development team might accidently borrow all of Yannick's code and repackage it around some advanced version of nibbles...
If it's any consolation at all, FT3 doesn't even begin to work under Wine, and crashes like hell under Windows ...
If I can get mt2.+ running under Wine though... I'll register it Cause I like it, and I don't like Windows anymore. |
-- la la la -- |
|
Back to top |
|
 |
Big Mo
Registered User

Joined: 05 May 2003
Location: Hoogeveen, The Netherlands
|
Posted: Sun Jul 06 2003 21:57
|
 |
Daxx909 wrote: |
MT2 was developed with Delphi, not C++... so porting is a bit more difficult then...
|
Really? I thought all the time it was written with C++! Sadly, there's absolutely nothing I know about Delphi.
prosthetik_ wrote: |
If I can get mt2.+ running under Wine though... I'll register it Cause I like it, and I don't like Windows anymore.
|
Register Wine? I thought everything in linux was free! |
|
|
Back to top |
|
 |
Inge
Man-At-Arms

Joined: 04 May 2003
Location: Nieuw Lekkerland @ Holland
|
Posted: Sun Jul 06 2003 23:05
|
 |
Big Mo wrote: |
Daxx909 wrote: |
MT2 was developed with Delphi, not C++... so porting is a bit more difficult then...
|
Really? I thought all the time it was written with C++! Sadly, there's absolutely nothing I know about Delphi.
prosthetik_ wrote: |
If I can get mt2.+ running under Wine though... I'll register it Cause I like it, and I don't like Windows anymore.
|
Register Wine? I thought everything in linux was free!
|
Well, distributions of Linux can be bought too Eitherway, Prosthetik referred to registering MT
Inge |
Care for a game of Monopoly? |
|
Back to top |
|
 |
prosthetik_
User
Joined: 01 Jul 2003
Location: Canada
|
Posted: Mon Jul 07 2003 07:22
|
 |
Inge wrote: |
Eitherway, Prosthetik referred to registering MT
Inge
|
I'm glad Inge is paying attention! Yay! WineX is the non-free Wine I think.
In any case I'll certainly report any progress I make on this forum. I'm also going to try MT2.2+ using Wine under Gentoo Linux (cause those guys seem to have some kind of insanity causing them to optimize everything) to see if that makes any difference... Gentoo looks cool and scarey... more soon... |
-- la la la -- |
|
Back to top |
|
 |
prosthetik_
User
Joined: 01 Jul 2003
Location: Canada
|
Posted: Fri Jul 11 2003 06:29
|
 |
Same problem under gentoo. sniffle sniffle gonna keep trying I miss my mt2 sniffle
 |
-- la la la -- |
|
Back to top |
|
 |
Yannick
MadTracker Author

Joined: 16 Apr 2003
Location: Belgium
|
Posted: Mon Jul 14 2003 09:13
|
 |
Interesting...
I once saw MT2 listed in a Wine compatible application list. But I never really tried it.
I don't think it is a problem with EOF. Every file have an end, Linux or not. Even if you don't store it explicitely into the file itself, it will happen when you have read all the data of the file.
In the case of a MT2 file, the EOF is indirectly stored. The file contains the number of items (samples, patterns, etc.) and their length. So when you have read all the items you can be sure you are at the end.
I'll install Gentoo on my PC with Wine, etc. to test it out. Making MT2 fully compatible with it would be a big advantage.
Yannick |
|
|
Back to top |
|
 |
prosthetik_
User
Joined: 01 Jul 2003
Location: Canada
|
Posted: Tue Jul 15 2003 20:12
|
 |
Yannick wrote: |
In the case of a MT2 file, the EOF is indirectly stored. The file contains the number of items (samples, patterns, etc.) and their length. So when you have read all the items you can be sure you are at the end.
I'll install Gentoo on my PC with Wine, etc. to test it out. Making MT2 fully compatible with it would be a big advantage.
Yannick
|
Yay! Ok, well, I'll register it anyway.
Hmmm. so you're saying that the file offsets add up properly? I agree that the EOF should just be the -1 that comes back when there's nothing else to read.
Once again, the only problem I've had with MT2 under wine or winex is the actual loading of the .mt2 file format by madtracker. Everything else, including the loading of individual patterns, instruments and samples - works. I'm pretty sure wine (and winex - which as it turns out, just handles directx better and has nothing at all to do with a commercial product) is properly installed because I can play unreal tournament on it. Admittedly the frame rate sucks but it think that's a pretty good test of the emulator.
the exact error I get is "read error on this file" (with .mt2s only) followed by a "access violaton" in french. It gives me the same access violation if I go into xm mode and convert an old xm into mt2 format.
Hope this helps. |
-- la la la -- |
|
Back to top |
|
 |
Yannick
MadTracker Author

Joined: 16 Apr 2003
Location: Belgium
|
Posted: Tue Jul 15 2003 20:42
|
 |
Ok, will check it out as soon as my Gentoo is installed.
But there is a Linux version of Unreal Tournament you know?
Yannick |
|
|
Back to top |
|
 |
|
|