Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1370 closed defect (fixed)

Implement defeat music

Reported by: vls Owned by: leper
Priority: Nice to Have Milestone: Alpha 11
Component: UI & Simulation Keywords:
Cc: brian Patch:

Description (last modified by historic_bruno)

See attached screenshot

Attachments (1)

3.after defit.jpg (192.7 KB ) - added by vls 12 years ago.

Download all attachments as: .zip

Change History (9)

by vls, 12 years ago

Attachment: 3.after defit.jpg added

comment:1 by Erik Johansson, 12 years ago

Priority: Release BlockerShould Have

Hmm, does the defeat music not play at all? Doing a quick test I notice it does play, so it seems like a weird warning for an issue that doesn't exist (or rather: there might be a programming error, but it doesn't affect gameplay). Something to look into sure, but definitely not a release blocker.

comment:2 by historic_bruno, 12 years ago

Cc: brian added
Component: Music & Sound FXUI & Simulation
Description: modified (diff)
Summary: Unrecognized music type: defeatImplement defeat music

Defeat music isn't implemented as far as I know, the first message in the console is not an error, but a reminder to implement it :) This may be fixed as part of our planned sound system overhaul.

(The warning/error are separate, AI-related issues.)

comment:3 by Jonathan Waller, 12 years ago

(I believe the warning/error was fixed in [11429])

comment:4 by Kieran P, 12 years ago

Priority: Should HaveNice to Have

comment:5 by leper, 12 years ago

Is this error still occuring?

Defeat music (and victory music) should work as of r12020. Probably some call site used defeat (or global.music.states.defeat) instead of global.music.states.DEFEAT.

Last edited 12 years ago by leper (previous) (diff)

in reply to:  5 comment:6 by historic_bruno, 12 years ago

Replying to leper:

Is this error still occuring?

You have to play a civ that has defeat or victory music defined in the civ data file, like Romans, and then check the console after the game starts (it's a direct console output). The problem is there's no case in Music.storeTracks() to handle loading defeat or victory music. If it's trivial to fix, it may be worth doing short term, but eventually the music logic should be moved outside of JS per what used to be #961 :)

comment:7 by leper, 12 years ago

Owner: set to leper
Resolution: fixed
Status: newclosed

In 12024:

Fix issues with civ specific victory/defeat music. Fixes #1370.

comment:8 by leper, 12 years ago

I went ahead and fixed it (I also changed the console logging to warnings, so that they show up in the logs).

Regarding #961: I think we should leave some of the music logic in JS, but we should move that out of the gui code as it doesn't fit there. We should probably reopen/create a new ticket for this task after the new sound manager is completed.

Note: See TracTickets for help on using tickets.