This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] [QUESTION]  Objects Sounds  (Read 1208 times)

monoman

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 84
    • View Profile
[SOLVED] [QUESTION]  Objects Sounds
« on: January 21, 2015, 06:09:08 am »
Hi,

        As you all might had noted there are objects (m2)  in the game that have sounds, like braziers, lamps, and fx emmiters.
So far i haven't found the link between the object and the sound archive. Does anybody know how the m2 borrow the sounds?

I managed to make a custom sound set for a npc and i think the process is somewhat alike but again so far no luck finding the how.


Thank you in advance for any help n_n /
« Last Edit: January 24, 2015, 06:34:36 pm by Admin »

stan84

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 184
    • View Profile
Re: [QUESTION]  Objects Sounds
« Reply #1 on: January 21, 2015, 06:28:47 am »
It is in soundentries.dbc

for example lets explain this on  model BE_Lamppost_Eversong01.m2

look at row 8760
the 2nd column has value 25 ( it means sound for doodads)
3rd one has name of m2 ( without .m2 extension)
4th column descibes sound file which has to play
14-29 describes play parameters ( how loud, path to file etc.)

do some tests, just copy any ddodad row to new one, put desired m2 filename and sound file...

and enjoy  :)

hope it helps

Stan
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Makpptfox

  • Contributors
  • Loreweaver
  • *****
  • Posts: 103
    • View Profile
Re: [QUESTION]  Objects Sounds
« Reply #2 on: January 21, 2015, 07:04:54 am »
Quote from: "stan84"
It is in soundentries.dbc

for example lets explain this on  model BE_Lamppost_Eversong01.m2

look at row 8760
the 2nd column has value 25 ( it means sound for doodads)
3rd one has name of m2 ( without .m2 extension)
4th column descibes sound file which has to play
14-29 describes play parameters ( how loud, path to file etc.)

do some tests, just copy any ddodad row to new one, put desired m2 filename and sound file...

and enjoy  :)

hope it helps

Stan

Mh, it's to create the Refid for the sound, but the m2 will not play the sound only with this. (Never tried, but i'm pretty sure of this.)

The ID of the m2's sound isn't in the m2 himself ? I have exported some m2 from WOD and added the ID of the sound directly in the sEvent with 010 and everything is OK.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
For support, send your Discord's ID by PM.

stan84

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 184
    • View Profile
Re: [QUESTION]  Objects Sounds
« Reply #3 on: January 22, 2015, 06:36:26 am »
Quote from: "Makpptfox"
Quote from: "stan84"
It is in soundentries.dbc

for example lets explain this on  model BE_Lamppost_Eversong01.m2

look at row 8760
the 2nd column has value 25 ( it means sound for doodads)
3rd one has name of m2 ( without .m2 extension)
4th column descibes sound file which has to play
14-29 describes play parameters ( how loud, path to file etc.)

do some tests, just copy any ddodad row to new one, put desired m2 filename and sound file...

and enjoy  :)

hope it helps

Stan

Mh, it's to create the Refid for the sound, but the m2 will not play the sound only with this. (Never tried, but i'm pretty sure of this.)

The ID of the m2's sound isn't in the m2 himself ? I have exported some m2 from WOD and added the ID of the sound directly in the sEvent with 010 and everything is OK.


yes, thats true, forgot about this,

the pointer to soundentries.dbc is in m2 file itself, just 2 bytes after $DLS

again BE_Lamppost_Eversong01.m2 has value $DSL9" in hex  24 44 53 4c 39 22

the value for sound is hex 39 22 (remeber switch bytes order - 22 39) , after conversion to dec is 8761 - this is soundentries.dbc value
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

monoman

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 84
    • View Profile
Re: [QUESTION]  Objects Sounds
« Reply #4 on: January 22, 2015, 07:04:19 pm »
Thank you both for your replies, and indeed it was a mix of both methods, Makpptfox part had to do with the sound set creation in the DBC file and the entrys.
And stan84 with the modification of the sound event inside the m2. where the entry od the DBC was needed.

so thank you both for your help n_n /, you make my day.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »