Page 1 of 3

KeenWave 0.5

Posted: Sat Jul 31, 2010 12:43 pm
by levellass
Decided to release a beta of the program, since my injured hand is slowing my progress. Get it here: http://levellord.rewound.net/IDWAVE.zip (Careful now, it's over a MB which uses up my bandwidth quickly!)

* Comes with a Keen 4 setup allowing you to replace sounds
* Comes with an adlib sound player and folder of sounds from various games
* Here's a tutorial for it!: http://www.shikadi.net/keenwiki/KeenWave

* Does not yet support all games I want it to.
* Does not work well with wave files
* At present for 4-6 works only with raw data files.


I reccommend reading the tutorial. This is only a beta, but it should suffice for our Keen 4-6 modders. Also, I need tips on what to add\delete\explain on that tutorial page, it's a beta too.

Posted: Sat Jul 31, 2010 1:39 pm
by Malvineous
Mirror to help out then since I have unlimited bandwidth.

Posted: Sat Jul 31, 2010 4:08 pm
by Mink
Excellent, hopefully this means I will be able to move away from the rather horrid WDC which I've used in my previous modding endeavors. Is it really necessary to include all the sounds already extracted, though? Can't the program extract them already? (And it would cut down on the bandwidth, too, although I guess that's not really an issue thanks to Malv). It looks to work fairly well now, but I may have some suggestions later after I actually put it through its paces.

Posted: Sun Aug 01, 2010 12:27 am
by levellass
Well it was requested I put in some extracted files, they're not any larger than the unextracted AUDIO files and not everyone has all of those games. The final release will not have them, the only reason I released this was that I had been repeatedly asked to and someone wanted a Keen 4 setup.

Suggestions are always welcome, it's only very basically functional at the moment so there's plenty of room for improvement.

Posted: Sun Aug 01, 2010 3:46 am
by Paramultart
Hope your hand gets better. :)

Posted: Sun Mar 25, 2012 4:06 pm
by lemm
Lass,


I forgot to include a patch for the addition of new songs in Keen Galaxy. There's a place that you have to patch in the total number of songs. This might have been the reason why Keen 9 was getting all those Insufficient Memory errors. It seems to have helped dramatically for Atroxian Realm so far.


Patches that you need to include for KeenWave are:

Code: Select all

%patch $8C91 6      #Keen 4
%patch $8C0D 14    #Keen 5
%patch $8A75 9      #Keen 6

Posted: Tue Mar 27, 2012 4:41 am
by levellass
Awesome; any details on how those work? (That is, WHY they are needed?) the code seems a bit opaque to me.

Also, is there enough music code in Keen Dreams to play music do you think?

Posted: Wed Mar 28, 2012 7:45 am
by lemm
The latest patch I added is found in the "stop music" subroutine. Along with stopping the music, this subroutine ensures that all songs are uncached before it returns.

The patch is the end condition of a for loop:

Code: Select all

For i = 1 to songnum
     call uncache_song        ' if song is not cached, then uncache_song does nothing
Next i

As you can see, if you don't increase the song number to accommodate your new audio file, then the higher number songs won't ever be uncached, and you get a memory leak and eventually the game quits because it runs out of memory.


You should definitely put this in the BOTB revision.

Posted: Sat Mar 31, 2012 4:22 am
by levellass
Once again thankyou Lemm, I knew there was a memory leak, but could never find out why. (In retrospect I really should have looked for that, but I was looking for a loop that dealt with chunks x - y, not song numbers.)

Posted: Mon Jun 25, 2012 4:43 am
by Flyingmouse

Code: Select all

Extracting 63  sounds from SOUNDS.CK3...Tried to write to a file in a bad place!

A FATAL ERROR HAS OCCURRED!
Erroor: 63 at 15
This constantly pops up when I try extracting from a Keen 3 executable- it seems to be the third sound that's causing the problem. I'm using this line:

Code: Select all

KEENWAVE.EXE -episode=3 -export=bmp -snddir="SND"
EDIT: NVM, fixed.

Posted: Tue Nov 04, 2014 8:44 pm
by MoffD
Hey! I just got KeenWave to compile on xubuntu 14.04 x86_64 using FreeBASIC

@Lass Can I get the latest source .bas file from you? :3
The version I compiled reports to be v5.0 in the source. I think it's the one from LLord's site and there's a newer one, right?

Posted: Tue Nov 04, 2014 8:56 pm
by Fleexy
If you can run Abiathar on Linux, you won't need KeenWave for long :P

Posted: Tue Nov 04, 2014 9:12 pm
by MoffD
Fleexy wrote:If you can run Abiathar on Linux, you won't need KeenWave for long :P
Still... it's nice to have it run natively, and I can drop the binary in /usr/local/bin and run keenwave anywhere from the cli for quick audio tweaks ;D
Edit:
I'm having to tweak the file paths though, stupid difference between / and \ directory listings ^_^

Also I'm not getting sound playback so it's gonna need some work to make it run exactly the same, but file operations seem to work ok.

Posted: Wed Nov 05, 2014 12:53 am
by levellass
I myself support the Abiathar, it is very solid and well done. The latest source I think is this: https://dl.dropboxusercontent.com/u/394 ... enWave.bas

Posted: Wed Nov 05, 2014 1:39 am
by MoffD
I also heartily support Abiathar, speaking of it, how's the sound integration coming?

Thanks for the file Lass, I'll see how that version compiles.