IMF Player and Commander Genius IMF Support

All discussion about the Commander Genius project (a Keen interpreter + more).
Post Reply
gerstrong
Vorticon Elite
Posts: 1158
Joined: Wed Dec 31, 2008 14:44
Location: Frankfurt - Germany
Contact:

IMF Player and Commander Genius IMF Support

Post by gerstrong » Wed Jan 12, 2011 20:22

Hi guys,

there is a new IMF Player which can be used directly without DOS by the modders. Linux32 and 64-Bit as also Windows versions are available.

Commander Genius official IMF Support will be available at end of month. For those who wonder, it uses dbopl, the OPL Emulator used by Dosbox. It think it has the best sound.

If someone wants to test it now, just grab the latest testing version. The IMF Player has an official for now.

Here are our files:

http://sourceforge.net/projects/clonekeenplus/files/
Having fun developing stuff...

User avatar
BlueGasMask
Vorticon Elite
Posts: 379
Joined: Tue Nov 20, 2007 9:56
Location: Wellington, New Zealand

Post by BlueGasMask » Wed Feb 02, 2011 7:27

if i can get a midi-2-imf program, i'd be glad to test my music on it and upload the result to youtube.
Paramultart wrote:We are all lesbians

User avatar
DHeadshot
Vorticon Elite
Posts: 1874
Joined: Fri Aug 14, 2009 10:21
Location: UK
Contact:

Post by DHeadshot » Wed Feb 02, 2011 9:22

Cereal Board!
Deltamatic wrote:Prepositions are things I end sentences with.
(Cereal wiki has sadly died)

User avatar
BlueGasMask
Vorticon Elite
Posts: 379
Joined: Tue Nov 20, 2007 9:56
Location: Wellington, New Zealand

Post by BlueGasMask » Tue Feb 08, 2011 1:02

Right, a review's uploaded to zshare now:

imfplayerreview.mp3 - 14.46MB

Would it be a better idea to store all of the small stuff like midis and imfs to CKFS instead?
Paramultart wrote:We are all lesbians

gerstrong
Vorticon Elite
Posts: 1158
Joined: Wed Dec 31, 2008 14:44
Location: Frankfurt - Germany
Contact:

Post by gerstrong » Tue Feb 08, 2011 19:35

BlueGasMask wrote:Right, a review's uploaded to zshare now:

imfplayerreview.mp3 - 14.46MB

Would it be a better idea to store all of the small stuff like midis and imfs to CKFS instead?
Sorry, but I disagree about your statement in the review at one point. The IMFPlayer can play your files normally, but it's not Keen-Audio-Format what you have created. Your file was made for 700 Hz (Wolfenstein 3D) Music and not 560. You can configure that in IMFPlayer, but Commander Genius won't play it differently, so I guess you will need to find a way to transform it.

Unfortunately the files do not contain that information...

Keen Games always use 560 Hz.

Try this out:

Code: Select all

IMFPlayer <File.imf> 700
and you will see that it's at the same speed as you wanted.

The Song is really great! Thanks! :)
Having fun developing stuff...

User avatar
BlueGasMask
Vorticon Elite
Posts: 379
Joined: Tue Nov 20, 2007 9:56
Location: Wellington, New Zealand

Post by BlueGasMask » Thu Feb 10, 2011 2:59

gerstrong wrote:
BlueGasMask wrote:Right, a review's uploaded to zshare now:

imfplayerreview.mp3 - 14.46MB

Would it be a better idea to store all of the small stuff like midis and imfs to CKFS instead?
Sorry, but I disagree about your statement in the review at one point. The IMFPlayer can play your files normally, but it's not Keen-Audio-Format what you have created. Your file was made for 700 Hz (Wolfenstein 3D) Music and not 560. You can configure that in IMFPlayer, but Commander Genius won't play it differently, so I guess you will need to find a way to transform it.

Unfortunately the files do not contain that information...

Keen Games always use 560 Hz.

Try this out:

Code: Select all

IMFPlayer <File.imf> 700
and you will see that it's at the same speed as you wanted.

The Song is really great! Thanks! :)
unfortunately, the imf creator dheadshot gave me doesn't have a keen option, just wolf3d, duke 3d and some other one i can't remember right now.
Paramultart wrote:We are all lesbians

User avatar
DHeadshot
Vorticon Elite
Posts: 1874
Joined: Fri Aug 14, 2009 10:21
Location: UK
Contact:

Post by DHeadshot » Thu Feb 10, 2011 9:58

There's a manual setting for you to put in the 560 value I think...
Cereal Board!
Deltamatic wrote:Prepositions are things I end sentences with.
(Cereal wiki has sadly died)

User avatar
BlueGasMask
Vorticon Elite
Posts: 379
Joined: Tue Nov 20, 2007 9:56
Location: Wellington, New Zealand

Post by BlueGasMask » Thu Feb 10, 2011 13:51

DHeadshot wrote:There's a manual setting for you to put in the 560 value I think...
awesome stuff! i'll get right on that!
Paramultart wrote:We are all lesbians

User avatar
K1n9_Duk3
Vorticon Elite
Posts: 540
Joined: Mon Aug 25, 2008 9:30
Location: Germany
Contact:

Post by K1n9_Duk3 » Fri Mar 15, 2013 8:59

There was a bug in IMFPlayer v2.0 that would cause the player to crash when playing an IMF file that uses OPL rhythm mode. I don't know if that bug is already fixed in the current Commander Genius source, but it was still present in the IMFPlayer source code that I downloaded 10 days ago.

An updated version of the player can be found here:
http://k1n9duk3.k1.ohost.de/files/imfpl ... 32_v21.zip (Source Code: http://k1n9duk3.k1.ohost.de/files/imfplayer_v21_src.zip)
Hail to the K1n9, baby!
http://k1n9duk3.shikadi.net

User avatar
Levellass
S-Triazine
Posts: 5261
Joined: Tue Sep 23, 2008 6:40

Post by Levellass » Sat Mar 16, 2013 7:39

I applaud any window IMF player, especially one that can render them as the games do.
What you really need, not what you think you ought to want.

gerstrong
Vorticon Elite
Posts: 1158
Joined: Wed Dec 31, 2008 14:44
Location: Frankfurt - Germany
Contact:

Post by gerstrong » Sat Mar 16, 2013 10:54

This was just a test program used in Keen 4 like about two years ago. I'm pretty sure it is old and outdated.

I would update the code, but honestly I haven't seen any interest by others on it, so I left it as it is and continued fixing its bugs within the main source code of Commander Genius where you find the most recent code.

Creating a windowed app for that player is easily done, with Visual Studio or I would use QT Creator or wxWidgets.
Having fun developing stuff...

User avatar
K1n9_Duk3
Vorticon Elite
Posts: 540
Joined: Mon Aug 25, 2008 9:30
Location: Germany
Contact:

Post by K1n9_Duk3 » Tue Mar 19, 2013 10:00

@gerstrong: I noticed that there already was a new version of your IMFPlayer after I wrote the post above. I sent you a PM, but your inbox appears to be full.
I found and fixed the bug that prevented your IMFPlayer from playing IMF files that use the OPL rhythm mode (Monster Bash is probably the only game that uses such files). Unfortunately, I used the IMFPlayer v2.0 source from sourceforge, not the current source from GitHub, so most of the fixes I made are probably useless. The only files that might be useful are dbopl.cpp and maybe dbopl.h.

The problem in dbopl.cpp were the default cases in the switch statements, which call the abort() function. I checked the DOSBox 0.74 source and noticed that there were no default cases at all, so I removed them and the IMFPlayer worked perfectly fine with rhythm-mode IMFs.
From what I've seen on GitHub, the bugs appear to be still present in the current DBOPL implementation of Commander Genius, so you might want to update it.
Hail to the K1n9, baby!
http://k1n9duk3.shikadi.net

gerstrong
Vorticon Elite
Posts: 1158
Joined: Wed Dec 31, 2008 14:44
Location: Frankfurt - Germany
Contact:

Post by gerstrong » Wed Mar 20, 2013 18:54

Thanks I answered your PM. So what would you like to do with it. Maybe I can help you a bit, besides CG development...
Having fun developing stuff...

gerstrong
Vorticon Elite
Posts: 1158
Joined: Wed Dec 31, 2008 14:44
Location: Frankfurt - Germany
Contact:

Post by gerstrong » Sun Mar 24, 2013 9:20

Having fun developing stuff...

Post Reply