Jump to content


Photo

How do I port sound sets from the Enhanced Editions?


  • Please log in to reply
33 replies to this topic

#1 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 24 April 2021 - 03:11 AM

I'd like to port new sound sets from the Enhanced Editions to vanilla games / BGT, but I'm at a loss how to do that.

 

I imagine step one would be to export the actual WAV sounds from the Enhanced Edition games and drop them into the "Sounds" folder of my vanilla installation (please correct me if I'm wrong.)

 

Then how do I inject subtitles for those sound sets into the game's text and make sure they display in sync with the correct file?

 

Where do I determine the name for each sound sets that will show up at character creation / customization in-game?



#2 Gamemacik

Gamemacik
  • Member
  • 55 posts

Posted 25 April 2021 - 01:27 PM

https://gibberlings3...tob/charsnd.htm

oUfVn76.png

 

You can check sound files associated with dialog messages with NearInfinity (ctrl+s to display dialog.tlk)

Strings are from charsnd.2da (on picture above file from BG2EE),such file does not exist in vanila BG1 game according to IESDP site

sound files should be placed into override folder, localized sound files are located in ..\Baldur's Gate II - Enhanced Edition\lang\en_US\sounds\ or ..\Baldurs Gate - Enhanced Edition\lang\en_US\sounds\ depend from which game you import files

You also can export whole dialog tlk as .tra file for weidu, in such case sound files are in brackets [ ], [MALE5C] is the wav file

@16235  = ~To battle, and victory!~ [MALE5A]
@16236  = ~I will strive to lead responsibly.~ [MALE5b]
@16237  = ~I must rest for our cause to succeed.~ [MALE5C]
@16238  = ~I should make better use of time.~ [MALE5D]
@16239  = ~I require assistance with my wounds.~ [MALE5E]
@16240  = ~Yes?~ [MALE5F]
@16241  = ~What is my task?~ [MALE5G]

 

dDzZYjk.png


Edited by Gamemacik, 25 April 2021 - 01:35 PM.

For modders:
Animation resources: NWN RED DRAGONTRWNDbl.pngDRAGONWHELP PACK+DRAGONBREATHTRWNDbl.png
For loosers: SPOILER ALERT! RCEuOoU.pngQeZVcUw.png


#3 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 26 April 2021 - 01:05 AM

Thank you, Gamemacik.

 

So I can export the sound files from the Enhanced Edition and place them into the override folder of my BGT installation.

 

I then need to append CHARSND.2DA to include the necessary subtitle strings, but how do I add a column to that file and tell my WeiDU code to populate that specific column?

 

Also, how I do inject new strings into dialog.tlk? I know how to amend strings but I can't seem to use the same method, as I just get an out-of-bound error message when I try to install.

 

Is the file name what determines how the sound set appears in character creation?



#4 Gamemacik

Gamemacik
  • Member
  • 55 posts

Posted 26 April 2021 - 07:04 AM

So i looked deeper on the problem, i noticed i have installed BG1 and also BG1:EE so i could test it myself, first problem is wav sound files must be encoded with 22050 Hz frequency, that is not true for sound set 4+ male and female as they have 48K Hz, you will need manually edit each file, otherwise no sound will be played. I use for that soft. Audiacity portable. You can copy files to Sound folder or override folder, i tested it with sound folder after i edited Hz frequency for 4th soundest.
 
KpfC73T.png
1cEmegW.png
 
then you need to edit charsnd.2DA, this file really exist in the classic BG1, file from BG1 and BG1:EE (code below)
 
classic BG1, CHARSND.2DA (has 3 sound sets per gender only)

2DA V1.0
-1
        MALE        FEMALE      CUSTOM1     CUSTOM2     CUSTOM3     CUSTOM4     CUSTOM5     CUSTOM6
9       16235       16248       18198       19054       19061       19062       19063       19064
6       16236       16249       12368       19055       19065       19066       19067       19068
7       16237       16250       12389       19056       19069       19070       19071       19072
8       16238       16251       12509       19057       19073       19074       19075       19076
20      16239       16252       18189       19058       19077       19078       19079       19080
26      16240       16253       18190       19059       19081       19082       19083       19084
27      16241       16254       18191       19060       19085       19086       19087       19088
28      16242       16255       18192       19089       19090       19091       19093       19092
32      16243       16256       18193       19094       19095       19096       19097       19098
33      16244       16257       18194       19099       19100       19101       19102       19103
34      16245       16258       18195       19104       19105       19106       19107       19108
18      16246       16259       18196       19109       19110       19111       19112       19113
19      16247       16260       18197       19114       19115       19116       19117       19118

 
BG1:EE CHARSND.2DA (has 6 sound sets per gender)

2DA V1.0              
-1              
           MALE       FEMALE     FEMALE1    FEMALE2    FEMALE3    FEMALE4    FEMALE5    FEMALE6    MALE1      MALE2      MALE3      MALE4      MALE5      MALE6      CUSTOM0          CUSTOM1          CUSTOM2          CUSTOM3          CUSTOM4          CUSTOM5          CUSTOM6          CUSTOM7          CUSTOM8          CUSTOM9    
9          16235      16248      19062      19063      19064      31619      31632      31645      18198      19054      19061      31658      31671      31684      31997            32010            32023            32036            32049            32062            32075            32088            32101            32114      
6          16236      16249      19066      19067      19068      31620      31633      31646      12368      19055      19065      31659      31672      31685      31998            32011            32024            32037            32050            32063            32076            32089            32102            32115      
7          16237      16250      19070      19071      19072      31621      31634      31647      12389      19056      19069      31660      31673      31686      31999            32012            32025            32038            32051            32064            32077            32090            32103            32116      
8          16238      16251      19074      19075      19076      31622      31635      31648      12509      19057      19073      31661      31674      31687      32000            32013            32026            32039            32052            32065            32078            32091            32104            32117      
20         16239      16252      19078      19079      19080      31623      31636      31649      18189      19058      19077      31662      31675      31688      32001            32014            32027            32040            32053            32066            32079            32092            32105            32118      
26         16240      16253      19082      19083      19084      31624      31637      31650      18190      19059      19081      31663      31676      31689      32002            32015            32028            32041            32054            32067            32080            32093            32106            32119      
27         16241      16254      19086      19087      19088      31625      31638      31651      18191      19060      19085      31664      31677      31690      32003            32016            32029            32042            32055            32068            32081            32094            32107            32120      
28         16242      16255      19091      19093      19092      31626      31639      31652      18192      19089      19090      31665      31678      31691      32004            32017            32030            32043            32056            32069            32082            32095            32108            32121      
32         16243      16256      19096      19097      19098      31627      31640      31653      18193      19094      19095      31666      31679      31692      32005            32018            32031            32044            32057            32070            32083            32096            32109            32122      
33         16244      16257      19101      19102      19103      31628      31641      31654      18194      19099      19100      31667      31680      31693      32006            32019            32032            32045            32058            32071            32084            32097            32110            32123      
34         16245      16258      19106      19107      19108      31629      31642      31655      18195      19104      19105      31668      31681      31694      32007            32020            32033            32046            32059            32072            32085            32098            32111            32124      
18         16246      16259      19111      19112      19113      31630      31643      31656      18196      19109      19110      31669      31682      31695      32008            32021            32034            32047            32060            32073            32086            32099            32112            32125      
19         16247      16260      19116      19117      19118      31631      31644      31657      18197      19114      19115      31670      31683      31696      32009            32022            32035            32048            32061            32074            32087            32100            32113            32126      
10         25427      25428      19062      19063      19064      31619      31632      31645      18198      19054      19061      31658      31671      31684      32007            32020            32033            32046            32059            32072            32085            32098            32111            32124      
11         25429      25430      19062      19063      19064      31619      31632      31645      18198      19054      19061      31658      31671      31684      32007            32020            32033            32046            32059            32072            32085            32098            32111            32124      
63         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1               -1               -1               -1               -1               -1               -1               -1               -1               -1         
64         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1               -1               -1               -1               -1               -1               -1               -1               -1               -1         
65         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1               -1               -1               -1               -1               -1               -1               -1               -1               -1         
66         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1               -1               -1               -1               -1               -1               -1               -1               -1               -1         
67         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1               -1               -1               -1               -1               -1               -1               -1               -1               -1         
68         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1               -1               -1               -1               -1               -1               -1               -1               -1               -1         
69         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1               -1               -1               -1               -1               -1               -1               -1               -1               -1         
70         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1               -1               -1               -1               -1               -1               -1               -1               -1               -1         
71         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1               -1               -1               -1               -1               -1               -1               -1               -1               -1         
72         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1         -1               -1               -1               -1               -1               -1               -1               -1               -1               -1         
Custom Sound files

The following is a list of the wav files for the custom sound sets.
Replace each 'XXXXXXX' in the filenames with the name of the sound set (MAX 7 CHARACTERS).
All the wav files should be 22 khz, 16 bit mono sounds.


XXXXXXXa.wav	: Battle Cry
XXXXXXXb.wav	: Becoming Leader
XXXXXXXc.wav	: Tired
XXXXXXXd.wav	: Bored
XXXXXXXe.wav	: Badly Wounded
XXXXXXXf.wav	: Selected 1
XXXXXXXg.wav	: Selected 2
XXXXXXXh.wav	: Selected 3
XXXXXXXi.wav	: Action Acknowledgement 1
XXXXXXXj.wav	: Action Acknowledgement 2
XXXXXXXk.wav	: Action Acknowledgement 3
XXXXXXXl.wav	: Being Hit
XXXXXXXm.wav	: Dying
XXXXXXXn.wav	: In Forest
XXXXXXXo.wav	: In City
XXXXXXXp.wav	: In Dungeon
XXXXXXXq.wav	: Daytime
XXXXXXXr.wav	: Nighttime
XXXXXXXs.wav	: Rare Selected 1
XXXXXXXt.wav	: Rare Selected 2
XXXXXXXu.wav	: Rare Selected 3
XXXXXXXv.wav	: Rare Selected 4
XXXXXXXw.wav	: Reaction to Party Member Death

Copy the .wav files to the Sounds directory located in the directory that Baldur's Gate 
was installed in.



 
To your question about string editing, you can do that easily with NearInfinity tool, if you want distribute mod public as weidu auto-installer mod i would recommend download some mods, eg. made by Argent, he has there rich library with custom defined function and also weidu documentation https://weidu.org/~t...ADME-WeiDU.html
 
to patch 2DA file you could try this:

APPEND ~9          16235      16248      19062      19063      19064      31619      31632      31645      18198      19054      19061      _@31658      31671      31684      31997            32010            32023            32036            32049            32062            32075            32088            32101            32114      ~

but you will need to replace wrong string reference numbers, eg. in BG1:EE 4rth male sound set has 1st male sound "Male4a.wav" attached to string with ID 31658 i put some unique _@ symbols before this number _@31658 then with weidu you can search and replace this string with correct reference number
 
lets say your custom made file BG1EE_texts_sounds.tra file starts with string ID 1000

@1000 = You got this coming! [Male4a] //sound file Male4a.wav

the replace string id in the charsnd.2DA

REPLACE ~_@31658~ @1000

it will insert correct string ID number from @1000 variable
 
Columns in BG1 and BG1:EE have different order custom2 custom3 are male string IDs, and custom4, custom5 female string IDs while whole BG1:EE file stars with first 6 Female columns then 6 male columns and 9 custom columns.
 
I wound recommend, try to edit charsnd.2DA manually with notepad and with NearInfinity add string with attached sound file if it will work and with script check if sound and text is displayed, in this case first number after append command is 9 (id from sndslod.ids) that is BATTLE_CRY1

//press G to check if battle cry is displayed, in this case for Male Sound SET 4 battle cry 1 is: "You got this coming!" and plays sound Male4a.wav
IF
	HotKey(G)
THEN
	RESPONSE #100
		VerbalConstant(Myself,BATTLE_CRY)
END

 

 
https://gibberlings3...tob/charsnd.htm
https://gibberlings3...gee/sndslot.htm
 
//edit
 
i tested script above with official male sound set 3 with classic BG1 (from gog), sound is played but no string is displayed 19061: [Voic3a:Battle Cry] Heh! Time for a bit of the rough and tumble! Voic3a should be should file probably
Hmm i did few test i have suspicious the file charsnd.2DA in classic BG1 is there but game does not use it at least for gog version.
 
Conclusion:
I guess charsnd.2DA is ignored in classic BG1 you can have custom sound set but without text subtitles. BUT if you want to have text also then only way i see is manualy replace default string IDs for battle cry attacks and other sounds with NearInfinity or via script for each playable character and also you need add new strings to dialog.tlk eg
 
 

SetPlayerSound(Myself,103699,ATTACK)  //103699 is sting id with associated sound file

 

BG1:  Soundoff.ids

0 INITIAL_MEETING
1 MORALE
2 HAPPY
3 UNHAPPY_ANNOYED
4 UNHAPPY_SERIOUS
5 UNHAPPY_BREAKING_POINT
6 LEADER
7 TIRED
8 BORED
9 BATTLE_CRY
14 ATTACK
18 DAMAGE
19 DYING
20 HURT
21 AREA_FOREST
22 AREA_CITY
23 AREA_DUNGEON
24 AREA_DAY
25 AREA_NIGHT
26 SELECT_COMMON
32 SELECT_ACTION
35 SELECT_RARE
39 INTERACTION
44 INSULT
47 COMPLIMENT
50 SPECIAL
53 REACT_TO_DIE_GENERAL
54 REACT_TO_DIE_SPECIFIC
55 MISCELLANEOUS
55 RESPONSE_TO_COMPLIMENT
58 RESPONSE_TO_INSULT
59 DIALOG_HOSTILE
60 DIALOG_DEFAULT


Edited by Gamemacik, 26 April 2021 - 08:56 AM.

For modders:
Animation resources: NWN RED DRAGONTRWNDbl.pngDRAGONWHELP PACK+DRAGONBREATHTRWNDbl.png
For loosers: SPOILER ALERT! RCEuOoU.pngQeZVcUw.png


#5 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 26 April 2021 - 08:44 AM

Thank you very much, Gamemacik. This is extremely helpful.

 

I'm familiar with Audacity, so converting the files in one fell swoop was easy peasy.

 

I have no idea how to dynamically retrieve the relevant subtitle strings en masse, so I'll grunt-work them—problem is, I assume I'll need to assign an arbitrary strref to all of them and have my code inject the strings in dialog.tlk past the current last strref (guess I should be able to see how this is done from any mod that adds dialog to the game). I can APPEND with dummy lines, but then I'll need to replace them with the real deal which will have been dynamically generated and will potentially change every time I install—and that's where I get completely lost.

 

Either way, I'll get to the grunt work and we'll see where I end up.

 

EDIT: Nope. This particular instance of grunt work is WAY too tedious and one misclick in NI results in a lot of wasted time trying to go back to the string where you were. Looks like this sound set port just wasn't meant to be.


Edited by Andrea C., 26 April 2021 - 09:15 AM.


#6 Gamemacik

Gamemacik
  • Member
  • 55 posts

Posted 26 April 2021 - 09:23 AM

this is exported from BG1EE dialog.tlk it can be used as tra file for weidu, i had it in 1 minute filter with excel :D

@19062 =     ~[Voic4a:Battle Cry] All will die!~ [Female1a]
@19063 =     ~[Voic5a:Battle Cry] Your life shall be mine!~ [Female2a]
@19064 =     ~[Voic6a:Battle Cry] Death will come swiftly for you!~ [Female3a]
@19066 =     ~[Voic4b:Becoming Leader] None other than me should be in this place.~ [Female1b]
@19067 =     ~[Voic5b:Becoming Leader] I deserve to be leader.~ [Female2b]
@19068 =     ~[Voic6b:Becoming Leader] There are none more capable for this position!~ [Female3b]
@19070 =     ~[Voic4c:Tired] I shall be asleep on my feet if I do not rest soon.~ [Female1c]
@19071 =     ~[Voic5c:Tired] We should rest now. I need sleep.~ [Female2c]
@19072 =     ~[Voic6c:Tired] I grow tired. We will rest soon.~ [Female3c]
@19074 =     ~[Voic4d:Bored] I find this inactivity extremely frustrating.~ [Female1d]
@19075 =     ~[Voic5d:Bored] This is so utterly boring.~ [Female2d]
@19076 =     ~[Voic6d:Bored] Must we stand about? I have much to do.~ [Female3d]
@19078 =     ~[Voic4e:Badly Wounded] I really must get proper treatment for my wounds.~ [Female1e]
@19079 =     ~[Voic5e:Badly Wounded] I... I am wounded.~ [Female2e]
@19080 =     ~[Voic6e:Badly Wounded] I must... get proper treatment for my injuries.~ [Female3e]
@19082 =     ~[Voic4f:Selected 1] What?~ [Female1f]
@19083 =     ~[Voic5f:Selected 1] What?!~ [Female2f]
@19084 =     ~[Voic6f:Selected 1] And now what?~ [Female3f]
@19086 =     ~[Voic4g:Selected 2] Yes?~ [Female1g]
@19087 =     ~[Voic5g:Selected 2] Yes?~ [Female2g]
@19088 =     ~[Voic6g:Selected 2] What must I do?~ [Female3g]
@19091 =     ~[Voic4h:Selected 3] Hmm?~ [Female1h]
@19092 =     ~[Voic6h:Selected 3] Hmm?!~ [Female3h]
@19093 =     ~[Voic5h:Selected 3] What is it?!~ [Female2h]
@19096 =     ~[Voic4i:Action 1] Simpler done than said.~ [Female1i]
@19097 =     ~[Voic5i:Action 1] Fine!~ [Female2i]
@19098 =     ~[Voic6i:Action 1] A simple task.~ [Female3i]
@19101 =     ~[Voic4j:Action 2] Certainly.~ [Female1j]
@19102 =     ~[Voic5j:Action 2] Such menial tasks.~ [Female2j]
@19103 =     ~[Voic6j:Action 2] Consider it done.~ [Female3j]
@19106 =     ~[Voic4k:Action 3] Surely.~ [Female1k]
@19107 =     ~[Voic5k:Action 3] A simple matter.~ [Female2k]
@19108 =     ~[Voic6k:Action 3] No trouble at all.~ [Female3k]
@19111 =     ~[Voic4l:Hit] Gack!~ [Female1l]
@19112 =     ~[Voic5l:Hit] Augh!~ [Female2l]
@19113 =     ~[Voic6l:Hit] Errgh!~ [Female3l]
@19116 =     ~[Voic4m:Dying] Aaagh... egh...~ [Female1m]
@19117 =     ~[Voic5m:Dying] Nnaagh... agh...~ [Female2m]
@19118 =     ~[Voic6m:Dying] Auuugh...~ [Female3m]
@31619 =     ~GO GO GO!~ [Female4a]
@31620 =     ~Everybody listen to me now.~ [Female4b]
@31621 =     ~That, *yawn* was a full day's work.~ [Female4c]
@31622 =     ~Let's DO something...~ [Female4d]
@31623 =     ~Healer...! Healer needed, right here!~ [Female4e]
@31624 =     ~What do you need?~ [Female4f]
@31625 =     ~Tell me.~ [Female4g]
@31626 =     ~Give it to me straight.~ [Female4h]
@31627 =     ~You want it, you got it.~ [Female4i]
@31628 =     ~I've got this.~ [Female4j]
@31629 =     ~Don't worry about me.~ [Female4k]
@31630 =     ~Argh!~ [Female4l]
@31631 =     ~Hoaghh... augh...~ [Female4m]
@31632 =     ~Now you're going to be sorry!~ [Female5a]
@31633 =     ~I've always been leadership material.~ [Female5b]
@31634 =     ~Sleepytime can't come soon enough!~ [Female5c]
@31635 =     ~Are we loitering now...? Are we loiterers?!~ [Female5d]
@31636 =     ~I've got the world's biggest ouchie!~ [Female5e]
@31637 =     ~Now what?~ [Female5f]
@31638 =     ~Uh huh?~ [Female5g]
@31639 =     ~You need something?~ [Female5h]
@31640 =     ~I'm on it like ugly on an orc.~ [Female5i]
@31641 =     ~It's in the bag.~ [Female5j]
@31642 =     ~If you're sure that's what you want.~ [Female5k]
@31643 =     ~Agh!~ [Female5l]
@31644 =     ~Eugh... not like this...~ [Female5m]
@31645 =     ~Who's in for it now?!~ [Female6a]
@31646 =     ~It's about time you recognized my superior qualities.~ [Female6b]
@31647 =     ~A little nap about now wouldn't hurt none.~ [Female6c]
@31648 =     ~Is there nothing else we should be doing?~ [Female6d]
@31649 =     ~Oy! That smarted.~ [Female6e]
@31650 =     ~Haven't you got nothin' better to do?~ [Female6f]
@31651 =     ~I'm not bothered.~ [Female6g]
@31652 =     ~What do you want?~ [Female6h]
@31653 =     ~Right. It's on me, is it?~ [Female6i]
@31654 =     ~I'll get it in a minute, guv.~ [Female6j]
@31655 =     ~I may as well.~ [Female6k]
@31656 =     ~Yeagh!~ [Female6l]
@31657 =     ~Ogh...~ [Female6m]


@18189 =     ~[Voic1e:Badly Wounded] I... I am surely close to death.~ [Male1e]
@18190 =     ~[Voic1f:Selected 1] What?~ [Male1f]
@18191 =     ~[Voic1g:Selected 2] Make it quick.~ [Male1g]
@18192 =     ~[Voic1h:Selected 3] Yes?!~ [Male1h]
@18193 =     ~[Voic1i:Action 1] A waste of my talents.~ [Male1i]
@18194 =     ~[Voic1j:Action 2] Of course.~ [Male1j]
@18195 =     ~[Voic1k:Action 3] No sooner said than done.~ [Male1k]
@18196 =     ~[Voic1l:Hit] Eugh!~ [Male1l]
@18197 =     ~[Voic1m:Dying] Haagh... uhn... ugh...~ [Male1m]
@18198 =     ~[Voic1a:Battle Cry] Death to you all!~ [Male1a]
@19054 =     ~[Voic2a:Battle Cry] Your life ends here.~ [Male2a]
@19055 =     ~[Voic2b:Becoming Leader] I alone belong here.~ [Male2b]
@19056 =     ~[Voic2c:Tired] I am so very weary.~ [Male2c]
@19057 =     ~[Voic2d:Bored] I grow tired of wasting time.~ [Male2d]
@19058 =     ~[Voic2e:Badly Wounded] I am certain to die without immediate aid.~ [Male2e]
@19059 =     ~[Voic2f:Selected 1] What would you have me do?~ [Male2f]
@19060 =     ~[Voic2g:Selected 2] Your wish?~ [Male2g]
@19061 =     ~[Voic3a:Battle Cry] Heh! Time for a bit of the rough and tumble!~ [Male3a]
@19065 =     ~[Voic3b:Becoming Leader] Ha hah! I'll lead 'em well!~ [Male3b]
@19069 =     ~[Voic3c:Tired] I'll need to be resting soon.~ [Male3c]
@19073 =     ~[Voic3d:Bored] I should get moving before the whole day is a waste.~ [Male3d]
@19077 =     ~[Voic3e:Badly Wounded] Huh... perhaps I'm a... bit more hurt than... than I thought.~ [Male3e]
@19081 =     ~[Voic3f:Selected 1] Yes?~ [Male3f]
@19085 =     ~[Voic3g:Selected 2] What now, I wonder?~ [Male3g]
@19089 =     ~[Voic2h:Selected 3] Hurry up!~ [Male2h]
@19090 =     ~[Voic3h:Selected 3] Where to now?~ [Male3h]
@19094 =     ~[Voic2i:Action 1] If you insist.~ [Male2i]
@19095 =     ~[Voic3i:Action 1] Of course, heh!~ [Male3i]
@19099 =     ~[Voic2j:Action 2] Very well.~ [Male2j]
@19100 =     ~[Voic3j:Action 2] Done and done!~ [Male3j]
@19104 =     ~[Voic2k:Action 3] All right, all right!~ [Male2k]
@19105 =     ~[Voic3k:Action 3] A simple task.~ [Male3k]
@19109 =     ~[Voic2l:Hit] Oof!~ [Male2l]
@19110 =     ~[Voic3l:Hit] Eugh!~ [Male3l]
@19114 =     ~[Voic2m:Dying] Hagh... ahh...~ [Male2m]
@19115 =     ~[Voic3m:Dying] Hooargh... ugh...~ [Male3m]
@31658 =     ~You got this coming!~ [Male4a]
@31659 =     ~If nobody else is gonna step up, why not?~ [Male4b]
@31660 =     ~Ready for that nap anytime now.~ [Male4c]
@31661 =     ~What's it gonna take to get a little action around here?~ [Male4d]
@31662 =     ~Augh... that one's going to leave a mark!~ [Male4e]
@31663 =     ~Yeah? What do you want?~ [Male4f]
@31664 =     ~Huh?~ [Male4g]
@31665 =     ~Whatcha got for me this time?~ [Male4h]
@31666 =     ~Yeah, I'll get right on that.~ [Male4i]
@31667 =     ~Top of my to-do list.~ [Male4j]
@31668 =     ~Way ahead of ya, boss!~ [Male4k]
@31669 =     ~Aagh!~ [Male4l]
@31670 =     ~Haagh... ohh...~ [Male4m]
@31671 =     ~Let's give them a right thrashing!~ [Male5a]
@31672 =     ~Well, of course! I AM the obvious choice...~ [Male5b]
@31673 =     ~*yawn* I grow torpid and require slumber.~ [Male5c]
@31674 =     ~Egh... how tedious all this becomes.~ [Male5d]
@31675 =     ~My spleen...! Alas, my life's blood seeps out...~ [Male5e]
@31676 =     ~How may I be of assistance?~ [Male5f]
@31677 =     ~What is it this time?~ [Male5g]
@31678 =     ~Yes?~ [Male5h]
@31679 =     ~I shall attend to it in a trice.~ [Male5i]
@31680 =     ~It shall be as you wish.~ [Male5j]
@31681 =     ~You have but to ask.~ [Male5k]
@31682 =     ~Eugh!~ [Male5l]
@31683 =     ~Hagh... ack... ohh...~ [Male5m]
@31684 =     ~Get over 'ere!~ [Male6a]
@31685 =     ~Right then, I'm in charge.~ [Male6b]
@31686 =     ~That's about enough, *yawn* for one day.~ [Male6c]
@31687 =     ~You don't want my hands getting idle.~ [Male6d]
@31688 =     ~I could use a little patching up!~ [Male6e]
@31689 =     ~Spit it out.~ [Male6f]
@31690 =     ~You rang?~ [Male6g]
@31691 =     ~Go on, then.~ [Male6h]
@31692 =     ~Right. What's this, then?~ [Male6i]
@31693 =     ~Sorted.~ [Male6j]
@31694 =     ~I'm on it.~ [Male6k]
@31695 =     ~Oof!~ [Male6l]
@31696 =     ~Gack... grarrhh...~ [Male6m]

Edited by Gamemacik, 26 April 2021 - 09:29 AM.

For modders:
Animation resources: NWN RED DRAGONTRWNDbl.pngDRAGONWHELP PACK+DRAGONBREATHTRWNDbl.png
For loosers: SPOILER ALERT! RCEuOoU.pngQeZVcUw.png


#7 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 26 April 2021 - 09:34 AM

this is exported from BG1EE dialog.tlk it can be used as tra file for weidu, i had it in 1 minute filter with excel :D


 

Could you walk me through how you did it? I really need to get my mojo going XD



#8 Gamemacik

Gamemacik
  • Member
  • 55 posts

Posted 26 April 2021 - 10:33 AM

I forgot one important thing, classic BG1 does not support VerbalConstant() action this action was added to BG1EE so there is no way via bcs script, sounds can be set to playable characters manually only eg. via Nearinfinity this mean edit save game .cre files for companions, or chr. files. New string and sound can be still added with weidu.
Spoiler

For modders:
Animation resources: NWN RED DRAGONTRWNDbl.pngDRAGONWHELP PACK+DRAGONBREATHTRWNDbl.png
For loosers: SPOILER ALERT! RCEuOoU.pngQeZVcUw.png


#9 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 26 April 2021 - 10:51 AM

Shouldnt the new sound sets show up among the available sound sets to select from within the game?

#10 Gamemacik

Gamemacik
  • Member
  • 55 posts

Posted 26 April 2021 - 11:16 AM

Like this?
TwYnUQY.jpg

For modders:
Animation resources: NWN RED DRAGONTRWNDbl.pngDRAGONWHELP PACK+DRAGONBREATHTRWNDbl.png
For loosers: SPOILER ALERT! RCEuOoU.pngQeZVcUw.png


#11 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 26 April 2021 - 11:38 AM

Precisely :)

Damn, youre good at this. All I have is the files I converted to 22 kHz from the sound sets they added with the 2.6 patch. Tomorrow Ill try to export the dialog.tlk file to get the subtitles for those like you did (you can open .tra files with Excel?) and see if I can figure out the weidu code.

What determines the name each sound set shows up with in-game?

#12 Gamemacik

Gamemacik
  • Member
  • 55 posts

Posted 26 April 2021 - 11:53 AM

tra file is txt file, sound set can be renamed eg. i renamed Female6 soundset to KITTY6 KITTY6a.wav, KITTY6b.wav....


For modders:
Animation resources: NWN RED DRAGONTRWNDbl.pngDRAGONWHELP PACK+DRAGONBREATHTRWNDbl.png
For loosers: SPOILER ALERT! RCEuOoU.pngQeZVcUw.png


#13 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 12 June 2021 - 02:55 AM

All right, my first attempt was a bit of a disaster.

 

This is my code:

 

PRINT ~Coptying sound files...~
COPY ~Miscellaneous/soundsets~ ~sounds~

LOAD_TRA ~Miscellaneous/tra/en_US/soundsets.tra~

APPEND ~charsnd.2da~
~ 
    Alvaeus
1   @1
2   @2
3   @3
4   @4
5   @5
6   @6
7   @7
8   @8
9   @9
10  @10
11  @11
12  @12
13  @13
18  @14
19  @15
20  @16
21  @17
22  @18
23  @19
24  @20
25  @21
26  @22
27  @23
28  @24
29  @25
30  @26
31  @27
32  @28
33  @29
34  @30
35  @31
36  @32
37  @33
38  @34
53  @35
63  @44
64  @45
65  @36
66  @37
67  @38
68  @39
69  @40
70  @41
71  @42
72  @43
~


Where the first column I'm appending has the numbers for the sound slots per SNDSLOT.IDS, the second column has the string ref from my tra file, and "Alveus" is the name I want to appear in the character customization screen where you can select it (in the Enhanced Editions sound sets can have a different name from their respective sound files; if the classics do not allow for that, I'm not going to rename a bajillion sound files, so I'll suck it up and have them appear with the sound file name.)

 

This is what my CHARSND.2DA looks like after patching:

 

Xlt617J.png

 

 

 

Cleary "APPEND" isn't the right command. I need to add columns to it, not write underneath what's already there.

 

I'm also not sure how to add my strings to the dialog.tlk file; obviously I can't have those strrefs in CHARSND.2DA so I need a command to add the strings to the dialog.tlk file and a subsequent command to add the newly created strrefs to the 2DA file. Provided that that's even possible (but a mod that requires installation in two phases would be a very bad mod.)

 

In-game the situation isn't better:

 

N3jBpks.png

 

These are individual file names for my soundsets, and not even all of them. Some of them don't even play a sound—and even then, all BDTPAM files are part of the same soundset; they should not appear individually. Same with BDTPBE, etc..

 

Where did I go wrong?
 

 

EDIT: I'm patching BGT—not the original BG1.


Edited by Andrea C., 12 June 2021 - 03:08 AM.


#14 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 12 June 2021 - 03:15 AM

Yeah, let's just get this out, you don't use APPEND for this(editing a new column to a .2da file). If it were a row, you would use SET_2DA_ENTRY, but it's not. Haven't found it yet... the thing we search. :D

 

Instead, you use APPEND_COL for it... and EVAL ...

And you use:

APPEND_COL ~charsnd.2da~ EVAL ~Avernus @1 @2 ... ~

More or less.

... this is a preliminary edit for this post.


Edited by The Imp, 12 June 2021 - 03:28 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#15 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 12 June 2021 - 03:22 AM

Tangential question—I see sound file names in brackets after a string don't typically include the file extension. My tra files does. Should I remove all file extensions or should it work regardless?


Edited by Andrea C., 12 June 2021 - 03:22 AM.


#16 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 12 June 2021 - 03:45 AM

And what does the .tra file look like ?


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#17 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 12 June 2021 - 09:13 AM

Like this:

 

Spoiler


#18 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 12 June 2021 - 09:24 AM

Instead, you use APPEND_COL for it... and EVAL ...

And you use:

APPEND_COL ~charsnd.2da~ EVAL ~Avernus @1 @2 ... ~

More or less.

 

That's great!

 

If I understand the documentation correctly, using something like this:

 

 

APPEND_COL ~charsnd.2da~ EVAL ~Avernus @1 @2 $ $ @3 ~

 

would leave two empty rows between @2 and @3. That would be perfect for assigning each strref to the correct sound slot (expressed as a row number.)

 

Do I understand correctly that EVAL is what would turn my strrefs to the appropriate strref assigned to my strings within dialog.tlk?


 



#19 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 12 June 2021 - 10:23 AM

lIKE THIS:


Yeah, you should remove the ".wav" 's...

And yes, that's what I undestand the EVAL does... I have used it in things and it's almost like magic.

Can't say a thing about the $ -sign in the context, as it does mean other things in other contexts, but to what I can figure out, nothing on this.


Edited by The Imp, 12 June 2021 - 10:27 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#20 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 12 June 2021 - 12:59 PM

Can't say a thing about the $ -sign in the context, as it does mean other things in other contexts, but to what I can figure out, nothing on this.


I thought of that based on this line from the APPEND_COL documentation:

 

 

A cell containing exactly $ is printed as empty.


Either way, I'm going to give this a try and see where it gets me.

 

Thanks for the help!