Jump to content


Photo

BG1 NPC / Gavin music conflict with vanilla music


4 replies to this topic

#1 Enkida

Enkida

    Full Cyborg

  • Members
  • 51 posts
  • Gender:Not Telling
  • Location:Germany

Posted 20 March 2012 - 11:13 PM

Hey, this may not be local to BG1 NPC or Gavin, but these are the only two NPC with music mods I have encountered in my game so far. This is a BWPv11 BGT installation, as well.

If the pc custom music starts up, the vanilla background music does not stop playing, resulting in unpleasant cacaphony.

installation details here, first post:
http://www.shsforums...stall-bug-list/

#2 Miloch

Miloch

    Barbarian

  • Modders
  • 4715 posts
  • Gender:Male
  • Location:At Large

Posted 21 March 2012 - 08:28 PM

Vanilla music is controlled in area files. Not sure if there is a command to disable it. In theory you could StartMusic() to a slot in the area file that has no music track, but that will vary from area to area. The "win" and "lose" slots tend to be vacant (set to -1) in many vanilla area files, whereas "day", "night" and "battle" song slots tend to be populated fairly often (and thus also depend on what time it is or whether battle is occurring).
Mod Contributions
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon

#3 berelinde

berelinde

    The Typo Queen

  • Gibberlings
  • 8594 posts
  • Location:New Jersey, USA

Posted 22 March 2012 - 04:01 AM

Both mods use PlaySong(0) before they start their mod music via PlaySound(0). Both mods also set line 0 in songlist.2da to a blank MUS, but if you've got something in your installation that reassigns that slot, these changes will be overridden. I'm not really sure what the definitive solution would be here. I'm no expert on large installations. Perhaps it would make sense to add the mod music to the songlist (including a check for ToBEx) and just call it with PlaySong("mysong"). It woud involve a recode, but cacaphony is not phun.
Must. Write. Faster.

cmorgan: "None of us get old around here, just more proficient at doing more stuff with less braincells!"

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum

#4 Miloch

Miloch

    Barbarian

  • Modders
  • 4715 posts
  • Gender:Male
  • Location:At Large

Posted 22 March 2012 - 08:29 PM

Does PlaySong() void out any other songs that are playing though (i.e. area file songs)? From the sound of it, possibly not.
Mod Contributions
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon

#5 berelinde

berelinde

    The Typo Queen

  • Gibberlings
  • 8594 posts
  • Location:New Jersey, USA

Posted 23 March 2012 - 05:06 AM

PlaySong() directs the engine to run the MUS file with that name and run through it once. After that, it reverts to the area music. You're good for about 30 seconds of silence with G3BLANK, which is shorter than most NPC music tracks, but most areas have spacers in their MUS files, so you can count on a total of 45-75 seconds of silence after your PlaySound() begins.
Must. Write. Faster.

cmorgan: "None of us get old around here, just more proficient at doing more stuff with less braincells!"

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users