| Author |
SC Sound Editor |
XabbaRus
Joined: Feb 28, 2002 Posts: 2792 | Posted: 2002-12-12 04:22  
Well I haven't tried it yet but it would be good to swap the emploding from 688 into SC.
The question I havbe though is although you can add a new sound to the sfx.agg file, unless you are replacing an existing sound how do you get SC to point to the sound and play it. So for the implosion sound how will you get SC to recognize and play it?
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-12-12 04:25  
Hi John
Stumbled across a couple of other issues.
Was doing some simple stuff ... like extracting the engine.wavs outta the appropriate Sub agg files.
Edit the engine.wav ... and put it back in the agg.
Although the process goes through OK ... any attempt thereafter to Edit the (new)agg, results in the Util crashing. Opening the backup agg is fine.
However, the (new) agg seems to work ok in the game ... but, I get a lot of popping going on ... specifically in the Akula crew voices. The Seawolf crew voices are not as bad ... but, the pop is still discernable.
Restore the original aggs .... and the pops etc., are gone.
You mention that the (new) agg is smaller in size .... could this not be related to the missing bytes?
Cheers
Tom
_________________
He Who Will Not Risk Cannot Win

[ This Message was edited by: Thomasew on 2002-12-12 04:42 ]
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-12-12 04:34  
Hi
To RS: Not sure when, or IF, I will still be coming up to Jhb. Still trying to organise something.
To Boomer: Nothing in the immediate future.
To Xabba: The only place where you can specify 'new' sounds (within the sfx.agg), would be via the DB. e.g. BB sounds, Torp engines sounds, Torp & Missile Launches etc. I was gonna say Gunfire ... but, that doesn't work anyway.
So, in that regard ... you are limited.
Cheers
Tom
_________________ He Who Will Not Risk Cannot Win
 
|
XabbaRus
Joined: Feb 28, 2002 Posts: 2792 | Posted: 2002-12-12 05:34  
That's what I thought .
Shame, but at least it means each ship can have its own signature well you know what I mean.
 
|
jsteed
Joined: Apr 08, 2002 Posts: 253 | Posted: 2002-12-12 09:55  
Hi Tom,
Thanks for the thorough check out.
1. I had already noticed the shortcoming of having to close the util in order to load the agg file a second time. This has already been fixed. I also added the ability to save the agg file TOC and event log to a file.
2. Yes, I can add a history file. Most programs add the history info to the registry. I don't like that idea, so I will have the program create it's own ini file to store the information instead.
3. Which modified agg file were you working on when you got the crash? I've tried it with the main one and didn't have any problems. I will check it out again.
4. I did not try replacing any of the Russian voices, so I was not aware of the popping sounds. In fact, I didn't even open that agg. I only checked the 688 voices. So much for my thorough testing. I doubt that the missing bytes have anything to do with it. These bytes are always at the end of the wav file and usually just contain part of the GoldWave copyright notice. The wav file header does not even know that they exit. Many of these wavs were made with GoldWave software. In any case, I will look at this file and try to find what is different about it. Of course with the cheap speakers that are attached to my computer, I may not be able to hear any difference.
Thank Bill for checking out Fleet Command. If I can find my disk, I will look at that agg file and see what is different. Did you find that you could not extract any information from the file? Strange that it would have a different structure from the others.
Cheers, jsteed
 
|
|
jsteed
Joined: Apr 08, 2002 Posts: 253 | Posted: 2002-12-12 12:48  
I think I discovered the reason behind Tom's popping sounds. Very good Tom, it turns out that some of those missing bytes are the problem. Give yourself a beer!
Here's a summary of the problem:
SA decided that in order to keep people from playing around with the agg file, they would put a 'secret' tag in each wav file, (except for ones less than 8k long), that tag is 4 bytes long with the value of 0. If these bytes are not 0 then SC will not play the wav file. Also, the next 8 or 12 bytes are also changed. When playing the wav files, the pop that is heard is from these 16 bytes that SA modified.
Just past the official end many wav files are 16 extra bits. How convienent! Now it is no problem to copy these extra bytes when extracting the wav files, BUT there is a catch.
Say, you extract a file and then modify it in some way with some other software. As I said, those sixteen bytes are not really part of the wav file, they are past the end. So after you modify and save the wav file, those 16 bytes will not be included and when playing the file you will hear a pop.
I don't think that those 16 bytes are just pulled out and placed at the end of the file. It looks as if there is some algorithm that combines them with the 16 bytes that are in the file. What's the algorithm??? You can bet that SA won't tell us. Since I don't know what the original bytes are, it makes it difficult to come up with a good solution.
Any ideas?
Cheers, jsteed
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-12-12 13:39  
Hi John
I was working with the sfx.agg files for the Akula & the Seawolf. I was just extracting the engine.wav files to make them a bit louder.
As I said, the 'replace' goes fine ... and the agg works fine in SC ... except for the pops etc..
However, once the new sfx.agg has been created ... I can't open it with your sound editor. It just gives me an 'illegal operation' error ... 'SCSoundEdit has caused a invalid page fault in module unknown .. blah blah etc etc. It does it with both the new sfx.agg files. Restoring the original agg .... it works fine again.
As for the missing bytes .... I couldn't even hazard a guess. Hope ya figure it out.
If a bolt of lightning hits me on the head ... I'll let ya know.
Good Luck.
Cheers
Tom
_________________
He Who Will Not Risk Cannot Win

[ This Message was edited by: Thomasew on 2002-12-12 13:42 ]
 
|
jsteed
Joined: Apr 08, 2002 Posts: 253 | Posted: 2002-12-12 14:01  
Hi Tom,
The bolt of lightning hit me instead. The original bytes are replaced with an address to where the missing ones are stored. My brain may be slow, but not yet completely addled. So I can now fix the popping problem. However, this means that anyone who has modified his agg file will have to go back to the original and modify it again with the new version of the program. In other words, don't throw away your modified wav files yet.
Now for the more serious problem, the program crash. I cannot reproduce this, so let me guess what you did.
1. You opened the agg file and made replacements.
2. You opened it again without closing down the util first.
3. You closed the util, started it again and then find that it crashes with a page fault when you try to load the agg file.
If this is roughly the scenario, try this:
Reboot your computer. Now try to open the agg file. It should be OK.
Windows is an unstable OS and allows programs to overwrite the system area in memory. I had problems like you described when I was writing and debugging the program. The program uses dynamic arrays so it can overwrite parts of the OS. I hope that is the problem. By the way, which agg were you opening when the crash occured?
Cheers, jsteed
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-12-12 14:17  
Hi John
Glad the Bolt hit you, and not me. Not sure I could withstand any more shock treatment at this point.
No ... I didn't try to open the agg file right away ... I shutdown the util first.
I did try the reboot thing .... as I initially thought that would be the only way to get the util working again. It wasn't until after I re-booted ... and had the exact same problem ... that I tried restoring the original sfx.agg file. Then SCSE worked fine again. I tried the process several times ... all with the same result.
Both of the sfx.aggs that I modded the engine.wav sound do the crash routine ... i.e. Interfaces\AkulaII\sfx.agg & Interfaces\SSN21\sfx.agg ... haven't tried the 688i one yet.
I am running SC on Windows 98SE.
Cheers
Tom
_________________ He Who Will Not Risk Cannot Win
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-12-12 14:35  
Hi John
Just ran the test on all 3 Sub aggs. I just extract a wav ... close down Util. Start Util .. and just 'replace' the wav, without modifying it in any way.
Same Problem on all 3 files.
I notice, in the case of the 688i sfx.agg ... that re-packing the file ... results in the agg being 41Kb smaller. i.e. from 4025 Kb to 3984 Kb.
Seems like a lot of Kb to lose ... when, for all intents and purposes ... nothing has really been changed.
Cheers
Tom
_________________
He Who Will Not Risk Cannot Win

[ This Message was edited by: Thomasew on 2002-12-12 14:36 ]
 
|
jsteed
Joined: Apr 08, 2002 Posts: 253 | Posted: 2002-12-12 14:40  
Hi Tom,
Of course rebooting won't help! Whatever gave you that idea? I made another dumb mistake. It has to do with the writing of the TOC's, when there is only one of them. I just fixed it. However, you will never be able to open that modified agg file. It is past all redemption. Hope you saved your modified wav. Sorry about that.
I will fix the popping problem next and then send the new version to MadCowz and XabbaRus.
Thanks for all your help.
Cheers, jsteed
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-12-12 14:48  
Hi John
I'm running Windows ... 99.999% of the time ... re-booting will help something or other.
Not too worry .... got plenty of backups etc ... and hadn't really changed much anyway.
Glad you have got it all sorted out.
Thanks for all your efforts ... much appreciated.
Will download new version, as soon as it is available. If you still have my e-mail addy ... you could post it to me, ... if you felt so inclined. Not sure when Xabba & Mad would have it up on their sites.
Cheers
Tom
_________________ He Who Will Not Risk Cannot Win
 
|
jsteed
Joined: Apr 08, 2002 Posts: 253 | Posted: 2002-12-12 19:36  
Hi Tom,
No problem, I will email it to you as soon as it is finished.
Cheers, jsteed
 
|
jsteed
Joined: Apr 08, 2002 Posts: 253 | Posted: 2002-12-13 09:53  
I just sent the updated version of the sound editor to MadCowz, XabbaRus and Tom. All the problems mentioned by Tom have been fixed...hopefully. I did not yet add the history file, but will do that next week. I will also try to look into the Fleet Command problem.
In order to get rid of Tom's popping sounds, I had to read a few bytes that are just past the end of each wav file. This means that if you use this version on agg files you modified with the old one, you will still have the popping sounds. In other words, you have to start over with your modifications. Sorry about that.
Please let me know if you run into any problems or have any suggestions for improvements. I will be away for the weekend, so I won't be able to respond until the first of the week.
Cheers, jsteed
 
|