Перейти к содержимому

Фото

Remap sound events without XVM


  • Чтобы отвечать, сперва войдите на форум
7 ответов в теме

#1 Willster419

Willster419
  • Пользователь
  • 26 сообщений
  • Nick:Willster419
  • WoT Server:NA (American)

Опубликовано 08 Январь 2017 - 07:17

Hello, New modder here.
I am trying to make a sound mod to override some of the GUI sounds like timer and enemy_spotted_for_team. I have successfully created a wwise audio bnk and it is loaded and played in WOT. It also works with remapping the game event name to the name I made in wwise via xvm sound event remapper.
My question is this: do I have to use xvm to remap the sound events? I am familiar with the bank remapper from D2R52, but it was for 9.15.1 and now throws exceptions.
The sound mapper from xvm works, and his looks similar to xvm. Could someone help me to get it to work?

Thanks,
Willster419
 
EDIT:
 
Below is D2R52's code

 

 

(It is very similar to the xvm code) here is the python log error

 

 

The XVM files i think i need are:
res_mods\mods\xfw\python\xfw\_init_.py
res_mods\mods\xfw\python\xfw\events.py
res_mods\mods\packages\xvm_sounds\python\_init_.py


Изменено: Willster419, 08 Январь 2017 - 16:26

  • 0

#2 Willster419

Willster419
  • Пользователь
  • 26 сообщений
  • Nick:Willster419
  • WoT Server:NA (American)

Опубликовано 08 Январь 2017 - 17:21

Unless someone can point me to where the base capture sound event is declared in an XML...


  • 0

#3 Budyx69

Budyx69
  • Пользователь
  • 46 сообщений
  • Nick:Budyx69
  • WoT Server:EU (European)

Опубликовано 08 Январь 2017 - 23:15

you must change the def def _WWISE_WW_getSoundObject

def _WWISE_WW_getSoundObject(base, event, matrix, local, auxSend):
    return base(_checkAndReplace(event), matrix, local, auxSend)


  • 1

#4 Willster419

Willster419
  • Пользователь
  • 26 сообщений
  • Nick:Willster419
  • WoT Server:NA (American)

Опубликовано 09 Январь 2017 - 02:11

It works!

Many thanks!

 

May I ask how you were able to figure it out..?


Изменено: Willster419, 09 Январь 2017 - 02:12

  • 0

#5 Budyx69

Budyx69
  • Пользователь
  • 46 сообщений
  • Nick:Budyx69
  • WoT Server:EU (European)

Опубликовано 09 Январь 2017 - 10:15

is Easy:
see i scripts/client/soundgroups.py the def "WWgetSoundObject"
the code from D2R52 is from 0.9.15
in 9.16 has WG this def changed
 
old def:


 
new_def


  • 1

#6 Willster419

Willster419
  • Пользователь
  • 26 сообщений
  • Nick:Willster419
  • WoT Server:NA (American)

Опубликовано 09 Январь 2017 - 14:45

Ah, so using WG scripts is what i should first look to for refrence, not xvm. Thanks again!!


  • 0

#7 Willster419

Willster419
  • Пользователь
  • 26 сообщений
  • Nick:Willster419
  • WoT Server:NA (American)

Опубликовано 11 Январь 2017 - 16:36

I know this is selfish of me to ask, but what about his custom sound bank loader? That is throwing exceptions as well.

I will post the exact code and python log exception later today. (EST based)


  • 0

#8 Willster419

Willster419
  • Пользователь
  • 26 сообщений
  • Nick:Willster419
  • WoT Server:NA (American)

Опубликовано 12 Январь 2017 - 01:29

here is the bank loader code:

mod_SoundBankLoader.pyc

 

And the exeption:

 

In looking myself, all i could find was in _WWISEStubs.py:

 

It sound to me like they removed the method from the python.log error, but that would not make sense because the def stub is there...?


Изменено: Willster419, 12 Январь 2017 - 01:51

  • 0





0 пользователей читают эту тему

0 зарегистрированных, 0 гостей, 0 невидимых

© Mr 13