Update pending... (post 25 of 25 needed to re-enable post editing).
Update pending... (post 25 of 25 needed to re-enable post editing).
Sigh. Still can't edit my original post.
Symphony now has partial support for Shogun 2 formats.
Thanks Crux, hopefully this helps with the Shogun 2 custom unit sound issue.
----------------------
Shameless DarthMod Fanatic
Daniu asked for technical details on the formats Symphony processes. So, the game engine contains two binary sound files: sounds_packed/sound_events and sounds_packed/sound_bank_database. The formats differ slightly between games (and often with patches), but for the current version of Shogun 2 the sounds_packed/sound_events contains:
1 4-byte floating point master volume
1 4-byte unsigned integer number of categories
number of categories variable length category records
1 4-byte unsigned integer number of unknown data items
number of unknown data items 4-byte signed integer unknown data items
1 4-byte unsigned integer number of unknown data items
number of unknown data items 8-byte pair of signed integer unknown data items
2 4-byte unsigned integer unknown data items
19 4-byte floating point unknown data items
31 4-byte unsigned integer unknown data items
7 4-byte floating point unknown data items
1 4-byte unsigned integer unknown data item
7 4-byte floating point unknown data items
15 4-byte unsigned integer unknown data items
1 4-byte unsigned integer number of event datas
number of event datas 188-byte event data records
1 4-byte unsigned integer number of events
number of events variable length event records
1 4-byte unsigned integer number of ambience maps
number of ambience maps variable length ambience map records
1 4-byte unsigned integer number of unknown data items
number of unknown data items 4-byte signed integer unknown data items
1 4-byte unsigned integer number of movie volumes
number of movie volumes variable length movie volume records
1 4-byte unsigned integer number of unknown data items
number of unknown data items variable length unknown data records
a category record is:
1 variable length wide string name
1 4-byte floating point value
an event data record is:
47 4-byte floating point values
an event record is:
1 4-byte unsigned integer index into categories
2 4-byte signed integer unknown data items
1 4-byte unsigned integer index into event data records
*1 variable length wide string event name (only if the associated data record's 29th element is equal to 1.0f)
1 4-byte unsigned integer number of sound files
number of sound files variable length wide string sound filenames
1 1-byte unsigned integer unknown data item
an ambience map record is:
1 variable length wide string map name
1 4-byte unsigned integer number of ambiences
number of ambiences 20-byte ambience records
a movie volume record is:
1 variable length wide string name
1 4-byte floating point volume
an unknown data record is:
1 variable length wide string unknown data item
1 4-byte signed integer unknown data item
a wide string is:
1 2-byte unsigned integer length
length 2-byte wide character characters
an ambience record is:
1 4-byte unsigned integer identifier
1 4-byte unsigned integer index into event records
1 4-byte floating point y position
1 4-byte floating point distance
1 4-byte floating point x position
And sounds_packed/sound_bank_database contains:
266 4-byte floating point unknown setting
25 variable length sound bank records
297 variable length unknown data records
a sound bank record is:
1 4-byte unsigned integer number of bank events
number of events variable length bank event records
an unknown data record is:
1 4-byte unsigned integer number of events
number of events 4-byte unsigned integer indices into event records
a bank event record is:
1 4-byte unsigned integer index into event records
bank-specific number of variable length parameter block records
a parameter block record is:
1 4-byte unsigned integer number of parameters
number of parameters parameter-specific sized parameters
The current Shogun 2 files contain 25 sound banks:
1: 4 parameter blocks each of 4-byte unsigned integers
2: 5 parameter blocks each of 4-byte unsigned integers
3: 4 parameter blocks each of 4-byte unsigned integers
4: 3 parameter blocks each of 4-byte unsigned integers
5: 2 parameter blocks each of 4-byte unsigned integers
6: 4 parameter blocks each of 4-byte unsigned integers
7: 4 parameter blocks each of 4-byte unsigned integers, then 2 parameter blocks each of 1-byte unsigned integers, then 1 parameter block of 4-byte unsigned integers
8: 5 parameter blocks each of 4-byte unsigned integers
9: 4 parameter blocks each of 4-byte unsigned integers
10: 2 parameter blocks each of 4-byte unsigned integers
11: 2 parameter blocks each of 4-byte unsigned integers
12: 1 parameter blocks each of 4-byte unsigned integers
13: 6 parameter blocks each of 4-byte unsigned integers
14: 4 parameter blocks each of 4-byte unsigned integers
15: 4 parameter blocks each of 4-byte unsigned integers
16: 6 parameter blocks each of 4-byte unsigned integers
17: 2 parameter blocks each of 4-byte unsigned integers
18: 3 parameter blocks each of 4-byte unsigned integers
19: 3 parameter blocks each of 4-byte unsigned integers
20: 2 parameter blocks each of 4-byte unsigned integers
21: 2 parameter blocks each of 4-byte unsigned integers
22: 2 parameter blocks each of 4-byte unsigned integers
23: 2 parameter blocks each of 4-byte unsigned integers
24: 2 parameter blocks each of 4-byte unsigned integers
25: 2 parameter blocks each of 4-byte unsigned integers
Only the second sound bank is at all known so far. This is the projectile fire parameter block. The first parameter block is probably the gun type and is probably an index into an unknown list of gun types. The second parameter block is probably the shot type and is probably an index into an unknown list of shot types. The third parameter is probably the size and is probably an index into the list {small, medium, large}. The fourth parameter is unknown. The fifth parameter is an index into the hashed units table from the database.
Crux thank you for trying to fix this annoying issue.
I have tried to use your exe file but it did not open, and tried many things.
The CMD Dialog windows opens for 1/3 second and shuts down.
I have Windows 7 Ultimate 64Bit.
You don't double click the file, you run it like a ruby file using command prompt Darth.
Ah thanks Hedge Knight, that will sort it out.
Probably it needs a new version because the unit_tables checksum does not match. This is the error I got when I tried to extract:
Code:An error has occured: Database table version unknown in table C:\Program Files (x86)\Steam\steamapps\common\total war shogun 2\data\db\units_tables\units. Expected 4294770429, got 4294901244
Hi there guys!
I have that error when I try to pack the uncompiled files:
What I do not understand is that I do not have any conflict with the faction table... I do not understand why it is incompatible with the patch2.pack.
Any idea guys?
PS: Sorry, I found the answer to my question: The problem doest not come from Symphony but from DBEditor, it is an incompatible format for Symphony, we have to make the tables with PFM. It is not the easiest thing as you can imagine.
Last edited by Flikitos; May 30, 2012 at 09:54 AM.
Can you explain how the unit_voice specifier, or unit_group can be used?
I tried adding a new <unit_voice> specificer in my unit table (French_Grenadier), and then edit the sound bank XML so all the French units are using this specifier, but when I compile Symphony says the parameters has no value...
Before, I use a <unit> specifier . It works, but as I have many units, it gives a very large XML files.
Unit_voice seem find to solve that.
I did some test this morning, with only a few units. I thought it worked, but when I tried to extend it to other units it doesn't work.
I saved my work before I started a long edition session, so I can always go back to the <unit> method, but unfortunately I did not save the initial test, so I cannot check what I did and if it really worked.
Are you seeking the unit_voice in a fixed list? Can it be epxanded? How?
I am clearly doing something whrong, but I don't know what. I follow these steps, Symphony reports no errors, but when I use the newly created sound_bank_database and sound_events, the menu music as well as the units' drums/fifes disappear. This is in ETW.
Anyone have an idea what may be wrong?
Is this Sinfonia Semplice for ETW and NTW?
Bayonets for FoTS: http://www.twcenter.net/forums/showthread.php?t=538081
How exactly do I run Symphony?
Can someone give me an explanation on how i have to run it ? Because everytime i doubleclick it the command prompt flashes for some miliseconds the disappears. How do i start it in a command prompt ?
Hi GD10,
In your Windows start menu you'll see a small box at the bottom which says 'search programs and files'. In this box type in 'cmd' and it will bring up command prompt.
This is the process I had to follow in order to extract Empire: total war sounds.
1. Once you are in command prompt type in cd "C:\Program Files (x86)\Steam\SteamApps\common\Empire Total War\data" then press enter.
2. Now type in symphony extract "C:\Program Files (x86)\Steam\SteamApps\common\Empire Total War" "C:\Program Files (x86)\Steam\SteamApps\common\Empire Total War\data"
Symphony should now extract all the sound files into your Empire: total war data folder where all the pack files are kept.
Hi Crux,
Here are the sound files I mentioned earlier
Dave08 Sound files.zip
Is this program still working? The extracted files are really messed up, units seem to be randomly pasted into the file, I can see some artillery units in the general unit section.
Cheers
I require an download for this too.