something i was curious about...
recently, after talking with CR who successfully did this for fed ships, i managed to "unlock" the sfx files in the quickbattle folder for stock ships...
basically adding shipdefs in the foundation py, and as well changing the related pys in scripts/custom/ships to match... so now felix will say "Simulated enemy Akira class has been destroyed" or "Simulated friendly Sovereign class has been destroyed" and so forth, using the stock fed ships in qb...
so i took it one step further, and made shipdefs, in the foundation py, for the rest of the stock ships, and now felix will say "Simulated enemy Klingon Vorcha has been destroyed" or "Simulated friendly Romulan Warbird has been destroyed"... it all works fine, and it's nice to hear something other than the generic line...
example
class WarbirdDef(ShipDef):
def __init__(self, abbrev, species, dict):
ShipDef.__init__(self, abbrev, species, dict)
def StrFriendlyDestroyed(self):
return 'QBFriendlyWarbirdDestroyed'
def StrEnemyDestroyed(self):
return 'QBEnemyWarbirdDestroyed'
so i wanted to take it a step further, and see if i can add a custom mp3 to the sfx/quickbattle menu, and apply it to the already-existing shipdefs...
i spliced and edited together 2 existing sfx files into an mp3 so that felix would say "Simulated enemy Cardassain ship has been destroyed" (encoded it with winlame), and figured i would add it to the CardShipDef and it should be ok...
if i use one of the files that is there already (like QBEnemyGalorDestoyed) and add it to the CardSHipDef, it works on all my cardassian ships... (felix would say "Simulated enemy Cardassian Galor has been destroyed" no matter the card ship)...
this is where i am stuck lol
if i try to use a custom mp3 in the quickbattle menu and apply it to the shipdef in the foundation py, it doesnt want to work... no crash, no bsod, nothing in the console... felix just doesnt say anything, and the subtitle flashes for a split second (too fast to read)...
somehow, it seems this should work...
is there something i'm missing?