aliens

Author Topic: Modding music for specific missions  (Read 4743 times)

Offline silencer_pl

  • Captain
  • ***
  • Posts: 83
    • View Profile
Modding music for specific missions
« on: January 25, 2016, 09:55:25 pm »
Hello,

I have a question, did something change in the way I should specify in which mission I want different music file to play? I've been using all the time specific rule called Musics where I had just this:

musics:
  - type: LIGHTNINGWAR
    normalization: 1.00

And in another rule for example in base defense I have something like this:

  - type: STR_BASE_DEFENSE
    music:
      - type: LIGHTNINGWAR


Yes I have this file in my UFO/Sound folder because I had it working in the past. But now it's not working. I'm using nightly from 2015-12-27

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Modding music for specific missions
« Reply #1 on: January 29, 2016, 08:48:56 am »
try putting it in the mod's folder instead?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Modding music for specific missions
« Reply #2 on: April 10, 2016, 02:35:54 pm »
I tried putting an .ogg file in my mod, define it in the music.rul... And my game stopped playing any music whatsoever. :P

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Modding music for specific missions
« Reply #3 on: April 25, 2016, 07:35:30 pm »
For reference I just tried this to add a new music and apply it to the Terror Mission and it worked fine:
Code: [Select]
musics:
  - type: LIGHTNINGWAR
alienDeployments:
  - type: STR_TERROR_MISSION
    briefing:
      palette: 2
      music: LIGHTNINGWAR
    music:
      - LIGHTNINGWAR

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Modding music for specific missions
« Reply #4 on: April 30, 2016, 07:08:52 pm »
Many thanks SupSuper, this should be helpful.

EDIT: No, I tried doing the same and it's the same problem: no music works in the game at all.

Is it a recent thing? If so, it may be an OXCE problem.
Also, does it matter where exactly in the mod the file is?

Offline R1dO

  • Colonel
  • ****
  • Posts: 442
    • View Profile
Re: Modding music for specific missions
« Reply #5 on: May 01, 2016, 12:13:20 am »
Try putting them under SOUND (top-level subdirectory). I kinda remember this was needed on my system to get cydonias fall working.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Modding music for specific missions
« Reply #6 on: May 01, 2016, 11:07:06 am »
Try putting them under SOUND (top-level subdirectory). I kinda remember this was needed on my system to get cydonias fall working.

Yup, that did it. Thanks!