Public Commander Keen Forum Forum Index Public Commander Keen Forum
This is neat.

Read the rules before posting!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IMF Player and Commander Genius IMF Support

 
Post new topic   Reply to topic    Public Commander Keen Forum Forum Index -> Commander Genius
View previous topic :: View next topic  
Author Message
gerstrong
Vorticon Elite


Joined: 31 Dec 2008
Posts: 744
Location: Bochum - Germany

PostPosted: Wed Jan 12, 2011 20:22    Post subject: IMF Player and Commander Genius IMF Support Reply with quote

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/
_________________
Play it classic, feel it like modern!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
BlueGasMask
Vortininja


Joined: 20 Nov 2007
Posts: 288
Location: Papakura, New Zeland

PostPosted: Wed Feb 02, 2011 7:27    Post subject: Reply with quote

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.
_________________
Sascrypte wrote:
DON'T LEAVE ASS MARKS ON MY DOOR
Back to top
View user's profile Send private message AIM Address
DHeadshot
Vorticon Elite


Joined: 14 Aug 2009
Posts: 1737
Location: UK

PostPosted: Wed Feb 02, 2011 9:22    Post subject: Reply with quote

Try this
_________________
Cereal Board!
Deltamatic wrote:
Prepositions are things I end sentences with.

Cereal Wiki!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
BlueGasMask
Vortininja


Joined: 20 Nov 2007
Posts: 288
Location: Papakura, New Zeland

PostPosted: Tue Feb 08, 2011 1:02    Post subject: Reply with quote

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?
_________________
Sascrypte wrote:
DON'T LEAVE ASS MARKS ON MY DOOR
Back to top
View user's profile Send private message AIM Address
gerstrong
Vorticon Elite


Joined: 31 Dec 2008
Posts: 744
Location: Bochum - Germany

PostPosted: Tue Feb 08, 2011 19:35    Post subject: Reply with quote

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:
IMFPlayer <File.imf> 700


and you will see that it's at the same speed as you wanted.

The Song is really great! Thanks! Happy
_________________
Play it classic, feel it like modern!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
BlueGasMask
Vortininja


Joined: 20 Nov 2007
Posts: 288
Location: Papakura, New Zeland

PostPosted: Thu Feb 10, 2011 2:59    Post subject: Reply with quote

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:
IMFPlayer <File.imf> 700


and you will see that it's at the same speed as you wanted.

The Song is really great! Thanks! Happy


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.
_________________
Sascrypte wrote:
DON'T LEAVE ASS MARKS ON MY DOOR
Back to top
View user's profile Send private message AIM Address
DHeadshot
Vorticon Elite


Joined: 14 Aug 2009
Posts: 1737
Location: UK

PostPosted: Thu Feb 10, 2011 9:58    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
BlueGasMask
Vortininja


Joined: 20 Nov 2007
Posts: 288
Location: Papakura, New Zeland

PostPosted: Thu Feb 10, 2011 13:51    Post subject: Reply with quote

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!
_________________
Sascrypte wrote:
DON'T LEAVE ASS MARKS ON MY DOOR
Back to top
View user's profile Send private message AIM Address
K1n9_Duk3
Vortininja


Joined: 25 Aug 2008
Posts: 278
Location: Germany

PostPosted: Fri Mar 15, 2013 8:59    Post subject: Reply with quote

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/imfplayer_win32_v21.zip (Source Code: http://k1n9duk3.k1.ohost.de/files/imfplayer_v21_src.zip)
_________________
Hail to the K1n9, baby!
Back to top
View user's profile Send private message
Levellass
S-Triazine


Joined: 23 Sep 2008
Posts: 2688

PostPosted: Sat Mar 16, 2013 7:39    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message MSN Messenger
gerstrong
Vorticon Elite


Joined: 31 Dec 2008
Posts: 744
Location: Bochum - Germany

PostPosted: Sat Mar 16, 2013 10:54    Post subject: Reply with quote

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.
_________________
Play it classic, feel it like modern!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
K1n9_Duk3
Vortininja


Joined: 25 Aug 2008
Posts: 278
Location: Germany

PostPosted: Tue Mar 19, 2013 10:00    Post subject: Reply with quote

@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.

Quote:
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!
Back to top
View user's profile Send private message
gerstrong
Vorticon Elite


Joined: 31 Dec 2008
Posts: 744
Location: Bochum - Germany

PostPosted: Wed Mar 20, 2013 18:54    Post subject: Reply with quote

Thanks I answered your PM. So what would you like to do with it. Maybe I can help you a bit, besides CG development...
_________________
Play it classic, feel it like modern!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
gerstrong
Vorticon Elite


Joined: 31 Dec 2008
Posts: 744
Location: Bochum - Germany

PostPosted: Sun Mar 24, 2013 9:20    Post subject: Reply with quote

http://github.com/gerstrong/Commander-Genius/issues/122

It is on my plans
_________________
Play it classic, feel it like modern!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Public Commander Keen Forum Forum Index -> Commander Genius All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group