Company of Heroes: Eastern Front

Author Topic: Sound modding  (Read 3369 times)

Offline Lag

  • Ingenery
  • *
  • Posts: 2
    • View Profile
Sound modding
« on: August 20, 2012, 11:43:58 PM »
Hey guys. Is there anyone who understands the sound code of Relic's engine? We are trying to implement sounds for new units for the dow2 ELITE mod and we cant figure out what triggers what. I figured that those two engines are not so different and that they probably used similar approaches.
We extracted the sounds no problem but the sound names have nothing to do with the code, like AT ALL. I figured some of the modders might have an idea.

anyway, here are some of the code examples. these are for tactical marines.

Code: newbielink:javascript:void(0); [nonactive]
SQUAD BLUEPRINT

speech: {
| has_speech_code: true;
| speech_code_2: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | };
| };
| speech_code_3: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "tac";
| | | code: "ify";
| | | code: "gma";
| | };
| };
| speaker_generic: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "sp2";
| | };
| };
| speaker_specific: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "sp2";
| | };
| };
| speaker_specific_chapter_overrides: {
| };
| speaker_generic_chapter_overrides: {
| };
};

ENTITY BLUEPRINT FOR SQUAD MEMBERS

speech: {
| has_speech_code: true;
| speech_code_2: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | };
| };
| speech_code_3: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "tac";
| | | code: "ify";
| | | code: "gma";
| | };
| };
| speech_code_cover: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | };
| };
| speaker: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "sp2";
| | };
| };
| speech_directory: "sound:STREAMED_SPEECH\MP\SP";
};

ENTITY BLUEPRINT FOR SERGEANT

speech: {
| has_speech_code: true;
| speech_code_2: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | };
| };
| speech_code_3: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "tac";
| | | code: "ify";
| | | code: "gma";
| | };
| };
| speech_code_cover: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | };
| };
| speaker: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "sp2";
| | };
| };
| speech_directory: "sound:STREAMED_SPEECH\MP\SP";
};

UPGRADE - FLAMER

speech: {
| has_speech_code: true;
| speech_code_2: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | };
| };
| speech_code_3: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "fla";
| | | code: "gwe";
| | | code: "wgr";
| | };
| };
};

UPGRADE - PLASMA GUN

speech: {
| has_speech_code: true;
| speech_code_2: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | };
| };
| speech_code_3: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "pgu";
| | | code: "gwe";
| | | code: "wgr";
| | };
| };
};

UPGRADE - MISSILE LAUNCHER

speech: {
| has_speech_code: true;
| speech_code_2: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | };
| };
| speech_code_3: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "mil";
| | | code: "gwe";
| | | code: "wgr";
| | };
| };
};

UPGRADE - SERGEANT

speech: {
| has_speech_code: true;
| speech_code_2: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | };
| };
| speech_code_3: {
| | $REF: "types\speech\speech_codes";
| | codes: {
| | | code: "sgt";
| | | code: "";
| | };
| };
};

If you think you can help us please let me know by posting here or by mailing me at milos.martinov (at) gmail. com

Thank you! :)

Offline Walentin 'Walki' L.

  • Developer
  • Poster of the Soviet Union
  • *
  • Posts: 3262
  • Creator of Things
    • View Profile
    • Steam Profile
Re: Sound modding
« Reply #1 on: August 21, 2012, 12:12:19 AM »
Afaik we did implement sound changes by editing the hex code. Alex might know how to change them.
I identify as a four-eyed bird man. /s

Offline Lag

  • Ingenery
  • *
  • Posts: 2
    • View Profile
Re: Sound modding
« Reply #2 on: August 21, 2012, 10:40:39 AM »
Thanks for the reply. I'm looking forward to some more information!

Offline Blackbishop

  • Administrator
  • Poster of the Soviet Union
  • *
  • Posts: 12053
  • Community Manager, Programmer and Kicker
    • View Profile
Re: Sound modding
« Reply #3 on: August 24, 2012, 09:38:34 PM »
I've made this tutorial for another user a while ago.

http://www.mediafire.com/view/?vexoovookol213d

However, as you want to work with Dawn of War it might be different, I've never modded DoW though.
Mors Indecepta

Might controls everything, and without strength you cannot protect anything. Let alone yourself...