OpenXcom Forum

Modding => Work In Progress => Topic started by: silencer_pl on January 25, 2016, 09:55:25 pm

Title: Modding music for specific missions
Post by: silencer_pl 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
Title: Re: Modding music for specific missions
Post by: Warboy1982 on January 29, 2016, 08:48:56 am
try putting it in the mod's folder instead?
Title: Re: Modding music for specific missions
Post by: Solarius Scorch 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
Title: Re: Modding music for specific missions
Post by: SupSuper 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
Title: Re: Modding music for specific missions
Post by: Solarius Scorch 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?
Title: Re: Modding music for specific missions
Post by: R1dO 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.
Title: Re: Modding music for specific missions
Post by: Solarius Scorch 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!